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. longitude and latitude) with the googleDirections plugin.

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

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

{googleDir 
from="Google Inc.~37.4219720,-122.0841430" 
to="Yahoo Inc.~37.4163228,-122.0250403"}

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

Very Important! This feature only works with googleDirections plugin version 1.04/1.54 and above.

VIP - Joomla 1.0 Users

For the method described in this article to work on Joomla 1.0, you have to do the following:

  • Login as administrator and go to Mambots - Site Mambots.
  • Look for a plugin called Email Cloaking. Please make sure that the order of this comes BEFORE that of the googleDirections plugin.
  • What you can do is to enter 9999 into the order field of the googleDirections plugin and click the reorder button. This will put the googleDirections plugin as the last plugin.

Code used:

{googleDir width=400 height=360 dir_on_right=1 
from="Google Inc.~37.4219720,-122.0841430" 
to="Yahoo Inc.~37.4163228,-122.0250403"}

MapDirections

Related Articles

You may also want to refer to the following articles:



User reviews

There are no user reviews yet.

Note: You have to be a registered member to leave a comment. Free registration here.

 
< Prev   Next >

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