Toll Cost Extension API Developer's Guide

Constructing a Request

A request to the Toll Cost Extension API includes the basic elements shown in the following table and, in addition, it may contain resource-specific parameters.

Table 1. Basic Request Elements
Element Value/Example Description
Base URL

https://tce.api.here.com

https://tce.cit.api.here.com

Production environment.

CIT environment.

For more information about the available environments, see HERE Server Environments.

Path /2/  
Resource One of the resource names supported by the service, see Supported Resources  
Application Code app_code={YOUR_APP_CODE} Substitute your own unique app_code
Application Id app_id={YOUR_APP_ID} Substitute your own unique app_id
This example search request uses HTTP GET to find a cost-optimized route for a car using the fastest route:
https://tce.cit.api.here.com/2/calculateroute.json
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&waypoint0=49.33729606975952,0.5986232869327068
&waypoint1=49.493527937780975,0.10129541603788539
&mode=fastest;car
&cost_optimize=1