Add Google Maps driving directions to your website Google Maps aggiungere le indicazioni stradali per il tuo sito web
Posted on April 29, 2008 at 5:23 am Inviato il 29 aprile 2008, 5:23 am
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. Amo l'uso di Google Maps "Ottieni indicazioni" funzione qualsiasi momento ho bisogno di figura come arrivare dal punto A al B. Esso 's uno dei modi migliori per ottenere le indicazioni stradali negli Stati Uniti di sicuro.
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!? Che cosa se avete un sito web di matrimonio o di una pagina di MySpace e stai lanciando una grande festa, non sarebbe carino se i vostri ospiti potrebbero andare al tuo sito, digitare l'indirizzo che verranno provenienti da ottenere automaticamente e le indicazioni per l'evento location!? Not sure what I mean? Non è sicuro di quello che voglio dire? Type your address in the box below and you’ll get directions from your address to my house: Scrivi il tuo indirizzo nella casella sottostante e riceverai le direzioni dal tuo indirizzo di casa mia:
Cool huh? Cool huh? You can easily create this little form on any website, blog, or anywhere you can put in some HTML code! Si può facilmente creare questo piccolo modulo a qualsiasi sito web, blog, o dovunque si può mettere in alcuni codice HTML! 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. Questo è anche grande per le piccole imprese siti web come è possibile che passi il tuo pagina dei contatti e le persone possono ottenere le indicazioni rapidamente, piuttosto che dover copiare il vostro indirizzo, aprire una nuova finestra, quindi digitare nella loro indirizzo iniziale.
So how do we go about creating this modified get directions box? Così come possiamo andare sulla creazione di questa modifica ottenere le indicazioni casella? Well first, we’ll need to get the correct syntax for the URL that Google uses for directions. Ben prima, abbiamo bisogno di ottenere la corretta sintassi per l'URL che Google utilizza per le direzioni. Luckily, we can figure that out by getting directions between two places and then clicking on the Send link at the top right. Per fortuna, siamo in grado di figura che, di ottenere indicazioni tra due luoghi e quindi facendo clic sul link Invia nella parte superiore destra.
Here’s what you end up getting: Ecco ciò che finiscono per ottenere:
Notice the link in the email message! Avviso sul link contenuto nel messaggio e-mail! That’s what we need! Questo è ciò che abbiamo bisogno! Here’s what the entire link looks like right now: Ecco tutto ciò che il collegamento si presenta come adesso:
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 = 6.348 + + dottor Pratt, + + Nuovo Orleans, LA 70122 + + (+ Home Pratt) & daddr = 4.601 + + blvd Lennox, + nuovo + orleans, & + la SLL = 37.0625, -95,677068 & sspn = 33.214763,82.265625 & ie = UTF8 & z = 12
Eeeks! That’s pretty long! Che è piuttosto lunga! 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. Ci sono un sacco di campi nell'URL, come ad esempio SADDR (indirizzo iniziale), DADDR (indirizzo di destinazione), HL (lingua) e alcuni altri elementi relativi alla latitudine e longitudine.
However, you don’t really need all of these fields in order for Google to give you driving directions! Tuttavia, non è davvero bisogno di tutti questi settori, al fine di Google di fornire le indicazioni stradali! All you need is this: Tutto quello che vi serve è questa:
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. Andare avanti e dare un colpo. Put in an address in quotes for the starting and ending address and paste the URL into your browser! Mettere in un discorso tra virgolette per l'iniziale e finale indirizzo e incolla l'URL nel tuo 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: Ho sostituito iniziare con la mia città di residenza di New Orleans e alla fine a Houston, TX, quindi questo è ciò che il mio account Google Maps direzioni URL appare come segue:
Pretty nifty eh! Pretty nifty eh! Isn’t it fun to mess around with these types of things! Non è divertente caos attorno a questi tipi di cose! 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, ora che abbiamo un URL che siamo in grado di passare a Google Maps, dobbiamo creare un semplice modulo con due campi, uno per il indirizzo iniziale e uno per l'indirizzo di destinazione.
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. Se si desidera solo alle persone di digitare il suo indirizzo e le indicazioni per ottenere il vostro posto, poi ci vuole il secondo settore, che deve essere nascosto e già impostato per l'indirizzo di destinazione.
<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: Inserisci il tuo indirizzo iniziale:
<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, Nuova Orleans, LA" />
<input type=”submit” value=”get directions” /> <input type="submit" value="get directions" />
</form> </ form>
Check out the code above. Controllare il codice di cui sopra. 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. La prima linea inizia la forma e dice che quando il tasto di invio viene cliccato, i dati devono essere inviate al maps.google.com / mappe. The target=blank means that we want the result to open in a new window. Il target = blank significa che vogliamo che il risultato di aprire in una nuova finestra. Then we have a text box for the starting address, which is blank. Allora abbiamo una casella di testo per l'indirizzo iniziale, che è vuota.
The second text box is hidden and the value is the destination address that we desire. La seconda casella di testo è nascosto e il valore è l'indirizzo di destinazione che desideriamo. Finally, there is a submit button with the title “Get Directions”. Infine, vi è un tasto di invio con il titolo "Ottieni indicazioni". Now when someone types in their address, they’ll get this: Ora, quando qualcuno tipi nella loro indirizzo, verrà visualizzato questo:
You can customize the directions and map even more by following the same procedure as I went through above. È possibile personalizzare le indicazioni e la mappa ancora di più seguendo la stessa procedura sono andato attraverso sopra. 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 . Per esempio, diciamo che non si vuole la vista predefinita da mappe, ma vogliamo invece che sia via satellite e mostrare Traffico. Type in your directions and then press the Satellite and Traffic buttons on the Google map. Inserisci il tuo direzioni e quindi premere il satellite e pulsanti di traffico su Google mappa. Next, click on Send and you’ll see the modified URL: Quindi, fare clic su Invia e vedrai la modifica URL:
Notice the layer=t and t=h fields in the URL. Avviso lo strato = t e t = h campi nell'URL. layer=t is for the traffic layer and t=h means satellite in some strange fashion! strato = t è per il livello di traffico e t = h significa satellite in qualche strana moda! Just tack those on to your final URL and you’ve now got a highly customized Google Maps Get Directions form on your site! Solo quelli a virare al tuo URL di finale e aver ottenuto un ora altamente personalizzata di Google Maps Ottieni indicazioni modulo sul tuo sito! Source: Fonte: AskDaveTaylor
Have any issues with this, post a comment and I’ll try to help! Hanno problemi con questo, inviare un commento e sono qui per aiutare! Enjoy! Gustare!
If you enjoyed this post, make sure you Se si godeva questo post, assicuratevi di subscribe to my RSS feed iscriviti al mio feed RSS ! !
» Filed Under »Archiviato in Google Software/Tips Google software / Suggerimenti
Related Posts Posti connessi
- Create free website contact form without sharing your email address Creare sito web gratuitamente modulo di contatto senza condividere il tuo indirizzo email
- Guide to Creating Personalized Maps using Google My Maps Guida alla creazione di mappe personalizzate utilizzando Google Maps mio
- Google Search Tips - Shortcuts search methods Suggerimenti per la ricerca di Google - Scorciatoie metodi di ricerca
- How to add website shortcuts to the Windows Start Menu Come aggiungere sito web scorciatoie per il menu Start di Windows
- Google Maps Traffic! Google Maps traffico!

























Really cool feature. Really cool funzione. I have tried it before, it’s really helpful. Ho provato prima, è veramente utile.
Thanks. Grazie.
Great post! Great post! Thanks for the valuable information and insights you have shared here. Grazie per le utili informazioni e conoscenze che avete condiviso qui.
This is my favorite website because there are greatest posts. Questo è il mio sito web preferito perché ci sono più posti.
Thanks to all Grazie a tutti
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? Ciao, avete qualche idea come convertire Google mappa di pdf, cosi posso attingere frecce delle mappe e prendere appunti? Thanks. Grazie.