GuidesAPI Reference
Guides

Access the static EV data layer

Access the static EV data layer

You can get the static EV data in a versioned layer in the HERE Map Content (HMC) catalog.

Technically, the data is available in the electric-vehicle-charging-locations layer in the HMC catalog. See the layer schema for details on the data content and structure.

The detailed documentation is available after logging in to the Platform portal.

This tutorial provides instructions on how to achieve the following:

  • Create the required credentials for the EV data download.
  • Find the required parameters for the data download.
  • Fetch all the EV data using the OLP CLI.
  • Guidance on using other access mechanisms.

Note

The OLP CLI used in this tutorial is meant only for testing and prototyping purposes. For production use, you need another access mechanism - see the section "Other ways to access the data" below.

Pre-requisites

Before starting, you need to have been on-boarded to the HERE platform as described in the Quick Start.

Also, familiarize yourself with the platform catalogs and layers. The EV data is stored in a versioned layer.

Application credentials

Access to your data is possible via the platform applications in your platform realm. Each application can have two sets of OAuth2 credentials, which authorize access. Follow the instructions to get the credentials.

You need to add the application to the group to which the catalog has been shared as described in the Quick Start.

Note

You must be an Org Admin with management rights enabled for all apps and resources.

Bearer token

The Data API uses bearer tokens for authentication.

Once you have obtained the credentials for an application, you can get the bearer token. Refer to the detailed instructions for production use. For quick testing, use the the OLP CLI:

olp api token get --quiet

to fetch a token.

Note

The OAuth2 credentials are taken into use as instructed in the section OLP CLI Configuration.

Fetch EV data using the OLP CLI

Using the OLP CLI, the EV data of a partition (in this example of the Tampere city center) can be fetched by

olp catalog layer partition get hrn:here:data::olp-here:rib-2 electric-vehicle-charging-locations --partitions 23694046

All the EV data can be fetched by:

olp catalog layer partition get hrn:here:data::olp-here:rib-2 electric-vehicle-charging-locations --all

Note

Downloading the whole EV data set may take a significant amount of time.

Information on how to process the downloaded data blob can be found here.

Other ways to access the data

In addition to the OLP CLI, there are also other high level SDKs available. For example, for

If you wish to use the HERE REST Data API, refer to the documentation on how to access the data from a versioned layer.