Tổng quan về SDK điều hướng
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 tính năng chỉ đường từng chặng của Google Maps vào các ứng dụng di động. Điều quan trọng là SDK này cung cấp dữ liệu về đoạn đường hiện tại và điểm đến cuối cùng. Cùng với thông tin cập nhật về vị trí và toạ độ vĩ độ/kinh độ từ Driver SDK, những dữ liệu này sẽ được gửi đến Fleet Engine khi tài xế bắt đầu lái xe. Điều này mang đến trải nghiệm lái xe trọn vẹn.
Tại sao nên sử dụng Navigation SDK?
Navigation SDK giúp bạn dễ dàng tích hợp với Fleet Engine để cập nhật tuyến đường của người lái xe. Khi sử dụng Navigation SDK cùng với Driver SDK, người lái xe có thể dùng một ứng dụng duy nhất để quản lý công việc và điều hướng như khi dùng phiên bản Google Maps dành cho người tiêu dùng mà không cần phải chuyển sang một ứng dụng khác.
Bạn có thể làm gì với Navigation SDK?
Sử dụng Navigation SDK để truyền đạt những thông tin sau với Fleet Engine.
- Hướng dẫn chỉ đường từng chặng đáng tin cậy do Google Maps cung cấp.
- Các tuyến đường tuỳ chỉnh dựa trên toạ độ vĩ độ/kinh độ do Driver SDK cung cấp.
- Các phần tử bản đồ tuỳ chỉnh, chẳng hạn như điểm đánh dấu, lớp phủ và phần tử trên giao diện người dùng tuỳ chỉnh để làm nổi bật thông tin chỉ đường chính và cá nhân hoá trải nghiệm chỉ đường.
Cách hoạt động của Navigation SDK
Navigation SDK cung cấp thông tin định tuyến và đích đến cho Fleet Engine, trong khi Driver SDK cung cấp một luồng thông tin cập nhật vị trí, toạ độ vĩ độ/kinh độ, khoảng cách còn lại và thời gian dự kiến đến. Tất cả các nội dung cập nhật dữ liệu khác về xe phải được gửi đến phụ trợ của khách hàng, nơi chuyển tiếp dữ liệu đến Fleet Engine.

