Add Google Maps driving directions to your website Fügen Sie Google Maps Wegbeschreibungen zu Ihrer Website
Posted on April 29, 2008 at 5:23 am Gesendet am 29. April 2008 um 5:23
I love using Google Maps “Get Directions” feature any time I need to figure how to get from point A to B. It’s one of the best ways to get driving directions in the USA for sure. Ich liebe die Nutzung von Google Maps "Route berechnen"-Funktion jedes Mal, wenn ich muss Figur, wie man von Punkt A nach B. It 's eine der besten Möglichkeiten, Wegbeschreibungen in den USA sicher.
So what if you have a wedding website or a MySpace page and you’re throwing a big party, wouldn’t it be nice if your guests could go to your site, type in the address they will be coming from and automatically get directions to the event location!? Also was ist, wenn Sie eine Hochzeit oder eine Website MySpace-Seite und schon sind Sie werfen eine große Party, wäre es nicht schön, wenn Ihre Gäste könnten gehen auf Ihre Website, geben Sie in der Adresszeile werden sie aus und automatisch in Richtung der Event-Location!? Not sure what I mean? Sie sind sich nicht sicher, was ich meine? Type your address in the box below and you’ll get directions from your address to my house: Geben Sie Ihre Adresse in das unten stehende Feld ein und Sie bekommen Anreise von Ihrer Adresse zu meinem Haus:
Cool huh? Cool huh? You can easily create this little form on any website, blog, or anywhere you can put in some HTML code! Sie können auf einfache Weise erstellen Sie dieses kleine Formular auf jeder Website, Blog, oder überall können Sie in einigen HTML-Code! This is also great for small business web sites as you can throw it up on your contact page and people can get directions quickly, rather than having to copy your address, open a new window, and then type in their starting address. Dies ist auch ideal für kleine Unternehmen als Web-Sites können Sie werfen Sie sie auf Ihre Kontakt-Seite und die Menschen können sich schnell Richtungen, anstatt zu kopieren Ihre Adresse, öffnet sich ein neues Fenster, und geben Sie dann in ihrem Start-Adresse ein.
So how do we go about creating this modified get directions box? Wie sollen wir gehen über das Erstellen dieser veränderten Wegbeschreibungen Box? Well first, we’ll need to get the correct syntax for the URL that Google uses for directions. Gut erstens, wir brauchen, um die korrekte Syntax für die URL, die Google verwendet für die Anreise. Luckily, we can figure that out by getting directions between two places and then clicking on the Send link at the top right. Zum Glück können wir das Bild aus, indem Sie Richtungen zwischen zwei Orten und klicken Sie dann auf der Seite auf den Link oben rechts.
Here’s what you end up getting: Hier erfahren Sie am Ende bekommen:
Notice the link in the email message! Beachten Sie den Link in der E-Mail-Nachricht! That’s what we need! Das ist, was wir brauchen! Here’s what the entire link looks like right now: Hier ist es, was die gesamte Link sieht aus wie gerade jetzt:
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 http://maps.google.com/maps?f=d&hl=en&geocode=&saddr = 6348 + + Dr. Pratt, + + New Orleans, LA 70122 + + (Pratt + Startseite) & daddr = 4601 + + Lennox Blvd, + neu + Orleans, + la & SLL = 37.0625, -95,677068 & sspn = 33.214763,82.265625 & ie = UTF8 & z = 12
Eeeks! That’s pretty long! Das ist ziemlich lang! There are a lot of fields in the URL, such as SADDR (starting address), DADDR (destination address), hl (language), and some more stuff related to the latitude and longitude. Es gibt viele Bereiche, in der URL, wie SADDR (ab Anschriften) besteht, DADDR (Zieladresse), hl (Sprache) und einige weitere Dinge im Zusammenhang mit der Längen-und Breitengrad.
However, you don’t really need all of these fields in order for Google to give you driving directions! Allerdings, die Sie nicht wirklich brauchen alle diese Felder, um für Google, um Ihnen Wegbeschreibungen! All you need is this: Alles was Sie brauchen, ist diese:
http://maps.google.com/maps?saddr=start&daddr=end http://maps.google.com/maps?saddr=start&daddr=end
Go ahead and give it a shot. Gehe vor und geben ihm ein Schuss. Put in an address in quotes for the starting and ending address and paste the URL into your browser! Setzen Sie auf eine Adresse in Anführungszeichen für die Start-und End-Adresse und fügen Sie die URL in Ihren Browser! I replaced start with my home city New Orleans and end with Houston, TX, so this is what my Google Maps directions URL looks like: Ich ersetzt beginnen mit meiner Heimatstadt New Orleans und enden mit Houston, TX, so ist es das, was mein Google Maps Richtungen URL sieht wie folgt aus:
Pretty nifty eh! Pretty nifty eh! Isn’t it fun to mess around with these types of things! Ist es nicht lustig Kampf mit dieser Art von Dingen! Ok, so now that we have a URL that we can pass into Google Maps, we need to create a simple form with two fields, one for the starting address and one for the destination address. Ok, so dass nun, da haben wir eine URL, wir können in Google Maps, müssen wir ein einfaches Formular mit zwei Feldern, eines für den Start-Adresse und eines für die Ziel-Adresse.
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. Wenn Sie wollen, dass die Menschen zu geben Sie einfach in ihrer Adresse und Wegbeschreibung zu Ihrem Platz, dann wollen wir das zweite Feld werden versteckt und bereits auf den Ziel-Adresse.
<form action=”http://maps.google.com/maps” method=”get” target=”_blank”> <form method="get" target="_blank"> action="http://maps.google.com/maps"
Enter your starting address: Geben Sie Ihre Start-Adresse:
<input type=”text” name=”saddr” /> <input type="text" name="saddr" />
<input type=”hidden” name=”daddr” value=”6348 Pratt Dr, New Orleans, LA” /> <input type="hidden" name="daddr" value="6348 Pratt Dr, Neue Orleans, LA" />
<input type=”submit” value=”get directions” /> <input type="submit" value="get directions" />
</form> </ form>
Check out the code above. Schauen Sie sich den Code vor. 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. Die erste Zeile beginnt Form und sagt, dass, wenn der Submit-Button geklickt wird, werden die Daten gesendet werden sollen, um maps.google.com / maps. The target=blank means that we want the result to open in a new window. Die target = blank bedeutet, dass wir wollen, dass das Ergebnis auf in einem neuen Fenster geöffnet. Then we have a text box for the starting address, which is blank. Dann haben wir ein Textfeld für die Adresse ab, die leer ist.
The second text box is hidden and the value is the destination address that we desire. Das zweite Textfeld verborgen ist und der Wert ist die Zieladresse, die wir wünschen. Finally, there is a submit button with the title “Get Directions”. Schließlich gibt es eine Schaltfläche mit dem Titel "Route berechnen". Now when someone types in their address, they’ll get this: Nun, wenn jemand Arten in ihrer Adresse, sie bekommen:
You can customize the directions and map even more by following the same procedure as I went through above. Sie können die Anreise und Lageplan noch mehr, indem Sie nach den gleichen Verfahren wie ich ging durch oben. 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 . Zum Beispiel, sagen wir Sie nicht möchten, dass die Standardansicht zu Karten, sondern wollen, dass sie Satelliten und Verkehr anzeigen. Type in your directions and then press the Satellite and Traffic buttons on the Google map. Geben Sie in Ihrer Anreise und drücken Sie dann die Satelliten-und Traffic-Tasten auf der Google-Karte. Next, click on Send and you’ll see the modified URL: Als nächstes klicken Sie auf senden und Sie werden sehen, die veränderte URL:
Notice the layer=t and t=h fields in the URL. Beachten Sie die Layer = T und T = h Felder in der URL. layer=t is for the traffic layer and t=h means satellite in some strange fashion! Layer = t ist für den Verkehr Schicht und t = h bedeutet, Satellit einige seltsame Mode! Just tack those on to your final URL and you’ve now got a highly customized Google Maps Get Directions form on your site! Just tack diese auf Ihren endgültigen URL und Sie haben nun eine sehr individuelle Google Maps die Wegbeschreibungen Formular auf Ihrer Website! Source: Quelle: AskDaveTaylor
Have any issues with this, post a comment and I’ll try to help! Gibt es Probleme im Zusammenhang mit diesem, einen Kommentar schreiben, und ich werde versuchen zu helfen! Enjoy! Genießen!
If you enjoyed this post, make sure you Wenn Ihnen diese Stelle, stellen Sie sicher, dass Sie subscribe to my RSS feed Abonnieren Sie meinen RSS-Feed ! !
» Filed Under »Abgelegt unter Google Software/Tips Google-Software / Tipps
Related Posts Verwandte Beiträge
- Create free website contact form without sharing your email address Erstellen Sie kostenlos Website Kontakt-Formular, ohne Ihre E-Mail-Adresse
- Guide to Creating Personalized Maps using Google My Maps Leitfaden zur Schaffung von personalisierten Karten mit Hilfe von Google Maps Mein
- How to add website shortcuts to the Windows Start Menu Wie fügt Website Verknüpfungen zu den Windows-Startmenü
- Google Search Tips - Shortcuts search methods Google Tips zur Suche - Shortcuts Suchverfahren
- Google Maps Traffic! Google Maps Verkehr!

























Really cool feature. Wirklich cooles Feature. I have tried it before, it’s really helpful. Ich habe es vor, es ist wirklich hilfreich.
Thanks. Danke.