googleDirections - To Here - plugin Tutorial 01: Getting Started
Written by kksou   
Wednesday, 08 February 2012

This is part 1 of a series of tutorial for the googleDirections - To Here - plugin.

Using the googleDirections plugin is as easy as 1-2-3:

  1. Specify your Home Address - i.e. the end point, or where you want your customer to go to. This can be real address or in latitude/longitude.
  2. Specify the width, height and dir_width. This sets the size of your map (width and height), and also the width of the directions (dir_width).

Different ways of specifying Start and End points

  1. You can specify the start and end point using real address
    • Enclose from and to in double quotes (")
    • Enter the full address in one line. If you're not in US, specify your country too.

    {googleDir_tohere width=320 height=360 dir_width=275
    home_addr="1600 Amphitheatre Parkway, Mountain View CA 94043"}
    

    MapDirections
    Coming from:

  2. You can specify the start and end point using latitude / longitude
    • This method allows you to pinpoint very accurately to the exact start and end points that you want, especially when Google cannot decode your address correctly.
    • If you need to know the latitude and longitude of the start or end point, you can find out here: Free Geocoder v2.0 by kksou.
    • Enclose the latitude/longitude in double quotes (")
    {googleDir_tohere width=300 height=360 dir_width=275
    home_addr="37.4211444, -122.0853032"}
    

    MapDirections
    Coming from:

Width and Height of the Map and Directions

  • Note that for Google Map with directions, you cannot specify the width and height in percentages. All dimensions are in px.
  • Please make sure you set all the 3 dimensions: width, height and dir_width, otherwise no map or direction will appear on your page.

Zoom Level

You do not need to specify any zoom level.

The default zoom level of the map is automatically set by Google such that the start point and end point are being displayed optimally on the map.

Tutorials for the googleMaps plugin

Tutorials for the googleDirections plugin

Tutorials for the googleDirections_to_here plugin


 

Comments  

 
# Sigmund 2012-06-05 11:06
Hey mate,
firstly thanks for the pluggin

I am using the googleDirection -to Here and i want to add a 3 mile radius around a point on the map.
I also want the website to display a message if the customers post code is outside the 3 mile radius zone.

Any help will be appreciated

thanks
Sigmund
 
 
# Hope Kiah 2012-11-12 12:21
Hi, THis is a Joomla 2.5.8 site. I've used the tohere plugin extensively with no problem before. We are using this code:
{googleDir_tohe re width=320 height=360 dir_width=275 home_addr="856 St. Michael's Drive, Santa Fe NM 87505"}
Any idea why the map is blank?
 
 
# Christian Sosa 2013-08-23 09:27
working in joomla 3? :sad:
 
 
# kksou 2013-08-23 20:42
Yes!

Regards,
/kksou
 
< Prev   Next >

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