Voeg toe Google drijfrichtingen aan uw website in kaart brengt
Gepost op 29 April, 2008 in 5:23 am
Ik houd van gebruikend De Kaarten van Google „krijgen Richtingen“ eigenschap wanneer ik moet voorkomen hoe te van punt A aan B. te krijgen. Het is één van de beste manieren te krijgen drijf richtingen in de V.S. zonder twijfel.
Zo wat als u een huwelijkswebsite of een pagina hebt MySpace en u een grote partij werpt, niet het zou aardig als uw gasten naar uw plaats konden gaan zijn, om in het te typen adres zij zullen komen uit en automatisch richtingen worden aan de gebeurtenisplaats!? Niet zeker wat ik bedoel? Typ uw adres hieronder in de doos en u zult richtingen van uw adres aan mijn huis krijgen:
Koel huh? U kunt deze weinig vorm op om het even welke website gemakkelijk tot stand brengen, blog, of overal kunt u één of andere code van HTML aanbrengen! Dit is ook groot voor kleine bedrijfswebsites aangezien u het op uw contactpagina kunt omhoog werpen en de mensen richtingen kunnen worden snel, eerder dan moetend uw adres kopiëren, opent een nieuw venster, en toen type in hun beginnend adres.
Zo hoe gaan wij over het creëren van gewijzigd dit krijgen richtingendoos? Goed eerst, zullen wij de correcte syntaxis voor URL moeten krijgen die Google voor richtingen gebruikt. Gelukkig, kunnen wij dat uit voorstellen door richtingen tussen twee plaatsen te krijgen en dan op te klikken Verzend verbinding bij het hoogste recht.
Hier is wat u omhoog beëindigt krijgend:
Merk de verbinding in het e-mailbericht op! Dat is wat wij nodig hebben! Hier is wat de volledige verbinding als op dit ogenblik kijkt:
http://maps.google.com/maps?f=d&hl=en&geocode=&saddr= 6348+Pratt+Dr, +New+Orleans, +LA+70122+ (Pratt+Home) &daddr=4601+lennox+blvd, +new+orleans, +la&sll=37.0625, - 95.677068&sspn=33.214763, 82.265625&ie=UTF8&z=12
Eeeks! Dat is vrij lang! Er zijn heel wat gebieden in URL, zoals SADDR (beginnend adres), DADDR (bestemmingsadres), hl (taal), en wat meer materiaal met betrekking tot de breedte en de lengte.
Nochtans, hebt u werkelijk elk van deze gebieden niet nodig opdat Google u drijfrichtingen geeft! Allen u wenst is dit:
http://maps.google.com/maps?saddr=start&daddr=end
Ga door en geef het een schot. Gezet in een adres in citaten voor de aanvang en einde richt en kleef URL in uw browser! Ik verving begin met mijn huisstad New Orleans en eind met Houston, TX, zodat is dit wat mijn richtingen URL van Kaarten Google als kijkt:
http://maps.google.com/maps?saddr=“ New Orleans, La“ &daddr=“ Houston, tx“
Vrij handige eh! Niet het pret is met deze soorten dingen rond te knoeien! O.k., zodat nu wij een URL hebben die wij in Kaarten kunnen overgaan Google, wij moet een eenvoudige vorm met twee gebieden, voor het beginnende adres en voor het bestemmingsadres tot stand brengen.
If you want people to just type in their address and get directions to your place, then we’ll want the second field to be hidden and already set to the destination address.
<form action=”http://maps.google.com/maps” method=”get” target=”_blank”>
Enter your starting address:
<input type=”text” name=”saddr” />
<input type=”hidden” name=”daddr” value=”6348 Pratt Dr, New Orleans, LA” />
<input type=”submit” value=”get directions” />
</form>
Check out the code above. The first line starts out form and says that when the submit button is clicked, the data should be sent to maps.google.com/maps. The target=blank means that we want the result to open in a new window. Then we have a text box for the starting address, which is blank.
The second text box is hidden and the value is the destination address that we desire. Finally, there is a submit button with the title “Get Directions”. Now when someone types in their address, they’ll get this:
You can customize the directions and map even more by following the same procedure as I went through above. For example, let’s say you don’t want the default view to be maps, but instead want it to be Satellite and show Traffic. Type in your directions and then press the Satellite and Traffic buttons on the Google map. Next, click on Send and you’ll see the modified URL:
Notice the layer=t and t=h fields in the URL. layer=t is for the traffic layer and t=h means satellite in some strange fashion! Just tack those on to your final URL and you’ve now got a highly customized Google Maps Get Directions form on your site! Source: AskDaveTaylor
Have any issues with this, post a comment and I’ll try to help! Enjoy!
If you enjoyed this post, make sure you subscribe to my RSS feed!
» Filed Under Google Software/Tips
Related Posts
- Create free website contact form without sharing your email address
- Guide to Creating Personalized Maps using Google My Maps
- Google Search Tips - Shortcuts search methods
- How to add website shortcuts to the Windows Start Menu
- Google Maps Traffic!

























Really cool feature. I have tried it before, it’s really helpful.
Thanks.
Great post! Thanks for the valuable information and insights you have shared here.
This is my favorite website because there are greatest posts.
Thanks to all
Hi, do you have any idea how to convert a google map to pdf, so I can draw arrows on the maps and make notes? Thanks.
It’s a nice feature which we have recently added to our website.
I would also very much like to have the option to save the directions as a pdf file and the option to email the directions directly from the website (options: send as link and/or as pdf).
Thanks for the article.