Entur Developer
Open
GraphQL

nearest

query

Get all places (quays, stop places, car parks etc. with coordinates) within the specified radius from a location. The returned type has two fields place and distance. The search is done by walking so the distance is according to the network of walkables.

Arguments

latitude·Float!

Latitude of the location

longitude·Float!

Longitude of the location

maximumDistance·Float!= 2000

Maximum distance (in meters) to search for from the specified location. Default is 2000m.

maximumResults·Int= 20

Maximum number of results. Search is stopped when this limit is reached. Default is 20.

filterByPlaceTypes·[FilterPlaceType]= [quay, stopPlace, bicycleRent, bikePark, carPark]

Only include places of given types if set. Default accepts all types

filterByModes·[TransportMode]

Only include places that include this mode. Only checked for places with mode i.e. quays, departures.

filterByInUse·Boolean= false

Only affects queries for quays and stop places. If true only quays and stop places with at least one visiting line are included.

filterByIds·InputPlaceIds

Only include places that match one of the given ids.

multiModalMode·MultiModalMode= parent

MultiModalMode for query. To control whether multi modal parent stop places, their mono modal children or both are included in the response. Does not affect mono modal stop places that do not belong to a multi modal stop place. Only applicable for placeType StopPlace

before·String

fetching only nodes before this node (exclusive)

after·String

fetching only nodes after this node (exclusive)

first·Int

fetching only the first certain number of nodes

last·Int

fetching only the last certain number of nodes

a list of edges

pageInfo·PageInfo!

details about this specific page

Did you find what you were looking for?