12 weeks 2 days ago
—
Nutiteq is proud sponsor of StateOfTheMap 2010 #sotm10
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
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.
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