mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 02:18:47 +00:00
VrsProvider: Parse one more error message in queryNearbyLocations().
This commit is contained in:
parent
264c005ed7
commit
45418a27f6
1 changed files with 1 additions and 1 deletions
|
@ -383,7 +383,7 @@ public class VrsProvider extends AbstractNetworkProvider {
|
|||
final JSONObject head = new JSONObject(page.toString());
|
||||
final String error = Strings.emptyToNull(head.optString("error", "").trim());
|
||||
if (error != null) {
|
||||
if (error.equals("Leere Koordinate.") || error.equals("Leere ASS-ID und leere Koordinate"))
|
||||
if (error.equals("Leere Koordinate.") || error.equals("Leere ASS-ID und leere Koordinate") || error.equals("Keine Abfahrten gefunden."))
|
||||
return new NearbyLocationsResult(new ResultHeader(NetworkId.VRS, SERVER_PRODUCT), locations);
|
||||
else if (error.equals("ASS2-Server lieferte leere Antwort."))
|
||||
return new NearbyLocationsResult(new ResultHeader(NetworkId.VRS, SERVER_PRODUCT),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue