googleDirections - To Here - plugin
Written by kksou   
Monday, 01 June 2009

This plugin is an extension of the googleDirections plugin. You specify a designated place to be the destination, and let the user enter the adddress he or she is coming from. Google will then provide the driving or walking directions from the user-specified address to your designated place.

Available for all Joomla versions: Joomla 1.0.x, native 1.5.x, 1.6.x and 1.7.x!


Unique Features

  • Uses the latest Google Maps API v3
  • You can embed multiple Google Directions_to_here within an article
  • Each Google Direction can be of different size, map control and map type
  • Support for kml files
  • You can specify the "home position" using real address or longitude/latitude points
  • Built-in street view!
  • Support for many native languages e.g. Italian, Russian, French
  • Available for all Joomla versions: Joomla 1.0.x, native 1.5.x, 1.6.x and 1.7.x!

User Review

This plugin is listed in the The Joomla! Extensions Directory: To Here plugin for googleDirections

If you like this plugin, please post a review at the Joomla! Extensions Directory

Latest Version

v1.0.8 (for Joomla 1.0), v1.5.8 (for Joomla 1.5), v1.6.8 (for Joomla 1.6), v1.7.8 (for Joomla 1.7), v2.5.8 (for Joomla 2.5)
Released Feb 4, 2012

  • added support for Joomla 2.5
  • add flag w3c=1 => w3c compliant
  • support for IE7!
  • allow googleMaps to display in tabs
  • now allows address to include ' (apostrophe)
  • support for vertical alignment

Geocoding your address

If 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 Plugin

This 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 Plugin

This plugin has the destination fixed at your designated place.

If you want to be able to specify both the starting point and destination as variables, please use the googleDirections plugin.

Demo

Below you can see a live demo of the plugin. The destination is Google Inc. in Mountain View, California. Enter some address in US, and let Google shows you how to get there.

MapDirections
Coming from:

MapDirections
Coming from:

MapDirections
Coming from:

How to use

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.
Important: This plugin makes use of the googleMaps plugin and googleDirections plugin to display the map. So please make sure you have installed googleMaps plugin v1.0.18/1.5.18/1.6.18/1.7.18/2.5.18 (or above) and googleDirections plugin v1.0.12/1.5.12/1.6.12/1.7.12/2.5.12 (or above) for this plugin to work.

If you have downloaded and installed the above plugins before the Christmas of 2011 (i.e. Dec 25, 2011), you are using the old version. Please update the two plugins to the latest version.

