Giter VIP home page Giter VIP logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
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 [email protected] on 20 Apr 2013 at 4:41

from osmbonuspack.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
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 [email protected] on 20 Apr 2013 at 6:54

from osmbonuspack.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
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 [email protected] on 23 Apr 2013 at 9:45

from osmbonuspack.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
Closed, due to lack of technical details to be able to reproduce/analyze. 

Original comment by [email protected] on 24 Aug 2013 at 4:18

  • Changed state: WontFix

from osmbonuspack.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
Closed, due to lack of technical details to be able to reproduce/analyze. 

Original comment by [email protected] on 24 Aug 2013 at 4:19

from osmbonuspack.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
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 [email protected] on 7 Nov 2013 at 8:06

Attachments:

from osmbonuspack.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
same issue. Getting a straight line without markers. Not realy useable.

Original comment by [email protected] on 18 Jan 2014 at 10:18

from osmbonuspack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.