How do I include a link to driving directions in an embedded Google Map?
-
What is the best way to embed a Google Map of a business's location, including a link to driving directions? This is for a small business's website. All I want is a small embedded map of the business's location, with a standard pop-up flag including links for driving directions, the address, etc. (Basically like what you see http://maps.google.com/maps?f=q&hl=en&geocode=&q=foo&sll=33.751836,-84.329203&sspn=0.026762,0.039053&ie=UTF8&om=1&ll=33.826647,-84.118195&spn=0.106953,0.156212&z=13&iwloc=B, but without the extra search results on the left-hand side. If there's a better input method for requesting driving directions, that would be fine too. I would think that providing a map & driving directions to a specific business would be one of the most common uses of the http://www.google.com/apis/maps/, but I don't see any examples of what I'm looking for. Surely, there must be a simple, standard way to provide driving directions on your website⦠Right?
-
Answer:
Here's an example of using driving directions with the http://www.google.com/apis/maps/documentation/directionsAdvanced.html. You could simply hard code the "To" address ("Mountain View" in their example) and your users would be able to enter their own address.
designbot at Ask.Metafilter.Com Visit the source
Other answers
You could hard code it http://www.frontlineyouth.com/map.html [somewhat self link]. Not the prettiest method, but oh-so-simple.
niles
...which is actually kinda what you link to, so may not work for you.
niles
I recommend http://www.communitywalk.com/ Create the map just the way you like it.. then click on the "Share/Export" tab and copy the code to your own website. Pretty dead simple.
jmnugent
Um, so I'm confused. I guess I have one of two answers: 1) If all you want is a map on your own site showing "here's where we are!" then why not just do a print-screen of that map, slap it into mspaint and save it as a .jpg and host that? It does not need to be an embeddable interactive map, does it? 2) If you want interactivity- showing a mapping app on your site that can provide directions to your store from wherever the customer says they're starting from- then why assume that Google is your only option? I'm horribly biased, but I've always felt that MSN's virtualearth is a vastly better mapping program than Google's- it's slicker, was way ahead of google on some nice interactivity and usability features (bird's eye view, scroll wheel support, permalinks which included the ability to permalink pushpins and notes- great for making walking tours, etc, etc), and has a great http://dev.live.com/virtualearth/sdk/- which, oh by the way, supports driving directions and customizable layout thereof.
hincandenza
Google Maps API is for developers. For your extremely modest needs, it's overkill. Not to mention painful. Just use Google My Maps. It takes longer to http://maps.google.com/support/bin/answer.py?answer=68480 than it does to actually create the map, make it public, and paste the link into your webpage. Dead simple.
nakedcodemonkey
Thanks for the answers so far. I'm still not really seeing anything as straightforward as I had hoped for. null terminated: That option will require more code tweaking than I was hoping for, and doesn't give you any decent printing options. niles: That's functional, but I can't bring myself to have the full Google toolbar across the top of an embedded frame. jmnugent: That might work. I'll have to look at it further. I don't like the embedded ads or the Community Walk banner. hicandenza: I want a map that includes a link for driving directions. Interactivity would be a bonus. I might just have to fake this myself. Your MSN SDK link comes up as an almost-blank page in Safari, so I don't think that's going to work for me. nakedcodemonkey: I don't see a way to do this with My Maps. I don't even see an embedding option.
designbot
nakedcodemonkey
For future reference, I discovered by accident that Google Maps has a brand-new feature that does exactly this, without going through the API at all. Now, when you click on "Link to this page" from a Google map, it gives you a customizable snippet of HTML to paste into your own webpage. It works great!
designbot
Related Q & A:
- How can I show a link to my 360 profile?Best solution by Yahoo! Answers
- How do I save a link to my browser?Best solution by Answerbag.com
- How do I add a link to my email address in my SIGNATURE?Best solution by Yahoo! Answers
- How do I add a link to my video on YouTube?Best solution by Yahoo! Answers
- Should I include a link to my online portfolio in my resume?Best solution by Quora
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.