Tutorials

  1. To insert a Google Map with directions, use the following syntax:
  2. {googleDir_tohere width=400 height=360
    home_addr="1600 Amphitheatre Parkway, Mountain View, CA 94043"}
    

    Note that:

    • Enclose from and to in double quotes (")
    • Enter the full address in one line. If you're not in US, specify your country too.


  3. You can also use the latitude and longitude for precise location:
  4. {googleDir_tohere width=400 height=360
    home_lat=37.4219720, home_long=-122.0841430}
    
  5. You can set the width of the address input in the Parameters page.
  6. You can change the text "Coming from:" to your own language in the Parameters page.
  7. You can change the button label "Get Directions" to your own language in the Parameters page.

Download

For Joomla 1.0, please make sure you have installed googleMaps plugin v1.0.18 and googleDirections plugin v1.0.12 for this plugin to work.
For Joomla 1.5 and above, the installation package will also install the latest version of googleMaps plugin and googleDirections plugin required for this plugin.


Remove the "Powered by" links

If 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

  1. v1.0.1 (for Joomla 1.0) and v1.5.1 (for Joomla 1.5)
    Released July 24, 2009
  2. This is in response to Chris's request to allow multiple lines for the home label.

    For new lines, please use ~ (similar to that of the googleMaps plugin). Please refer to here for details.

  3. v1.0.2 (for Joomla 1.0) and v1.5.2 (for Joomla 1.5)
    Released August 15, 2009
  4. Fixed the bug: <br /> appears in destination. Thanks to Rentawebguy for highlighting this.

    Also allows the user to specify a default country. This is in response to Chriscundy's request.

    You can view a sample here.

  5. v1.0.3 (for Joomla 1.0) and v1.5.3 (for Joomla 1.5)
    Released October 1, 2009
  6. Fixed the bug: "Notice: Undefined variable: map_id in /var/www/html/rcl122/plugins/content/googleDirections_tohere/googleDirections_tohere.lib.php on line 126". Thanks to Rockiesrider for highlighting this.

  7. v1.0.4 (for Joomla 1.0) and v1.5.4 (for Joomla 1.5)
    Released June 15, 2010
  8. allow user to specify default country

    allow user to display multiple maps with to_here directions

  9. v1.0.4 (for Joomla 1.0), v1.5.4 (for Joomla 1.5), v1.6.4 (for Joomla 1.6), v1.7.4 (for Joomla 1.7)
    Released October 20, 2011
  10. 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.

  11. v1.0.5 (for Joomla 1.0), v1.5.5 (for Joomla 1.5), v1.6.5 (for Joomla 1.6), v1.7.5 (for Joomla 1.7)
    Released Nov 15, 2011
  12. Now uses Google Maps API v3!

    Key advantages in Google Maps API v3 includes:

    • Built-in street view!
    • You no longer require the Google API Key - what this means is that you can now access the google maps from your local machine!
    • Google now provides road directions by bicycle!

  13. v1.0.6 (for Joomla 1.0), v1.5.6 (for Joomla 1.5), v1.6.6 (for Joomla 1.6), v1.7.6 (for Joomla 1.7)
    Released Dec 24, 2011
  14. Support for multiple stopovers!

  15. v1.0.7 (for Joomla 1.0), v1.5.7 (for Joomla 1.5), v1.6.7 (for Joomla 1.6), v1.7.7 (for Joomla 1.7)
    Released Jan 03, 2012
  16. 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_tohere plugin now maps the exact location when latitude/longitude is given when specifying the "home position".

    One other new feature for this new version is that: the user can now press the Enter key (as oppose to pressing the "Get Directions" button) to get the directions to your home position.

  17. v1.0.7 (for Joomla 1.0), v1.5.7 (for Joomla 1.5), v1.6.7 (for Joomla 1.6), v1.7.7 (for Joomla 1.7), v2.5.7 (for Joomla 2.5)
    Released Jan 26, 2012
  18. Native version of the googleDirections - To Here - plugin for Joomla 2.5!


 

Comments  

 
# Patryk 2012-02-07 08:59
Hello this plugin is supperiour. But got three questions:
1/ How to turn on the bicycle mode?
2/ How to turn on street view?
3/ Can't get the label to be seen on map.
 
 
# kksou 2012-02-08 08:04
Hi,

For (1) How to turn on the bicycle mode?
Please refer to: Tutorial 03: Travel Modes http://www.kksou.com/php-gtk2/Joomla-Tips-Techniques/googleDirections-To-Here-plugin-Tutorial-03-Travel-Modes.php

For (2) How to turn on street view?
Did you see the yellow "Pegman" on the top left hand corner of the map? Click and drag that Pegman to the place you want to see the street view.
Details here: maps.google.com/help/maps/streetview/learn/using-street-view.html

For (3) Can't get the label to be seen on map
Please refer to: Tutorial 02: Adding Label to Home Address http://www.kksou.com/php-gtk2/Joomla-Tips-Techniques/googleDirections-To-Here-plugin-Tutorial-02-Adding-Label-to-Home-Address.phpa

Regards,
/kksou
 
 
# Patryk 2012-02-08 12:43
Thank you for response, sorry I missed to find those tuts on my own. Forum is a blog so I would write here my idea. It would be grat if to here plugin would have option to choose which navigatin use. For example with checkbox or select from walk car bicycle.
 
 
# Ericv24 2012-02-08 13:18
So, I put the latest version of the plugin on my site and it shows everything but the map. I only get a blue screen their. Am I missing something?

http://dimondtuxedo.cloudaccess.net/contact-us.html
 
 
# Patryk 2012-02-13 03:26
hey
I had the same problem, try to clean your vars from styles. F.e. copy paste to windows notepad and than back to your joomla.
 
 
# Patryk 2012-02-13 13:40
Ok so got another 2 questions.
1/ How to make label visible at start?
2/ How to make it to specify road from closest street?? Cos for now when I will put a close one street, it will show me a way from street with same name but in other town, mostly like 500miles further?
regards
 
 
# Charlene 2012-03-05 06:17
Hey there,

I'm using a Joomla version 1.5 and installed the correct version of this plugin corrosponding to my joomla but whenever I embed the code:{googleDir _tohere width=320 height=360 dir_width=275 home_addr="Handelstraat 9, 7817 RC Geesbrug, Nederland" lang=de}
The top of my page shows:
table.googleDirection s_tohere td { font-family: Verdana, Arial, sans serif; font-size: 11px; margin: 2px; } table.googleDirection s_tohere th { background-color:#EEEEEE; } table.googleDirection s_tohere img { color: #000000; } table.googleDirection s_tohere button { font-family: Verdana, Arial, sans serif; font-size: 11px; } table.googleDirection s_tohere input { font-family: Verdana, Arial, sans serif; font-size: 11px; } Can't seem to get rid of this code not sure what I've done wrong here. Can ya help me pls?
 
 
# kksou 2012-03-05 17:37
Hi Charlene,

Have just emailed you a modified version that should make the codes disappear.

Do let me know if it works, ok?

Regards,
/kksou
 
 
# Nesa 2012-03-05 07:49
Hi there,

thanks for great plugin! I need to know is there a way to show multiple Direction To Here markers on same map. So to have one map, with two marks, is this posible?
 
 
# kksou 2012-03-05 17:17
Hi,

Do you want to elaborate what are you trying to achieve?

The plugin is for a simple purpose: You want to allow people to go from Point A to your place (Point B). There's only one Point B. So why should there be multiple markers?

Regards,
/kksou
 
 
# Christoph 2012-04-18 10:47
Hello,
Is it possible to add a Print-Route-button or an email-route-button after the route ist shown on the screen? because when i want to print it regular i have to print the complete page.
Thanks for an short answer if anyone knows some thing.

Greetings
Christoph
 
 
# kksou 2012-06-08 00:08
Hi Christoph,

Sorry for not replying earlier. I actually tried to work on the feature, but it's not as easy as it seems. Google does not provide any API for this purpose, so you basically have to write the code yourself from scratch to achieve what you've mentioned.

Will let you know if I managed to get it working.

Regards,
/kksou
 
 
# Sigmund 2012-06-07 04:31
Hi
thanks for the plug in
i am using the googleDirection -tohere plug in.
I need to add a 3 mile radius from a postcode on the map and want to display a message to postcodes outside the 3 mile radius.

Thanks
 
 
# kksou 2012-06-08 00:05
Hi,

This is a simple plugin with one purpose in mind: to give direction from Point A (one specified by user) to your designated place. It does not do other things, like the one your desired.

There are many other heavy-weight plugins which do very complicated stuff. You might want to try those in joomla.org and see if there's one that suit your needs.

Regards,
/kksou
 
 
# mtjweb 2012-06-08 02:45
I've installed the Google Directions Tohere plugin on an purple background. When I hover over it, the plugin changes the background to white.

Any idea where I can change this. I don't want it to change the background.
 
 
# Dhanushka 2012-07-23 08:34
:roll:
thanks....
 
 
# Joad 2012-08-15 14:31
Please, at the backend, do I need to enter the API key? If yes, how do I get it. Sorry about this foolish question. I am a newbie here.
Thanks
 
 
# kksou 2012-08-15 15:12
No. With the latest googleMaps API v3, you do not need to enter the API key.

Regards,
/kksou
 
 
# Adam P 2012-09-26 08:22
I've downloaded the googleDirection - To Here plugin and would like to have the location bubble open automatically and have a logo in there...how would I go about doing that?
 
 
# vanaraj 2012-11-11 22:24
Hi
thanks for the plug in
i am using the googleDirection -tohere plug in.

how to remove the map description
 
 
# kksou 2012-11-14 18:53
Hi,

Would you please elaborate what do you mean by "map description"?

Regards,
/kksou
 
 
# tm_1605 2012-11-19 05:13
is there any possibility to integrate a print-button?
 
 
# Tomy 2012-12-10 12:27
Hi, I don't know if you know FlexiContent but it's a default CCK that works directly with Joomla default com_content to create items with various different layout and it even accept Joomla content plugins.

We purchase a subscription to have the powered by ...... to be removed on Google Directions To Here so that we can use this plugin with FlexiContent for all our categories but we can't get it to work, when we use the plugin, even in default Joomla article, we get the plugin code {google_Dir.... but the map is not showing, can you please assist us to make it working as we like this plugin very much!
 
 
# thomasg 2013-01-01 00:56
Hi nice plugin. I am adding this plugin to an older joomla 1.5 website and it works great only when I try to adjust the directions column width under this div - "gdir_tohere_gdi r0" the google map directions ignores the set width and creates overlaping text and a bottom scroll bar I see it works fine on your site ( tested with firebug) DO you know what is causing this? Thanks
 
 
# bvmandy 2013-02-07 05:42
hey there

it seems that I don't get the plugin to understand my end address. the label stays in the middle of the south atlantic ocean. i also don't get directions.
I have tried it with an address and with lattitude and longtitude. this is my code

{googleDir_tohe re width=400 height=360 dir_width=275 mode=driving home_lat=51.2322343, home_long=5.432169 home_label="Google Inc." lang=nl}
 
 
# kksou 2013-02-07 06:54
Hi,

Please refer to the tutorial: googleDirections - To Here - plugin Tutorial 01: Getting Started

Please try the sample code there first and see if it works on your server.

If it works, then replace with your address.

Please also use the Google Geocoder v2.0, key in your address and double check that your longitude and latitude are correct.

Regards,
/kksou
 
 
# Shonn 2013-03-27 08:18
Is it possible to not ask this to do more, but actually less?

Could i get it to pull only the miles and travel time and nothing more?

Ignore the directions and the map just produce the simple miles apart and projected travel time?

I am comfortable with adjusting code if its even possible to do in this case.
 
 
# mattb 2013-04-17 09:07
Hello,

I have recently started using the To Here plugin for googleDirection s and I have 2 questions regarding its function:

1) When the directions appear sometimes it is duplicated? Is there anyone to stop this from happening?
2)After the directions have been generated, I click on the print button within my Joomla page and it opens a new window to print from, however it is just the map without the directions and it requires you to reinsert the address you are coming from. Is it possible to have the print screen keep the original "Coming from" address in that print window along with the directions and map?

