This is part 4 of a series of tutorial for the googleDirections plugin.
- By default, directions are calculated and displayed using the unit system of the origin's country or region.
- For example, a route from "Chicago, IL" to "Toronto, ONT" will display results in miles, while the reverse route will display results in kilometers.
- Origins expressed using latitude/longitude coordinates rather than addresses always default to metric units.
- You can specify the unit system to be used in the driving instructions:
METRIC
specifies usage of the metric system. Distances are shown using kilometers.IMPERIAL
specifies usage of the Imperial (English) system. Distances are shown using miles.
Unit Systems
- In Miles
- In Kilometers
{googleDir width=360 height=360 dir_width=275 unit=IMPERIAL from="333 Post St, San Francisco, CA 94108" to="900 N Point St, San Francisco, CA 94109"}
{googleDir width=360 height=360 dir_width=275 unit=METRIC from="333 Post St, San Francisco, CA 94108" to="900 N Point St, San Francisco, CA 94109"}
Tutorials for the googleMaps plugin
- googleMaps plugin Tutorial 01: Getting Started
- googleMaps plugin Tutorial 02: Zoom Level
- googleMaps plugin Tutorial 03: Language
- googleMaps plugin Tutorial 04: Map Type
- googleMaps plugin Tutorial 05: KML Files
Tutorials for the googleDirections plugin
- googleDirections plugin Tutorial 01: Getting Started
- googleDirections plugin Tutorial 02: Specifying Stopover Points
- googleDirections plugin Tutorial 03: Travel Modes
- googleDirections plugin Tutorial 04: Unit Systems - miles or km
- googleDirections plugin Tutorial 05: Display Directions on the Left
- googleDirections plugin Tutorial 06: Display Directions below the Map
- googleDirections plugin Tutorial 07: Display Directions in your Local Language
- googleDirections plugin Tutorial 08: Specifying Stopover Points
Tutorials for the googleDirections_to_here plugin
- googleDirections - To Here - plugin Tutorial 01: Getting Started
- googleDirections - To Here - plugin Tutorial 02: Adding Label to Home Address
- googleDirections - To Here - plugin Tutorial 03: Travel Modes
- googleDirections - To Here - plugin Tutorial 04: Unit Systems - miles or km
- googleDirections - To Here - plugin Tutorial 05: Display Directions on the Left
- googleDirections - To Here - plugin Tutorial 06: Display Directions below the Map
- googleDirections - To Here - plugin Tutorial 07: Display Directions in your Local Language
- googleDirections - To Here - plugin Tutorial 08: Specifying Stopover Points
Read more...