android,routing,polyline,graphhopper,mapsforge
I have found the answer for my problem and am posting here Polyline localPolyline; public void calcPath( final double fromLat, final double fromLon, final double toLat, final double toLon ) { log("calculating path ..."); new AsyncTask<Void, Void, GHResponse>() { float time; protected GHResponse doInBackground( Void... v ) { StopWatch sw...
On the first import GraphHopper creates the folder graph-cache for the map-matching component. This folder needs to be removed if you change the vehicle or the area to trigger a new import. Please make sure you are using the 'official repo' not my personal fork :) Please feel free to...
Try: ghResponse.getInstructionList().find(currentPosition.latitude, currentPosition.longitude) ...
The EdgeIterator is reused if you use the EdgeExplorer: // store somewhere explorer = graph.createEdgeExplorer(); // use somewhere EdgeIterator iter = explorer.setBaseNode(x); while(iter) {..} Still be very careful with this as you need one edgeExplorer for every thread and every loop e.g. having a double for-loop with one explorer will...
routing,openstreetmap,graphhopper
You can play with a larger lookup radius: index.highResolution=1000 (we are working on a more dynamic solution) But as you can see there are really no roads around your point, so it also could make sense that the route is not found. Depending on your use case. 2) Also can...
The first weird thing is that nbEdges is equal to 15565 edges but count is only equal to 14417. How is it possible ? This is because of the 'compaction' where unreachable subnetworks are removed, but currently only nodes are removed from the graph the edges are just disconnected...
Edge Ids will change for a new import there is currently no way around it. You'll have to either create a mapping from OSM IDs to graphhopper IDs, but still this is error-prone as OSM IDs can change too. So the best approach would be to store the real position...
You need a text to voice engine. I think google offers one for free integrated in Android but there are certainly free alternatives. And then feed it with the appropriate message from the instruction. To find out which instruction comes next you can use the find method: ghResponse.getInstructionList().find(currentPosition.latitude, currentPosition.longitude)...
That is not a jetty config. You'll have to implement 'doPost' in the GraphHopperServlet
There is no need to create a key for your self-hosted GraphHopper. If there was you could easily disable the check by editing the source :)
I do not see the use for GraphHopper, although it can be handy to have for other applications (not sure) but there are drawbacks. E.g. one OSM id matches to a list of edge ids, also the OSM id is not static and therefor not recommended to be used as...
routing,openstreetmap,graphhopper
With the help of Karussel, we have found the problem. The problem is that some 'sub-networks' in the graph get deleted when preparing the graph, because they fall below the threshold of the minimum amount of nodes needed for a closed-off island to be routable. Lowering this threshold can be...
android,android-emulator,maps,graphhopper,mapsforge
This is a known issue and is fixed only in the very recent versions - we will update download links shortly. So please try to build from master or one of those apks.
linux,routing,openstreetmap,graphhopper
You can use an existing standard profile like car and reduce the speed profile and adjust the allowed highway tags. E.g. look into the CarFlagEncoder. Another (currently more complex) solution is to write a custom FlagEncoder from scratch.