Documentation

EV Service API

The EV Service API provides information about charging stations and the current availability of charging points. There are two types of information feeds: static and dynamic. Both static and dynamic feeds are served per country. Customers can provide their clients with updated availability information for all nearby charging stations.

The Static Feed

The static feed provides comprehensive information that does not change rapidly; it is supposed to be downloaded a few times per day to pick up the latest changes. The feed has a hierarchical structure of the following elements:

  • Charging park - may include a group of one or more charging stations.
  • Charging station - may include one or more charging points. Each charging station often corresponds to a single "pole" that provides one or more charging points.
  • Charging point - Each charging point provides point location and a plug type.

The charging park holds shared properties of the grouped charging stations like operator, address, location, opening hours, etc.

Element TypeDescription
Charging parkcharging stations who are close to each other can be grouped into a charging park.
Charging stationOften corresponds to a single "pole". One station often has more than one charging point.
Charging pointCorresponds to a EVSE. This can be thought of as the charging facility capable of accomodating one car.

Charging parks, stations and points have two IDs associated with them. * Uuid is a globally unique ID. It uniquely identifies an entity. The uuid is used as reference in the dynamic feed. * ExternalId is an ID used by external providers. In the case of charging points for certain providers this may be the EVSE ID. The external ID may not uniquely identify an entity in this feed.

The Dynamic Feed

The dynamic feed provides frequently updated information of the current availability for different types of charging points for each station, referenced by the unique per-station-ID provided in the static feed and a unique charging point ID.

Element TypeDescription
Charging station updateReferences a charging station by a uuid and includes updated charging points.
Charging point updateReferences a charging point.

Request

Format

GET
URL request example
https://{baseURL}/electromobility/{version}/{feedType}/{countryCode}?key={apiKey}

Example

The static feed for Germany

GET
URL request example
https://api.tomtom.com/electromobility/v1/static/de?key={apiKey}

The dynamic feed for Germany

GET
URL request example
https://api.tomtom.com/electromobility/v1/dynamic/de?key={apiKey}

Parameters

ParameterDescriptionRequiredExampleDefault
baseURLBase URL for calling TomTom services.Yesapi.tomtom.com-
versionThe version of the service to call.Yesv1-
feedTypeThe type of information requested:
static - Static information about all stations in the country, such as name, location, and opening hours.
dynamic - Dynamic information about the current availability for all stations in the country.
Yesstatic
dynamic
-
countryCodeThe ISO 3166-1 alpha-2 code of the country of interest in lowercase letters. See the Country Coverage for supported countries.Yesde-
apiKeyAuthorization key for access to the API.Yes--

Headers

HeaderDescriptionRequiredExampleDefault
[Accept-Encoding]Requests that the response is compressed in the specified way. The service supports http compression if desired. Currently, gzip is supported.Nogzip-
[If-None-Match]Provides the entity-tag (E-tag) of the requested resource as last received by the client. Allows efficient updates of cached information with a minimum amount of transaction overhead: The service can respond with a 304 (not modified) message if the data that would otherwise be provided has the same entity tag.No"4f3d2af4"-
[If-Modified-Since]Specifies the time stamp of the last actual update of the requested resource received by the client. Allows the service to respond with a 304 (not modified) message if no newer data is available.NoSat, 29 Oct 1994 19:43:31 GMT-

Request Content

Plain GET messages are to be used to create requests for both the static and the dynamic feed.

Response

Response Codes

CodeMeaning and possible causes
200OK
304Not Modified: The requested content did not change since the last request, as indicated by the value(s) of the If-Modified-Since and/or or If-None-Match http header fields.
401Unauthorized: The supplied API key is not valid for this request (or missing)
404Not Found: The specified path was not valid. At least one of the path parameters was omitted or not entered correctly. If an unsupported or invalid country code was specified, the included response message provides a list of valid available country codes.
500Internal Server Error: Oops.

Response Headers

HeaderDescriptionValues
Content-EncodingThe service supports http compression if desired. Currently, gzip is supported.gzip
Content-TypeThe format of the served resource. The service always provides data in xml.application/xml
DateA timestamp specifying when the response was sent. Can be used by the client in the If-Modified-Since header field of subsequent requests in order to optimize the update procedure.Example:
"Wed, 20 Jul 2016 14:23:59 GMT"
EtagEntity-tag of the served resource. Can be used by the client in the If-None-Match header field of subsequent requests in order to optimize the update procedure.Example:
"4f3d2af4"

