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:


 

Comments  

 
# eventide 2013-01-09 03:18
I've read the documentation - maybe I missed it, but I don't see WHERE to put the code for the map. I put it in the article text (in source code view), but then the code text shows on the web page. If I need to put it in the code for the specific page I want the map on, where do I find that? (I'm new to Joomla)
 
 
# kksou 2013-01-09 05:06
Hi,

1) No. Please do not use the source code view. Please simply enter the code in the default WYSISYG (what-you-see-is-what-you-get) mode.

2) Please also make sure that you have enabled the plugin. When you see the tag on your screen, it could mean the plugin is not enabled.

3) If (1) and (2) still don't work, then it could mean it's a conflict with your other plugins or modules - in which case it will be very difficult to resolve if you are new to Joomla.

Please give the above a try and let me know if it works.

Regards,
/kksou
 
 
# eventide 2013-01-09 03:21
(I've seen similar comments about my difficulty elsewhere on your site - perhaps you could amend your documentation to be more specific for us newbies!)
 
< Prev   Next >

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