Skip to content

Instantly share code, notes, and snippets.

@here-devblog-gists
Created August 28, 2018 11:00
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/e14d8a2d92aa23f10b1505c5d0a8fa91 to your computer and use it in GitHub Desktop.
Save here-devblog-gists/e14d8a2d92aa23f10b1505c5d0a8fa91 to your computer and use it in GitHub Desktop.
...
/* Calculate the shortest route available. */
routeOptions.setRouteType(RouteOptions.Type.SHORTEST);
/* Calculate 1 route. */
routeOptions.setRouteCount(1);
/* Finally set the route option */
routePlan.setRouteOptions(routeOptions);
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment