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 cho phép bạn tích hợp liền mạch trải nghiệm điều hướng từng chặng của Google Maps ngay vào các ứng dụng di động của mình. SDK này cung cấp tính năng tuỳ chỉnh giao diện người dùng cho giao diện và cảm quan của thương hiệu cũng như cấu hình tuyến đường nâng cao.
Việc cung cấp trải nghiệm điều hướng có thể tuỳ chỉnh trong ứng dụng giúp bạn nâng cao hiệu quả hoạt động, cải thiện mức độ tương tác của người dùng và thu thập thông tin chi tiết có giá trị dựa trên dữ liệu.
Tại sao nên sử dụng Navigation SDK?
Việc tích hợp tính năng chỉ đường vào ứng dụng giúp bạn mang đến trải nghiệm vượt trội cho người dùng, đồng thời áp dụng thương hiệu của riêng bạn và tận dụng dữ liệu về chuyến đi:
Kiểm soát trải nghiệm từ đầu đến cuối và tăng mức độ tương tác bằng cách giữ người dùng trong ứng dụng của bạn trong quá trình điều hướng, loại bỏ nhu cầu chuyển đổi giữa các ứng dụng.
Cá nhân hoá trải nghiệm điều hướng cho phù hợp với giao diện và cảm quan của thương hiệu bằng các phần tử giao diện người dùng có thể tuỳ chỉnh.
Tối ưu hoá trải nghiệm về tuyến đường bằng cách quản lý các lựa chọn ưu tiên về định tuyến, điểm đến và điểm tham chiếu.
Khai thác dữ liệu vị trí và sự kiện từ tính năng định tuyến cho chuyến đi để phân tích, tối ưu hoá, liên lạc với khách hàng và giám sát theo thời gian thực.
Bạn có thể làm gì với Navigation SDK?
Navigation SDK cho phép bạn tạo trải nghiệm điều hướng toàn diện trong ứng dụng:
Cung cấp cho người dùng trải nghiệm điều hướng từng chặng liền mạch và đáng tin cậy nhờ Google Maps.
Hỗ trợ nhiều phương tiện đi lại, bao gồm lái xe, đi bộ, đi xe đạp và xe hai bánh.
Triển khai các điểm đánh dấu, lớp phủ và phần tử giao diện người dùng tuỳ chỉnh để làm nổi bật thông tin điều hướng chính và cá nhân hoá trải nghiệm điều hướng cho phù hợp với thương hiệu của bạn.
Truy cập vào dữ liệu về chuyến đi để phân tích xu hướng, xác định những điểm cần cải thiện và tối ưu hoá hoạt động.
Cách hoạt động của Navigation SDK
Bạn có thể dùng Navigation SDK để kết hợp cả bản đồ và các tính năng điều hướng vào ứng dụng của mình. Hai thành phần chính của Navigation SDK là:
Lớp bản đồ: Bắt đầu bằng một lớp bản đồ, bao gồm chế độ xem bản đồ, kiểu dáng, các chế độ điều khiển giao diện người dùng, camera và hành vi tương tác. Navigation SDK bao gồm chức năng bản đồ của Maps SDK và những ứng dụng có Navigation SDK không thể có Maps SDK. Nếu ứng dụng của bạn sử dụng Maps SDK, bạn cần xoá SDK này để sử dụng Navigation SDK. Tuy nhiên, API Maps gần như giống hệt nhau trong Navigation SDK, vì vậy, bạn thường không cần cập nhật việc triển khai, ngoài việc xoá Maps SDK. Để biết thông tin về API Maps và sự khác biệt về chức năng giữa Maps SDK và Navigation SDK, hãy xem trang Tổng quan trong phần Tham chiếu
Trải nghiệm điều hướng: Thêm trải nghiệm điều hướng bằng cách sử dụng, bao gồm lớp phủ điều hướng từng chặng, thẻ rẽ và các phần tử giao diện người dùng bổ sung. Bạn có thể sử dụng trải nghiệm Điều hướng của Google hoặc tạo trải nghiệm điều hướng tuỳ chỉnh của riêng mình.
Cách sử dụng Navigation SDK
Các bước dưới đây trình bày một tình huống sử dụng điển hình khi dùng Navigation SDK:
1
Thiết lập
Tạo một dự án trên Google Cloud, thêm Navigation SDK vào khoá API của bạn và thiết lập dự án Android Studio. Để biết thêm thông tin, hãy xem bài viết Thiết lập dự án.
Tuỳ chỉnh trải nghiệm đi theo chỉ dẫn và giao diện bằng cách sửa đổi các chế độ điều khiển và phần tử trên giao diện người dùng tích hợp sẵn xuất hiện trên bản đồ. Để biết thêm thông tin, hãy xem bài viết Sửa đổi giao diện người dùng điều hướng.
4
Điều chỉnh thông tin chi tiết về đường đi
Sửa đổi lựa chọn ưu tiên về định tuyến và quản lý điểm tham chiếu. Để biết thêm thông tin, hãy xem phần Trải nghiệm về tuyến đường.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-31 UTC."],[[["\u003cp\u003eThe Navigation SDK enables integrating Google Maps turn-by-turn navigation directly into your mobile apps, offering UI customization and advanced route configuration.\u003c/p\u003e\n"],["\u003cp\u003eIt enhances user engagement by providing a seamless in-app navigation experience, eliminating the need to switch between apps.\u003c/p\u003e\n"],["\u003cp\u003eBusinesses can leverage the SDK to personalize the navigation experience with custom branding, optimize routes, and gain valuable data-driven insights from trip data.\u003c/p\u003e\n"],["\u003cp\u003eThe Navigation SDK replaces the Maps SDK for both map layer and navigation features within your app, providing a comprehensive solution for in-app navigation.\u003c/p\u003e\n"],["\u003cp\u003eYou can seamlessly guide users with turn-by-turn directions, support various transportation modes, implement custom UI elements, and access trip data for analysis and optimizations.\u003c/p\u003e\n"]]],[],null,["# Navigation SDK overview\n\nThe Navigation SDK lets you seamlessly integrate the Google Maps turn-by-turn\nnavigation experience directly into your mobile applications. The SDK offers UI\ncustomization for brand look and feel and advanced route configuration.\nProviding customizable, in-app navigation experiences helps you enhance\noperational efficiency, improve user engagement, and gain valuable data-driven\ninsights.\n| **Note:** **European Economic Area (EEA)** : The default user interface and functionality of the Navigation SDK are deemed fully compliant with the [EEA Safety Requirements](https://cloud.google.com/terms/maps-platform/eea-safety-requirements).\n\nWhy use the Navigation SDK?\n---------------------------\n\nIntegrating navigation into your app lets you provide a superior experience for\nyour users, while applying your own branding and leveraging trip data:\n\n- Control the end-to-end experience and increase engagement by keeping users within your app during navigation, eliminating the need to switch between apps.\n- Personalize the navigation experience to match your brand's look and feel with customizable UI elements.\n- Optimize the route experience by managing routing preferences, destinations, and waypoints.\n- Utilize location and event data from trip routing for analytics, optimizations, customer communications, and real-time monitoring.\n\nWhat can you do with the Navigation SDK?\n----------------------------------------\n\nThe Navigation SDK lets you create a comprehensive in-app navigation experience:\n\n- Provide your users with a seamless and reliable turn-by-turn navigation experience powered by Google Maps.\n- Support various modes of transportation, including driving, walking, cycling, and two-wheel vehicles.\n- Implement custom markers, overlays, and UI elements to highlight key navigation information and to personalize the navigation experience to match your brand.\n- Access trip data to analyze trends, identify areas for improvement, and optimize operations.\n\nHow the Navigation SDK works\n----------------------------\n\nYou can use the Navigation SDK to incorporate both maps and navigation features\ninto your app. The two main components of the Navigation SDK are:\n\n- **Map Layer** : Begin with a map layer, including map view, styling, UI controls, camera, and interaction behavior. The Navigation SDK includes the map functionality from the [Maps SDK](/maps/documentation/android-sdk), and apps that include the Navigation SDK cannot include the Maps SDK. If your app uses the Maps SDK, you need to remove it in order to use the Navigation SDK. However, the maps API is nearly identical in the Navigation SDK, so you typically don't need to update your implementation, other than removing the Maps SDK. For information on the maps API and functionality differences between the Maps SDK and the Navigation SDK, see the [Overview](https://developers.google.com/maps/documentation/navigation/android-sdk/reference) page in the Reference section\n- **Navigation Experience** : Add the navigation experience using the, which includes the turn-by-turn navigation overlay, turn cards, and additional UI elements. You can either use the [Google Navigation\n experience](/maps/documentation/navigation/android-sdk/intro-google-nav) or build your own [custom navigation\n experience](/maps/documentation/navigation/android-sdk/intro-custom-nav).\n\n| **Note:** If your app already uses the [Maps SDK](/maps/documentation/android-sdk), the Navigation SDK replaces the Maps SDK for both map layer and navigation features. You cannot use the Navigation SDK and Maps SDK in the same app.\n\nHow to use the Navigation SDK\n-----------------------------\n\nThe steps below cover a typical use case scenario for using the Navigation SDK:\n\n|---|----------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| 1 | **Get set up** | Create a Google Cloud project, add the Navigation SDK to your API key, and set up your Android Studio project. For more information, see [Set up your project](/maps/documentation/navigation/android-sdk/set-up-project). |\n| 2 | **Navigate to your first route** | Plot a route within your app to a single destination. For more information, see [Navigate a single-destination route](/maps/documentation/navigation/android-sdk/route). |\n| 3 | **Modify the navigation UI** | Customize the navigation experience and visual appearance by modifying the built-in UI controls and elements appear on the map. For more information, see [Modify the navigation UI](/maps/documentation/navigation/android-sdk/controls). |\n| 4 | **Adjust routing details** | Modify routing preferences and manage waypoints. For more information, see [Route experience](/maps/documentation/navigation/android-sdk/intro-route-experience). |\n\nFor more information about the Navigation SDK features, see\n[Reference](/maps/documentation/navigation/android-sdk/reference), or [Try\nthe demo](/maps/documentation/navigation/android-sdk/try-demo)."]]