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

Latest news

Last at Mon, 6 Sep 2010 12:27:06
Topic: Let your feedback ideas flow
See more news »

Nutiteq on Twitter

12 weeks 2 days ago Nutiteq is proud sponsor of StateOfTheMap 2010 #sotm10

Network error getting directions

2 replies [Last post]
twalsh
User offline. Last seen 4 weeks 4 days ago. Offline
Joined: 03/16/2010

Hi,

Is there some sample code out there that demonstrates getting directions in Android.

I've tried the following

CloudMadeDirections directions
= new CloudMadeDirections(new MyDirectionsWaiter(),startPoint, endPoint, CloudMadeDirections.ROUTE_TYPE_FOOT, APIkey);

the DirectionsWaiter always returns a network error which isn't very clear on what the problem is. My APIkey is valid and the application has internet user permissions.
What does "network error" refer to?
cheers

tim

jaak
User offline. Last seen 8 hours 5 sec ago. Offline
Joined: 06/19/2008

It could be for example 404 not found or 410 not authenticated situation, which is http-level "network error", but actually some parameter in the request was not ok. You should turn on logging and this may give hint what is the issue. Or it shows HTTP request to server and you can try it manually to see what server gives.

/JaakL

jaak
User offline. Last seen 8 hours 8 sec ago. Offline
Joined: 06/19/2008

ps. CloudMade directions works only on latest version in nutiteq.com/beta/lib. The 1.0.2 does not have the new authentication what CloudMade uses; this could be also your issue.

/JaakL