סקירה כללית בנושא ה-SDK של הניווט
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
Navigation SDK מאפשר לכם לשלב ניווט במסלול מפורט של מפות Google באפליקציות שלכם לנייד. חשוב לציין שה-SDK מספק נתונים על קטע המסלול הנוכחי ועל היעד הסופי, שמועברים אל Fleet Engine יחד עם עדכוני מיקום וקואורדינטות של קו רוחב וקו אורך מ-Driver SDK, כשהנהג מתחיל לנהוג. כך מתקבלת חוויית נהיגה מלאה.
למה כדאי להשתמש ב-Navigation SDK?
Navigation SDK מאפשר שילוב קל יותר עם Fleet Engine לצורך עדכונים במסלולים של הנהגים. שימוש ב-Navigation SDK יחד עם Driver SDK מאפשר לנהג להשתמש באפליקציה אחת כדי לנהל את המשימות ולנווט, כמו שהוא עושה באמצעות הגרסה לצרכן של מפות Google, בלי שהוא צריך לעבור לאפליקציה אחרת.
מה אפשר לעשות עם Navigation SDK?
אתם יכולים להשתמש ב-Navigation SDK כדי להעביר את הנתונים הבאים ל-Fleet Engine.
- הוראות ניווט אמינות ומפורטות שמבוססות על מפות Google.
- מסלולים מותאמים אישית שמבוססים על קואורדינטות של קו רוחב/אורך שמסופקות על ידי Driver SDK.
- רכיבי מפה מותאמים אישית, כמו סמנים מותאמים אישית, שכבות-על ורכיבי ממשק משתמש, כדי להדגיש מידע חשוב לניווט ולהתאים אישית את חוויית הניווט.
איך Navigation SDK פועל
Navigation SDK מספק מידע על ניתוב ויעד ל-Fleet Engine, ואילו Driver SDK מספק זרם של עדכוני מיקום, קואורדינטות של קווי אורך ורוחב, מרחק שנותר וזמני הגעה משוערים. כל העדכונים האחרים של נתוני הרכבים צריכים להישלח אל העורף של הלקוח, שמעביר את הנתונים אל Fleet Engine.

איך משתמשים ב-Navigation SDK
השלבים הבאים מתארים תרחיש שימוש אופייני לשילוב של Navigation SDK באפליקציית הנהג:
iOS
1 |
הגדרת הפרויקט ב-Google Cloud |
צריך ליצור פרויקט ב-Google Cloud לפני שמשתמשים ב-Navigation SDK. מידע נוסף זמין במאמר בנושא הגדרת הפרויקט ב-Google Cloud. |
2 |
הוספת Navigation SDK למפתח API |
מפתח ה-API הוא מזהה ייחודי שמאמת את הבקשות שלכם. כדי להשתמש ב-Navigation SDK, צריך לשייך לפרויקט לפחות מפתח API אחד. למידע נוסף, תוכלו לקרוא את המאמר שימוש במפתחות API. |
3 |
הגדרת פרויקט Xcode |
יוצרים פרויקט Xcode ומתקינים בו את Navigation SDK. מידע נוסף זמין במאמר בנושא הגדרת פרויקט Xcode. |
4 |
הוספת Driver SDK לפרויקט |
כדי להתחיל ליהנות מכל התכונות של Fleet Engine, צריך להתקין ולהגדיר את Driver SDK. מידע נוסף זמין במאמרים קבלת Driver SDK לנסיעות לפי דרישה וקבלת Driver SDK למשימות מתוזמנות. |
מידע נוסף על התכונות של Navigation SDK זמין במסמכים המלאים של Navigation SDK ל-Android ול-iOS.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-12 (שעון UTC).
[null,null,["עדכון אחרון: 2025-08-12 (שעון 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)."]]