Eco-Movement Data API User Guide and Reference (DATEX)

Introduction

Eco-Movement Data API is an outbound API based on the market standard OCPI protocol, which makes it easy for partners and clients to connect with Eco-Movement. It is also available in the DATEX II format. This API is organized around the RESTful architecture for web services and returns XML-encoded responses.

📘

Note

For more in-depth documentation, please refer to the original DATEX II documentation.

Authorization

Each HTTP request must contain an ‘Authorization’ header. The following is a sample header:

Authorization: Token IpbJOXxkxOAuKR92z0nEcmVF3Qw09VG7I7d/WCg0koM=

The ‘Token’ literal indicates that the token based authentication mechanism was used. The parameter is a string of printable non-whitespace ASCII characters characters generated by Eco-Movement. The token uniquely identifies a user.

Pagination

The Eco-Movement Data API endpoints can return more than 100,000 locations. Hence, pagination is supported. Use the following two parameters to control the size of the response.

ParameterDescription
limitLimits the number of objects that are returned. This parameter is optional and the minimum value is 1.
offsetIndicates the number of items to skip. This parameter is optional and the default value is 0 (that is, the first page of the results is only returned).

For example, the maximum amount of locations that can be returned in the result is 1000. In the result's header, a link to the following 1000 locations is given. The following is an example of a link in the result's header:

<https://api.eco-movement.com/api/datexii/locations?offset=1000&limit=2000>; rel=”next”

Available Endpoint (Location)

