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:
andreas.schildbach@gmail.com 2011-05-07 16:29:02 +00:00
parent c0f0be81bf
commit 653d590e1b
112 changed files with 605 additions and 501 deletions

View file

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