Mit Sammlungen den Überblick behalten Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Das Navigation SDK bietet verschiedene Möglichkeiten, eine Navigationsfunktion in Ihre App einzubinden. Auf dieser Seite wird die Google-Navigation beschrieben und es wird erläutert, wie sie sich von anderen Navigationsfunktionen unterscheidet, die im Navigation SDK verfügbar sind.
Was ist die Google-Navigation?
Die Google-Navigation bezieht sich auf die Verwendung des Navigation SDK, um eine detaillierte Routenführung mit von Google bereitgestellten UI-Elementen und Grafiken einzubetten, die der Navigation in den Google Maps-Apps ähneln. Wenn Sie die Google-Navigationsfunktion in Ihre App einbetten, müssen Sie die Navigation nicht von Grund auf neu entwickeln, können aber trotzdem Teile der Funktion anpassen. Wenn Sie mehr Anpassungsmöglichkeiten benötigen, als mit der Google-Navigation verfügbar sind, können Sie alternativ einen Feed für die detaillierte Routenführung aus dem Navigation SDK anfordern und dann Ihre eigenen UI-Elemente bereitstellen und verwalten.
Wenn Sie die Google-Navigationsfunktion verwenden, ruft Ihre App das Navigation SDK auf, um die Navigation zu starten, auszuführen und zu beenden. Dabei wird der folgende Ablauf verwendet:
Starten Sie die Navigation. Zum Starten der Navigation erstellt Ihre App eine Navigator-Instanz. Von dort aus wird das Ziel für die Navigation festgelegt und eine Karte initialisiert. Schließlich startet die App die detaillierte Routenführung. Dieser App-Ablauf kann dem Nutzer je nach Anwendungsfall auf verschiedene Arten präsentiert werden. Die App könnte beispielsweise eine Shopsuche mit eigenen UI-Elementen enthalten, über die Nutzer die Navigation zum Geschäft starten können. Oder Ihre App startet die aktive Navigation mit einem vordefinierten Ziel, wenn ein Fahrer eine Lieferaufgabe annimmt.
Aktive Navigation: Sobald Ihre App in die aktive Navigation wechselt, wird der Gerätestandort verwendet, um die aktive Führung aufrechtzuerhalten. Sie konfigurieren Event-Listener, die für Ihren Anwendungsfall relevant sind, z. B. für Routenänderungen und die verbleibende Zeit bis zum Ziel. Während der aktiven Navigation stellt das Navigation SDK UI-Komponenten bereit, die denen in den Google Maps-Apps ähneln. Die Navigationsoberfläche enthält beispielsweise eine Standardebene von Google Maps mit visuellen Elementen wie Karten für die Routenführung, Verkehrsebenen, Alternativrouten und Geschwindigkeitsbegrenzungen.
Navigation beenden Ihre App beendet die Navigationssitzung auf die für Ihren Anwendungsfall am besten geeignete Weise, z. B. mit einem Listener für die Ankunft, der ausgelöst wird, wenn der Nutzer das Ziel erreicht.
Wie können Sie die Google-Navigation anpassen?
Im Allgemeinen können Sie die Google-Navigation so anpassen, dass sie verschiedene Farbschemas, Kameraansichten, zusätzliche Abbiegehinweise und Ereignisreaktionstrigger bietet. In der folgenden Liste werden einige der Anpassungen beschrieben, die Sie vornehmen können. Diese Liste ist nicht vollständig.
Änderung
Details
Angepasste Navigationsanweisungen: Header, Farben und Schriftarten, Wegbeschreibungen, alternative Routen und Fortschritt der Fahrt ein-/ausblenden
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-17 (UTC)."],[[["\u003cp\u003eThe Navigation SDK offers the Google navigation experience, providing a pre-built, customizable turn-by-turn navigation feature similar to Google Maps.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can initiate, manage, and conclude navigation using the Navigation SDK, controlling aspects like destination setting and event handling.\u003c/p\u003e\n"],["\u003cp\u003eWhile utilizing the Google navigation experience, developers have the flexibility to customize UI elements such as color schemes, camera views, and turn guidance displays.\u003c/p\u003e\n"],["\u003cp\u003eFor advanced customization beyond the provided options, developers can opt for a custom navigation experience by requesting a turn-by-turn navigation feed and building their own UI.\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/ios-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/ios-sdk/controls#map_ui_controls) [Navigation header and footer](/maps/documentation/navigation/ios-sdk/controls#navigation_header_and_footer) [Navigation header accessory view](/maps/documentation/navigation/ios-sdk/controls#navigation_accessory_header_view) [Display directions list](/maps/documentation/navigation/ios-sdk/controls#directions_list) [Hide alternate routes](/maps/documentation/navigation/ios-sdk/controls#hide_alternate_routes) [Display trip progress](/maps/documentation/navigation/ios-sdk/controls#trip-progress-bar) |\n| Adjust traffic information and speed limit information | [Display the speedometer](/maps/documentation/navigation/ios-sdk/controls#speedometer_control) [Adjust speedometer alerts](/maps/documentation/navigation/ios-sdk/speedometer) [Enable traffic lights and stop signs](/maps/documentation/navigation/ios-sdk/controls#traffic_lights_and_stop_signs) |\n| Change the map experience UI and adjust the camera. | [Position UI elements](/maps/documentation/navigation/ios-sdk/controls#position_controls_and_ui_elements) [Adjust the camera](/maps/documentation/navigation/ios-sdk/camera) |"]]