Hafas: Handle h2g error 207.

This commit is contained in:
Andreas Schildbach 2015-06-15 17:52:45 +02:00
parent 42e9d39c56
commit d934dfa0d4

View file

@ -2025,6 +2025,9 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
throw new SessionExpiredException();
else if (errorCode == 8)
return new QueryTripsResult(header, QueryTripsResult.Status.AMBIGUOUS);
else if (errorCode == 207)
// H207: Unfortunately your connection request can currently not be processed.
return new QueryTripsResult(header, QueryTripsResult.Status.SERVICE_DOWN);
else if (errorCode == 887)
// H887: Your inquiry was too complex. Please try entering less intermediate stations.
return new QueryTripsResult(header, QueryTripsResult.Status.NO_TRIPS);