Create custom EV profiles
Adjust parameters of your electrical vehicles to your business needs by uploading custom EV profiles. You can create a custom EV profile when the vehicles in the HERE EV Profiles catalog do not match your fleet. To create a profile, you provide the battery capacity, supported connectors, and basic physical characteristics of your vehicle, and the API returns a profile ID that you use as evProfileId in the HERE Tour Planning API.
When to use custom profiles
Use a custom profile when:
- Your vehicle is not available in the catalog, for example a new model, a conversion, or a niche make.
- Your vehicle differs from the closest catalog variant, for example because of a body build that changes the weight or frontal area.
- You want to set the battery capacity or the supported connector types yourself.
Use a catalog profile when your vehicle is available as a variant. For more information, see Obtain variants by make and model.
Prerequisites
- An API key or a bearer token. For more information, see the Identity & Access Management Guide.
- Access to the consumption-based EV tour planning feature.
NoteThe
evProfileId-based EV tour planning feature requires additional licensing. Contact your HERE sales representative for access and more information.
Create a custom profile
To create a profile, send a POST request to the /custom-profiles endpoint. Each request must contain the following parameter values:
| Parameter | Type | Description |
|---|---|---|
batteryCapacityKwh | number | Battery capacity in kWh, from 1 to 2000, with at most three decimal places (for example, 75.5). Vehicles with a capacity below 1 kWh, such as e-bikes and e-scooters, are not supported. |
connectorTypes | array of strings | Connector types that the vehicle supports. Must contain at least one value. Values use the OCPI v3 naming convention, for example IEC_62196_T2_COMBO or CHADEMO. |
physicalModel.maxGrossWeightKg | integer | Maximum gross vehicle weight in kg, from 100 to 42000. |
physicalModel.unladenWeightKg | integer | Unladen weight in kg, from 100 to 42000. Must not exceed maxGrossWeightKg. |
physicalModel.frontalAreaM2 | number | Frontal area in m², from 0.1 to 30. Calculate it as the vehicle width without mirrors multiplied by (height − ground clearance). |
Request example
curl -X POST "https://evprofiles.tourplanning.hereapi.com/v1/custom-profiles?apiKey=YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"batteryCapacityKwh": 75.5,
"connectorTypes": ["IEC_62196_T2_COMBO", "CHADEMO"],
"physicalModel": {
"maxGrossWeightKg": 2800,
"unladenWeightKg": 2100,
"frontalAreaM2": 2.7
}
}'Response
A successful request returns the 201 Created status code and a header with the URI of the new profile, for example /v1/custom-profiles/evc1_COzNBBC0EBjwFSD40gEqAgEbJvk. The response body contains the generated profileId and the parameters that you provided:
{
"profileId": "evc1_COzNBBC0EBjwFSD40gEqAgEbJvk",
"batteryCapacityKwh": 75.5,
"connectorTypes": ["IEC_62196_T2_COMBO", "CHADEMO"],
"physicalModel": {
"unladenWeightKg": 2100.0,
"maxGrossWeightKg": 2800.0,
"frontalAreaM2": 2.7
}
}The custom profileId is an opaque, URL-safe string of up to 128 characters derived from the vehicle parameters that you submitted, starting with evc1_. The service does not store a separate profile record. Store the ID securely and reuse it in Tour Planning requests. If you lose the ID, create the profile again.
Retrieve a custom profile
To check the parameters of a profile that you created, send a GET request to /custom-profiles/{profileId}, as shown in the following sample request:
curl "https://evprofiles.tourplanning.hereapi.com/v1/custom-profiles/evc1_COzNBBC0EBjwFSD40gEqAgEbJvk?apiKey=YOUR_API_KEY"The response has the same format as the response to the create request and contains the parameters that you provided. For more information on the returned custom profile properties, see Understand EV Profiles API response format.
Note
- This endpoint works only for custom profile IDs. Catalog profile IDs, such as
"190", return404.If the custom profile ID that you submitted cannot be decoded into a valid profile, the endpoint returns
400, as shown in the following example:{ "title": "Bad request", "status": 400, "code": "E630006", "cause": "invalid custom profile ID: invalid base64url payload", "action": "Please check the input parameters and try again", "correlationId": "<correlation_ID_value>" }
Use a custom profile in Tour Planning
Use the profileId as the evProfileId value in your Tour Planning API request, together with the minCharge, maxCharge, and initialCharges parameters. You must also enable the recharges experimental feature and include premiumFeatures=ev in the query string.
{
"fleet": {
"types": [
{
"id": "custom-ev-van",
"profile": "van",
"costs": { "fixed": 20, "distance": 0.0002, "time": 0.0035 },
"shifts": [ ... ],
"capacity": [ 10 ],
"amount": 1,
"evProfileId": "evc1_COzNBBC0EBjwFSD40gEqAgEbJvk",
"minCharge": 10,
"maxCharge": 75,
"initialCharges": [ { "vehicleId": "custom-ev-van_1", "charge": 70 } ]
}
]
}
}For a complete example, see Plan efficient routes for EV fleets.
NoteThe same rules apply to custom and catalog profile IDs. For example, you cannot use the same
evProfileIdacross different routing profiles, and you cannot use it with thepedestrianorbicycleprofile.
Next steps
- To use the returned profile ID for consumption-based EV routing, see Plan efficient routes for EV fleets.
- To review the custom profile response properties, see Understand EV Profiles API response format.
Updated yesterday