Instantly share code, notes, and snippets.

What would you like to do?
[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