Cách sử dụng Navigation SDK
Các bước dưới đây trình bày một trường hợp sử dụng điển hình để kết hợp Navigation SDK vào ứng dụng dành cho người lái xe:
Android
1 |
Thiết lập dự án trên Google Cloud |
Tạo một dự án trên Google Cloud trước khi sử dụng Navigation SDK. Để biết thêm thông tin, hãy xem bài viết Thiết lập dự án Google Cloud. |
2 |
Thêm Navigation SDK vào khoá API của bạn |
Khoá API là một giá trị nhận dạng duy nhất để xác thực các yêu cầu của bạn. Hãy liên kết ít nhất một khoá API với dự án của bạn để sử dụng Navigation SDK. Để biết thêm thông tin, hãy xem bài viết Sử dụng khoá API. |
3 |
Thiết lập dự án Android Studio |
Tạo một dự án Android và tích hợp Navigation SDK vào dự án đó. Để biết thêm thông tin, hãy xem phần Thiết lập dự án Android Studio. |
4 |
Thêm Driver SDK vào dự án của bạn |
Cài đặt và định cấu hình Driver SDK để bắt đầu tận dụng tất cả các tính năng của Fleet Engine. Để biết thêm thông tin, hãy xem phần Nhận Driver SDK cho các chuyến đi theo yêu cầu và Nhận Driver SDK cho các nhiệm vụ theo lịch. |
iOS
1 |
Thiết lập dự án trên Google Cloud |
Tạo một dự án trên Google Cloud trước khi sử dụng Navigation SDK. Để biết thêm thông tin, hãy xem bài viết Thiết lập dự án Google Cloud. |
2 |
Thêm Navigation SDK vào khoá API của bạn |
Khoá API là một giá trị nhận dạng duy nhất để xác thực các yêu cầu của bạn. Hãy liên kết ít nhất một khoá API với dự án của bạn để sử dụng Navigation SDK. Để biết thêm thông tin, hãy xem bài viết Sử dụng khoá API. |
3 |
Thiết lập dự án Xcode |
Tạo một dự án Xcode và cài đặt Navigation SDK vào dự án đó. Để biết thêm thông tin, hãy xem bài viết Thiết lập dự án Xcode. |
4 |
Thêm Driver SDK vào dự án của bạn |
Cài đặt và định cấu hình Driver SDK để bắt đầu tận dụng tất cả các tính năng của Fleet Engine. Để biết thêm thông tin, hãy xem phần Nhận Driver SDK cho các chuyến đi theo yêu cầu và Nhận Driver SDK cho các nhiệm vụ theo lịch. |
Để biết thêm thông tin về các tính năng của Navigation SDK, hãy xem tài liệu đầy đủ về Navigation SDK cho Android và iOS.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-31 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-31 UTC."],[[["\u003cp\u003eThe Navigation SDK enables turn-by-turn navigation within your mobile apps, seamlessly integrating with Google Maps and Fleet Engine for real-time route and location updates.\u003c/p\u003e\n"],["\u003cp\u003eWhen used with the Driver SDK, it provides a comprehensive driving experience within a single app, eliminating the need for drivers to switch between navigation and task management.\u003c/p\u003e\n"],["\u003cp\u003eThe SDK offers customizable routes, map elements, and navigation instructions powered by Google Maps, ensuring a tailored and efficient navigation experience for drivers.\u003c/p\u003e\n"],["\u003cp\u003eTo utilize the Navigation SDK, developers need to set up a Google Cloud project, integrate the SDK into their Android or iOS project, and add the Driver SDK for comprehensive Fleet Engine functionality.\u003c/p\u003e\n"]]],[],null,["The Navigation SDK lets you to integrate Google Maps turn-by-turn navigation\ninto your mobile applications. Crucially, it provides\ncurrent route segment and final destination data, which, along with location\nupdates and latitude/longitude coordinates from the Driver SDK, are sent to the\nFleet Engine when your driver begins driving. This results in a complete driving\nexperience.\n\nWhy use the Navigation SDK?\n\nThe Navigation SDK enables easier integration with Fleet Engine for updates to\nthe driver's routes. Using the Navigation SDK along with the Driver SDK enables\nyour driver can use a single app to manage assignments and navigate as they\nwould using their consumer version of Google Maps, without having to switch to\nanother app.\n\nWhat can you do with the Navigation SDK?\n\nUse the Navigation SDK to communicate the following with Fleet Engine.\n\n- Reliable turn-by-turn navigation instructions powered by Google Maps.\n- Customized routes based on the latitude/longitude coordinates provided by the Driver SDK.\n- Customized map elements, such as custom markers, overlays, and UI elements to highlight key navigation information and to personalize the navigation experience.\n\nHow the Navigation SDK works\n\nThe Navigation SDK provides routing information and destination to Fleet Engine,\nwhile the Driver SDK provides a stream of location updates, latitude/longitude\ncoordinates, remaining distance, and ETAs. All other vehicle data updates must\nbe sent to the customer backend, which relays the data to Fleet Engine.\n\nHow to use the Navigation SDK\n\nThe steps below cover a typical use-case scenario for incorporating the\nNavigation SDK into your driver application: \n\nAndroid\n\n|---|--------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| 1 | **Set up your Google Cloud project** | Create a Google Cloud project before using the Navigation SDK. For more information, see [Set up your Google Cloud project](/maps/documentation/navigation/android-sdk/cloud-setup). |\n| 2 | **Add the Navigation SDK to your API key** | The API key is a unique identifier that authenticates your requests, associate at least one API key with your project to use the Navigation SDK. For more information, see [Using API keys](/maps/documentation/navigation/android-sdk/get-api-key). |\n| 3 | **Set up your Android Studio project** | Create an Android project and integrate the Navigation SDK into it. For more information, see [Set up your Android Studio project](/maps/documentation/navigation/android-sdk/android-studio-setup). |\n| 4 | **Add the Driver SDK to your project** | Install and configure the Driver SDK to start taking advantage of all the Fleet Engine features. For more information, see [Get the Driver SDK for on-demand trips](/maps/documentation/mobility/driver-sdk/on-demand/android/minimum-requirements) and [Get the Driver SDK for scheduled tasks](/maps/documentation/mobility/driver-sdk/scheduled/android/minimum-requirements). |\n\niOS\n\n|---|--------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| 1 | **Set up your Google Cloud project** | Create a Google Cloud project before using the Navigation SDK. For more information, see [Set up your Google Cloud project](/maps/documentation/navigation/ios-sdk/cloud-setup). |\n| 2 | **Add the Navigation SDK to your API key** | The API key is a unique identifier that authenticates your requests, associate at least one API key with your project to use the Navigation SDK. For more information, see [Using API keys](/maps/documentation/navigation/ios-sdk/get-api-key). |\n| 3 | **Set up your Xcode project** | Create an Xcode project and install the Navigation SDK into it. For more information, see [Set up your Xcode project](/maps/documentation/navigation/ios-sdk/xcode-setup). |\n| 4 | **Add the Driver SDK to your project** | Install and configure the Driver SDK to start taking advantage of all the Fleet Engine features. For more information, see [Get the Driver SDK for on-demand trips](/maps/documentation/mobility/driver-sdk/on-demand/ios/minimum-requirements) and [Get the Driver SDK for scheduled tasks](/maps/documentation/mobility/driver-sdk/scheduled/ios/minimum-requirements). |\n\nFor more information about the Navigation SDK features, see the complete\ndocumentation for Navigation SDK for\n[Android](/maps/documentation/navigation/android-sdk) and\n[iOS](/maps/documentation/navigation/ios-sdk)."]]