Static Feed

Example Response

The available static information for all known charging stations in the requested country is provided as xml. The order of the stations is not specified.

1<?xml version="1.0" encoding="UTF-8" ?>
2<chargingParks xmlns="http://www.tomtom.com/service/tis/chargingstation/static/1.0"
3 xmlns:meta="http://www.tomtom.com/service/tis/chargingstation/metadata/1.0"
4 xmlns:p="http://www.tomtom.com/service/tis/primitives/1.0"
5 xmlns:lb="http://www.tomtom.com/service/tis/locBbox"
6 xmlns:lp="http://www.tomtom.com/service/tis/location/point/1.0"
7 xmlns:la="http://www.tomtom.com/service/tis/location/address/1.0"
8 xmlns:lh="http://www.tomtom.com/service/tis/location/hash/1.0"
9 xmlns:oh="http://www.tomtom.com/service/tis/openinghours/1.0"
10 schemaVersion="1.0">
11
12 <meta:metaData>
13 <meta:creatorVersion>0.01-9.1.RC2@0</meta:creatorVersion>
14 <meta:creatorUUID>1232abdf-6ef7-4310-81b5-e7e4be3786f0</meta:creatorUUID>
15 <meta:creationTimeUTC>2016-01-13T09:06:46Z</meta:creationTimeUTC>
16 <meta:description>Example showing static charging station information</meta:description>
17 </meta:metaData>
18
19 <chargingPark>
20 <uuid>9876dcba-5f0e-2314-435a-aa34cd12f9fe</uuid>
21
22 <properties>
23 <name>Baker Motor</name>
24 <accessibilityType>public</accessibilityType>
25 <countryCode>DE</countryCode>
26 <contact>
27 <email>aEmail@address.com</email>
28 <web>http://tomtom.com</web>
29 <phone>+49 228 123231</phone>
30 <fax>+49 228 123232</fax>
31 </contact>
32 <operator>
33 <name>operator's name</name>
34 <contact>
35 <email>operatorEmail@address.com</email>
36 <web>http://tomtom.com/operator</web>
37 <phone>+49 228 223231</phone>
38 <fax>+49 228 223232</fax>
39 </contact>
40 <address>
41 <la:street>An den Treptowers 1</la:street>
42 <la:city>Berlin</la:city>
43 <la:postalCode>5455</la:postalCode>
44 <la:country>DE</la:country>
45 </address>
46 </operator>
47 <oh:openingHours>
48 <oh:openingPeriod>
49 <oh:day>
50 <oh:from>Mo</oh:from>
51 <oh:to>Fr</oh:to>
52 </oh:day>
53 <oh:time>
54 <oh:opens>00:00</oh:opens>
55 </oh:time>
56 </oh:openingPeriod>
57 <oh:openingPeriod>
58 <oh:day>
59 <oh:from>Sa</oh:from>
60 <oh:to>So</oh:to>
61 </oh:day>
62 <oh:time>
63 <oh:opens>06:30</oh:opens>
64 <oh:closes>10:00</oh:closes>
65 </oh:time>
66 </oh:openingPeriod>
67 </oh:openingHours>
68 </properties>
69
70 <locations>
71 <lb:boundingBox>
72 <lb:lowerLeft>
73 <p:latitude>50.73689</p:latitude>
74 <p:longitude>7.10662</p:longitude>
75 </lb:lowerLeft>
76 <lb:upperRight>
77 <p:latitude>50.73698</p:latitude>
78 <p:longitude>7.10674</p:longitude>
79 </lb:upperRight>
80 </lb:boundingBox>
81 <lp:pointLocation>
82 <p:latitude>50.73689</p:latitude>
83 <p:longitude>7.10674</p:longitude>
84 </lp:pointLocation>
85 <lh:locationHash>7230324</lh:locationHash>
86 </locations>
87
88 <chargingStations>
89 <chargingStation>
90 <uuid>1232abdf-6ef7-4310-81b5-e7e4be3786f0</uuid>
91 <externalId>anExternalId-A</externalId>
92 <name>First station</name>
93 <payment>
94 <method>Subscription</method>
95 </payment>
96 <locations>
97 <lb:boundingBox>
98 <lb:lowerLeft>
99 <p:latitude>50.73689</p:latitude>
100 <p:longitude>7.10662</p:longitude>
101 </lb:lowerLeft>
102 <lb:upperRight>
103 <p:latitude>50.73698</p:latitude>
104 <p:longitude>7.10674</p:longitude>
105 </lb:upperRight>
106 </lb:boundingBox>
107 <lp:pointLocation>
108 <p:latitude>50.73689</p:latitude>
109 <p:longitude>7.10674</p:longitude>
110 </lp:pointLocation>
111 <lh:locationHash>6138943</lh:locationHash>
112 </locations>
113 <chargingPoints>
114 <chargingPoint>
115 <uuid>5e332e95-b0bc-3f35-0000-00090af7026d</uuid>
116 <externalId>anExternalId-A_1a</externalId>
117 <name>First point</name>
118 <plugType>DC Charging >50kW</plugType>
119 <locations>
120 <lp:pointLocation>
121 <p:latitude>50.73689</p:latitude>
122 <p:longitude>7.10676</p:longitude>
123 </lp:pointLocation>
124 </locations>
125 </chargingPoint>
126 <chargingPoint>
127 <uuid>7260f725-04ea-38a4-0000-00090af7026d</uuid>
128 <externalId>anExternalId-A_1b</externalId>
129 <name>Second point</name>
130 <plugType>380 - 480V, 3-Phase ≤63A</plugType>
131 </chargingPoint>
132 <chargingPoint>
133 <uuid>2823a471-1d57-311f-0000-00090af7026d</uuid>
134 <externalId>anExternalId-A_2a</externalId>
135 <name>Third point</name>
136 <plugType>Tesla</plugType>
137 <locations>
138 <lp:pointLocation>
139 <p:latitude>50.73689</p:latitude>
140 <p:longitude>7.10678</p:longitude>
141 </lp:pointLocation>
142 </locations>
143 </chargingPoint>
144 </chargingPoints>
145 </chargingStation>
146 <!-- Can contain more -->
147 </chargingStations>
148 </chargingPark>
149</chargingParks>

