mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-21 01:39:51 +00:00
uniform method order
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@663 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
56465ede5e
commit
c9fac86b2a
58 changed files with 967 additions and 968 deletions
|
@ -48,16 +48,6 @@ public interface NetworkProvider
|
|||
|
||||
boolean hasCapabilities(Capability... capabilities);
|
||||
|
||||
/**
|
||||
* Meant for auto-completion of station names, like in an {@link android.widget.AutoCompleteTextView}
|
||||
*
|
||||
* @param constraint
|
||||
* input by user so far
|
||||
* @return auto-complete suggestions
|
||||
* @throws IOException
|
||||
*/
|
||||
List<Location> autocompleteStations(CharSequence constraint) throws IOException;
|
||||
|
||||
/**
|
||||
* Determine stations near to given location. At least one of stationId or lat/lon pair must be present.
|
||||
*
|
||||
|
@ -72,6 +62,30 @@ public interface NetworkProvider
|
|||
*/
|
||||
NearbyStationsResult queryNearbyStations(Location location, int maxDistance, int maxStations) throws IOException;
|
||||
|
||||
/**
|
||||
* Get departures at a given station, probably live
|
||||
*
|
||||
* @param stationId
|
||||
* id of the station
|
||||
* @param maxDepartures
|
||||
* maximum number of departures to get or {@code 0}
|
||||
* @param equivs
|
||||
* also query equivalent stations?
|
||||
* @return result object containing the departures
|
||||
* @throws IOException
|
||||
*/
|
||||
QueryDeparturesResult queryDepartures(int stationId, int maxDepartures, boolean equivs) throws IOException;
|
||||
|
||||
/**
|
||||
* Meant for auto-completion of station names, like in an {@link android.widget.AutoCompleteTextView}
|
||||
*
|
||||
* @param constraint
|
||||
* input by user so far
|
||||
* @return auto-complete suggestions
|
||||
* @throws IOException
|
||||
*/
|
||||
List<Location> autocompleteStations(CharSequence constraint) throws IOException;
|
||||
|
||||
/**
|
||||
* Query connections, asking for any ambiguousnesses
|
||||
*
|
||||
|
@ -117,20 +131,6 @@ public interface NetworkProvider
|
|||
*/
|
||||
GetConnectionDetailsResult getConnectionDetails(String connectionUri) throws IOException;
|
||||
|
||||
/**
|
||||
* Get departures at a given station, probably live
|
||||
*
|
||||
* @param stationId
|
||||
* id of the station
|
||||
* @param maxDepartures
|
||||
* maximum number of departures to get or {@code 0}
|
||||
* @param equivs
|
||||
* also query equivalent stations?
|
||||
* @return result object containing the departures
|
||||
* @throws IOException
|
||||
*/
|
||||
QueryDeparturesResult queryDepartures(int stationId, int maxDepartures, boolean equivs) throws IOException;
|
||||
|
||||
/**
|
||||
* Get colors of line
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue