mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-21 01:39:51 +00:00
SH: Handle querying for nearby stations by coordinate.
This commit is contained in:
parent
26199d7ec3
commit
f8e1674ab6
2 changed files with 16 additions and 10 deletions
|
@ -145,16 +145,6 @@ public class ShProvider extends AbstractHafasProvider
|
|||
return super.splitStationName(address);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NearbyLocationsResult queryNearbyLocations(final EnumSet<LocationType> types, final Location location, final int maxDistance,
|
||||
final int maxLocations) throws IOException
|
||||
{
|
||||
if (location.type == LocationType.STATION && location.hasId())
|
||||
return nearbyStationsById(location.id, maxDistance);
|
||||
else
|
||||
throw new IllegalArgumentException("cannot handle: " + location);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected NearbyLocationsResult nearbyStationsById(final String id, final int maxDistance) throws IOException
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue