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

stationId non_null ID

Required

The station ID

Other fields

id scalar ID

Unique amenity ID

externalId scalar String

ID provided by an amenity data source as the row ID

name scalar String

Name of an amenity

location object Point

Geo location coordinates. This is a GeoJSON Point

address object Address

Embedded Address

type list String

Type of amenity. An amenity can belong to multiple categories

rating scalar Float

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

distance scalar Int

Computed distance between station and amenity

foursquareUrl scalar String

Full path URL to amenity foursquare page

createdAt scalar String

Date and time when an amenity was created

updatedAt scalar String

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 and warnings

Error

ERROR_FORBIDDEN_MESSAGE

You are forbidden to execute this operation

Error

STATION_NOT_FOUND

No station was found with the provided ID