startNavigation
Starts navigation from an optional origin to the given destination by fetching the best itinerary.
Return
the started Navigation.
Parameters
the starting coordinate. If null, the user's current location is used. Default is null.
the target coordinate to navigate to.
the mode of travel (e.g. walk). Defaults to TravelMode.Walk.
configuration for navigation behavior such as recalculation interval and arrival threshold.
rules applied when searching for an itinerary (e.g. accessibility constraints).
the maximum time allowed for the itinerary search request. Defaults to 30 seconds.
Throws
if navigation cannot be started — for example, another navigation is already active, or (when origin is null) the user's location cannot be retrieved.
if the itinerary search request fails, for example a network error or no itinerary found.
Starts navigation using a previously obtained Navigation object.
Use this overload to resume or replay a navigation that was already fetched, without triggering a new itinerary search.
Return
the started Navigation.
Parameters
the Navigation object to start.
Throws
if navigation cannot be started, for example another navigation is already active.
Starts navigation along a specific itinerary without performing a new itinerary search.
Use this overload when you already have an Itinerary object and want to navigate along it directly.
Return
the started Navigation.
Parameters
the Itinerary to navigate along.
configuration for navigation behavior such as recalculation interval and arrival threshold.
rules applied if navigation recalculation is triggered.
Throws
if navigation cannot be started, for example another navigation is already active.