Use the locations endpoint to retrieve a list of all locations or a specific location (using the location's id).

📘

Note

The location information is retrieved in bulk. Eco-Movement recommends that you retrieve the entire dataset once a day.

Request

The following is an example request to retrieve all locations:

https://api.eco-movement.com/api/datexii/locations

Response

The XML-based response consists of several XML namespaces, elements, and attributes.

com:publicationCreator

Description: Contains the ISO 3166-1 alpha-2 code for the country where Eco-Movement is established and the national identifier for Eco-Movement.

Child Elements:

ElementData TypeDescription
countryxs:stringThe ISO 3166-1 alpha-2 code for the country where Eco-Movement is established
nationalIdentifierxs:stringThe national identifier for Eco-Movement.

Snippet:

<com:publicationCreator>
      <com:country>NL</com:country>
      <com:nationalIdentifier>Eco-Movement</com:nationalIdentifier>
</com:publicationCreator>

egi:energyInfrastructureTable

Description: Contains the energyInfrastructureSite child element, which has the details of the charging station location.

Child Elements:

ElementData TypeDescription
egi:energyInfrastructureSiteN/AContains the details of the charging station location. The id attribute contains the unique id for a location. The unique id is created by Eco-Movement, and it is stable. This attribute may change when two or more locations are merged, which results in one location only.

For this element's child elements, see egi:energyInfrastructureSite.

Snippet

<egi:energyInfrastructureTable id="1" version="1">
      <egi:energyInfrastructureSite id="99c78ffc-6fc2-11ed-91ba-0242ac120004" version="1">
         ...
      </egi:energyInfrastructureSite>
</egi:energyInfrastructureTable>

egi:energyInfrastructureSite

Description: Contains the details of the charging station location. The id attribute contains the unique id for a location. The unique id is created by Eco-Movement, and it is stable. This attribute may change when two or more locations are merged, which results in one location only.

Parent Element: egi:energyInfrastructureTable

Child Elements:

ElementData TypeDescription
fac:nameN/AContains the name of the charging station location.

For this element's child elements, see fac:name.
fac:operatingHoursN/AContains the operating hours details for the charging station.

For this element's child elements, see fac:operatingHours.
fac:locationReferenceN/AContains coordinates, address details, and time zone of the charging station location.

For this element's child elements, see fac:locationReference.
fac:operatorN/AContains the operator details for the location.

For this element's child elements, see fac:operator.
egi:energyInfrastructureStationN/AContains the available payment methods, EVSE identifiers, and connector details for the location.

For this element's child elements, see egi:energyInfrastructureStation.

Snippet:

<egi:energyInfrastructureSite id="'99c78ffc-6fc2-11ed-91ba-0242ac120004'" version="1">
  <fac:name>
      ...
  </fac:name>
  <fac:operatingHours xsi:type="fac:OperatingHoursSpecification" id="1" version="1">
      ...
  </fac:operatingHours>
  <fac:locationReference xsi:type="loc:PointLocation">
      ...
  </fac:locationReference>
  <fac:operator xsi:type="fac:OrganisationSpecification" id="1" version="1">
      ...
  </fac:operator>
  <egi:energyInfrastructureStation id="1" version="1">
      ...
  </egi:energyInfrastructureStation>
</egi:energyInfrastructureSite>

fac:name

Description: If egi:energyInfrastructureTable is the parent element, then it contains the name of the charging station location. If fac:operator is the parent element, then it contains the name of the charging station location's operator.

Parent Element: egi:energyInfrastructureTable and fac:operator

Child Elements:

ElementData TypeDescription
com:valuesxs:stringThe name of the charging station location or its operator name inside a com:value child element.

Snippet:

<fac:name>
     <com:values>
         <com:value lang="en">Powerstop - Italia</com:value>
     </com:values>
</fac:name>

fac:operatingHours

Description: Contains the operating hours details for the charging station.

📘

Note

The fac:operatingHours element contains an xsi:type attribute that has one of the following options:

  • fac:OperatingHoursSpecification - The charging station location has certain opening and closing times.
  • fac:UnknownOperatingHours - The operation hours for this charging station location is unknown currently.
  • fac:OpenAllHours - The charging station location is open 24/7.

Parent Element: egi:energyInfrastructureSite

Child Elements:

ElementData TypeDescription
fac:overallPeriodN/AContains the details of days and times on which the charging station operates in a particular week.

For this element's child elements, see fac:overallPeriod.

Note: This child element is available only if the xsi:type is fac:OperatingHoursSpecification.

Snippet:

<fac:operatingHours xsi:type="fac:OperatingHoursSpecification" id="1" version="1">
     <fac:overallPeriod>
     ...
     </fac:overallPeriod>
</fac:operatingHours>

fac:overallPeriod

Description: Contains the details of days and times on which the charging station operates in a particular week.

📘

Note

fac:overallPeriod is available only if the xsi:type is fac:OperatingHoursSpecification.

Parent Element: fac:operatingHours

Child Elements:

ElementData TypeDescription
com:overallStartTimexs:dateTimeA particular day and time on which the data was recorded for the charging station.
com:validPeriodN/AContains a combination of starting and ending time periods and the days on which the charging station is open.

For this element's child elements, see fac:validPeriod.

Snippet:

<fac:overallPeriod>
     <com:overallStartTime>2022-12-01T07:55:26+00:00</com:overallStartTime>
     <com:validPeriod>
     ...
     </com:validPeriod>
</fac:overallPeriod>

com:validPeriod

Description: Contains a combination of starting and ending time periods and the days on which the charging station is open.

Parent Element: fac:overallPeriod

Child Elements:

ElementData TypeDescription
com:recurringTimePeriodOfDayN/AContains a combination of starting and ending time periods during which the charging station is open.

For this element's child elements, see com:recurringTimePeriodOfDay.
com:recurringDayWeekMonthPeriodN/AContains the day for which the time period is applicable.

For this element's child elements, see com:recurringDayWeekMonthPeriod.

Snippet:

<com:validPeriod>
     <com:recurringTimePeriodOfDay>
     ...
     </com:recurringTimePeriodOfDay>
     <com:recurringDayWeekMonthPeriod>
     ...
     </com:recurringDayWeekMonthPeriod>
</com:validPeriod>

com:recurringTimePeriodOfDay

Description: Contains a combination of starting and ending time periods during which the charging station is open.

Parent Element: fac:validPeriod

Child Elements:

ElementData TypeDescription
com:startTimeOfPeriodxs:timeThe starting time of a particular time period.
com:endTimeOfPeriodxs:timeThe ending time of a particular time period.

Snippet:

<com:recurringTimePeriodOfDay>
      <com:startTimeOfPeriod>07:30:00</com:startTimeOfPeriod>
      <com:endTimeOfPeriod>11:30:00</com:endTimeOfPeriod>
</com:recurringTimePeriodOfDay>

com:recurringDayWeekMonthPeriod

Description: Contains the day for which the time period is applicable.

Parent Element: fac:validPeriod

Child Elements:

ElementData TypeDescription
com:applicableDayxs:stringThe day for which the time period is applicable.

Snippet:

<com:recurringDayWeekMonthPeriod>
     <com:applicableDay>monday</com:applicableDay>
</com:recurringDayWeekMonthPeriod>

fac:locationReference

Description: Contains the coordinates, address details, and time zone of the charging station location.

Parent Element: egi:energyInfrastructureTable

Child Elements:

ElementData TypeDescription
loc:pointByCoordinatesN/AContains the coordinates of the charging station location.

For this element's child element, see loc:pointByCoordinates.
loc:_pointLocationExtensionN/AContains the address details and time zone of the charging station location.

For this element's child element, see loc:_pointLocationExtension.

Snippet:

<loc:pointByCoordinates>
     <loc:pointCoordinates>
     ...
     </loc:pointCoordinates>
</loc:pointByCoordinates>

loc:pointByCoordinates

Description: Contains the coordinates of the charging station location.

Parent Element: fac:locationReference

Child Elements:

ElementData TypeDescription
loc:pointCoordinatesN/AContains the coordinates of the charging station location.

For this element's child element, see loc:pointCoordinates.

Snippet:

<loc:pointByCoordinates>
    <loc:pointCoordinates>
    ...
    </loc:pointCoordinates>
</loc:pointByCoordinates>

loc:pointCoordinates

Description: Contains the coordinates of the charging station location.

Parent Element: loc:pointByCoordinates.

Child Elements:

ElementData TypeDescription
loc:latitudexs:stringThe latitude of the charging station location.
loc:longitudexs:stringThe longitude of the charging station location.

Snippet:

<loc:pointCoordinates>
     <loc:latitude>44.42592000</loc:latitude>
     <loc:longitude>7.55668000</loc:longitude>
</loc:pointCoordinates>

loc:_pointLocationExtension

Description: Contains the address details and time zone of the charging station location.

Parent Element: fac:locationReference

Child Elements:

ElementData TypeDescription
locx:facilityLocationN/AContains the address details and time zone of the charging station location.

For this element's child element, see locx:facilityLocation.

Snippet:

<loc:_pointLocationExtension>
     <locx:facilityLocation>
     ...
     </locx:facilityLocation>
</loc:_pointLocationExtension>

locx:facilityLocation

Description: Contains the address details and time zone of the charging station location.

Parent Element: fac:locationReference

Child Elements:

ElementData TypeDescription
locx:addressN/AContains the address details of the charging station location.

For this element's child element, see locx:address.
locx:timeZonexs:stringThe time zone of the location. It is one of www.iana.org tzdata's TZ-values representing the time zone of the location.

Snippet:

<locx:facilityLocation>
      <locx:address>
      ...
      </locx:address>
      <locx:timeZone>Europe/Amsterdam</locx:timeZone>
</locx:facilityLocation>

locx:address

Description: Contains the address details of the charging station location.

Parent Element: locx:facilityLocation

Child Elements:

ElementData TypeDescription
locx:postcodexs:stringThe postal code where the charge point is located. It conforms to the country standard.
locx:cityxs:stringThe name of the city where the charge point is located.
locx:countryCodexs:stringThe ISO 3166-1 alpha-2 code for the country of this location.
locx:addressLinexs:stringThe type of location and the address where the charge point is located.

Snippet:

<locx:address>
      <locx:postcode>12100</locx:postcode>
      <locx:city>Cuneo</locx:city>
      <locx:countryCode>IT</locx:countryCode>
      <locx:addressLine order="0">
            <locx:type>street</locx:type>
            <locx:text>Via Torino 234</locx:text>
      </locx:addressLine>
</locx:address>

fac:operator

Description: Contains the coordinates, address details, and time zone of the charging station location.

Parent Element: egi:energyInfrastructureTable

Child Elements:

ElementData TypeDescription
fac:nameN/AContains the name of the operator.

For this element's child elements, see fac:name.
fac:organisationUnitN/AContains the contact information for the operator.

For this element's child elements, see fac:organisationUnit.

Snippet:

<fac:operator xsi:type="fac:OrganisationSpecification" id="1" version="1">
    <fac:name>
    ...
    </fac:name>
    <fac:organisationUnit>
    ...
    </fac:organisationUnit>
</fac:operator>

fac:organisationUnit

Description: Contains the contact information for the operator.

Parent Element: fac:operator

Child Elements:

ElementData TypeDescription
fac:contactInformationN/AContains the contact information for the operator.

For this element's child elements, see fac:contactInformation.

Snippet:

<fac:organisationUnit>
     <fac:contactInformation>
     ...
     </fac:contactInformation>
</fac:organisationUnit>

fac:contactInformation

Description: Contains the contact information for the operator.

Parent Element: fac:organisationUnit

Child Elements:

ElementData TypeDescription
fac:telephoneNumberxs:stringContains the telephone number for the operator.

Snippet:

<fac:contactInformation>
     <fac:telephoneNumber>+(49)-(221)-82829657</fac:telephoneNumber>
</fac:contactInformation>

egi:energyInfrastructureStation

Description: Contains the available payment methods, EVSE identifiers, and connector details for the location.

Parent Element: egi:energyInfrastructureTable

Child Elements:

ElementData TypeDescription
egi:authenticationAndIdentificationMethodsxs:stringThe available payment methods for the location.
egi:refillPointN/AContains the EVSE identifiers and connector details for the location.

For this element's child elements, see egi:refillPoint.

Snippet:

<egi:energyInfrastructureStation id="1" version="1">
    <egi:authenticationAndIdentificationMethods>apps</egi:authenticationAndIdentificationMethods>
    <egi:refillPoint xsi:type="egi:ElectricChargingPoint" id="IT-GFX-EVCIT-0000330-1" version="1">
    ...
    </egi:refillPoint>
</egi:energyInfrastructureStation>

egi:refillPoint

Description: Contains the EVSE identifiers and connector details for the location.

Parent Element: egi:energyInfrastructureStation

Child Elements:

ElementData TypeDescription
fac:externalIdentifierxs:stringThe unique id for the outside world. It is compliant with "eMI3standard version V1.0".
egi:connectorN/AContains the connector details for the location.

For this element's child elements, see egi:connector.

Snippet:

<egi:refillPoint xsi:type="egi:ElectricChargingPoint" id="IT-GFX-EVCIT-0000330-1" version="1">
     <fac:externalIdentifier>IT*GFX*EVCIT*0000330*1</fac:externalIdentifier>
     <egi:connector>
     ...
     </egi:connector>
 </egi:refillPoint>

egi:connector

Description: Contains the connector details for the location.

Parent Element: egi:refillPoint

Child Elements:

ElementData TypeDescription
egi:connectorTypexs:stringThe socket or plug standard of the charging point.
egi:chargingModexs:stringThe power type of the connector.
egi:maxPowerAtSocketxs:stringThe maximum power is calculated by Eco-Movement based on the voltage and amperage.

Snippet:

<egi:connector>
     <egi:connectorType>iec62196T2</egi:connectorType>
     <egi:chargingMode>mode3AC3p</egi:chargingMode>
     <egi:maxPowerAtSocket>22080</egi:maxPowerAtSocket>
 </egi:connector>