[OSRM-talk] Problem with route road

Wojciech Tomczak wojciech_tomczak at wp.pl
Sun May 7 07:35:51 UTC 2017


Dnia Niedziela, 7 Maja 2017 09:24 Wojciech Tomczak <wojciech_tomczak at wp.pl> napisaƂ(a) 
Sorry, I'm in haste with explanations. I thought maybe this is a problem with the server because finding a route is not even via the portal. I am using the API on android after implementing the osmbonuspack_v6.3 library. When trying to use code:
_______________________________________________________________________________________

Log.e("ROAD!","START");
RoadManager roadManager = new OSRMRoadManager(CApplication.getContext());
Road hRoad = roadManager.getRoad(aGeoList);
Log.e("ROAD!","END");

CWayRouteRoad.CGeoList hGeoList = new CWayRouteRoad.CGeoList(RoadManager.buildRoadOverlay(hRoad).getPoints());
CWay hWay = new CWayRouteRoad(Color.RED, 2, 700, hGeoList, iCurrentZoom, hScreenBBox, "Route Road");
hOverlay.AddWay(hWay, "Route Road");

 ___________________________________________________________________________________________
 mStatus == 2, which corresponds Road.STATUS_TECHNICAL_ISSUE.
 I gets in logs:
________________________________________________________________________________

 05-07 09:04:46.118 9835-10357/com.studiosoftek.wt.OSMMap D/BONUSPACK: OSRMRoadManager.getRoads:http://router.project-osrm.org/route/v1/driving/14.573750495910645,53.53826712239718;14.551048278808594,53.54313810202354?alternatives=false&overview=full&steps=true.
__________________________________________________________________________________

Of course it works on another thread than the UI. After copying the URL to the browser gets Error 504. 
So the problem is that it does not return points beyond the ones I gave myself.
Thank you for the reply. I first ask the question publicly and I am happy to be able to communicate.

 

Wojciech Tomczak






More information about the OSRM-talk mailing list