Offline navigation - GraphHopper - preparation

Started by Menion, July 16, 2014, 20:43:19

0 Members and 2 Guests are viewing this topic.

Menion

@develar
firstly, really nice work. I'm sure, many users appreciate it.

Just published version 0.7 of GH add-on.
Main change: using latest stable GH API 0.10
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download

Bucky Kid

#241
@menion: I can't find the updated version, is it still here?
https://nas.asamm.com/share.cgi?ssid=0GmHJnN

@develar: thanks for the method, my region is specific and not aligned exactly on country borders, so there will be probably a small target, and I use different set of wehicles
  •  

develar

  •  

Menion

Ah thanks, I've updated the first post and hope it is ok for you @develar, that I pointed users directly on your web server.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  
    The following users thanked this post: develar

Bucky Kid

Thanks develar for updated link, do you know where to get Windows binaries for osmium tool?
I am unable to compile from sources.
  •  

develar

@Bucky Kid Please see https://ci.appveyor.com/api/buildjobs/skx61j610842y80u/artifacts/osmium_Release_x64.zip

Issue https://github.com/osmcode/osmium-tool/issues/59 is opened. I don't test it (I use macOS).

> I am unable to compile from sources.

Process is not easy. That's why I created http://graphhopper.develar.org/ and any user can request any region to be added to avoid low-level things.
  •  
    The following users thanked this post: Bucky Kid

Bucky Kid

Quote from: develar on June 18, 2018, 13:49:19osmium extract --overwrite --config=extracts.json --strategy=smart europe-latest.osm.pbf
Finally got everything to work, but this is not working, instead I had to uise

osmium extract --polygon extracts.json ....

or also works

osmium merge -o my-europe.osm.pbf country1-latest.osm.pbf country2-latest.osm.pbf country3-latest.osm.pbf ...

however anyway I brush up against problem of memory limitation so wasn't able to generate combined routing data even only for 3 countries, so seamless routing will only be possible by adding support for automatic region selection in graphopper app.
  •  

develar

#247
@Bucky Kid

> however anyway I brush up against problem of memory limitation so wasn't able to generate combined routing data even only for 3 countries, so seamless routing will only be possible by adding support for automatic region selection in graphopper app.

`export JAVA_OPTS="-Xmx15g -Xms10g -XX:+UseG1GC"`

where `15g` it is `available RAM - 1GB` (1GB for system). Change `-Xms10g`  if you don't have 10GB.

and if your machine doesn't have enough memory (estimate: num of encoders * size of input map), use MMAP instead of RAM_STORE.

Or you can stop wasting your time and file issue to https://github.com/develar/gh-routing-data/issues/new ;)
  •  

develar

#248
About memory on mobile — Locus add-on correctly set MMAP instead of RAM_STORE. It works very fast because provided graphs by http://graphhopper.develar.org/ are sorted. Yes, there is penalty, but insignificant — you can build europe wide route (900 km) in _several seconds_. The only downside of large regions — disk space (e.g. de-at-ch takes 5GB). But SD cards are cheap nowadays :)
  •  

Bucky Kid

Thanks for all the input. Combined region now compiles successfully. There remains one issue and that is when I use sorting (graph.do_sort), the compilation ends up with error

Exception in thread "main" java.lang.AssertionError: The turn cost storage must be initialized only once.
        at com.graphhopper.storage.TurnCostExtension.init(TurnCostExtension.java:60)
        at com.graphhopper.storage.BaseGraph.<init>(BaseGraph.java:144)
        at com.graphhopper.storage.GraphHopperStorage.<init>(GraphHopperStorage.java:83)
        at com.graphhopper.util.GHUtility.newStorage(GHUtility.java:281)
        at com.graphhopper.GraphHopper.postProcessing(GraphHopper.java:854)
        at com.graphhopper.GraphHopper.process(GraphHopper.java:671)
        at com.graphhopper.GraphHopper.importOrLoad(GraphHopper.java:640)
        at com.graphhopper.tools.Import.main(Import.java:50)


If I turn off turncosts for calculation, the sorted data compile, so the two features probably cannot be used concurrently
  •  

develar

You cannot use turn costs for now. https://github.com/graphhopper/graphhopper/issues/1401 I didn't yet publish PR to Locus add-on.
  •  

Andy Tover

Is the GraphHopper offline routing "project" dead? None of the links on develar.org for any of the routing files work. Any other options for offline routing at this point besides BRouter?
  •  

Menion

Hello,
should not be, To be true, do not know why data from @develar server are not downloadable anymore.

You still may download add-on's APK and compile routing data on your own.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

Bucky Kid

Quote from: Andy Tover on September 18, 2018, 00:19:01
Is the GraphHopper offline routing "project" dead?
No it is not. 0.12-SNAPSHOT is current version.
I'd be interested if turn costs and graph sorting collision was already sorted out.
  •  

john_percy

Graphhopper hike and bike routing data are available once again at https://graphhopper.develar.org/ .
Car routing data is not currently available as it does not work satisfactorily (I presume).
Thanks to develar.
Voluntary and Velocity themes - https://voluntary.nichesite.org
  •  
    The following users thanked this post: Menion