Last active
July 12, 2018 13:43
-
-
Save here-devblog-gists/f6cec67a56b8017e0cfc671e4d6ad21f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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