Skip to content

Instantly share code, notes, and snippets.

@here-devblog-gists
Created August 28, 2018 11:01
Show Gist options
  • Save here-devblog-gists/10539e9c5e9f58a62b3194f6104e9692 to your computer and use it in GitHub Desktop.
Save here-devblog-gists/10539e9c5e9f58a62b3194f6104e9692 to your computer and use it in GitHub Desktop.
...
/* Define Waypoints for the route
* The first one being current location
* Select the rest from the ResultList
* */
routePlan.addWaypoint(new RouteWaypoint(currentLocation));
for (DiscoveryResult item : s_ResultList) {
if (item.getResultType() == DiscoveryResult.ResultType.PLACE) {
PlaceLink placeLoc = (PlaceLink) item;
routePlan.addWaypoint(new RouteWaypoint(placeLoc.getPosition()));
}
}
...
@Amoon-123
Copy link

@Amoon-123
Copy link

``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment