Closed GoogleCodeExporter closed 8 years ago
This error typically happens if the OSRM service is not reachable (no network
access, or OSRM service issue).
After calling road = roadManager.getRoad(), your code must check the road
status:
if (road.status == STATUS_OK) => fine.
If not, there is a technical error. You will get a default road (straigth
line), with no nodes.
Original comment by mathieu....@gmail.com
on 29 Oct 2013 at 6:16
Checking road.mStatus it returns:
10-29 22:31:53.193: I/System.out(5312): 2
"2" refers to STATUS_DEFAULT right?
Sending the mapview activity.
Original comment by ricardoa...@gmail.com
on 29 Oct 2013 at 11:10
Attachments:
Right. And your code seems OK.
What is the content of your waypoints list (Terreo.getWaypoints())?
Are you sure your terminal or emulator has network connection? And that your
application has android.permission.INTERNET?
Original comment by mathieu....@gmail.com
on 30 Oct 2013 at 9:14
[deleted comment]
Yes, emulator is connected and have permissions.
I'm using a zip with my map tiles, do I really have to connect something?
Sending Terreo.class + AndroidManifest.xml + Log
Original comment by ricardoa...@gmail.com
on 30 Oct 2013 at 10:05
Attachments:
Execute the http request shown in the log.txt in a browser:
http://router.project-osrm.org/viaroute?&loc=-26.759999999999998,-52.207&loc=-26
.84,-52.207&loc=-26.84,-52.162&loc=-26.924999999999997,-52.162&loc=-27.0,-52.162
&instructions=true&alt=false
And you will see in the OSRM reply: "status_message": "Cannot find route
between points"
Check carefully your waypoints.
Original comment by mathieu....@gmail.com
on 1 Nov 2013 at 8:17
Original comment by mathieu....@gmail.com
on 26 Nov 2013 at 11:23
Original issue reported on code.google.com by
ricardoa...@gmail.com
on 28 Oct 2013 at 11:46Attachments: