Location Setup
Adding a Location
As you will see in the eDRV data Hierarchy each chargestation in eDRV is associated with a parent Location.
If you are setting up eDRV for the first time, you must first create a location for your chargestations. We all need a home π.
Add a location via the Dashboard
From the dashboard app.edrv.io
- Navigate to the Locations page
- Add a location
(Note: we created a dummy location for you when you signed up. Please feel free to edit this for your purposes)
You will have to provide
- Coordinates (latitude & longitude)
- Address (Street, Post Code, City & Country)
- Operator Name. (This is the name of the organization managing EV charging at this location)
Please see sample Location data values below:
{
"coordinates": {
"latitude": 52.394279,
"longitude": 4.854706
},
"address": {
"streetAndNumber": "Rigakade 10",
"postalCode": "1013BC",
"city": "Amsterdam",
"country": "NLD"
},
"active": true,
"chargestations": [],
"_id": "5e85d15d0b293f471ecbf197",
"operatorName": "Rockstart",
"createdAt": "2020-04-02T11:49:49.387Z",
"updatedAt": "2020-07-16T11:35:31.058Z"
}
Add a location via the API
You can of course also add a new location programmatically using the eDRV API if you have already completed the eDRV API Auth steps and have obtained an API token.
var request = require('request');
var options = {
method: 'POST',
url: 'https://api.edrv.io/v1/locations',
headers: {
accept: 'application/json',
'content-type': 'application/json',
Authorization: 'Bearer <access_token>',
},
json: true,
};
options.body = {
coordinates: {
latitude: 52.394279,
longitude: 4.854706,
},
address: {
streetAndNumber: 'Rigakade 10',
postalCode: '1013BC',
city: 'Amsterdam',
country: 'NLD',
},
operatorName: 'Rockstart',
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
Once you have a location. Please make sure to assign a location to all chargestations via the Chargestations>Edit Chargestation>Select Location menu.
Updated over 4 years ago
Now that you have setup a chargestation(and grabbed the connection URL), assigned it a location, it is time to configure your live chargestation to point it to eDRV