mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-13 16:20:34 +00:00
Hafas: Handle JSON API error H891 'No route found'.
This commit is contained in:
parent
db5bbd9228
commit
db63fec2db
1 changed files with 2 additions and 0 deletions
|
@ -1149,6 +1149,8 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
||||||
{
|
{
|
||||||
if ("H890".equals(err)) // No connections found.
|
if ("H890".equals(err)) // No connections found.
|
||||||
return new QueryTripsResult(header, QueryTripsResult.Status.NO_TRIPS);
|
return new QueryTripsResult(header, QueryTripsResult.Status.NO_TRIPS);
|
||||||
|
if ("H891".equals(err)) // No route found (try entering an intermediate station).
|
||||||
|
return new QueryTripsResult(header, QueryTripsResult.Status.NO_TRIPS);
|
||||||
if ("H895".equals(err)) // Departure/Arrival are too near.
|
if ("H895".equals(err)) // Departure/Arrival are too near.
|
||||||
return new QueryTripsResult(header, QueryTripsResult.Status.TOO_CLOSE);
|
return new QueryTripsResult(header, QueryTripsResult.Status.TOO_CLOSE);
|
||||||
if ("H9220".equals(err)) // Nearby to the given address stations could not be found.
|
if ("H9220".equals(err)) // Nearby to the given address stations could not be found.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue