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

Uudised

Viimane: Tue, 17 May 2011 13:21:59
Teema: Nutimap Eesti kaardi asemele
Veel uudiseid »

Network error getting directions

2 replies [Last post]
twalsh
User offline. Last seen 1 year 11 weeks 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 11 hours 19 min 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 11 hours 19 min 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