Google Maps directions using geographical coordinates (i.e. longitude and latitude)
Written by kksou   
Sunday, 24 May 2009

The following sample shows how to display Google Map directions using geographical coordinates (i.e. latitude and longitude) with the googleDirections plugin.

Instead of using addresses when with the googleDirections plugin, you can also use the geographical coordinates (i.e. latitude and longitude) if you have them.

To insert a Google Map with directions using latitude and longitude, use the following syntax:

{googleDir 
from="37.4219720,-122.0841430" 
to="37.4163228,-122.0250403"}

Note: The foramt for from and to is: latitude followed by ',' and then longitude.

Code used:

{googleDir width=400 height=360 dir_on_right=1 
from="37.4219720,-122.0841430" 
to="37.4163228,-122.0250403"}

MapDirections

Related Articles

You may also want to refer to the following articles:


 

Add comment


Security code
Refresh

< Prev   Next >

Blog - Forum - Privacy Policy - Contact Us
Copyright © 2006-2012. kksou.com. All Rights Reserved