googleDirections plugin |
| Written by kksou | ||||||||||||||||
| Monday, 11 May 2009 | ||||||||||||||||
|
This plugin allows you to include one or more driving or walking directions provided by Google Maps right inside your content item or article. This is a super light-weight plugin using only about 10K 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 The Google API KeyThe plugin makes use of the Google Maps API provided by Google. As such, please make sure you have the Google Maps API. If you don't have the key, you can sign up for free here. Geocoding your addressThe Google Maps require you to input the geographic coordinates (i.e. the latitude and longitude) of the center of the map (if you're using the kml file). If you do not know the latitude and longitude of an address, you can them find out here: Free Geocoder v2.0 by kksou. Latest Versionv1.08 (for Joomla 1.0) and v1.58 (for Joomla 1.5) 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) . 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. 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
Demo 2: Walking Directions from Union Square to Ghirardelli Square, San Francisco
Demo 3: Driving Directions using map from KML file
More Demos
How to use
{googleDir from="1600 Amphitheatre Parkway, Mountain View CA 94043"
to="701 First Avenue, Sunnyvale, CA 94089"}
Note that:
{googleDir width=480 height=360
from="1600 Amphitheatre Parkway, Mountain View CA 94043"
to="701 First Avenue, Sunnyvale, CA 94089"}
{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 French, use:
{googleMaps lat=37.4219720 long=-122.0841430 lang=fr}
To display the Goolge Maps control in Japanese, use:
{googleMaps lat=37.4219720 long=-122.0841430 lang=ja}
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"}
The default mode is driving.
{googleDir map_on_right=1
from="1600 Amphitheatre Parkway, Mountain View CA 94043"
to="701 First Avenue, Sunnyvale, CA 94089"}
The default mode is driving.
{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) . Multiple DestinationsTo have a Google Map Directions with multiple destinations or stopovers, please refer to the following article: Google Maps directions with multiple destinations Be a SponsorIf you find this plugin useful, Secure Payments by PayPal. DownloadImportant: This plugin makes use of the googleMaps plugin to display the map. So please make sure you have installed googleMaps plugin v1.09/1.59 and above for this plugin to work. Very Important: This plugin works only with PHP5 and higher. It does not work with PHP4 because PHP4 does not support OOP multiple inheritance.Thanks to Chaminda and Marc for sharing and highlighting this. 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 User reviews Average user ratings: 4.0 (from 1 user) Note: You have to be a registered member to leave a comment. Free registration here. |
||||||||||||||||
| Last Updated ( Wednesday, 13 May 2009 ) | ||||||||||||||||
| < Prev | Next > |
|---|
Joomla 1.0 Articles
- How to create a module with DirectPHP plugin?
- How to include modules in Content item?
- How to include modules in Section/Content Description
- How to include PHP commands in Section/Content Description
- How to make plugins process Section/Category descriptions
- Include Code Listing plugin - More Tips and Techniques
- How to have DirectPHP plugin process RSS feed?
- How to have the plugins processed when genrating PDF documents of content items?
- How to have DirectPHP commands processed in Joomla search?
Joomla 1.5 Articles
- How to create a module with DirectPHP plugin?
- How to include modules in Content item?
- How to include modules in Section/Content Description
- How to include PHP commands in Section/Content Description
- How to make plugins process Section/Category descriptions
- Include Code Listing plugin - More Tips and Techniques
- How to have DirectPHP plugin process RSS feed?
- How to have the plugins processed when genrating PDF documents of content items?
- How to have DirectPHP commands processed in Joomla search?
Joomla Plugins
Joomla Components
Joomla Gadgets
- Google Image Search
- Google News Search
- Wikipedia Search
- Google Book Search
- Google Video Search
- Google Currency Converter - AJAX version
- Yahoo Currency Converter - AJAX version
- Yahoo Stock Quote (AJAX module version)
- Yahoo Stock Quote (AJAX component/ module version)
- googleSearch_cse component
- googleSearch_cse module
- googleMaps plugin






4.0 (from 1 user)
November 04, 2009 8:26pm
good.thanks