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 A111 motorway (Tunnel Tegel). Matching the route start to the motorway is avoided by specifying the station's location as a street position.

https://route.cit.api.here.com/routing/7.2/calculateroute.json
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&mode=fastest;car
&waypoint0=street!!52.587854,13.2898107
&waypoint1=geo!52.57548,13.294322
&routeattributes=sh
Figure 1. Example of a route start matched to a street instead of a motorway.

If the station's location was specified as a waypoint position (waypoint0=geo!52.587854,13.2898107) instead of a street position then the route start would be matched to A111 motorway.

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