I cant get the fastest route with the blackberry example, i only can get de shortest route, and i dont what that.
new CloudMadeDirections(userId, nutiteqRouteWaiter,
nutiteqRouteWaiter.getStartCoordinates(),
nutiteqRouteWaiter.getEndCoordinates(), "Car",
CloudMadeDirections.ROUTE_TYPE_MODIFIER_SHORTEST,
"222c0ceb31794934a888ed9403a005d8").execute();
This code work fine for shortest route, but :
if i use
new CloudMadeDirections(new DirectionsWaiter() {
public void routingParsingError(String arg0) {
// TODO Auto-generated method stub
}
public void routingErrors(int arg0) {
// TODO Auto-generated method stub
}
public void routeFound(Route arg0) {
// TODO Auto-generated method stub
}
public void networkError() {
// TODO Auto-generated method stub
}
},
nutiteqRouteWaiter.getStartCoordinates(), nutiteqRouteWaiter.getEndCoordinates(), YourNavigationDirections.MOVE_METHOD_CAR, "222c0ceb31794934a888ed9403a005d8", userId);
The route does not appear.
Replacing CloudMadeDirections.ROUTE_TYPE_MODIFIER_SHORTEST constant with String "fastest" should give fastest route, there is just no readymade constant for it.. Debug log should show URL which was used, this may help to troubleshoot it.
/JaakL