Routing API Developer's Guide

Requesting a Route from a Location near a Motorway

To request a route starting at a street by a location near a motorway, use the calculateroute service specifying the start location as a street position (waypoint0=street!!poi_location).

In the following example a requested route starts at a location of Berlin Tegel S-Bahn station (52.587854,13.2898107) close to the A111 motorway (Tunnel Tegel). You can avoid to matchg the route start to the motorway if you specify location of the station as a street position.

https://route.ls.hereapi.com/routing/7.2/calculateroute.json
?apikey={YOUR_APIKEY}
&mode=fastest;car
&waypoint0=street!!52.587854,13.2898107
&waypoint1=geo!52.57548,13.294322
&routeattributes=sh
Note: This example uses a HERE API Key to authenticate your request. For information on other possible options, see https://developer.here.com/documentation/authentication. For examples of how to use the other authentication options with the Routing API, see Authentication Examples.
Figure 1. Example of a route start matched to a street instead of a motorway

If you specify the location of the station as a waypoint position (waypoint0=geo!52.587854,13.2898107) instead of a street position, then the route start is matched to the A111 motorway.

Figure 2. Example of a route start matched to a motorway