Skip to content

Latest commit

 

History

History
1229 lines (891 loc) · 59.5 KB

mod_locations.asciidoc

File metadata and controls

1229 lines (891 loc) · 59.5 KB

1. Locations module

Module Identifier: locations

Data owner: CPO

Type: Functional Module

The Location objects live in the CPO back-end system. They describe the charging locations of an operator.

Module dependency: the Receiver endpoint is dependent on the Tariffs module

1.1. Flow and Lifecycle

The Locations module has the Location as base object. Each Location can have multiple EVSEs (1:n) and each EVSE can have multiple Connectors (1:n). With the methods in the Receiver interface, Location data and status information can be shared with for example an eMSP and NSP. Updates can be made to a whole Location, but also only to an EVSE or a single Connector.

When a CPO creates Location objects, it pushes them to connected eMSP by calling PUT on the Receivers Locations endpoint. eMSPs who do not support Push mode need to call GET on the CPOs Locations endpoint to receive the new object. This should be done regularly to stay up to date with the CPOs data, but not too often in order to keep the load low.

If the CPO wants to replace a Location related object, they again push it to the eMSP systems by calling PUT on their Locations endpoint.

Any changes to a Location related object can also be pushed to connected eMSPs by calling the PATCH method on the eMSPs Locations endpoint, but using PATCH mode, only actual changes should be pushed. Providers who do not support Push mode need to call GET on the CPOs Locations endpoint to receive the updates.

When the CPO wants to delete an EVSE from the list of active EVSEs, they MUST update the EVSE’s status field to REMOVED and call the PUT or PATCH on the eMSP system. A Location without any valid EVSE object can be considered expired and should no longer be displayed. There is no way to entirely delete Locations, EVSEs and Connectors as there are other modules like sessions that depend on them. If it was possible to remove these objects, those links would no longer work.

When the CPO is not sure about the state or existence of a Location, EVSE or Connector object in the eMSP’s system, the CPO can perform a GET request to validate the object in the eMSP’s system.

Private charging Locations, that are not to be used for public charging, SHALL NOT be published via OCPI.

1.1.1. No public charging or roaming

When a Location is not available for either Public Charging or Roaming, it is RECOMMENDED to NOT send that Location via OCPI to receiving parties.

1.1.2. Group of Charge Points

OCPP 2.0 supports a 3-tier model:

  • Highest level is a Charge Point

  • A Charge Point can have one or more EVSEs.

  • Every EVSE can have one or more Connectors.

OCPI does not have this model:

  • OCPI has Location at the highest level.

  • Each location can have multiple EVSE

  • Every EVSE can have one or more Connectors.

When mapping OCPP Charge Points to OCPI, there are 2 options:

  • One Location for a group of Charge Points at the same location. (preferred)

  • One Location per Charge Point at the same location.

OCPI prefers the first method. An EV driver does not care if a Location consists of one Charge Point with a very large amount of EVSEs, or a large amount of Charge Points with only one EVSE. The EV driver wants to know how many EVSEs are available. Grouping Charge Points in the same location into one OCPI Location will show better on a map that shows Charging Locations.

Note
The definition, an EVSE can only charge one EV at a time.

1.1.3. OCPP 1.x Charge Points with multiple connectors per EVSE

OCPP 1.x was not designed to support the 3-tier model. It had no notion of EVSEs. The Open Charge Alliance has written an Application Note: "Multiple Connectors per EVSE in a OCPP 1.x implementation"

The workaround:

  • Define one 'virtual' EVSE per Connector.

  • When a connector of an hardware EVSE becomes unavailable, set all 'virtual' EVSEs for all the connectors of the hardware EVSE to unavailable. etc.

1.2. Interfaces and endpoints

There are both, a Sender and a Receiver interface for Locations. It is advised to use the Push direction from Sender to Receiver during normal operation in order to keep the latency of updates low. The Sender interface is meant to be used when the connection between two parties is established for the first time, to retrieve the current list of Location objects with the current status, and when the Receiver is not 100% sure the Location cache is entirely up-to-date (i.e. to perform a full sync). The Receiver can also use the Sender GET Object interface to retrieve a specific Location, EVSE or Connector. This feature might be used by an Receiver that wants information about a specific Location, but has not implemented the Receiver Locations interface (i.e. cannot receive Push).

1.2.1. Sender Interface

Typically implemented by market roles like: CPO.

Method Description

GET

Fetch a list of Locations, last updated between the {date_from} and {date_to} (paginated), or get a specific Location, EVSE or Connector.

POST

n/a

PUT

n/a

PATCH

n/a

DELETE

n/a

GET Method

Depending on the URL Segments provided, the GET request can either be used to retrieve information about a list of available Locations (with EVSEs and Connectors) at a CPO (GET List) or it can be used to retrieve information about one specific Location, EVSE or Connector (GET Object).

GET List: Request Parameters

Endpoint structure definition:

{locations_endpoint_url}?[date_from={date_from}]&[date_to={date_to}]&[offset={offset}]&[limit={limit}]

Examples:

https://www.server.com/ocpi/cpo/2.2/locations/?date_from=2019-01-28T12:00:00&date_to=2019-01-29T12:00:00

https://ocpi.server.com/2.2/locations/?offset=50

https://www.server.com/ocpi/2.2/locations/?date_from=2019-01-29T12:00:00&limit=100

https://www.server.com/ocpi/cpo/2.2/locations/?offset=50&limit=100

