mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-16 17:39:49 +00:00
AbstractHafasMobileProvider: If address is passed to jsonTripSearch() without id, also use coordinate to identify the address.
This commit is contained in:
parent
43abca08f5
commit
188dbf397d
1 changed files with 6 additions and 0 deletions
|
@ -353,6 +353,12 @@ public abstract class AbstractHafasMobileProvider extends AbstractHafasProvider
|
|||
if (!locations.isEmpty())
|
||||
return locations.get(0);
|
||||
}
|
||||
if (location.hasLocation()) {
|
||||
final List<Location> locations = jsonLocGeoPos(EnumSet.allOf(LocationType.class), location.lat,
|
||||
location.lon).locations;
|
||||
if (!locations.isEmpty())
|
||||
return locations.get(0);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue