Query station amenities
To get a full overview of all amenities at a charging station you can use the amenityList
query. Most of them support a link towards foursquare for more information.
The available amenities can also be used as filters on our tile service. To show the amenity count you can use the station statistics query.
Query
To use the amenityList
query you will need a station id
. This id
can be fetched by using our stationList
query. After passing in this id
you have access to anything from address
to rating
.
Arguments
The station ID
Frequently used fields
Embedded Address
Type of amenity. An amenity can belong to multiple categories
Rating of an amenity, the value will be between 0.0 and 10.0. If no rating has been given, the value will be set to null
Full path URL to amenity foursquare page
Other fields
Unique amenity ID
ID provided by an amenity data source as the row ID
Name of an amenity
Geo location coordinates. This is a GeoJSON Point
Computed distance between station and amenity
Date and time when an amenity was created
Date and time when an amenity was last updated
Response
If successful, the HTTP status code in the response header is
200
and the response body contains the attributes you
requested.
If unsuccessful, the header status code is an error code and the response body contains an error response object. The error response object can be any of the ones below.
Errors & warnings
- Error
ERROR_FORBIDDEN_MESSAGE
You are forbidden to execute this operation
- Error
STATION_NOT_FOUND
No station was found with the provided ID