If the optional parameters {date_from} and/or {date_to} are provided, only Locations with (last_updated) between the given {date_from} (including) and {date_to} (excluding) will be returned. In order for this to work properly, the following logic MUST be implemented accordingly: If an EVSE is updated, also the 'parent' Location’s last_updated field needs to be updated. Similarly, if a Connector is updated, the EVSE’s last_updated and the Location’s last_updated fields need to be updated.

This request is paginated, it supports the pagination related URL parameters.

Parameter Datatype Required Description

date_from

DateTime

no

Only return Locations that have last_updated after or equal to this Date/Time (inclusive).

date_to

DateTime

no

Only return Locations that have last_updated up to this Date/Time, but not including (exclusive).

offset

int

no

The offset of the first object returned. Default is 0.

limit

int

no

Maximum number of objects to GET.

GET List: Response Data

This endpoint returns a list of Location objects. The header will contain the pagination related headers.

Each object must contain all required fields. Fields that are not specified may be considered as null values. Any old information that is not specified in the response is considered no longer valid. For requests that use pagination, the response data provided by all the pages together is the new truth. Any old information not contained in any of the pages needs to be considered no longer valid.

Type Card. Description

Location

*

List of all Locations with valid EVSEs.

GET Object: Request Parameters

Endpoint structure definition for retrieving a Location, EVSE or Connector:

{locations_endpoint_url}/{location_id}[/{evse_uid}][/{connector_id}]

Examples:

https://www.server.com/ocpi/cpo/2.2/locations/LOC1

https://www.server.com/ocpi/cpo/2.2/locations/LOC1/3256

https://www.server.com/ocpi/cpo/2.2/locations/LOC1/3256/1

The following parameters can be provided as URL segments in the same order.

Parameter Datatype Required Description

location_id

CiString(36)

yes

Location.id of the Location object to retrieve.

evse_uid

CiString(36)

no

Evse.uid, required when requesting an EVSE or Connector object.

connector_id

CiString(36)

no

Connector.id, required when requesting a Connector object.

GET Object: Response Data

The response contains the requested object.

Type Card. Description

Choice: one of three

> Location

1

If a Location object was requested: the Location object.

> EVSE

1

If an EVSE object was requested: the EVSE object.

> Connector

1

If a Connector object was requested: the Connector object.

1.2.2. Receiver Interface

Typically implemented by market roles like: eMSP and NSP.

Locations are Client Owned Objects, so the end-points need to contain the required extra fields: {party_id} and {country_code}.

Endpoint structure definition:

{locations_endpoint_url}/{country_code}/{party_id}/{location_id}[/{evse_uid}][/{connector_id}]

Examples:

https://www.server.com/ocpi/emsp/2.2/locations/BE/BEC/LOC1

https://server.com/ocpi/2.2/locations/BE/BEC/LOC1/3256

https://ocpi.server.com/2.2/locations/BE/BEC/LOC1/3256/1

Method Description

GET

Retrieve a Location as it is stored in the eMSP system.

POST

n/a (use PUT)

PUT

Push new/updated Location, EVSE and/or Connector to the eMSP.

PATCH

Notify the eMSP of partial updates to a Location, EVSE or Connector (such as the status).

DELETE

n/a (use PATCH to update the status to REMOVED as described in Flow and Lifecycle)

GET Method

If the CPO wants to check the status of a Location, EVSE or Connector object in the eMSP system, it might GET the object from the eMSP system for validation purposes. The CPO is the owner of the objects, so it would be illogical if the eMSP system had a different status or was missing an object. If a discrepancy is found, the CPO might push an update to the eMSP via a PUT or PATCH call.

Request Parameters

The following parameters can be provided as URL segments.

Parameter Datatype Required Description

country_code

CiString(2)

yes

Country code of the CPO requesting data from the eMSP system.

party_id

CiString(3)

yes

Party ID (Provider ID) of the CPO requesting data from the eMSP system.

location_id

CiString(36)

yes

Location.id of the Location object to retrieve.

evse_uid

CiString(36)

no

Evse.uid, required when requesting an EVSE or Connector object.

connector_id

CiString(36)

no

Connector.id, required when requesting a Connector object.

Response Data

The response contains the requested object.

Type Card. Description

Choice: one of three

> Location

1

If a Location object was requested: the Location object.

> EVSE

1

If an EVSE object was requested: the EVSE object.

> Connector

1

If a Connector object was requested: the Connector object.

PUT Method

The CPO pushes available Location, EVSE or Connector objects to the eMSP. PUT can be used to send new Location objects to the eMSP but also to replace existing Locations.

When the PUT only contains a Connector Object, the Receiver SHALL also set the new last_updated value on the parent EVSE and Location Objects.

When the PUT only contains a EVSE Object, the Receiver SHALL also set the new last_updated value on the parent Location Object.

Request Parameters

This is an information Push message, the objects pushed will not be owned by the eMSP. To make distinctions between objects being pushed to an eMSP from different CPOs, the {party_id} and {country_code} have to be included in the URL (as URL segments, as described in the Receiver Interface).

Parameter Datatype Required Description

country_code

CiString(2)

yes

Country code of the CPO requesting this PUT to the eMSP system. This SHALL be the same value as the country_code in the Location object being pushed.

party_id

CiString(3)

yes

Party ID (Provider ID) of the CPO requesting this PUT to the eMSP system. This SHALL be the same value as the party_id in the Location object being pushed.

location_id

CiString(36)

yes

Location.id of the new Location object, or the Location of which an EVSE or Connector object is pushed.

evse_uid

CiString(36)

no

Evse.uid, required when an EVSE or Connector object is pushed.

connector_id

CiString(36)

no

Connector.id, required when a Connector object is pushed.

Request Body

The request body contains the new/updated object.

