Closed GoogleCodeExporter closed 9 years ago
The straight line from start to end points is the result when the call to
roadManager.getRoad(waypoints) fails.
Failure can be technical (with a lot of possible reasons) or functional (no
route for this start/end)
But your explanation is a little bit short for any analysis.
Please look to the logcat, and provide the logs (including the request url,
which is traced in the logcat).
Original comment by mathieu....@gmail.com
on 20 Apr 2013 at 4:41
It only fails when routeType=bicycle.is specified. Specifying nothing or
routeType=fastest work fine so the route exists. OSRMRoadManager also works
fine. I don't have the logcats but the calls looked as expected and I didn't
see any obvious rejection of the bicycle parameter.
Original comment by davidpar...@gmail.com
on 20 Apr 2013 at 6:54
I just tried, using OSMBonusPackDemo application (with the option menu, it's
now possible to choose MapQuest/bicycle as the route provider): it worked fine.
This could be an issue with MapQuest service, on the specific route you ask
for? Have you tried various routes?
Could you provide the few relevant lines of your code (from constructor to the
getRoad call) ?
Original comment by mathieu....@gmail.com
on 23 Apr 2013 at 9:45
Closed, due to lack of technical details to be able to reproduce/analyze.
Original comment by mathieu....@gmail.com
on 24 Aug 2013 at 4:18
Closed, due to lack of technical details to be able to reproduce/analyze.
Original comment by mathieu....@gmail.com
on 24 Aug 2013 at 4:19
Hi, I've the same probleam with thw url
http://open.mapquestapi.com/guidance/v1/route?from=-8.060834,-34.871809&to=-8.05
7869,-34.888569&outFormat=xml&shapeFormat=cmp&narrativeType=text&unit=k&fishbone
=false&routeType=pedestrian
it returns the rout but a straight line is printed on the map. i'm using this
code:
private void showRout() {
RoadManager roadManager = new MapQuestRoadManager();
ArrayList<GeoPoint> points = new ArrayList<GeoPoint>();
points.add(new GeoPoint(-8.060834,-34.871809));
points.add(new GeoPoint(-8.05787,-34.888569));
roadManager.addRequestOption("routeType=pedestrian");
Road road = roadManager.getRoad(points);
final ArrayList<ExtendedOverlayItem> roadItems = new ArrayList<ExtendedOverlayItem>();
ItemizedOverlayWithBubble<ExtendedOverlayItem> roadNodes = new ItemizedOverlayWithBubble<ExtendedOverlayItem>(getActivity(), roadItems, mMapView);
Drawable marker = getResources().getDrawable(R.drawable.marker_node);
for (int i=0; i<road.mNodes.size(); i++){
RoadNode node = road.mNodes.get(i);
ExtendedOverlayItem nodeMarker = new ExtendedOverlayItem("Step "+i, "", node.mLocation, getActivity());
nodeMarker.setMarkerHotspot(OverlayItem.HotspotPlace.CENTER);
nodeMarker.setMarker(marker);
roadNodes.addItem(nodeMarker);
}
mMapView.getOverlays().add(roadNodes);
PathOverlay roadOverlay = RoadManager.buildRoadOverlay(road, mMapView.getContext());
mMapView.getOverlays().add(roadOverlay);
}
Original comment by pal...@informa.com.br
on 7 Nov 2013 at 8:06
Attachments:
same issue. Getting a straight line without markers. Not realy useable.
Original comment by jawb...@gmail.com
on 18 Jan 2014 at 10:18
Original issue reported on code.google.com by
davidpar...@gmail.com
on 19 Apr 2013 at 4:34