Google map
I have a link to Google map on a website, with the title "Get diredctions".
This link takes the user to Google maps home page.
What I would like is for the user to land on the Google maps page, but with the destination already set at a specified location.
Any help would be great..
Megan posted this at 17:40 — 16th June 2009.
She has: 11,421 posts
Joined: Jun 1999
Why don't you embed the google map in your page rather than sending them to the google maps site?
Which url did you use to link to the map? When you search for an address there should be a button on the left side to get a link to that particular map.
Megan
Connect with us on Facebook!
benjy posted this at 09:52 — 17th June 2009.
They have: 32 posts
Joined: Jun 2009
Hi - Thanks for the reply.
I had considered embedding the map within the page(s), but the site in question is a directory of local businesses, so if I were to to it that way, I think the map would need to locate each business by postcode.
I maintain the site for free, so the amount of work involved puts me off!
The URL I use is simply:
http://maps.google.co.uk/
What I would like to happen is when the user gets to this map, the destination is already set to a default location (the link to the map is to get directions).
I'm thinkining this will just be some JavaScript. Am I correct?
Thanks
Kiss Computing
Megan posted this at 16:00 — 17th June 2009.
She has: 11,421 posts
Joined: Jun 1999
So you want to automatically get a link for a certain address, is that right? Check the google maps API docs. There must be a way to do that.
webwiz posted this at 21:35 — 17th June 2009.
He has: 629 posts
Joined: May 2007
1. Visit Google maps
2. Zoom to your preferred size
3. Right-click the "link" at the top right of the map
4. Copy the link location to the clipboard
5. Paste as a link on your web page
Cordially, David
--
delete from internet where user_agent="MSIE" and version < 8;
benjy posted this at 10:17 — 18th June 2009.
They have: 32 posts
Joined: Jun 2009
Thankyou both for your help.
The above method still brings up the home page of Google Maps..
I have since discovered a forum about Google maps, so will hopefully get some further help there.
Kiss Computing
webwiz posted this at 05:59 — 19th June 2009.
He has: 629 posts
Joined: May 2007
Perhaps you did not include the entire URL? It is quite long.
The method I described certainly brings up the exact location when I do this-- not the home page.
Cordially, David
--
delete from internet where user_agent="MSIE" and version < 8;
benjy posted this at 08:40 — 19th June 2009.
They have: 32 posts
Joined: Jun 2009
Hi again,
I have found this method:
http://maps.google.com/?daddr=town england
Thankyou again for your help.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.