When the PUT contains a Connector Object, the Receiver SHALL also set the new last_updated value on the parent EVSE and Location Objects.

When the PUT contains a EVSE Object, the Receiver SHALL also set the new last_updated value on the parent Location Object.

Type Card. Description

Choice: one of three

> Location

1

New Location object, or Location object to replace.

> EVSE

1

New EVSE object, or EVSE object to replace.

> Connector

1

New Connector object, or Connector object to replace.

Example: add an EVSE

To add an EVSE, simply put the full object in an update message, including all its required fields. Since the id will be new to the eMSP’s system, the receiving party will know that it is a new object. When not all required fields are specified, the object may be discarded.

PUT To URL: https://www.server.com/ocpi/emsp/2.2/locations/NL/TNM/1012/3256

link:examples/location_put_example_add_evse.json[role=include]
PATCH Method

Same as the PUT method, but only the fields/objects that have to be updated have to be present. Other fields/objects that are not specified as part of the request are considered unchanged. Therefore, this method is not suitable to remove information shared earlier.

Any request to the PATCH method SHALL contain the last_updated field.

When the PATCH is on a Connector Object, the Receiver SHALL also set the new last_updated value on the parent EVSE and Location Objects.

When the PATCH is on a EVSE Object, the Receiver SHALL also set the new last_updated value on the parent Location Object.

Example: a simple status update

This is the most common type of update message. It is used to notify eMSPs that the status of an EVSE changed. In this case it is the EVSE with uid 3255 of the Location with id 1012.

PATCH To URL: https://www.server.com/ocpi/emsp/2.2/locations/NL/TNM/1012/3255

link:examples/location_patch_example_status.json[role=include]
Example: change the location name

In this example the name of the Location with id 1012 is being updated.

PATCH To URL: https://www.server.com/ocpi/emsp/2.2/locations/NL/TNM/1012


link:examples/location_patch_example_location.json[role=include]
Example: set tariff update

In this example Connector 2 of EVSE 1 of Location 1012 receives a new pricing scheme.

PATCH To URL: https://www.server.com/ocpi/emsp/2.2/locations/NL/TNM/1012/3255/2

link:examples/location_patch_example_tariff.json[role=include]
Example: delete an EVSE

An EVSE can be deleted by updating its status property.

PATCH To URL: https://www.server.com/ocpi/emsp/2.2/locations/NL/TNM/1012/3256

link:examples/location_patch_example_remove_evse.json[role=include]
Note
To inform eMSPs that an EVSE is scheduled for removal, the status_schedule field can be used._

1.3. Object description

Location, EVSE and Connector have the following relation.

Location class diagram
Figure 1. Location class diagram

1.3.1. Location Object

The Location object describes the location and its properties where a group of EVSEs that belong together are installed. Typically, the Location object is the exact location of the group of EVSEs, but it can also be the entrance of a parking garage which contains these EVSEs. The exact way to reach each EVSE can be further specified by its own properties.

Locations may be shown in apps or on websites etc. when the flag: publish is set to true. Locations that have this flag set to false SHALL not be shown in an app or on a website etc. unless it is to the owner of a Token in the publish_allowed_to list. Even parties like NSP or eMSP that do not 'own' this Token MAY show this location on an app or website, but only to the owner of that Token. If the user of their app/website has provided information about his/her Token, And that information matches all the fields of one of the PublishToken tokens in the list, then they are allowed to show this location to their user. It is not allowed in OCPI to use a Token that is not 'owned' by the eMSP itself to start a charging session.

Property Type Card. Description

country_code

CiString(2)

1

ISO-3166 alpha-2 country code of the CPO that 'owns' this Location.

party_id

CiString(3)

1

ID of the CPO that 'owns' this Location (following the ISO-15118 standard).

id

CiString(36)

1

Uniquely identifies the location within the CPOs platform (and suboperator platforms). This field can never be changed, modified or renamed.

publish

boolean

1

Defines if a Location may be published on an website or app etc.
When this is set to false, only tokens identified in the field: publish_allowed_to are allowed to be shown this Location.
When the same location has EVSEs that may be published and may not be published, two 'Locations' should be created.

publish_allowed_to

PublishTokenType

*

This field may only be used when the publish field is set to false.
Only owners of Tokens that match all the set fields of one PublishToken in the list are allowed to be shown this location.

name

string(255)

?

Display name of the location.

address

string(45)

1

Street/block name and house number if available.

city

string(45)

1

City or town.

postal_code

string(10)

?

Postal code of the location, may only be omitted when the location has no postal code: in some countries charging locations at highways don’t have postal codes.

state

string(20)

?

State or province of the location, only to be used when relevant.

country

string(3)

1

ISO 3166-1 alpha-3 code for the country of this location.

coordinates

GeoLocation

1

Coordinates of the location.

related_locations

AdditionalGeoLocation

*

Geographical location of related points relevant to the user.

parking_type

ParkingType

?

The general type of parking at the charge point location.

evses

EVSE

*

List of EVSEs that belong to this Location.

directions

DisplayText

*

Human-readable directions on how to reach the location.

operator

BusinessDetails

?

Information of the operator. When not specified, the information retrieved from the Credentials module, selected by the country_code and party_id of this Location, should be used instead.

suboperator

BusinessDetails

?

Information of the suboperator if available.

owner

BusinessDetails

?

Information of the owner if available.

facilities

Facility

*

Optional list of facilities this charging location directly belongs to.

time_zone

string(255)

1

