mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-16 17:39:49 +00:00
AbstractHafasClientInterfaceProvider: Support filtering for stations when querying for nearby locations.
This commit is contained in:
parent
6e9cfcd00f
commit
3742467872
1 changed files with 2 additions and 0 deletions
|
@ -164,9 +164,11 @@ public abstract class AbstractHafasClientInterfaceProvider extends AbstractHafas
|
|||
int maxDistance) throws IOException {
|
||||
if (maxDistance == 0)
|
||||
maxDistance = DEFAULT_MAX_DISTANCE;
|
||||
final boolean getStations = types.contains(LocationType.STATION);
|
||||
final boolean getPOIs = types.contains(LocationType.POI);
|
||||
final String request = wrapJsonApiRequest("LocGeoPos", "{\"ring\":" //
|
||||
+ "{\"cCrd\":{\"x\":" + lon + ",\"y\":" + lat + "},\"maxDist\":" + maxDistance + "}," //
|
||||
+ "\"getStops\":" + getStations + "," //
|
||||
+ "\"getPOIs\":" + getPOIs + "}", //
|
||||
false);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue