Offline navigation - GraphHopper - preparation

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

0 Members and 5 Guests are viewing this topic.

Menion

Hi guys,

Quote
Because of recent progress in GraphHopper service, work on this add-on on our side was terminated.



Latest version of Locus GraphHopper add-on: v0.10

Requirements: Locus Map 3.9.3.3+

Download the APK file from HERE. Copy the apk file to your device and install.

Download Routing files from HERE, based on your country. Suggest to tap on Locus button directly in your device web browser!

Start Locus and set GraphHopper as default routing service.
http://docs.locusmap.eu/doku.php?id=manual:user_guide:functions:navigation:settings#navigation_data_sources

In the GraphHopper Add-on choose which file you want to use. Do this in settings button on right side of previous settings.




How to generate routing files
- Download the raw openstreetmap file (pbf files)
- Execute ./graphhopper.sh import <your-osm-file>. This creates the routing data

Recommended generator parameters
graph.flag_encoders: bike2,racingbike,mtb,hike
graph.bytes_for_flags: 8
graph.elevation.provider: cgiar


add `car|turn_costs=true` if need car routing

- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download

gynta

#1
nice - 2 years ago we talk about graphHopper.

Menion

2 years ... nice :)

There were three blocking factors
1. GraphHopper developer wasn't sure what he wants
2. GH developer had not much time on this project
3. no way to provide data to users

And situation now
1. GraphHopper developer work on this project on full time
2. He still don't have a time, so I decided to make add-on as own project
3. we have store to distribute routing data now

So here it is, working offline routing together with actions (not jsut plain track without navigation).

There is still missing a few features (like roundabouts), but I already ride around 300 km by car and 200 by bike with it and it works ;)
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

tramp20

#3
I did all what menion wroteDownloaded zip files place into Locus/graphHopper directory (extracted). In add-on choose which file you want to use. That's all

But after selecting the map in the add-on I get not the additional GraphHopper in Navigation/Quelle zur Routenberechnung.
The list has only the first 4 entries :-(

edit
The pro version seems to be too old :-)
The test version shows it now.

But at the first glance I do not know how to proceed, I am really to old for new things.
Sony Xperia Z1c     Android 11 LOS 18.1
Sony Xperia 5 ii      Android 12
Samsung S23 Ultra Android 14

User ID acc406201
  •  

Menion

Yes you need Test version. Current Pro version do not know this new mechanism.

And too old :) ... just in settings choose GraphHopper, choose in GraphHopper settings which data source you want to use and then start navigaion in Locus like usually. Function "Navigate to", or for testing at home is best "Add new route" (button 5 - http://docs.locusmap.eu/doku.php?id=manual:functions:add_new_route_measure#compute_route_no_5 )
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

tramp20

Thank you,  I will this tomorrow.


Gesendet von meinem D5503

Sony Xperia Z1c     Android 11 LOS 18.1
Sony Xperia 5 ii      Android 12
Samsung S23 Ultra Android 14

User ID acc406201
  •  

Čelda

  •  

Christian

Quote from: menion on July 30, 2014, 15:45:39
Yes you need Test version.

Hi menion, would you please edit and insert this quote into your first post? Otherwise more old people like tramp and me will try to run the add-on on the wrong version of Locus.
Thanx,
Christian
  •  

gynta

#8
can't change routing data.
see clip

edit
have to restart locus after change...

ta-ka

  •  

Menion

@gynta: thanks, I have idea why this happen, so I'll fix it

@christian, tramp: oki added

@ta-ka: for you, almost everything ;). Give me a day

@čelda: why Android 4.0+? Because of memory limits on old devices.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

jusc

Quote from: gynta on July 30, 2014, 17:59:05
can't change routing data.
see clip

edit
have to restart locus after change...
Did you delete first point? It seems that GrassHopper does not route outside the choosen area.
Regards J.
  •  

gynta

#12
jusc, see clip.
i start a new nav. after breaking first routing.
...but I think Menion has already found the problem.


edit
btw.
graphHopper hates motorways ;)

(yes i selected car modus)

tramp20

I cannot change between Auto, Rad and zu Fuß.
Always car mode is selected.

But the new procedure to navigate looks good and is (for me) simple enough :-)

Sony Xperia Z1c     Android 11 LOS 18.1
Sony Xperia 5 ii      Android 12
Samsung S23 Ultra Android 14

User ID acc406201
  •  

gynta

Quote from: tramp20 on July 31, 2014, 07:24:40
I cannot change between car, cycle and foot. Always car mode is selected.
"selected" ? means you notice that only from the result?
hmm maybe my problem (above) has the same cause - I thought I had chosen "car" - but it's "foot" or "cycle".
Possible?