One of IANA tzdata’s TZ-values representing the time zone of the location. Examples: "Europe/Oslo", "Europe/Zurich". (http://www.iana.org/time-zones)

opening_times

Hours

?

The times when the EVSEs at the location can be accessed for charging.

charging_when_closed

boolean

?

Indicates if the EVSEs are still charging outside the opening hours of the location. E.g. when the parking garage closes its barriers over night, is it allowed to charge till the next morning? Default: true

images

Image

*

Links to images related to the location such as photos or logos.

energy_mix

EnergyMix

?

Details on the energy supplied at this location.

last_updated

DateTime

1

Timestamp when this Location or one of its EVSEs or Connectors were last updated (or created).

Private Charge Points, home or business that do not need to be published on apps, and do not require remote control via OCPI, SHOULD not be PUT via the OCPI Locations module. Reimbursement via eMSP is still possible by sending CDRs to eMSP, the Locations module is not needed for this..

Example public charging location

This is an example of a public charging location. Can be used by any EV Driver as long as his eMSP has a roaming agreement with the CPO. Or the Charge Point has an ad-hoc payment possibility

  • publish = true

  • parking_type = ON_STREET but could also be another value.

  • EVSE.parking_restrictions not used.

link:examples/location_example.json[role=include]
Example destination charging location

This is an example of a destination charging location. This is a Location where only guests, employees or customers can charge. For an EV driver, it can be useful to know if he/she can charge at his destination.

For example at a restaurant, only customers of the restaurant can charge their EV. Or at an office building where employees and guest of the office can charge their EV.

Locations you can think of where this is useful: restaurants, bars, clubs, theme parks, stores, supermarkets, company building, office buildings, etc.

  • publish = true

  • parking_type = PARKING_LOT (but could also be PARKING_GARAGE, ON_DRIVEWAY or UNDERGROUND_GARAGE)

  • EVSE.parking_restrictions = CUSTOMERS

link:examples/location_example_uc2_destination_charger.json[role=include]
Example destination charging location not published, but paid guest usage possible

This is an example of a destination charging location. But the owner of the location has requested not to publish the location in Apps or on websites.

Charging is still possible: EV drivers of an eMSP with a roaming agreement can still charge their EV. The eMSP helpdesk can use the information from the Location module to help the driver, maybe even start a session for a driver. Starting a session from an App is not possible, because the driver will not be able to select the Charge Point on a map.

In case the EV driver is not billed for charging, there is, in such a case, no reason to publish the location via OCPI.

  • publish = false

  • publish_allowed_to not used

  • parking_type = not used`

  • EVSE.parking_restrictions = CUSTOMERS May still be useful so a support desk can also tell this to a customer.

link:examples/location_example_uc3_destination_charger_not_published.json[role=include]
Example charging location with limited visibility

This is an example of a charging location that only a limited group can see (and use) via an App or website.

Typical examples where this is useful:

  • Charge Points in the parking garage of an apartment building. Only owners can see/control the Charge Points.

  • Charge Points at an office, for employees only. Only employees can see/control the Charge Points.

  • Charge Points at vehicle depot. Any employee can see/control an charge point, even transaction they did not start. Use group_id for this.

The locations SHALL NOT be published to the general public. Only selected Tokens can see (and control) the Charge Points via eMSP app.

  • publish = false

  • publish_allowed_to contains list with information of Tokens that are allowed to be shown the Location.

  • parking_type = UNDERGROUND_GARAGE (but could also be PARKING_GARAGE, ON_DRIVEWAY or PARKING_LOT)

link:examples/location_example_uc4_limited_visibility.json[role=include]
Example private charge point with eMSP app control

This is an example of a private/home charge point that needs to be controlled via an eMSP App.

The locations SHALL NOT be published to the general public. Only the owner, identified by his/her Token can see (and control) the Charge Points via an eMSP app.

  • publish = false

  • publish_allowed_to contains the information of the Tokens of the owner.

  • parking_type = not used, not relevant, owner knows where his Charge Point is.

link:examples/location_example_uc5_home_charge_point.json[role=include]
Example charge point in a parking garage with opening hours

This is an example of a charge point, located in a parking garage with limited opening hours: 7:00 - 18:00.

If the EV is left in the parking garage overnight, the car will still be charged.

  • publish = true

  • parking_type = PARKING_GARAGE but could also be another value.

  • EVSE.parking_restrictions not used.

  • opening_times is used.

  • charging_when_closed = true

link:examples/location_example_parking_garage_opening_hours.json[role=include]

1.3.2. EVSE Object

The EVSE object describes the part that controls the power supply to a single EV in a single session. It always belongs to a Location object. The object only contains directions to get from the location itself to the EVSE (i.e. floor, physical_reference or directions).

When the directional properties of an EVSE are insufficient to reach the EVSE from the Location point, then it typically indicates that the EVSE should be put in a different Location object (sometimes with the same address but with different coordinates/directions).

An EVSE object has a list of Connectors which can not be used simultaneously: only one connector per EVSE can be used at the time.

Property Type Card. Description

uid

CiString(36)

1

Uniquely identifies the EVSE within the CPOs platform (and suboperator platforms). For example a database ID or the actual "EVSE ID". This field can never be changed, modified or renamed. This is the 'technical' identification of the EVSE, not to be used as 'human readable' identification, use the field evse_id for that.
This field is named uid instead of id, because id could be confused with evse_id which is an eMI3 defined field.

evse_id

CiString(48)

?

Compliant with the following specification for EVSE ID from "eMI3 standard version V1.0" (http://emi3group.com/documents-links/) "Part 2: business objects." Optional because: if an evse_id is to be re-used in the real world, the evse_id can be removed from an EVSE object if the status is set to REMOVED.

status

Status

1

Indicates the current status of the EVSE.

status_schedule

StatusSchedule

*

Indicates a planned status update of the EVSE.

capabilities

Capability

*

List of functionalities that the EVSE is capable of.

connectors

Connector

+

List of available connectors on the EVSE.

floor_level

string(4)

?

Level on which the Charge Point is located (in garage buildings) in the locally displayed numbering scheme.

coordinates

GeoLocation

?

Coordinates of the EVSE.

physical_reference

string(16)

?

A number/string printed on the outside of the EVSE for visual identification.

directions

DisplayText

*

Multi-language human-readable directions when more detailed information on how to reach the EVSE from the Location is required.

parking_restrictions

ParkingRestriction

*

The restrictions that apply to the parking spot.

images

Image

*

Links to images related to the EVSE such as photos or logos.

last_updated

DateTime

1

Timestamp when this EVSE or one of its Connectors was last updated (or created).

Note
OCPP 1.x does not have good support for Charge Points that have multiple connectors per EVSE. To make StartSession over OCPI work, the CPO SHOULD present the different connectors of an EVSE as separate EVSE, as is also written by the OCA in the application note: "Multiple Connectors per EVSE in a OCPP 1.x implementation".

1.3.3. Connector Object

A Connector is the socket or cable and plug available for the EV to use. A single EVSE may provide multiple Connectors but only one of them can be in use at the same time. A Connector always belongs to an EVSE object.

Property Type Card. Description

id

CiString(36)

1

Identifier of the Connector within the EVSE. Two Connectors may have the same id as long as they do not belong to the same EVSE object.

standard

ConnectorType

1

The standard of the installed connector.

format

ConnectorFormat

1

The format (socket/cable) of the installed connector.

power_type

PowerType

1

max_voltage

int

1

Maximum voltage of the connector (line to neutral for AC_3_PHASE), in volt [V]. For example: DC Chargers might vary the voltage during charging when battery almost full.

max_amperage

int

1

Maximum amperage of the connector, in ampere [A].

max_electric_power

int

?

Maximum electric power that can be delivered by this connector, in Watts (W). When the maximum electric power is lower than the calculated value from voltage and amperage, this value should be set.
For example: A DC Charge Point which can delivers up to 920V and up to 400A can be limited to a maximum of 150kW (max_electric_power = 150000). Depending on the car, it may supply max voltage or current, but not both at the same time.
For AC Charge Points, the amount of phases used can also have influence on the maximum power.

tariff_ids

CiString(36)

*

Identifiers of the currently valid charging tariffs. Multiple tariffs are possible, but only one of each Tariff.type can be active at the same time. Tariffs with the same type are only allowed if they are not active at the same time: start_date_time and end_date_time period not overlapping.
When preference-based smart charging is supported, one tariff for every possible ProfileType should be provided. These tell the user about the options they have at this Connector, and what the tariff is for every option.
For a "free of charge" tariff, this field should be set and point to a defined "free of charge" tariff.

terms_and_conditions

URL

?

URL to the operator’s terms and conditions.

last_updated

DateTime

1

Timestamp when this Connector was last updated (or created).

1.4. Data types

1.4.1. AdditionalGeoLocation class

This class defines an additional geo location that is relevant for the Charge Point. The geodetic system to be used is WGS 84.

Property Type Card. Description

latitude

string(10)

1

Latitude of the point in decimal degree. Example: 50.770774. Decimal separator: "." Regex: -?[0-9]{1,2}\.[0-9]{5,7}

longitude

string(11)

1

Longitude of the point in decimal degree. Example: -126.104965. Decimal separator: "." Regex: -?[0-9]{1,3}\.[0-9]{5,7}

name

DisplayText

?

Name of the point in local language or as written at the location. For example the street name of a parking lot entrance or it’s number.

1.4.2. BusinessDetails class

Property Type Card. Description

name

string(100)

1

Name of the operator.

website

URL

?

Link to the operator’s website.

logo

Image

?

Image link to the operator’s logo.

1.4.3. Capability enum

The capabilities of an EVSE.

Value Description

CHARGING_PROFILE_CAPABLE

The EVSE supports charging profiles.

CHARGING_PREFERENCES_CAPABLE

The EVSE supports charging preferences.

CHIP_CARD_SUPPORT

EVSE has a payment terminal that supports chip cards.

CONTACTLESS_CARD_SUPPORT

EVSE has a payment terminal that supports contactless cards.

CREDIT_CARD_PAYABLE

EVSE has a payment terminal that makes it possible to pay for charging using a credit card.

DEBIT_CARD_PAYABLE

EVSE has a payment terminal that makes it possible to pay for charging using a debit card.

PED_TERMINAL

EVSE has a payment terminal with a pin-code entry device.

REMOTE_START_STOP_CAPABLE

The EVSE can remotely be started/stopped.

RESERVABLE

The EVSE can be reserved.

RFID_READER

Charging at this EVSE can be authorized with an RFID token.

START_SESSION_CONNECTOR_REQUIRED

When a StartSession is sent to this EVSE, the MSP is required to add the optional connector_id field in the StartSession object.

TOKEN_GROUP_CAPABLE

This EVSE supports token groups, two or more tokens work as one, so that a session can be started with one token and stopped with another (handy when a card and key-fob are given to the EV-driver).

UNLOCK_CAPABLE

Connectors have mechanical lock that can be requested by the eMSP to be unlocked.

When a Charge Point supports ad-hoc payments with a payment terminal, please use a combination of the following values to explain the possibilities of the terminal: CHIP_CARD_SUPPORT, CONTACTLESS_CARD_SUPPORT, CREDIT_CARD_PAYABLE, DEBIT_CARD_PAYABLE, PED_TERMINAL.

There are Charge Points in the field that do not yet support OCPP 2.x. If these Charge Points have multiple connectors per EVSE, the CPO needs to know which connector to start when receiving a StartSession for the given EVSE. If this is the case, the CPO should set the START_SESSION_CONNECTOR_REQUIRED capability on the given EVSE.

1.4.4. ConnectorFormat enum

The format of the connector, whether it is a socket or a plug.

Value Description

SOCKET

The connector is a socket; the EV user needs to bring a fitting plug.

CABLE

The connector is an attached cable; the EV users car needs to have a fitting inlet.

1.4.5. ConnectorType enum

The socket or plug standard of the charging point.

Value Description

CHADEMO

The connector type is CHAdeMO, DC

CHAOJI

The ChaoJi connector. The new generation charging connector, harmonized between CHAdeMO and GB/T. DC.

DOMESTIC_A

Standard/Domestic household, type "A", NEMA 1-15, 2 pins

DOMESTIC_B

Standard/Domestic household, type "B", NEMA 5-15, 3 pins

DOMESTIC_C

Standard/Domestic household, type "C", CEE 7/17, 2 pins

DOMESTIC_D

Standard/Domestic household, type "D", 3 pin

DOMESTIC_E

Standard/Domestic household, type "E", CEE 7/5 3 pins

DOMESTIC_F

Standard/Domestic household, type "F", CEE 7/4, Schuko, 3 pins

DOMESTIC_G

Standard/Domestic household, type "G", BS 1363, Commonwealth, 3 pins

DOMESTIC_H

Standard/Domestic household, type "H", SI-32, 3 pins

DOMESTIC_I

Standard/Domestic household, type "I", AS 3112, 3 pins

DOMESTIC_J

Standard/Domestic household, type "J", SEV 1011, 3 pins

DOMESTIC_K

Standard/Domestic household, type "K", DS 60884-2-D1, 3 pins

DOMESTIC_L

Standard/Domestic household, type "L", CEI 23-16-VII, 3 pins

DOMESTIC_M

Standard/Domestic household, type "M", BS 546, 3 pins

DOMESTIC_N

Standard/Domestic household, type "N", NBR 14136, 3 pins

DOMESTIC_O

Standard/Domestic household, type "O", TIS 166-2549, 3 pins

GBT_AC

Guobiao GB/T 20234.2 AC socket/connector

GBT_DC

Guobiao GB/T 20234.3 DC connector

IEC_60309_2_single_16

IEC 60309-2 Industrial Connector single phase 16 amperes (usually blue)

IEC_60309_2_three_16

IEC 60309-2 Industrial Connector three phases 16 amperes (usually red)

IEC_60309_2_three_32

IEC 60309-2 Industrial Connector three phases 32 amperes (usually red)

IEC_60309_2_three_64

IEC 60309-2 Industrial Connector three phases 64 amperes (usually red)

IEC_62196_T1

IEC 62196 Type 1 "SAE J1772"

IEC_62196_T1_COMBO

Combo Type 1 based, DC

IEC_62196_T2

IEC 62196 Type 2 "Mennekes"

IEC_62196_T2_COMBO

Combo Type 2 based, DC

IEC_62196_T3A

IEC 62196 Type 3A

IEC_62196_T3C

IEC 62196 Type 3C "Scame"

NEMA_5_20

NEMA 5-20, 3 pins

NEMA_6_30

NEMA 6-30, 3 pins

NEMA_6_50

NEMA 6-50, 3 pins

NEMA_10_30

NEMA 10-30, 3 pins

NEMA_10_50

NEMA 10-50, 3 pins

NEMA_14_30

NEMA 14-30, 3 pins, rating of 30 A

NEMA_14_50

NEMA 14-50, 3 pins, rating of 50 A

PANTOGRAPH_BOTTOM_UP

On-board Bottom-up-Pantograph typically for bus charging

PANTOGRAPH_TOP_DOWN

Off-board Top-down-Pantograph typically for bus charging

TESLA_R

Tesla Connector "Roadster"-type (round, 4 pin)

TESLA_S

Tesla Connector "Model-S"-type (oval, 5 pin)

1.4.6. EnergyMix class

This type is used to specify the energy mix and environmental impact of the supplied energy at a location or in a tariff.

Property Type Card. Description

is_green_energy

boolean

1

True if 100% from regenerative sources. (CO2 and nuclear waste is zero)

energy_sources

EnergySource

*

Key-value pairs (enum + percentage) of energy sources of this location’s tariff.

environ_impact

EnvironmentalImpact

*

Key-value pairs (enum + percentage) of nuclear waste and CO2 exhaust of this location’s tariff.

supplier_name

string(64)

?

Name of the energy supplier, delivering the energy for this location or tariff.*

energy_product_name

string(64)

?

Name of the energy suppliers product/tariff plan used at this location.*

* These fields can be used to look up energy qualification or to show it directly to the customer (for well-known brands like Greenpeace Energy, etc.)

Examples
Simple:
link:examples/location_energymix_example_simple.json[role=include]
Tariff energy provider name:
link:examples/location_energymix_example_energy_provider.json[role=include]
Complete:
link:examples/location_energymix_example_complete.json[role=include]

1.4.7. EnergySource class

Key-value pairs (enum + percentage) of energy sources. All given values of all categories should add up to 100 percent.

Property Type Card. Description

source

EnergySourceCategory

1

The type of energy source.

percentage

number

1

Percentage of this source (0-100) in the mix.

1.4.8. EnergySourceCategory enum

Categories of energy sources.

Value Description

NUCLEAR

Nuclear power sources.

GENERAL_FOSSIL

All kinds of fossil power sources.

COAL

Fossil power from coal.

GAS

Fossil power from gas.

GENERAL_GREEN

All kinds of regenerative power sources.

SOLAR

Regenerative power from PV.

WIND

Regenerative power from wind turbines.

WATER

Regenerative power from water turbines.

1.4.9. EnvironmentalImpact class

Amount of waste produced/emitted per kWh.

Property Type Card. Description

category

EnvironmentalImpactCategory

1

The environmental impact category of this value.

amount

number

1

Amount of this portion in g/kWh.

1.4.10. EnvironmentalImpactCategory enum

Categories of environmental impact values.

Value Description

NUCLEAR_WASTE

Produced nuclear waste in grams per kilowatthour.

CARBON_DIOXIDE

Exhausted carbon dioxide in grams per kilowatthour.

1.4.11. ExceptionalPeriod class

Specifies one exceptional period for opening or access hours.

Property Type Card. Description

period_begin

DateTime

1

Begin of the exception. In UTC, time_zone field can be used to convert to local time.

period_end

DateTime

1

End of the exception. In UTC, time_zone field can be used to convert to local time.

1.4.12. Facility enum

Value Description

HOTEL

A hotel.

RESTAURANT

A restaurant.

CAFE

A cafe.

MALL

A mall or shopping center.

SUPERMARKET

A supermarket.

SPORT

Sport facilities: gym, field etc.

RECREATION_AREA

A recreation area.

NATURE

Located in, or close to, a park, nature reserve etc.

MUSEUM

A museum.

BIKE_SHARING

A bike/e-bike/e-scooter sharing location.

BUS_STOP

A bus stop.

TAXI_STAND

A taxi stand.

TRAM_STOP

A tram stop/station.

METRO_STATION

A metro station.

TRAIN_STATION

A train station.

AIRPORT

An airport.

PARKING_LOT

A parking lot.

CARPOOL_PARKING

A carpool parking.

FUEL_STATION

A Fuel station.

WIFI

Wifi or other type of internet available.

1.4.13. GeoLocation class

This class defines the geo location of the Charge Point. The geodetic system to be used is WGS 84.

Property Type Card. Description

latitude

string(10)

1

Latitude of the point in decimal degree. Example: 50.770774. Decimal separator: "." Regex: -?[0-9]{1,2}\.[0-9]{5,7}

longitude

string(11)

1

Longitude of the point in decimal degree. Example: -126.104965. Decimal separator: "." Regex: -?[0-9]{1,3}\.[0-9]{5,7}

Note
Five decimal places is seen as a minimum for GPS coordinates of the Charge Point as this gives approximately 1 meter precision. More is always better. Seven decimal places gives approximately 1cm precision.

1.4.14. Hours class

Opening and access hours of the location.

Property Type Card. Description

twentyfourseven

boolean

1

True to represent 24 hours a day and 7 days a week, except the given exceptions.

regular_hours

RegularHours

*

Regular hours, weekday-based. Only to be used if twentyfourseven=false, then this field needs to contain at least one RegularHours object.

exceptional_openings

ExceptionalPeriod

*

Exceptions for specified calendar dates, time-range based. Periods the station is operating/accessible. Additional to regular_hours. May overlap regular rules.

exceptional_closings

ExceptionalPeriod

*

Exceptions for specified calendar dates, time-range based. Periods the station is not operating/accessible. Overwriting regular_hours and exceptional_openings. Should not overlap exceptional_openings.

Example: 24/7 open with exceptional closing.

Open 24 hours per day, 7 days a week, except for 25th of December 2018 between 03:00 and 05:00.

link:examples/location_hours_247_open_exception_closing.json[role=include]
24/7 open with exception closing.
Figure 2. Diagram showing a representation of the example 24/7 open with exception closing.
Example: Opening Hours with exceptional closing.

Regular opening hours between 01:00 and 06:00. With exceptional closing on 25th of December 2018 between 03:00 and 05:00.

link:examples/location_hours_opening_hours_with_exceptional_closing.json[role=include]
Opening Hours with exceptional closing.
Figure 3. Diagram showing a representation of the example Opening Hours with exceptional closing
Example: Opening Hours with exceptional opening.

Regular opening hours between 00:00 and 04:00. With exceptional opening on 25th of December 2018 between 05:00 and 07:00.

link:examples/location_hours_opening_hours_with_exceptional_opening.json[role=include]
Opening Hours with exceptional opening.
Figure 4. Diagram showing a representation of the example Opening Hours with exceptional opening.

1.4.15. Image class

This class references an image related to an EVSE in terms of a file name or url. According to the roaming connection between one EVSE Operator and one or more Navigation Service Providers, the hosting or file exchange of image payload data has to be defined. The exchange of this content data is out of scope of OCPI. However, the recommended setup is a public available web server hosted and updated by the EVSE Operator. Per charge point an unlimited number of images of each type is allowed. Recommended are at least two images where one is a network or provider logo and the second is a station photo. If two images of the same type are defined, not only one should be selected but both should be displayed together.

Photo Dimensions: The recommended dimensions for all photos is a minimum width of 800 pixels and a minimum height of 600 pixels. Thumbnail should always have the same orientation as the original photo with a size of 200 by 200 pixels.

Logo Dimensions: The recommended dimensions for logos are exactly 512 pixels in width height. Thumbnail representations of logos should be exactly 128 pixels in width and height. If not squared, thumbnails should have the same orientation as the original.

Property Type Card. Description

url

URL

1

URL from where the image data can be fetched through a web browser.

thumbnail

URL

?

URL from where a thumbnail of the image can be fetched through a webbrowser.

category

ImageCategory

1

Describes what the image is used for.

type

CiString(4)

1

Image type like: gif, jpeg, png, svg.

width

int(5)

?

Width of the full scale image.

height

int(5)

?

Height of the full scale image.

1.4.16. ImageCategory enum

The category of an image to obtain the correct usage in a user presentation. The category has to be set accordingly to the image content in order to guarantee the right usage.

Value Description

CHARGER

Photo of the physical device that contains one or more EVSEs.

ENTRANCE

Location entrance photo. Should show the car entrance to the location from street side.

LOCATION

Location overview photo.

NETWORK

Logo of an associated roaming network to be displayed with the EVSE for example in lists, maps and detailed information views.

OPERATOR

Logo of the charge point operator, for example a municipality, to be displayed in the EVSEs detailed information view or in lists and maps, if no network logo is present.

OTHER

Other

OWNER

Logo of the charge point owner, for example a local store, to be displayed in the EVSEs detailed information view.

1.4.17. ParkingRestriction enum

This value, if provided, represents the restriction to the parking spot for different purposes.

Value Description

EV_ONLY

Reserved parking spot for electric vehicles.

PLUGGED

Parking is only allowed while plugged in (charging).

DISABLED

Reserved parking spot for disabled people with valid ID.

CUSTOMERS

Parking spot for customers/guests only, for example in case of a hotel or shop.

MOTORCYCLES

Parking spot only suitable for (electric) motorcycles or scooters.

1.4.18. ParkingType enum

Reflects the general type of the charge point’s location. May be used for user information.

Value Description

ALONG_MOTORWAY

Location on a parking facility/rest area along a motorway, freeway, interstate, highway etc.

PARKING_GARAGE

Multistorey car park.

PARKING_LOT

A cleared area that is intended for parking vehicles, i.e. at super markets, bars, etc.

ON_DRIVEWAY

Location is on the driveway of a house/building.

ON_STREET

Parking in public space along a street.

UNDERGROUND_GARAGE

Multistorey car park, mainly underground.

1.4.19. PowerType enum

Value Description

AC_1_PHASE

AC single phase.

AC_2_PHASE

AC two phases, only two of the three available phases connected.

AC_2_PHASE_SPLIT

AC two phases using split phase system.

AC_3_PHASE

AC three phases.

DC

Direct Current.

1.4.20. PublishTokenType class

Defines the set of values that identify a token to which a Location might be published.

At least one of the following fields SHALL be set: uid, visual_number, or group_id.

When uid is set, type SHALL also be set.

When visual_number is set, issuer SHALL also be set.

Property Type Card. Description

uid

CiString(36)

?

Unique ID by which this Token can be identified.

type

TokenType

?

Type of the token.

visual_number

string(64)

?

Visual readable number/identification as printed on the Token (RFID card).

issuer

string(64)

?

Issuing company, most of the times the name of the company printed on the token (RFID card), not necessarily the eMSP.

group_id

CiString(36)

?

This ID groups a couple of tokens. This can be used to make two or more tokens work as one.

1.4.21. RegularHours class

Regular recurring operation or access hours.

Property Type Card. Description

weekday

int(1)

1

Number of day in the week, from Monday (1) till Sunday (7)

period_begin

string(5)

1

Begin of the regular period, in local time, given in hours and minutes. Must be in 24h format with leading zeros. Example: "18:15". Hour/Minute separator: ":" Regex: ([0-1][0-9]|2[0-3]):[0-5][0-9].

period_end

string(5)

1

End of the regular period, in local time, syntax as for period_begin. Must be later than period_begin.

Example

Operating on weekdays from 8am till 8pm with one exceptional opening on 22/6/2014 and one exceptional closing the Monday after:

link:examples/location_regularhours_example.json[role=include]

This represents the following schedule, where stroked out days are without operation hours, bold days are where exceptions apply and regular displayed days are where the regular schedule applies.

Weekday Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su

Date

16

17

18

19

20

21

22

23

24

25

26

27

28

29

Open from

08

08

08

08

08

09

-

08

-

08

08

08

-

-

Open till

20

20

20

20

20

12

-

20

-

20

20

20

-

-

1.4.22. Status enum

The status of an EVSE.

Value Description

AVAILABLE

The EVSE/Connector is able to start a new charging session.

BLOCKED

The EVSE/Connector is not accessible because of a physical barrier, i.e. a car.

CHARGING

The EVSE/Connector is in use.

INOPERATIVE

The EVSE/Connector is not yet active, or temporarily not available for use, but not broken or defect.

OUTOFORDER

The EVSE/Connector is currently out of order, some part/components may be broken/defect.

PLANNED

The EVSE/Connector is planned, will be operating soon.

REMOVED

The EVSE/Connector was discontinued/removed.

RESERVED

The EVSE/Connector is reserved for a particular EV driver and is unavailable for other drivers.

UNKNOWN

No status information available (also used when offline).

1.4.23. StatusSchedule class

This type is used to schedule status periods in the future. The eMSP can provide this information to the EV user for trip planning purposes. A period MAY have no end. Example: "This station will be running as of tomorrow. Today it is still planned and under construction."

Property Type Card. Description

period_begin

DateTime

1

Begin of the scheduled period.

period_end

DateTime

?

End of the scheduled period, if known.

status

Status

1

Status value during the scheduled period.

Note
The scheduled status is purely informational. When the status actually changes, the CPO must push an update to the EVSEs status field itself.