ประสบการณ์การนำทางของ Google
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
Navigation SDK มีวิธีต่างๆ ในการผสานรวมประสบการณ์การนำทางเข้ากับแอปของคุณ หน้านี้จะอธิบายว่าประสบการณ์การนำทางของ Google คืออะไร และแตกต่างจากประสบการณ์การนำทางอื่นๆ ที่มีอยู่ใน Navigation SDK อย่างไร
ประสบการณ์การนำทางของ Google คืออะไร
ประสบการณ์การนำทางของ Google หมายถึงการใช้ Navigation SDK เพื่อ
ฝังประสบการณ์การนำทางแบบเลี้ยวต่อเลี้ยวที่ใช้องค์ประกอบ UI และภาพที่ Google จัดหาให้
ซึ่งคล้ายกับประสบการณ์การนำทางภายในแอป Google
Maps เมื่อฝังประสบการณ์การนำทางของ Google ในแอป คุณไม่จำเป็นต้องสร้างประสบการณ์การนำทางตั้งแต่ต้น แต่ยังคงแก้ไขบางส่วนของประสบการณ์ได้ อีกทางเลือกหนึ่งคือ หากต้องการปรับแต่งมากกว่าที่ประสบการณ์การนำทางของ Google มีให้ คุณสามารถขอฟีดการนำทางแบบเลี้ยวต่อเลี้ยวจาก Navigation SDK แล้วระบุและจัดการองค์ประกอบ UI ของคุณเอง
ดูข้อมูลเพิ่มเติมได้ที่
ประสบการณ์การนำทางที่กำหนดเอง
เมื่อใช้ประสบการณ์การนำทางของ Google แอปจะเรียกใช้ Navigation SDK เพื่อเริ่ม เรียกใช้ และหยุดการนำทาง โดยใช้โฟลว์ต่อไปนี้
เริ่มการนำทาง หากต้องการเริ่มการนำทาง แอปของคุณจะสร้างอินสแตนซ์ Navigator
จากนั้นจะกำหนดจุดหมายปลายทางสำหรับผู้ใช้และ
เริ่มต้นแผนที่ สุดท้าย แอปจะเริ่มการนำทางแบบเลี้ยวต่อเลี้ยว
คุณสามารถนำเสนอโฟลว์แอปนี้ต่อผู้ใช้ได้หลายวิธีตาม Use Case ของคุณ
เช่น แอปอาจมีเครื่องมือค้นหาร้านค้าที่มีองค์ประกอบ UI ของตัวเอง
ซึ่งผู้ใช้สามารถใช้เพื่อเริ่มการนำทางไปยังร้านค้า หรือแอปอาจเริ่มการนำทางที่ใช้งานอยู่โดยมีจุดหมายที่กำหนดไว้ล่วงหน้าเมื่อคนขับยอมรับงานนำส่ง
การนำทางที่ใช้งานอยู่ เมื่อแอปเข้าสู่การนำทางที่ใช้งานอยู่ แอปจะใช้
ตำแหน่งของอุปกรณ์เพื่อรักษาคำแนะนำที่ใช้งานอยู่ คุณกําหนดค่าเครื่องมือฟังเหตุการณ์
ที่มีความหมายต่อ Use Case ของคุณ เช่น การเปลี่ยนแปลงเส้นทางและ
เวลาที่เหลือจนถึงจุดหมาย ในระหว่างการนำทางที่ใช้งานอยู่ SDK การนำทาง
จะแสดงคอมโพเนนต์ UI ซึ่งคล้ายกับในแอป Google Maps
ตัวอย่างเช่น ประสบการณ์การนำทางจะแสดงเลเยอร์ Google Maps มาตรฐาน
พร้อมภาพ เช่น การ์ดคำแนะนำการเลี้ยว เลเยอร์การจราจร เส้นทาง
สำรอง และขีดจำกัดความเร็ว
หยุดการนำทาง แอปจะสิ้นสุดเซสชันการนำทางในลักษณะที่เหมาะกับกรณีการใช้งานของคุณมากที่สุด เช่น ใช้เครื่องมือฟังการมาถึงที่ทริกเกอร์เมื่อผู้ใช้ไปถึงจุดหมาย
คุณจะปรับเปลี่ยนประสบการณ์การนำทางของ Google ได้อย่างไร
โดยทั่วไป คุณสามารถแก้ไขประสบการณ์การนำทางของ Google เพื่อให้มีรูปแบบสี มุมมองกล้อง คำแนะนำการเลี้ยวเพิ่มเติม และทริกเกอร์การตอบสนองต่อเหตุการณ์ที่แตกต่างกันได้
รายการต่อไปนี้อธิบายการปรับเปลี่ยนบางอย่างที่คุณทำได้ รายการนี้เป็นเพียงตัวอย่างบางส่วนเท่านั้น
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-31 UTC
[null,null,["อัปเดตล่าสุด 2025-08-31 UTC"],[[["\u003cp\u003eThe Navigation SDK offers the Google navigation experience, providing a pre-built, customizable turn-by-turn navigation feature similar to Google Maps.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can initiate, manage, and conclude navigation using the Navigation SDK, controlling aspects like destination setting and event handling.\u003c/p\u003e\n"],["\u003cp\u003eWhile utilizing the Google navigation experience, developers have the flexibility to customize UI elements such as color schemes, camera views, and turn guidance displays.\u003c/p\u003e\n"],["\u003cp\u003eFor advanced customization beyond the provided options, developers can opt for a custom navigation experience by requesting a turn-by-turn navigation feed and building their own UI.\u003c/p\u003e\n"]]],[],null,["# The Google navigation experience\n\nThe Navigation SDK provides different ways to integrate a navigation\nexperience into your app. This page explains what the Google navigation\nexperience is and how it differs from other navigation experiences that are\navailable in the Navigation SDK.\n\nWhat is the Google navigation experience?\n-----------------------------------------\n\nThe Google navigation experience refers to using the Navigation SDK to\nembed a turn-by-turn navigation experience that uses Google-provided UI elements\nand visuals, which are similar to the navigation experience within the Google\nMaps apps. When you embed the Google navigation experience in your app, you\ndon't need to build the navigation experience from scratch, but you can still\nmodify parts of the experience. As an alternative, if you need more\ncustomization than is available with the Google navigation experience, you can\nrequest a turn-by-turn navigation feed from the Navigation SDK and then\nprovide and manage your own UI elements.\nFor more information, see [Custom navigation experience](/maps/documentation/navigation/ios-sdk/intro-custom-nav).\n\n\u003cbr /\u003e\n\nWhen you use Google navigation experience, your app calls the\nNavigation SDK to start, run, and stop navigation, using the following\nflow:\n\n1. **Start navigation**. To start navigation, your app creates a navigator\n instance. From there, it sets the destination for the navigator and\n initializes a map. Finally, the app initiates the turn-by-turn guidance.\n This app flow can be presented to the user in a variety of ways depending on\n your use case. For example, the app might have a store locator with its own\n UI elements that users can use to begin navigation to the store. Or, your\n app might begin active navigation with a predefined destination when a\n driver accepts a delivery task.\n\n2. **Active navigation**. Once your app enters active navigation, it uses the\n device location to maintain active guidance. You configure event listeners\n that are meaningful to your use case, such as for route changes and\n remaining time to the destination. During active navigation, the Navigation\n SDK provides UI components, which are similar to those in the Google Maps\n apps. For example, the navigation experience shows a standard Google maps\n layer, with visuals like turn guidance cards, traffic layers, alternate\n routes, and speed limits.\n\n3. **Stop navigation**. Your app terminates the navigation session in the way\n that best works for your use case, such as with an arrival listener that\n triggers when the user reaches the destination.\n\nHow can you modify the Google navigation experience?\n----------------------------------------------------\n\nIn general, you can modify the Google navigation experience to have different\ncolor schemes, camera views, extra turn guidance, and event response triggers.\nThe following list describes some of the adjustments you can make. This list is\nnot exhaustive.\n\n| **Modification** | **Details** |\n|--------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Modified navigation guidance: show/hide headers, colors and fonts, directions, alternate routes, and trip progress | [Map UI controls](/maps/documentation/navigation/ios-sdk/controls#map_ui_controls) [Navigation header and footer](/maps/documentation/navigation/ios-sdk/controls#navigation_header_and_footer) [Navigation header accessory view](/maps/documentation/navigation/ios-sdk/controls#navigation_accessory_header_view) [Display directions list](/maps/documentation/navigation/ios-sdk/controls#directions_list) [Hide alternate routes](/maps/documentation/navigation/ios-sdk/controls#hide_alternate_routes) [Display trip progress](/maps/documentation/navigation/ios-sdk/controls#trip-progress-bar) |\n| Adjust traffic information and speed limit information | [Display the speedometer](/maps/documentation/navigation/ios-sdk/controls#speedometer_control) [Adjust speedometer alerts](/maps/documentation/navigation/ios-sdk/speedometer) [Enable traffic lights and stop signs](/maps/documentation/navigation/ios-sdk/controls#traffic_lights_and_stop_signs) |\n| Change the map experience UI and adjust the camera. | [Position UI elements](/maps/documentation/navigation/ios-sdk/controls#position_controls_and_ui_elements) [Adjust the camera](/maps/documentation/navigation/ios-sdk/camera) |"]]