Offline navigation - GraphHopper - preparation

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

0 Members and 2 Guests are viewing this topic.

Bucky Kid

#180
Quote from: tommi on February 16, 2016, 22:09:00
@Locus-Team: GraphHopper 0.6.0 was released some days ago. Could we get an update of the Locus plugin?

+1

...+ wish to handle SRTM weights in future addon versions if possible.
Now I'm getting strange error if graph.elevation.provider=srtm is used:



There's a bike profile which counts into segment weight also elevation profile (brilliant idea)

graph.flagEncoders=car|turnCosts=true,bike2,mtb,foot
graph.elevation.provider=srtm
osmreader.bytesForFlags=8
  •  

tigus

Hello 0.7 version available from June.
You now have two profiles of "walking". A quick for the fastest way to do walking even main streets with sideways on either side and one hike that prioritizes safety and tourist attractions (as I understood forum).
I know Menion is making a great effort to integrate BRrouter, but GraphHopper is also a good tool.
Consultation, why is limited to 2 the number of intermediate points?
Greetings.
  •  

pelsta

Hi,
I have created a little .bat file to generate routing files for Locus GraphHopper in Windows.


set NAME=slaskie
set FILE=%NAME%.pbf
set JAVA_OPTS=-Xmx1250M
set GH_CLASS=com.graphhopper.tools.Import
set CONFIG=config.properties
rem GH_IMPORT_OPTS=?
set GRAPH=%NAME%-gh
set JAR=tools\target\graphhopper-tools-0.5.0-jar-with-dependencies.jar

java %JAVA_OPTS% -cp %JAR% %GH_CLASS% config=%CONFIG% %GH_IMPORT_OPTS% graph.location="%GRAPH%" osmreader.osm="%FILE%"

pause

  •  
    The following users thanked this post: Bucky Kid

pelsta

Hi,

Will there be a new version of the generator for generating GraphHopper routing files, compatible with GH add-on 0.3 - based v0.7.apk ?
  •  

silvermapper

#184
I have encouraged my son to use Locus Map and OSM mapping on his Samsung 'phone.  I use the Locus Map - add-on GraphHopper for my navigation.  I have installed the GH addon 0.2 - based v0.5.apk to his 'phone successfully.  I have copied my own england.osm-gh data (folder containing seven files) to Locus/mapsVector on his 'phone, too, as I have done with updated data many times to my own 'phone. Yet the add-on states, "No content".  I have carried out the same procedure successfully to my wife's Moto G 'phone, previously.  I wonder where a problem might lie?
NOTE: I see this issue raised in Reply #179 by devo on February 17, 2016 without a conclusion, it seems.
  •  

tigus

Hi good day.
Anything new with updating the GraphHopper plugin? Not long ago, version 0.9 was released.
Greetings.
  •  

Menion

GraphHopper add-on & generated data updated to latest GH version 0.9.0

More (mainly links to download) in first post.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download
  •  
    The following users thanked this post: Bucky Kid

Bucky Kid

Thanks for update.

I see the routing data are compiled only with base profiles.
Does the add-on support profiles with elevation data?
If so, I want to try generate more versatile data.
  •  

Menion

#188
Suggest to try it. What add-on offer in Locus is based on content of files. So yes, it should be supported. If there will be any problem, let me know (+ give me some generated sample data).

Only what is currently needed, to disable weighting as mentioned in config.properties file.

EDIT: ah sorry!! bike2 flag encoder is currently not support. If you generate me some sample data, I'll test it and add it ;).
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download
  •  

pelsta

Quote from: menion on July 25, 2017, 13:31:02
GraphHopper add-on & generated data updated to latest GH version 0.9.0

More (mainly links to download) in first post.

I can't find generator now.
  •  

Menion

Ah sorry. Whole add-on & data are based on version 0.9 , so feel free to grab required version from public GraphHopper repository: https://github.com/graphhopper/graphhopper/tree/0.9 . On our server is provided only Android APK file + our configuration we used to generate data + generated world files.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download
  •  

Bucky Kid

Hello menion, as I expected the addon doesn't handle elevation data so bike2 profile can't be used to generate data. I get the error toast 'Configured dimension (2) is not equal to dimension of loaded graph (3)'
You can test the behaviour with bike2 routing data here:
https://drive.google.com/file/d/0By0QjFcdxojocnRZN2Q5VFJTb0E/view?usp=sharing
  •  

Menion

Oki thanks!

Try new AddonGraphHopper_12_0.4.1_release.apk version (in same directory as previous), it should work now.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download
  •  
    The following users thanked this post: Bucky Kid

Bucky Kid

Updated add-on works perfectly.
Now better routing data can be created using

graph.flag_encoders=car|turn_costs=true,bike2,foot,...
graph.elevation.provider=srtm
prepare.ch.weightings=no
graph.bytesForFlags=8
  •  

srtie4k

Any way to get the graphhopper 0.9.0 files prepackaged as JAR's with dependencies, so I can use it in Windows to convert OSM region files?
  •