Add Google Maps driving directions to your website 귀하의 웹사이트에 구글 맵 추가 운전 약도
Posted on April 29, 2008 at 5:23 am 게시 4 월 29 일, 2008 년 오전 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. 구글지도를 사용하여 사랑 "약도보기"기능을 언제든지 나는이 그림이 필요로하는 방법을 얻을 수 b. 가르쳐줘도 스프릴맆드야 운전 약도를 얻는 방법 중 하나를 미국에서 최고의 확실합니다.
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!? 그래서 결혼식이있는 경우 웹 사이트 또는 myspace 페이지를 그리고 당신은 큰 파티를 던지고, 그렇지 않나에 갈 수도 있다고 친절하게 귀하의 손님이 귀하의 사이트 주소를 입력하고 자동으로 약도보기에서 그들은이 온다 이 이벤트 장소로!? Not sure what I mean? 모르겠 무슨 뜻? Type your address in the box below and you’ll get directions from your address to my house: 아래 상자에 주소를 입력합니다 그리고 당신의 주소를 얻을 내 집을 이곳에서 출발하는 약도 :
Cool huh? 멋진 허? You can easily create this little form on any website, blog, or anywhere you can put in some HTML code! 이 작은 양식을 쉽게 만들 수있습니다 모든 웹 사이트, 블로그, 또는 어디 일부 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. 이것은 또한 중소 기업에 비해서는 웹 사이트를 귀하의 연락처로하실 수있습니다 위에 던져 페이지와 사람들이 약도를 신속하게 귀하의 주소를 복사 데보다는, 새 창을 열어 결과를 입력한 다음 그들의 시작 주소를 입력합니다.
So how do we go about creating this modified get directions box? 그래서 이것을 만드는 방법에 대해 우리가 어떻게 바뀌었습니다 약도 상자? Well first, we’ll need to get the correct syntax for the URL that Google uses for directions. 잘 첫째로, 우리의 올바른 구문을 받아야합니다 구글에 사용하는 지시를합니다. Luckily, we can figure that out by getting directions between two places and then clicking on the Send link at the top right. 다행히도, 우리는 그림을, 그것도 확인하고 다음을 두 군데 사이에 점점 방향 링크를 클릭하면 오른쪽 상단에 보낼합니다.
Here’s what you end up getting: 여기에 다 치울 :
Notice the link in the email message! 이메일 메시지의 링크를 확인합니다! That’s what we need! 그게 우리가 필요가있어! Here’s what the entire link looks like right now: 여기에 바로 지금의 전체 링크 것 같은데 :
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 +, + 새 + 오를레앙, + 라 70,122 + (프랫 + 홈) & daddr = 4601 + 레녹스 + blvd, + 새 + 오를레앙, + 라 & sll = 37.0625, -95.677068 & sspn = 33.214763,82.265625 & 즉 = 8 & z = 12
Eeeks! eeeks! That’s pretty long! 꽤 오랫동안! 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. 이미 많은 분야에서하십시오 같은 saddr (시작 주소), daddr (대상 주소)를, hl (언어)과 관련하여 좀 더 물건 위도와 경도로합니다.
However, you don’t really need all of these fields in order for Google to give you driving directions! 그러나, 당신이 정말 필요하지하기 위해 이러한 모든 분야에서 구글에게 길안내! All you need is this: 당신이 필요로하는 것은이 :
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. 가서 한 번 해봐. Put in an address in quotes for the starting and ending address and paste the URL into your 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: 나는 내 고향 교체시 시작과 끝 뉴올리언스와 휴스턴, 텍사스 주, 그래서 이것은 구글지도 방향 url 우리는 이렇게 보입니다 :
Pretty nifty eh! 꽤 멋진 야! Isn’t it fun to mess around with these types of things! 주변을 어지럽히는 이러한 유형의 재미를 말입니다! 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. 자, 그럼 이제 우리가 우리가 url이 들어갈 수있습니다 구글지도, 우리가 간단한 양식을 작성해야 두 개의 필드, 하나를위한 하나를위한 주소 및 대상 주소를 시작합니다.
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”> <form method="get" target="_blank"> action="http://maps.google.com/maps"
Enter your starting address: 시작 주소를 입력하십시오 :
<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" dr, 새로운 name="daddr" value="6348 프랫 orleans, la" />
<input type=”submit” value=”get directions” /> <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. 첫 번째 행은 다음과 같이 말한다 양식을 작성을 시작합니다 '제출'버튼을 클릭하면, 데이터로 전송되어야 maps.google.com /지도합니다. 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. 알림과 계층 = t t = 홈 필드에서합니다. layer=t is for the traffic layer and t=h means satellite in some strange fashion! 레이어 = 것은 계층의 트래픽에 대한 t = 홈 뜻 인공 위성에 이상한 패션! 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 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. 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. thanks.