Directions

A route between two or more places, with distance and travel time, from Google’s directions URL.

Live map

Code

HTML
<iframe
  src="https://maps.siemens-cdn.com/maps/embed/v1/directions?origin=Reesbergstr.%201,%2036039%20Fulda,%20Germany&destination=49.57288,11.00253&avoid=tolls"
  title="Driving route from Fulda to Erlangen"
  width="600"
  height="450"
  style="border:0"
  loading="lazy"
  allowfullscreen
  referrerpolicy="no-referrer-when-downgrade"></iframe>

<iframe
  src="https://maps.siemens-cdn.com/maps/embed/v1/directions?origin=48.14428,11.57501&destination=Marienplatz,%2080331%20Munich,%20Germany&mode=walking"
  title="Walking route in central Munich"
  width="600"
  height="450"
  style="border:0"
  loading="lazy"
  allowfullscreen
  referrerpolicy="no-referrer-when-downgrade"></iframe>

<iframe
  src="https://maps.siemens-cdn.com/maps/embed/v1/directions?origin=48.14428,11.57501&destination=49.57288,11.00253&mode=transit"
  title="Transit requested: stops and a notice"
  width="600"
  height="450"
  style="border:0"
  loading="lazy"
  allowfullscreen
  referrerpolicy="no-referrer-when-downgrade"></iframe>

Every map follows the visitor’s light or dark setting by default (colorScheme=auto). On these pages it follows the docs theme switch too.

Parameters

NameRequiredValuesNotes
originyes"lat,lng" or an addressStart of the route. An address is resolved by our /geocode, like q in place mode.
destinationyes"lat,lng" or an addressEnd of the route, marked with the pin.
waypointsnoplaces separated by |Up to 20 stops in between, lettered B, C, ... on the map.
modenodriving, walking, transit, bicycling, flyingdriving (the default) and walking get a route. The others show the stops and a visible notice.
avoidnotolls, ferries, highwaystolls and ferries shape driving routes. highways is not available and says so.
unitsnometric, imperialWithout it: miles for US, GB, LR and MM (from region or the language), else kilometers.
zoomno0 to 21Google's zoom scale. Default 15. Out-of-range values are clamped, fractions floored.
languagenoBCP 47 tag, e.g. de, ja, zh-HantLabel language where the basemap has one, else local names. Default: the browser language.
keynoanyAccepted and ignored. There is no API key; drop it when you migrate.

Every parameter: embed URL reference.

Migrating from Google

Only the src line changes: the host becomes https://maps.siemens-cdn.com and key goes. Every other attribute and parameter stays identical. Then swap www.google.com for https://maps.siemens-cdn.com in your page’s frame-src, in the enforced and in the report-only policy. Full migration guide.

iframe before and after, driving, avoid=tolls
  <iframeRemoved: -   src="https://www.google.com/maps/embed/v1/directions?key=API_KEY&origin=Reesbergstr.%201,%2036039%20Fulda,%20Germany&destination=49.57288,11.00253&avoid=tolls"Added: +   src="https://maps.siemens-cdn.com/maps/embed/v1/directions?origin=Reesbergstr.%201,%2036039%20Fulda,%20Germany&destination=49.57288,11.00253&avoid=tolls"    title="Driving route from Fulda to Erlangen"    width="600"    height="450"    style="border:0"    loading="lazy"    allowfullscreen    referrerpolicy="no-referrer-when-downgrade"></iframe>
iframe before and after, mode=walking
  <iframeRemoved: -   src="https://www.google.com/maps/embed/v1/directions?key=API_KEY&origin=48.14428,11.57501&destination=Marienplatz,%2080331%20Munich,%20Germany&mode=walking"Added: +   src="https://maps.siemens-cdn.com/maps/embed/v1/directions?origin=48.14428,11.57501&destination=Marienplatz,%2080331%20Munich,%20Germany&mode=walking"    title="Walking route in central Munich"    width="600"    height="450"    style="border:0"    loading="lazy"    allowfullscreen    referrerpolicy="no-referrer-when-downgrade"></iframe>
iframe before and after, mode=transit
  <iframeRemoved: -   src="https://www.google.com/maps/embed/v1/directions?key=API_KEY&origin=48.14428,11.57501&destination=49.57288,11.00253&mode=transit"Added: +   src="https://maps.siemens-cdn.com/maps/embed/v1/directions?origin=48.14428,11.57501&destination=49.57288,11.00253&mode=transit"    title="Transit requested: stops and a notice"    width="600"    height="450"    style="border:0"    loading="lazy"    allowfullscreen    referrerpolicy="no-referrer-when-downgrade"></iframe>
Response header of your page
Removed: - Content-Security-Policy: default-src 'self'; frame-src 'self' https://www.google.comRemoved: - Content-Security-Policy-Report-Only: default-src 'self'; frame-src 'self' https://www.google.comAdded: + Content-Security-Policy: default-src 'self'; frame-src 'self' https://maps.siemens-cdn.comAdded: + Content-Security-Policy-Report-Only: default-src 'self'; frame-src 'self' https://maps.siemens-cdn.com

Notes

  • The route comes from Amazon Location (Esri data) through our own /route on the same host. Only the coordinates of the stops leave our infrastructure, never visitor data. A route is cached for at most 30 days, as the AWS terms allow.
  • The card shows the distance and travel time and a Route menu that opens the same trip in Apple Maps, Google Maps or OpenStreetMap.
  • Partial: no transit, bicycle or flight routes and no highway avoidance. Walking routes are limited to 40 km. Each case shows a visible notice instead of a silent fallback.
  • Without center the map fits the whole route into the frame.