mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-21 01:39:51 +00:00
queryNearbyStations now takes Location object
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@619 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
c0f0be81bf
commit
653d590e1b
112 changed files with 605 additions and 501 deletions
|
@ -59,14 +59,10 @@ public interface NetworkProvider
|
|||
List<Location> autocompleteStations(CharSequence constraint) throws IOException;
|
||||
|
||||
/**
|
||||
* Determine stations near to given location. At least one of stationId or lat/lon pair must be given.
|
||||
* Determine stations near to given location. At least one of stationId or lat/lon pair must be present.
|
||||
*
|
||||
* @param stationId
|
||||
* id of station to look up nearby stations (optional)
|
||||
* @param lat
|
||||
* latitude (optional)
|
||||
* @param lon
|
||||
* longitude (optional)
|
||||
* @param location
|
||||
* location to determine nearby stations (optional)
|
||||
* @param maxDistance
|
||||
* maximum distance in meters, or {@code 0}
|
||||
* @param maxStations
|
||||
|
@ -74,7 +70,7 @@ public interface NetworkProvider
|
|||
* @return nearby stations
|
||||
* @throws IOException
|
||||
*/
|
||||
NearbyStationsResult nearbyStations(String stationId, int lat, int lon, int maxDistance, int maxStations) throws IOException;
|
||||
NearbyStationsResult queryNearbyStations(Location location, int maxDistance, int maxStations) throws IOException;
|
||||
|
||||
/**
|
||||
* Query connections, asking for any ambiguousnesses
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue