Omówienie pakietu SDK nawigacji
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Pakiet Navigation SDK umożliwia zintegrowanie z aplikacjami mobilnymi szczegółowych wskazówek nawigacyjnych z Map Google. Co ważne, udostępnia ona dane o bieżącym odcinku trasy i miejscu docelowym, które wraz z aktualizacjami lokalizacji i współrzędnymi geograficznymi z pakietu Driver SDK są wysyłane do Fleet Engine, gdy kierowca rozpoczyna jazdę. Zapewnia to pełne wrażenia z jazdy.
Dlaczego warto korzystać z pakietu Navigation SDK?
Pakiet SDK do nawigacji ułatwia integrację z Fleet Engine w celu aktualizowania tras kierowców. Korzystanie z pakietu Navigation SDK wraz z pakietem Driver SDK umożliwia kierowcy zarządzanie przydzielonymi zadaniami i korzystanie z nawigacji w jednej aplikacji, tak jak w przypadku konsumenckiej wersji Map Google, bez konieczności przełączania się na inną aplikację.
Co można robić za pomocą pakietu Navigation SDK?
Za pomocą pakietu Navigation SDK możesz przekazywać do Fleet Engine te informacje:
- Niezawodne wskazówki nawigacyjne zakręt po zakręcie oparte na Mapach Google.
- Dostosowane trasy na podstawie współrzędnych szerokości i długości geograficznej podanych przez pakiet Driver SDK.
- Dostosowane elementy mapy, takie jak niestandardowe znaczniki, nakładki i elementy interfejsu, które podkreślają kluczowe informacje nawigacyjne i personalizują nawigację.
Jak działa pakiet Navigation SDK
Pakiet Navigation SDK przekazuje do Fleet Engine informacje o trasie i miejscu docelowym, a pakiet Driver SDK udostępnia strumień aktualizacji lokalizacji, współrzędnych geograficznych, pozostałego dystansu i szacowanego czasu przyjazdu. Wszystkie inne aktualizacje danych o pojazdach muszą być wysyłane do backendu klienta, który przekazuje dane do Fleet Engine.

Jak korzystać z pakietu Navigation SDK
Poniższe instrukcje opisują typowy scenariusz użycia pakietu Navigation SDK w aplikacji dla kierowców:
Więcej informacji o funkcjach pakietu Navigation SDK znajdziesz w pełnej dokumentacji pakietu Navigation SDK na Android i iOS.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-08-31 UTC.
[null,null,["Ostatnia aktualizacja: 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)."]]