Routing API v7 Developer's Guide

Request a Simple Route

To calculate directions for private transport between two locations, using the calculateroute service, include in the request the following:

  • your authentication credentials, apiKey or app_id and app_code if you are using the app_id/app_code authentication (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.
Note: This example uses a HERE API Key to authenticate your request. For information on other possible options, see Authentication Guide. For examples of how to use the other authentication options with the Routing API v7, see Authentication Examples.