با مجموعهها، منظم بمانید ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
Navigation SDK راه های مختلفی را برای ادغام تجربه ناوبری در برنامه شما ارائه می دهد. این صفحه توضیح میدهد که تجربه ناوبری Google چیست و چه تفاوتی با سایر تجربههای ناوبری موجود در Navigation SDK دارد.
تجربه ناوبری گوگل چیست؟
تجربه ناوبری Google به استفاده از Navigation SDK برای جاسازی یک تجربه ناوبری گام به گام اشاره دارد که از عناصر و تصاویر بصری UI ارائه شده توسط Google استفاده می کند، که شبیه به تجربه ناوبری در برنامه های Google Maps است. وقتی تجربه ناوبری Google را در برنامه خود جاسازی می کنید، نیازی به ایجاد تجربه ناوبری از ابتدا ندارید، اما همچنان می توانید بخش هایی از تجربه را تغییر دهید. به عنوان جایگزین، اگر به سفارشیسازی بیشتری نسبت به تجربه ناوبری Google نیاز دارید، میتوانید فید پیمایش گام به گام را از Navigation SDK درخواست کنید و سپس عناصر رابط کاربری خود را تهیه و مدیریت کنید.
وقتی از تجربه ناوبری Google استفاده میکنید، برنامه شما با استفاده از جریان زیر، Navigation SDK را برای شروع، اجرا و توقف ناوبری فراخوانی میکند:
ناوبری را شروع کنید . برای شروع ناوبری، برنامه شما یک نمونه ناوبر ایجاد می کند. از آنجا، مقصد را برای ناوبر تعیین می کند و یک نقشه را مقداردهی اولیه می کند. در نهایت، برنامه راهنمایی گام به گام را آغاز می کند. این جریان برنامه بسته به مورد استفاده شما می تواند به روش های مختلفی به کاربر ارائه شود. به عنوان مثال، برنامه ممکن است یک مکان یاب فروشگاه با عناصر رابط کاربری خاص خود داشته باشد که کاربران می توانند از آن برای شروع ناوبری به فروشگاه استفاده کنند. یا، زمانی که راننده یک کار تحویل را می پذیرد، برنامه شما ممکن است ناوبری فعال را با یک مقصد از پیش تعریف شده آغاز کند.
ناوبری فعال هنگامی که برنامه شما وارد ناوبری فعال می شود، از مکان دستگاه برای حفظ راهنمایی فعال استفاده می کند. شنوندههای رویداد را پیکربندی میکنید که برای مورد استفاده شما معنادار هستند، مانند تغییر مسیر و زمان باقی مانده تا مقصد. در طول پیمایش فعال، Navigation SDK مؤلفههای رابط کاربری را ارائه میکند که شبیه به برنامههای Google Maps هستند. به عنوان مثال، تجربه ناوبری یک لایه استاندارد نقشههای Google را با تصاویری مانند کارتهای راهنمای چرخش، لایههای ترافیک، مسیرهای جایگزین و محدودیتهای سرعت نشان میدهد.
ناوبری را متوقف کنید . برنامه شما جلسه ناوبری را به روشی که برای موارد استفاده شما بهترین کار را انجام می دهد، خاتمه می دهد، مانند شنونده ورود که هنگام رسیدن کاربر به مقصد فعال می شود.
چگونه می توانید تجربه ناوبری گوگل را تغییر دهید؟
به طور کلی، میتوانید تجربه ناوبری Google را طوری تغییر دهید که دارای طرحهای رنگی مختلف، نماهای دوربین، راهنمای چرخش اضافی و محرکهای پاسخ رویداد باشد. لیست زیر برخی از تنظیماتی را که می توانید انجام دهید توضیح می دهد. این فهرست جامع نیست.
اصلاح
جزئیات
راهنمای ناوبری اصلاح شده: نمایش/پنهان کردن هدرها، رنگ ها و فونت ها، مسیرها، مسیرهای جایگزین و پیشرفت سفر
تاریخ آخرین بهروزرسانی 2025-08-15 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-08-15 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThe Google Navigation SDK enables developers to easily integrate turn-by-turn navigation into their apps using pre-built UI elements similar to the Google Maps app.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can customize aspects of the Google navigation experience like color schemes, camera views, and guidance information, but for full control, a custom navigation experience is recommended.\u003c/p\u003e\n"],["\u003cp\u003eThe Google navigation experience involves a three-step flow: starting navigation by defining the destination, active navigation with real-time guidance, and stopping navigation upon arrival.\u003c/p\u003e\n"],["\u003cp\u003eThe Navigation SDK offers various options for modifying the navigation UI, such as showing or hiding elements, adjusting traffic and speed limit information, and customizing the map and camera.\u003c/p\u003e\n"]]],[],null,["The 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\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/android-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\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/android-sdk/controls) [Modify the navigation header](/maps/documentation/navigation/android-sdk/controls#modify_the_navigation_header) [Display directions list](/maps/documentation/navigation/android-sdk/controls#display_directions_list) [Hide alternate routes](/maps/documentation/navigation/android-sdk/controls#hiding_alternate_routes) [Display trip progress](/maps/documentation/navigation/android-sdk/controls#trip-progress-bar) |\n| Adjust traffic information and speed limit information | [Turn off traffic layer](/maps/documentation/navigation/android-sdk/controls#turn_off_the_traffic_layer) [Enable traffic lights and stop signs](/maps/documentation/navigation/android-sdk/controls#enable_traffic_lights_and_stop_signs) [Display the speedometer](/maps/documentation/navigation/android-sdk/controls#display_the_speed_limit) |\n| Change the map experience UI and adjust the camera. | [Add custom markers](/maps/documentation/navigation/android-sdk/controls#add_custom_markers) [Floating text](/maps/documentation/navigation/android-sdk/controls#floating_text) [Set night mode](/maps/documentation/navigation/android-sdk/controls#set_night_mode) [Adjust the camera](/maps/documentation/navigation/android-sdk/camera) |"]]