Map API

Nutiteq Maps Lib SDK enables developing advanced mobile mapping applications.
Platforms: Android, RIM BlackBerry, Java ME (J2ME)
Download maps API SDK »
Untitled Document

Products

» View demos
» Downloads

Latest news

Last at Tue, 3 Apr 2012 23:31:42
Topic: MapXT SDK evaluation
See more news »

Fastest route (default) ???

1 reply [Last post]
callmeuve
User offline. Last seen 25 weeks 1 day ago. Offline
Joined: 11/15/2011

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.

jaak
User offline. Last seen 14 hours 30 min ago. Offline
Joined: 06/19/2008

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