Finish a navigation session
When you have reached the final destination on the route you should finish the navigation session. It is also possible to finish the session when the end user cancels the turn-by-turn navigation.
Mutation
To finish a navigation session, you need to provide the navigation id
and current_location
. When you finish a navigation session you can no longer send updates or do recalculations. The state of the navigation session will be set to finished
. After you have finished a navigation session you should unsubscribe from navigationUpdatedById.
Arguments
input
• non_null • NavigationFinishInput
Required
Navigation finish input
Response
If successful, the HTTP status code in the response header is
200
and the response body contains the attributes you
requested.
Mutation
mutation finishCalculation {
finishNavigation(
input: {
id: "624fed3789403385e0eca8d2"
current_location: {
type: Point,
coordinates: [9.1829321, 48.7758459]
}
}
)
}
Response
{
"data": {
"finishNavigation": null
}
}