Comments (7)
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.
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.
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.
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.
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.
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.
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)
- Road =RoadManger.GetRoad (waypoints) return null and waypoints working correctly as i did alot of test in it HOT 2
- why not have Github ? HOT 1
- No Polyline drawn HOT 6
- RadiusMarkerClusterer not available in OsmBonusPack 5.0 HOT 2
- jobTheme = InternalRenderTheme.OSMARENDER incompatible types in osmnavigator HOT 2
- Custom bubble with button to start an Intent HOT 1
- Problem of BonusPack tuto when porting in Android Studio HOT 5
- Route is not calculated with OSMNavigator using OSRM Route Provider HOT 5
- Maven Central or jCenter Publication
- Android2.1 crashes in RadiusMarkerClusterer HOT 1
- Get visible items of a cluster HOT 14
- UnsupportedOperationException when GeoJSON contains nested properties HOT 4
- Delete selected area of cache. HOT 2
- Cannot remove bubble on the map. HOT 2
- Maven dependency for osmbonuspack
- roadManager.getRoad return null HOT 2
- Migrate to GitHub HOT 2
- What version of kml is supported? HOT 1
- OSMBonusPack API in Enterprise application HOT 6
- Routing HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osmbonuspack.