googleDirections plugin |
| Written by kksou | ||||||||||||||||
| Monday, 11 May 2009 | ||||||||||||||||
|
This plugin allows you to include one or more driving, walking or bicycle directions provided by Google Maps right inside your content item or article. This is a light-weight plugin using only about 20K of codes. If you need to display driving or walking directions to your company, or from one place to another, this is the plugin. If you want to allow users to find ways to your office or some designated place, use the googleDirections - To Here - plugin Be a SponsorIf you find this plugin useful, Secure Payments by PayPal. Unique Features
Thanks to Chaminda and Marc for sharing and highlighting this. User ReviewThis plugin is listed in the The Joomla! Extensions Directory: See User Review If you like this plugin, please post a review at the Joomla! Extensions Directory Latest Versionv1.0.12 (for Joomla 1.0), v1.5.12 (for Joomla 1.5), v1.6.12 (for Joomla 1.6), v1.7.12 (for Joomla 1.7), v2.5.12 (for Joomla 2.5)
Geocoding your addressIf you wish to know the latitude and longitude of your start point or end point, you can find out here: Free Geocoder v2.0 by kksou. googleMaps PluginThis plugin is for showing directions using Google Maps API. If you just need a simple map (without any driving directions), you can use the googleMaps plugin. googleDirections - To Here - pluginIf you want to allow users to find ways to your office or some designated place, use the googleDirections - To Here - plugin. Live DemoBelow you can see a live demo of the plugin. Note that you can include more than one map directions within an article. Demo 1: Driving Directions from Google to Yahoo tag used: {googleDir width=400 height=360 dir_width=275 from="1600 Amphitheatre Parkway, Mountain View CA 94043" to="701 First Avenue, Sunnyvale, CA 94089"}
Demo 2: Walking Directions from Union Square to Ghirardelli Square, San Francisco tag used: {googleDir width=360 height=360 dir_width=275 mode=walking from="333 Post St, San Francisco, CA 94108" to="900 N Point St, San Francisco, CA 94109"}
Demo 3: Driving Directions using map from KML file tag used: {googleDir lat=21.279491 long=-157.744741 zoom=14 from="21.271685,-157.822852" to="21.26013471,-157.8183115" kml=http://www.kksou.com/gmap/test/kml_sample4.kml}
How to useTutorials
{googleDir from="1600 Amphitheatre Parkway, Mountain View CA 94043"
to="701 First Avenue, Sunnyvale, CA 94089"}
[Live Demo]
Note that:
{googleDir width=480 height=360
from="1600 Amphitheatre Parkway, Mountain View CA 94043"
to="701 First Avenue, Sunnyvale, CA 94089"}
[Live Demo]
{googleDir lat=53.91081 long=-2.565308 width=480 height=360 zoom=9
from="Glasgow, UK" to="Manchester, UK"
kml=http://econym.googlepages.com/lancashire.kml}
Note that when you use kml files, you have to specify the latitude and longitude of the centre of the map.
{googleDir control=GLargeMapControl3D
from="1600 Amphitheatre Parkway, Mountain View CA 94043"
to="701 First Avenue, Sunnyvale, CA 94089"}
You can add multiple controls by delimiting with '|' as follows:
{googleDir control=GLargeMapControl|GMapTypeControl
from="1600 Amphitheatre Parkway, Mountain View CA 94043"
to="701 First Avenue, Sunnyvale, CA 94089"}
Other common map controls are as follows: For complete list, please refer to Goolge Maps Controls Overview. For example, to display a Google Earth satellite image, use the following syntax:
{googleDir control=GLargeMapControl3D maptype=G_SATELLITE_MAP
from="1600 Amphitheatre Parkway, Mountain View CA 94043"
to="701 First Avenue, Sunnyvale, CA 94089"}
Other common map types are as follows: For complete list, please refer to Common Map Types. e.g. to display the Goolge Maps control in Russian, use:
{googleDir width=400 height=360 dir_width=275 lang=ru
from="1600 Amphitheatre Parkway, Mountain View CA 94043"
to="701 First Avenue, Sunnyvale, CA 94089"}
[Live Demo]
To display the Goolge Maps control in Japanese, use:
{googleDir width=400 height=360 dir_width=275 lang=ja
from="1600 Amphitheatre Parkway, Mountain View CA 94043"
to="701 First Avenue, Sunnyvale, CA 94089"}
[Live Demo]
You can look up the entire list of supported languages here.
{googleDir mode=walking
from="1600 Amphitheatre Parkway, Mountain View CA 94043"
to="701 First Avenue, Sunnyvale, CA 94089"}
[Live Demo]
To insert a Google Map with bicycling directions (Note: currently only available in the US, use the following syntax:
{googleDir mode=bicycling
from="1600 Amphitheatre Parkway, Mountain View CA 94043"
to="701 First Avenue, Sunnyvale, CA 94089"}
[Live Demo]
The default mode (when you don't specify any mode) is driving.
{googleDir map_on_right=1
from="1600 Amphitheatre Parkway, Mountain View CA 94043"
to="701 First Avenue, Sunnyvale, CA 94089"}
[Live Demo]
{googleDir vertical=1
from="1600 Amphitheatre Parkway, Mountain View CA 94043"
to="701 First Avenue, Sunnyvale, CA 94089"}
[Live Demo]
{googleDir hide_direction_text=1
from="1600 Amphitheatre Parkway, Mountain View CA 94043"
to="701 First Avenue, Sunnyvale, CA 94089"}
You can see a sample here: Show map directions with maps only (and text description hidden) .
{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"}
[Live Demo]
To display the distance as kilometers, use the following syntax:
{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"}
[Live Demo]
Multiple DestinationsTo have a Google Map Directions with multiple destinations or stopovers, please refer to the following article: Google Maps directions with multiple destinations DownloadFor Joomla 1.0, please make sure you have installed googleMaps plugin v1.0.18 for this plugin to work.For Joomla 1.5 and above, the installation package will also install the latest version of googleMaps plugin required for this plugin. Joomla 1.0.x: googleDirections_v1.0.12.zip
Joomla 1.5.x: googleDirections_v1.5.12_package.zip Joomla 1.6.x: googleDirections_v1.6.12_package.zip Joomla 1.7.x: googleDirections_v1.7.12_package.zip Joomla 2.5.x: googleDirections_v2.5.12_package.zip Remove the "Powered by" linksIf you find the plugin useful and would like to use the plugin without the "Powered-by" links, you may do so by purchasing a "Powered-by" removal license for only USD $10 per site. Secured payment is processed by 2checkout.com. All major credit cards are accepted, including Visa, Mastercard and American Express, etc. You can also pay by PayPal. Once the transaction is completed, you will be given a link to download the version with the "Powered by" links removed. History
Thanks to Nina and Warren for highlighting that the plugin does not work in IE. A quick google will reveal that this seems to be a prevalent problem especially with IE6. Have fixed this in the new version. The googleMaps and googleDirections plugins now work with IE6 and above. Note that rendering of the Google Maps in IE6 is relatively slower than that in other browsers. So please be a bit patient. Also it seems that in IE6 the map marker icons (the little red teardrops) were not rendering properly. Bug fix: when swapping the map and directions from left to right, the headings are now displayed correctly. uses googleMaps plugin for map display Important: the googleDirections plugin now makes use of the googleMaps plugin to display the map. So please make sure you have installed the googleMaps plugin for this plugin to work. Added support for the plugin googleDirections - To Here - plugin This is in response to Gasta's post titled "GoogleDir without directions!" He would like to display the google map with multiple destinations, but hide the text description on the right. This new version supports this with the addition of the new parameter: hide_direction_text=1 You can see a sample here: Show map directions with maps only (and text description hidden) . Native version of the googleMaps plugin for Joomla 1.6 and Joomla 1.7! Also, support for PHP v5.3.8 for both Joomla 1.6 and Joomla 1.7. Now uses Google Maps API v3! Key advantages in Google Maps API v3 includes: New Features: Thanks to feedback from Florian who found out that the reverse geocode lookup by Google sometimes do not gives the right mapping. Have modified the code so that the googleDirections plugin now maps the exact location when latitude/longitude are given for the starting, ending and stopover points. v1.0.12 (for Joomla 1.0), v1.5.12 (for Joomla 1.5), v1.6.12 (for Joomla 1.6), v1.7.12 (for Joomla 1.7), v2.5.12 (for Joomla 2.5) Native version of the googleDirections plugin for Joomla 2.5! |
||||||||||||||||
| Last Updated ( Wednesday, 13 May 2009 ) | ||||||||||||||||
| < Prev | Next > |
|---|





Comments
You can use the standard browser File Print. The latest googleMaps API v3 now renders correctly when using the browser's print function.
Regards,
/kksou
Uninstall = Failed loading XML file
Also, which API key do I need to get - there are FIVE separate API services that can be enabled in the Google API Console.
Please clarify these things if you want your plug-in to be used more!
You have asked similar question in the article "Google Maps directions using geographical coordinates (i.e. longitude and latitude)"
1) As described there, this is a Joomla plugin. As the name suggests, you use a plugin within a Joomla article. So you create a new article and place the code within the article.
2) 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.
3) 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.
4) With the latest version which uses the Google Maps API v3, you DO NOT need to key in the API key.
Regards,
/kksou
Is the any kind of limitation to trace directions?
I'm using Joomla 2.5 with googleDirection 2.5.7
Please refer to the following google page in the heading "Usage Limits":
developers.google.com/.../...
"Individual requests for driving, walking or cycling directions may contain up to 8 intermediate waypoints in the request."
Regards,
/kksou
Thnks
Have just emailed you.
Please let me know if you didn't receive it.
Regards,
/kksou
RSS feed for comments to this post