grote / Transportr

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

IllegalArgumentException when searching for Start = Destination #474

Open HostedDinner opened 5 years ago

HostedDinner commented 5 years ago

I get an ugly IllegalArgumentException when searching a trip with Start and Destination the same. This should display a nicer error message and not in internal failure.

Version: current Google PlayStore Version 2.0.1 Provider: In my case it was VRN, but I doubt this is for all providers.

screenshot_20180721-105837_transportr

grote commented 5 years ago

Thanks for reporting! Could you check if this is really the same for other networks and also for locations that are not saved as home and maybe not saved at all?

HostedDinner commented 5 years ago

Sorry for the late response: As I don't want to spam my networks with networks I never use, I only quick checked Deutsche Bahn and there the error message, the destinations are to close appears.

And the error happends also for station, which are not in my favorites.

TomJansen commented 5 years ago

With 9292, it says that the data provider is down. With NS, it says that the "from" and "to" location are too close together.

Altonss commented 7 months ago

It seems that the EFA provider in PTE hasn't implemented the TOO_CLOSE status, see: https://github.com/search?q=repo%3Aschildbach%2Fpublic-transport-enabler%20TOO_CLOSE&type=code