Route from a fixed origin

Show driving directions and travel time from a chosen origin (usually the property) to whichever POI the visitor clicks.

What it does

When a visitor clicks a POI, the map draws the route from the configured origin to that POI and shows the travel time in the info window. Without this option, clicking a POI shows only its name and category.

It also enables the travel-time columns on the Summary plugin (distance + duration to the nearest places of each category).

Enable on the JavaScript Map plugin

Add a routeFrom object to your yatmoConfig:

yatmoConfig = {
    licenseKey: '...',
    language: 'EN',
    container: 'map',
    center: [4.3442926, 50.8510525],
    zoom: 16,
    routeFrom: {
        latitude: 50.8510525,
        longitude: 4.3442926
    }
};

Enable on the iframe map

Pass routeFromLatitude and routeFromLongitude as query parameters:

<iframe src="https://map.yatmo.com/iframe.html?licenseKey=...&language=EN&latitude=50.8346645&longitude=4.3135979&zoom=16&routeFromLatitude=50.8346645&routeFromLongitude=4.3135979"></iframe>

Notes

The origin doesn’t have to be the property itself — you can route from a transport hub, a city centre, or any fixed point. Useful for “how far from the airport?” kinds of pages.

For routes between arbitrary points (not anchored to a fixed origin), call the Route API directly.