Here Electic Charging Point API Not Working

Viewed 40

In the guide, below is the step mentioned for using Electric Charging point API.

GET
https://ev-v2.cc.api.here.com/ev/stations.json
?prox=52.516667,13.383333,5000
&connectortype=31;apiKey={YOUR_API_KEY};
  

In other page, examples are different. This could be incorrect content in their official user guide.

GET
https://ev-v2.cc.api.here.com/ev/stations.json
?prox=52.516667,13.383333,5000&connectortype=31;apiKey={YOUR_API_KEY};
       {YOUR_API_KEY}"

Both of them does not seem to work with below exceptions respone.

{"error":"Unauthorized","error_description":"No credentials found"}

I tried the below variation with my actual API KEYS generated for my app.

GET
https://ev-v2.cc.api.here.com/ev/stations.json
?prox=52.516667,13.383333,5000
&connectortype=31&apiKey={YOUR_API_KEY}

Below is the error.

{
    "error": "Forbidden",
    "error_description": "These credentials do not authorize access"
}
1 Answers

Both cases are working correctly with our API_KEYS, so we can assume this is an authorization error, this service you mentioned has to be enabled in your account and you need to link it in your Platform Account to your own API_KEY, if not you will receive this authentication error.

We hope this is helpful for you.

Related