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.
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.