Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have used both the Google and Bing Maps APIs. Without more details or requirements, I can only provide general information.</p> <p><a href="http://code.google.com/intl/en/apis/maps/documentation/directions/" rel="nofollow">Google Directions API</a></p> <p><a href="http://msdn.microsoft.com/en-us/library/ff701717.aspx" rel="nofollow">Bing Route Calculation</a></p> <p>Just from some quick research, I do not believe Open Street Map has a native directions API. For other Open Street Map solutions, look <a href="http://wiki.openstreetmap.org/wiki/Category%3aRouting" rel="nofollow">on their wiki</a> ("YOURS" specifically may be of interest).</p> <p><strong>Google Directions API</strong></p> <p>For the Google Directions API, a sample request for directions between two German cities would look like : <a href="http://maps.googleapis.com/maps/api/directions/json?region=de&amp;language=de&amp;origin=Berlin&amp;destination=Hamburg&amp;sensor=false" rel="nofollow">http://maps.googleapis.com/maps/api/directions/json?region=de&amp;language=de&amp;origin=Berlin&amp;destination=Hamburg&amp;sensor=false</a></p> <p>Breaking down the <a href="http://code.google.com/apis/maps/documentation/directions/#RequestParameters" rel="nofollow">parameters</a> required:</p> <ul> <li><em>origin</em> The starting location.</li> <li><em>destination</em> The destination.</li> <li><em>sensor</em> Is the request for a device that can sense location?</li> </ul> <p>And the parameters for a German search (optional):</p> <ul> <li><em>region=de</em> Give Google Maps an idea of where in the world to search by passing in the German top level domain code.</li> <li><em>language=de</em> Tell Google Maps to return directions in German (<a href="http://spreadsheets.google.com/pub?key=p9pdwsai2hDMsLkXsoM05KQ&amp;gid=1" rel="nofollow">See available languages</a>)</li> </ul> <p>Modify this template request as required.</p> <hr> <p><em>edit</em></p> <p><strong>Bing Routing Example</strong> </p> <p>Bing requires you to get an API key to work with any data.</p> <p>A sample request for Bing for the routes between two german cities: <a href="http://dev.virtualearth.net/REST/v1/Routes?wayPoint.1=Berlin&amp;waypoint.2=Hamburg&amp;culture=de-DE&amp;key=YOUR_KEY_HERE" rel="nofollow">http://dev.virtualearth.net/REST/v1/Routes?wayPoint.1=Berlin&amp;waypoint.2=Hamburg&amp;culture=de-DE&amp;key=YOUR_KEY_HERE</a></p> <p>Required Params:</p> <ul> <li><em>wayPoint.1</em> The starting location.</li> <li><em>wayPoint.2</em> The destination (Note how you can easily add more waypoints). </li> <li><em>key</em> Insert your Bing Map API key here.</li> </ul> <p>Optional Params:</p> <ul> <li><em>culture=de-DE</em> The <a href="http://msdn.microsoft.com/en-us/library/ff701709.aspx" rel="nofollow">culture parameter</a> gives Bing an idea of where to search and what to return.</li> </ul> <p><strong>Terms of Use</strong></p> <p>Per the <a href="http://code.google.com/apis/maps/terms.html" rel="nofollow">Google</a> and <a href="http://www.microsoft.com/maps/product/terms.html" rel="nofollow">Bing</a> Maps API terms of use, you must display an image that lets users know you are using the mapping service.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload