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
... | |
searchRequest.addReference("yelp"); | |
... |
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
... | |
m_mapRoute = new MapRoute(routeResults.get(0).getRoute()); | |
/* Show the maneuver number on top of the route */ | |
m_mapRoute.setManeuverNumberVisible(true); | |
... |
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.calculateRoute(routePlan, | |
new Router.Listener<List<RouteResult>, RoutingError>() { | |
@Override | |
public void onProgress(int i) { | |
/* The calculation progress can be retrieved in this callback. */ | |
} | |
... |
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
... | |
/* 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) { |
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
... | |
/* Calculate the shortest route available. */ | |
routeOptions.setRouteType(RouteOptions.Type.SHORTEST); | |
/* Calculate 1 route. */ | |
routeOptions.setRouteCount(1); | |
/* Finally set the route option */ | |
routePlan.setRouteOptions(routeOptions); | |
... |
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
... | |
routeOptions.setTransportMode(RouteOptions.TransportMode.PEDESTRIAN); | |
... |
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
... | |
s_ResultList = discoveryResultPage.getItems(); | |
for (DiscoveryResult item : s_ResultList) { | |
/* | |
* Add a marker for each result of PlaceLink type. | |
*/ | |
if (item.getResultType() == DiscoveryResult.ResultType.PLACE) { | |
PlaceLink placeLink = (PlaceLink) item; |
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
... | |
searchRequest.execute(discoveryResultPageListener); | |
... |
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
... | |
searchRequest.setCollectionSize(5); | |
searchRequest.setSearchArea(currentLocation,5000); | |
... |
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
... | |
SearchRequest searchRequest = new SearchRequest("Pub"); | |
... |
NewerOlder