grote / Transportr

Free Public Transport Assistant without Ads or Tracking
https://transportr.app
GNU General Public License v3.0
1.05k stars 188 forks source link

No results when searching for directions, search bar, or adding home/work #525

Closed colinner closed 11 months ago

colinner commented 6 years ago

Describe the bug I've been unable to get the app to provide any search results when searching for places or route results with directions.

To Reproduce

  1. Open app and zoom to transit-covered area.
  2. Type in search bar for places, but no place results appear. Animated loader circle icon appears for 1 second then goes away.
  3. Next, (since I cant get search results) I Fill in the To and From fields by tapping "From here" and pasting a place name to be sure that the places are valid.
  4. Tap "Next" on keyboard. (nothing happens)
  5. Close keyboard. (nothing happens; no buttons or anything to start the search for directions)

Expected behavior Either a button to search for routes/places or routes/places appearing when tapping "Next" on the keyboard.

Screenshots screenshot_2018-09-15-22-21-58

Versions (please complete the following information):

grote commented 6 years ago

Thanks for the report. It sounds like the problem is due to pasting a place name. Could you try typing the name instead and selecting one from the list?

colinner commented 6 years ago

Yes, I've done that. But that is part of the problem- no results for place searches appear NOR results for directions. I've updated the report to emphasize this more. I'll try again to be sure.

grote commented 6 years ago

Sounds like an API issue. If you use british columbia, you'd need to talk to Navitia about this.

grote commented 6 years ago

Are you using the British Columbia coverage? If so, if I type "Olym" I get some results of stations and places!?

colinner commented 6 years ago

Yes, I've tried many queries. I tried "olym" too for completeness. Not sure what more info I can provide.

grote commented 6 years ago

Sure you are not blocking transportr's internet access with some firewall or something? Can you try DB in Europe and type test to see if this brings any results? If not, does it work if you put a space at the end?

colinner commented 6 years ago

No I don't have any internet blocking apps. I can load and browse the map just fine. Appending spaces doesnt make a difference. I tried the Deutsche Bahn in Europe- and yes! I get some search results!

colinner commented 6 years ago

I've tried the other networks in Canada but they also have no search results.

grote commented 6 years ago

Very strange! Can you try Paris? It uses the same API as Canada.

colinner commented 6 years ago

Hmmm, yes Paris behaves the same way as the Canadian networks. No search results.

grote commented 6 years ago

Aha! We are getting closer. Can you open https://api.navitia.io in a browser on the same device? If not, you need to report this to Navitia.

colinner commented 6 years ago

At that link all I see is a JSON string all on one line.

colinner commented 6 years ago

Is there any chance the API requires Google play services?

grote commented 6 years ago

If you see

{"versions":[{"status":"current","links":[{"href":"https:\/\/api.navitia.io\/v1\/","type":"api","rel":"api","templated":false}],"description":"Current version of navitia API","value":"v1"}]}

your browser can at least connect, but Transportr can not for some reason.

Can you get a logcat log from your phone while trying entering a name in the search form?

colinner commented 6 years ago

logcat_transportr_searchingAndRouting_BC.txt Hopefully this is helpful.

grote commented 6 years ago

Unfortunately not. There's nothing related to Transportr in there.

colinner commented 6 years ago

Is there any special setting required in logcat?

ialokim commented 11 months ago

We had to remove BritishColombia with #884 since data for it is no longer available.