nearest Query
Get all places (stops, stations, etc. with coordinates) within the specified radius from a location. The returned type is a Relay connection (see https://facebook.github.io/relay/graphql/connections.htm ). The placeAtDistance type has two fields: place and distance. The search is done by walking so the distance is according to the network of walkable streets and paths.
Arguments
#
after
before
filterByIds
Only include places that match one of the given GTFS ids.
filterByModes
Only return places that are related to one of these transport modes. This argument can be used to return e.g. only nearest railway stations or only nearest places related to bicycling.
filterByNetwork
Only include vehicle rental networks that match one of the given network ids.
filterByPlaceTypes
Only return places that are one of these types, e.g. STOP
or VEHICLE_RENT
first
last
maxDistance = 2000
Maximum distance (in meters) to search for from the specified location. Note that this is walking distance along streets and paths rather than a geographic distance. Default is 2000m
maxResults = 20
Maximum number of results. Search is stopped when this limit is reached. Default is 20.
Response
#
Returns placeAtDistanceConnection .