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_API_KEY}
&mode=fastest;car
&waypoint0=street!!52.587854,13.2898107
&waypoint1=geo!52.57548,13.294322
&routeattributes=sh

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.
