Appearance
Direction/Route Tag
Return multi-part directions for a series of waypoints. Directions for several modes of transportation are available.
The tag
{exp:reinos_maps:route}
Tag parameters
Below are the Tag Parameters. Those parameters can be used in the tag described above.
address:from
A from address name, can also a name like 'reichenbach im vogtland or amsterdam or america'.
address:from="" [REQUIRED] if latlng:from is empty
latlng:from
latitude longitude coordinates
latlng:from="" [REQUIRED] if address:from is empty
address:to
A to address name, can also a name like 'reichenbach im vogtland or amsterdam or america'.
address:to="" [REQUIRED] if latlng:to is empty
latlng:to
latitude longitude coordinates
latlng:to="" [REQUIRED] if address:to is empty
address:waypoints
Stops between the from and to point. addresses seperated with a pipline '|'
address:stops="" [OPTIONAL] if latlng:stops is empty
latlng:waypoints
Stops between the from and to point. latitude longitude coordinates seperated with a pipline '|'
latlng:stops="" [OPTIONAL] if address:stops is empty
optimize_waypoints
By default the waypoints are in order how you request it. To have a better and optimized route, you can enable this param so it gives you a better route.
optimize_waypoints="no" [OPTIONAL]
travel_mode
set the travel mode.
values: driving
walking
walking
travel_mode="driving" [OPTIONAL]
avoid
values: tolls
highways
ferries
You can use multiple options separated with a pipeline (|)
avoid="tolls" [OPTIONAL]
lang
Set the language based on the language code
lang="en" [OPTIONAL]
Tag variables
Below are the Tag variables. (note the prefix directions:
)
direction:distance:text
The distance
{direction:distance}
direction:duration
The duration/time
{direction:duration:text}
direction:start_location
The start location
{direction:start_location}
direction:end_location
The end location
{direction:end_location}
direction:steps
The steps pair tag hold all the steps to on the route
{direction:steps}...{/direction:steps}
direction:steps:distance
The distance
{direction:steps}
{direction:steps:distance}
{/direction:steps}
direction:steps:duration
The duration/time
{direction:steps}
{direction:steps:duration}
{/direction:steps}
direction:steps:location
The location where the action should take
{direction:steps}
{direction:steps:location}
{/direction:steps}
direction:steps:instruction
Formatted HTML instructions of the step
{direction:steps}
{direction:steps:instruction}
{/direction:steps}
direction:steps:travel_mode
The travel mode
{direction:steps}
{direction:steps:travel_mode}
{/direction:steps}