SH: Handle querying for nearby stations by coordinate.

This commit is contained in:
Andreas Schildbach 2015-08-26 13:30:42 +02:00
parent 26199d7ec3
commit f8e1674ab6
2 changed files with 16 additions and 10 deletions

View file

@ -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
{