Add Google Maps driving directions to your website إضافة صور الخرائط اتجاهات القيادة إلى موقع الويب الخاص بك
Posted on April 29, 2008 at 5:23 am نشر في 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. انا احب الخرائط باستخدام صور "الحصول على الاتجاهات" سمة أي وقت احتاج الى كيفية الحصول على الرقم من نقطة الف الى باء 'من افضل السبل للحصول على اتجاهات القيادة في الولايات المتحدة الامريكية لعلى ثقة من ذلك.
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!? حتى ما اذا كان لديك موقع او عرس ميسباكي صفحة وانت كبير رمي الطرف ، ألن يكون ذلك جميلا اذا كان الضيوف يمكن ان اذهب الى موقعك ، في معالجة نوع انها ستكون قادمة من وتلقائيا الى الحصول على اتجاهات حالة الموقع!؟ 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! يمكنك بسهولة ايجاد شكل من اشكال هذا قليلا على أي موقع ويب ، بلوق ، او في اي مكان يمكنك وضع المدونه في بعض لغة تأشير النص الفائق! 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 + + الدكتور برات ، + + جديد اورليانز ، ومدينة لوس انجلوس + +70122 + (+ برات البيت) = 4601 & daddr + + لينيكس جادة ، + + اورليانز الجديدة ، مدينة لوس انجلوس + & SLL = 37.0625 ، -95،677068 & sspn = 33.214763،82.265625 & & اي utf8 = = ض 12
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: انا مع الاستعاضه عن بدء بيتي مدينة نيو اورليانز ونهاية مع هيوستن ، تكساس ، وذلك وهذا هو ما بلدي صور خرائط الاتجاهات تبدو وكأنها عنوان :
Pretty nifty eh! Nifty أية جميلة! 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. طيب ، حتى الآن ان لدينا موقع يمكننا ان تنتقل الى صور والخرائط ، ونحن بحاجة الى ايجاد نموذج بسيط مع اثنين من الميادين ، ابتداء من واحد لمعالجة واحدة للتصدي لالمقصد.
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”> <formaction="http://maps.google.com/maps" method="get" target="_blank">
Enter your starting address: ادخل ابتداء من العنوان :
<input type=”text” name=”saddr” /> <inputtype="text" /> name="saddr"
<input type=”hidden” name=”daddr” value=”6348 Pratt Dr, New Orleans, LA” /> <inputtype="hidden" name="daddr" value="6348 برأت dr، جديدة orleans، la" />
<input type=”submit” value=”get directions” /> <inputtype="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. أشعار الطبقة = ر = ح ر والميادين في عنوان الموقع. 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 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. شكرا.