Thanks.
 
 
# kksou 2013-04-17 09:28
Hi,

1) Can you show me a url that displays this? Will need to do a view source of the page to gather more clues as to what might be the problem.

2) Currently joomla/google does not provide an API to do so.

Regards,
/kksou
 
 
# mattb 2013-04-17 09:58
Hello again,

Is there a seperate license required if this plug-in is used on our small company website?

Also, our site is not online yet and still under development. Is there an email I can send it to you not in a public forum?

Thanks again!
 
 
# prysmos 2013-05-03 01:37
Hi

This is a very nice and useful plugin,thank you for providing it for free. It works fine however I have a small glitch on my side. The direction talk bubble graphic is broken and the text is set to white which is not visible unless you highlight it. Here the sample image http://i43.tinypic.com/wmc5w.jpg

Just in case you need to look at codes here is the link of my site http://guesthousehuahinbdl.com/index.php/en/locations/get-direction/transportation

Thanks
 
 
# kksou 2013-05-06 02:04
Hi,

The entire googlemap is returned by google.com. It's not set in my plugin.

Please refer to googleMaps documentation

Search for "class InfoBoxOptions" and then the "boxClass" properties. You will see that the CSS is defined by "infoBox".

So try to set "infoBox" in your Joomla style sheet and see if you can change the font color or background color.

