Page 1 of 1
How to display Google directions onto my site
Posted: Wed Jan 17, 2007 10:39 am
by amir
Hello,
I am working on a hotel project and I have to display hotel map as well as directions e.g. if we take the example of hotel carling view then the directions are
From Downtown:
Take Gardiner Expressway West, exit 427 North, exit at Dixon Road turning right onto Dixon Road, turn right at Carlingview Drive, hotel is on your left.
I a able to display hotel map using google map API but I am really looking for Google Directions.
Please advise.
TIA.
Posted: Wed Jan 17, 2007 10:48 am
by feyd
Unless the Google API allows to you pull directions, just redirect the user to the Google maps page(s).
Posted: Wed Jan 17, 2007 10:53 am
by amir
feyd! thanks a lot for your quick response
Unless the Google API allows to you pull directions
,
Do I have to take special permissions from Google? please explain.
just redirect the user to the Google maps page(s).
please explain this also
I am novice in Google API world. please let me understand this just like a php baby.
A great many thanls.
Posted: Wed Jan 17, 2007 11:49 am
by aaronhall
Posted: Wed Jan 17, 2007 11:56 am
by amir
True but I have been looking for Directions not for Map.
Thanks.
Posted: Wed Jan 17, 2007 12:02 pm
by aaronhall
MapQuest has a routing API
Posted: Wed Jan 17, 2007 12:04 pm
by amir
Thanks for your time and support. I 'll try it.
=)
Posted: Wed Jan 17, 2007 12:09 pm
by Luke
google doesn't have an api for routing directions yet, or at least they didn't last time I checked. You have to use a third party to do so. Also, Google maps is not php, it's javascript. This is reference to this comment:
I am novice in Google API world. please let me understand this just like a php baby.
that should be:
I am novice in Google API world. please let me understand this just like a javascript baby.
Posted: Wed Jan 17, 2007 12:15 pm
by amir
I admit I am a PHP baby but not as baby as you take me. I think you have not explored Google Maps yet because most of the code is in PHP. E.g.
-> GoogleMapAPI.class.php

Posted: Wed Jan 17, 2007 12:16 pm
by aaronhall
That's not published by Google. It makes use of Google's javascript API
Posted: Wed Jan 17, 2007 12:19 pm
by amir
Hey! I got it man.
Thanks.