Requesting a Simple Route
To calculate directions for private transport between two locations, using the calculateroute
service, include in the request:
- your authentication credentials,
app_id
andapp_code
(see Acquiring Credentials) - the start (
waypoint0
) and destination (waypoint1
) waypoints, - and the
mode
, which describes the type of route calculation and whether to take traffic into account.
This example requests the fastest
route for a car
without taking traffic
conditions into account. Note that the waypoints are specified in latitude and longitude by using the geo!
string value.
https://route.api.here.com/routing/7.2/calculateroute.json
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&waypoint0=geo!52.5,13.4
&waypoint1=geo!52.5,13.45
&mode=fastest;car;traffic:disabled