Regards,
/kksou
 
 
# Afland 2013-08-11 11:23
;-) Very great job. Thanks for the job. I'd want to try google directions to here on a site in production with joomla3. Is there a version for joomla3?
 
 
# kksou 2013-08-13 07:42
Hi,

Sorry for the late reply. I'm currently on a business trip right now with little access to the internet.

Have just emailed you the google_directio ns_tohere plugin for Joomla 3.0.

Let me know if it works, ok?

Regards,
/kksou
 
 
# ThomasF 2013-08-14 05:15
Hi there,

This plugin looks great. I was just wondering if I can use this map on a website with a shop (I couldn't find a 'buy commercial license' button).

Regards,
Thomas
 
 
# FG 2013-08-15 08:41
don't know if you'll have time for that, but a great step to fit a nned of mine would be to get the stopovers from registered users addresses or a social component... and th eplugin to become a component for which one I'm ready to subscribe !!! Regards and thanx for sharing for free at this time, great plugin
 
 
# Christian Sosa 2013-08-23 08:03
8) Just Chipped in 7bucks my friend, do an update soon!
 
 
# kksou 2013-08-23 20:42
Hi Christian,

Have just emailed you.

Please let me know if you didn't receive it.

Regards,
/kksou
 
 
# LenaTime 2013-08-25 11:52
Great app! It's is really light-weight and relatively easy to install. I emailed you about a print function, but I see it is, or has, already been addressed several times. I will also send you a payment for each site I use it on. Though I hope the none print function may be show-stopper, so to speak. I hope not because I like how light and easy your product is. Anyway, do you have any plans for adding a print function?
 
 
# LenaTime 2013-08-25 11:56
My last post wasn't very clearly written, but you get the jest of what I'm saying right? So not having a print feature may be a show-stopper for some of my clients. Not sure yet. I am hoping you'll be able to add a print feature! Thanks again for your great work!
 
 
# kksou 2013-08-26 17:05
Hi,

I know what you want. But problem is Google does not provide any API for this.

If you want to achieve that, you need to write quite a bit of code. I can do that if it's my own site, because I can add codes to my own page.

But to make it a generic Joomla plugin that runs on any site, it's a bit of a challenge, because I don't have write access to your page. I need to run some javascript when your page is loaded - this requires you to add some javascript to your page yourself. I don't think anyone knows how to do this, and everyone is comfortable doing this.

Have you tried any other module or plugin that have this functionality? If you can find one, let me know and I can see how others do it.

Regards,
/kksou
 
 
# SeanR 2013-12-11 07:12
Hello, I was wondering if you had a responsive version of this plugin?
 
 
# pam 2013-12-20 21:16
are you going to post a link to your joomla 3.x version?
 
 
# Follewagen 2014-01-09 21:58
Quoting Afland:
;-) Very great job. Thanks for the job. I'd want to try google directions to here on a site in production with joomla3. Is there a version for joomla3?


I have the same request? Would x2.5 work on a x3.2 site?
 
< Prev   Next >

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