Menu
  • HOME
  • TAGS

Remove previous route in graphhopper android?

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...

How to do a gps map-matching with graphhopper for a bicycle-track

java,graphhopper

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...

Find the right instruction after GPS fix lost using Graphhopper

android,gps,graphhopper

Try: ghResponse.getInstructionList().find(currentPosition.latitude, currentPosition.longitude) ...

Re-use EdgeIterator

graphhopper

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...

Graphhopper cannot find the point

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...

How edge indexing works in graphhopper?

graphhopper

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...

Using actual road speeds with Graphhopper

graphhopper

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...

Voice guided navigation on Graphopper

graphhopper

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)...

Allow POST method

graphhopper

That is not a jetty config. You'll have to implement 'doPost' in the GraphHopperServlet

Generate API key on self-hosted instance

graphhopper

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 :)

Using OSM node/way id in Graphhopper

graphhopper

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...

Route not found that should be routable on own Graphhopper installation

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...

Graphhopper on emulator - No maps in list

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.

Graphhopper Server - Create and use a custom vehicle type

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.