Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Navigation SDK cung cấp nhiều cách để tích hợp trải nghiệm điều hướng vào ứng dụng của bạn. Trang này giải thích về trải nghiệm điều hướng của Google và điểm khác biệt giữa trải nghiệm này với các trải nghiệm điều hướng khác có trong Navigation SDK.
Trải nghiệm điều hướng của Google là gì?
Trải nghiệm điều hướng của Google là việc sử dụng Navigation SDK để nhúng trải nghiệm điều hướng từng chặng sử dụng các phần tử và hình ảnh giao diện người dùng do Google cung cấp, tương tự như trải nghiệm điều hướng trong các ứng dụng Google Maps. Khi nhúng trải nghiệm điều hướng của Google vào ứng dụng, bạn không cần xây dựng trải nghiệm điều hướng từ đầu, nhưng vẫn có thể sửa đổi các phần của trải nghiệm. Ngoài ra, nếu cần tuỳ chỉnh nhiều hơn so với trải nghiệm chỉ đường của Google, bạn có thể yêu cầu nguồn cấp dữ liệu chỉ đường từng chặng từ Navigation SDK, sau đó cung cấp và quản lý các phần tử giao diện người dùng của riêng mình.
Khi bạn sử dụng trải nghiệm điều hướng của Google, ứng dụng của bạn sẽ gọi Navigation SDK để bắt đầu, chạy và dừng hoạt động điều hướng, theo quy trình sau:
Bắt đầu dò đường. Để bắt đầu điều hướng, ứng dụng của bạn sẽ tạo một thực thể trình điều hướng. Từ đó, nó đặt đích đến cho trình điều hướng và khởi tạo một bản đồ. Cuối cùng, ứng dụng sẽ bắt đầu hướng dẫn từng chặng. Bạn có thể trình bày luồng ứng dụng này cho người dùng theo nhiều cách, tuỳ thuộc vào trường hợp sử dụng của bạn. Ví dụ: ứng dụng có thể có một công cụ định vị cửa hàng với các phần tử giao diện người dùng riêng mà người dùng có thể sử dụng để bắt đầu chỉ đường đến cửa hàng. Hoặc ứng dụng của bạn có thể bắt đầu chế độ chỉ đường chủ động với một điểm đến được xác định trước khi người lái xe chấp nhận một nhiệm vụ giao hàng.
Chế độ điều hướng đang hoạt động. Sau khi ứng dụng chuyển sang chế độ chỉ đường đang hoạt động, ứng dụng sẽ sử dụng vị trí của thiết bị để duy trì hướng dẫn đang hoạt động. Bạn định cấu hình các trình nghe sự kiện có ý nghĩa đối với trường hợp sử dụng của mình, chẳng hạn như cho các thay đổi về tuyến đường và thời gian còn lại để đến đích. Trong quá trình chỉ đường, Navigation SDK cung cấp các thành phần giao diện người dùng tương tự như các thành phần trong ứng dụng Google Maps. Ví dụ: trải nghiệm chỉ đường cho thấy một lớp Google Maps tiêu chuẩn, với các hình ảnh như thẻ hướng dẫn rẽ, lớp lưu lượng truy cập, các tuyến đường thay thế và giới hạn tốc độ.
Dừng chỉ đường. Ứng dụng của bạn sẽ kết thúc phiên chỉ đường theo cách phù hợp nhất với trường hợp sử dụng của bạn, chẳng hạn như bằng một trình nghe sự kiện đến kích hoạt khi người dùng đến điểm đến.
Làm cách nào để sửa đổi trải nghiệm điều hướng của Google?
Nhìn chung, bạn có thể sửa đổi trải nghiệm điều hướng của Google để có các bảng phối màu, chế độ xem camera, hướng dẫn rẽ bổ sung và trình kích hoạt phản hồi sự kiện khác nhau. Danh sách sau đây mô tả một số điều chỉnh mà bạn có thể thực hiện. Danh sách này chưa đầy đủ.
Nội dung sửa đổi
Chi tiết
Hướng dẫn điều hướng đã sửa đổi: hiện/ẩn tiêu đề, màu sắc và phông chữ, hướng đi, tuyến đường thay thế và tiến trình chuyến đi
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-08-17 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) |"]]