Usage and Freshness

By nature of this static feed, there is infrequent changes in the provided content. It is reasonable to expect update requests of approximately once per day. Using the support for If-None-Match or If-Modified-Since header fields, update request frequencies higher than once per day could be used to minimize the delay between updated information being available on the server and being received by the client.

Dynamic Feed

Example Response

The Dynamic Feed provides information for all known charging points in the requested country, referenced by UUID. The order of the stations is not specified.

1<?xml version="1.0" encoding="UTF-8"?>
2<chargingParksDynamic xmlns="http://www.tomtom.com/service/tis/chargingstation/dynamic/1.0"
3 xmlns:meta="http://www.tomtom.com/service/tis/chargingstation/metadata/1.0"
4 schemaVersion="1.0">
5
6 <meta:metaData>
7 <meta:creatorVersion>0.01-9.1.RC2@0</meta:creatorVersion>
8 <meta:creatorUUID>1232abdf-6ef7-4310-81b5-e7e4be3786f0</meta:creatorUUID>
9 <meta:creationTimeUTC>2016-01-13T09:06:46Z</meta:creationTimeUTC>
10 <meta:description>Example showing dynamic charging station information</meta:description>
11 </meta:metaData>
12
13 <chargingStationUpdate>
14 <referenceUuid>798c93fc-ba74-102b-b5ef-00304891a58c</referenceUuid>
15 <chargingPointUpdates>
16 <chargingPointUpdate>
17 <referenceUuid>7260f725-04ea-38a4-0000-00090af7026d</referenceUuid>
18 <status>available</status>
19 </chargingPointUpdate>
20 <chargingPointUpdate>
21 <referenceUuid>2823a471-1d57-311f-0000-00090af7026d</referenceUuid>
22 <status>occupied</status>
23 </chargingPointUpdate>
24 </chargingPointUpdates>
25 <!-- Can contain more -->
26 </chargingStationUpdate>
27
28</chargingParksDynamic>

Usage and Freshness

Updates are provided regularly; typically at a rate of once per minute. Using the support for If-None-Match or If-Modified-Since header fields, any update request frequencies higher than once-per-minute can be used to minimize the delay between updated information being available in the server and being received by the client.