Skip to content

Instantly share code, notes, and snippets.

@here-devblog-gists
Last active July 12, 2018 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save here-devblog-gists/f6cec67a56b8017e0cfc671e4d6ad21f to your computer and use it in GitHub Desktop.
Save here-devblog-gists/f6cec67a56b8017e0cfc671e4d6ad21f to your computer and use it in GitHub Desktop.
[coreRouter calculateRouteWithStops:stops routingMode:routingMode
completionBlock:^(NMARouteResult *routeResult, NMARoutingError error) {
// If the route was calculated successfully
// (For example, it might fail if there is no scooter-legal road between the waypoints.)
if (!error && routeResult && routeResult.routes.count > 0)
{
NMARoute* scooterRoute = [routeResult.routes objectAtIndex:0];
// Do scootery things
}
else if (error)
{
// Display a message indicating route calculation failure
}
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment