The route tag calculates a route from Rotterdam to Amsterdam via two waypoints, without a map: the distance, the duration and every step with its instruction. Needs a route provider in the CP.
Template
{exp:reinos_maps:route
address:from="Rotterdam"
address:to="Amsterdam"
latlng:waypoints="52.2112,5.9699|52.5168,6.0830"
}
direction:distance : {direction:distance}<br>
direction:duration : {direction:duration}<br>
direction:start_location : {direction:start_location}<br>
direction:end_location : {direction:end_location}<br>
<br>
Steps: <br>
{direction:steps}
direction:steps:distance : {direction:steps:distance} <br>
direction:steps:duration : {direction:steps:duration} <br>
direction:steps:location : {direction:steps:location} <br>
direction:steps:instruction : {direction:steps:instruction} <br>
direction:steps:travel_mode : {direction:steps:travel_mode} <br>
<br>
{/direction:steps}
{/exp:reinos_maps:route}Build it in your own site
What this example needs in ExpressionEngine, step by step.
- Install Maps.
- Put the code in a template.
This example comes from the Maps docs: the preview runs exactly the code above.