Author Topic: Offline navigation - GraphHopper - preparation  (Read 85346 times)

Offline Bucky Kid

  • Padavan of Locus
  • ***
  • Posts: 299
  • Thanked: 5 times
    • View Profile
Re: Offline navigation - GraphHopper - preparation
« Reply #225 on: February 24, 2018, 13:40:04 »
Hello menion,
You guys are building own APK add-on? Is current project on GitHub works without problem for you? Better asking: is a current structure on GitHub clear and easily re-usable now?
the answer is no and no (see previous post by me). Current nightly updates can be (or not) preparation for 0.11 snapshot, anyway current gH sources generate routing data not compatible with latest official plugin. But it may be good to wait for next stable snapshot (as there may be more compatibility changes)

Here's latest data for test:
https://drive.google.com/open?id=1rwnMx3RlRIdMZKGbOExtj4dR85MOt4ti
« Last Edit: February 24, 2018, 15:28:50 by Bucky Kid »
 

Offline TrulloF

  • More than Newbie
  • *
  • Posts: 35
  • Thanked: 5 times
    • View Profile
  • Device: Xperia Z1 Compact
Re: Offline navigation - GraphHopper - preparation
« Reply #226 on: February 25, 2018, 11:56:04 »
No, we are not talking about creating own plugins, but generating routing data for the Locus plugin with latest gH builds, which still share the same version number, but aren't compatible anymore since a few gH builds (graphhopper-web).
Anyway, I'm using brouter most of the time, as it's usually faster and not limited to just one country.
 

Offline Bucky Kid

  • Padavan of Locus
  • ***
  • Posts: 299
  • Thanked: 5 times
    • View Profile
Re: Offline navigation - GraphHopper - preparation
« Reply #227 on: February 26, 2018, 13:45:32 »
graphHopper 0.11 is now the snapshot
 

Online menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 10761
  • Thanked: 170 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Offline navigation - GraphHopper - preparation
« Reply #228 on: February 26, 2018, 15:46:34 »
Oki guys, hopefully I understand.
Try new generated plugin ( https://github.com/asamm/locus-addon-graphhopper/releases/tag/0.5 ), with your latest routing data. Should work.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 
The following users thanked this post: Bucky Kid

Offline Bucky Kid

  • Padavan of Locus
  • ***
  • Posts: 299
  • Thanked: 5 times
    • View Profile
Re: Offline navigation - GraphHopper - preparation
« Reply #229 on: February 26, 2018, 16:14:55 »
Just tested and it works as expected
 

Offline TrulloF

  • More than Newbie
  • *
  • Posts: 35
  • Thanked: 5 times
    • View Profile
  • Device: Xperia Z1 Compact
Re: Offline navigation - GraphHopper - preparation
« Reply #230 on: February 27, 2018, 16:39:52 »
Yes. I can confirm it works with routing data created with latest 0.10 RC1 (didn't test 0.11 nightly yet).
 

Offline develar

  • More than Newbie
  • *
  • Posts: 12
  • Thanked: 6 times
    • View Profile
  • Device: Doogee S60
Re: Offline navigation - GraphHopper - preparation
« Reply #231 on: June 10, 2018, 19:53:17 »
Thanks a lot for add-on.

My PR https://github.com/asamm/locus-addon-graphhopper/pull/1 to update GH to 0.11.0-pre1 is merged, thanks (updated to 0.10 because it is latest release).
 
GH vs Brouter:

1) better routes (at least for racing bike).
2) much, much faster. Instant result (of course, if contraction hierarchies (CH) were prepared for routing data).
3) GH is everywhere - Komoot uses GH, Locus uses online GH API. So, you get nearly the same route regardless of online status.

@menion Could you please add note to first topic about recommended (I would say even required) options to build routing data:

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

(`prepare.ch.weightings: fastest` is set by default, should be not set to no)

I shared correct and up to date routing data for Germany+Austria+Switzerland (dach osm map) (keep in mind that GH doesn't support multiple files, so, if you need to cross borders, you have to use not country routing data, but some merged) — https://github.com/develar/gh-routing-data/blob/master/README.md#germany-austria-and-switzerland

Route calculation time is instant even for large distance with prepared CH. But size of routing data... (e.g. shortcuts_fastest_bike2 for DASH 929MB). Maybe a new “ landmark algorithm” is an option, but "Still the speed of contraction hierarchies is ~10 times faster on average". In any case SD card is cheap and modern phones have enough internal space in any case.
 

Offline develar

  • More than Newbie
  • *
  • Posts: 12
  • Thanked: 6 times
    • View Profile
  • Device: Doogee S60
Re: Offline navigation - GraphHopper - preparation
« Reply #232 on: June 14, 2018, 20:56:53 »
I published locus action files to simplify routing data installing and updating — https://graphhopper.develar.org As for openandromaps, now you can simply click "Locus" link to install or update.
 
The following users thanked this post: 0709, erfi

Offline john_percy

  • Padavan of Locus
  • ***
  • Posts: 496
  • Thanked: 47 times
    • View Profile
  • Device: MotoG
Re: Offline navigation - GraphHopper - preparation
« Reply #233 on: June 15, 2018, 08:19:26 »
For me, Graphhopper online in Locus provides six options for mode of travel, including car, while the offline version provides four, with no car mode.
Is this intentional?
« Last Edit: June 15, 2018, 08:42:24 by john_percy »
 

Offline develar

  • More than Newbie
  • *
  • Posts: 12
  • Thanked: 6 times
    • View Profile
  • Device: Doogee S60
Re: Offline navigation - GraphHopper - preparation
« Reply #234 on: June 15, 2018, 14:27:15 »
> while the offline version provides four, with no car mode

@ john_percy  Please see "Which vehicles are supported?"  https://graphhopper.develar.org/#maps

> Is this intentional?

Mode list depends on supported vehicles in a routing graph. I decided to not support car (for car probably better to use another app) and foot (hike is enough) to reduce size of graph. If you need "car", I can add it (or as separate files or include into graph if size will be acceptable).
 

Offline john_percy

  • Padavan of Locus
  • ***
  • Posts: 496
  • Thanked: 47 times
    • View Profile
  • Device: MotoG
Re: Offline navigation - GraphHopper - preparation
« Reply #235 on: June 15, 2018, 15:13:45 »
Thanks for the explanation. Personally I find access to offline routing for cars invaluable. There are times when I need car routing and there is no mobile signal.

As to which of Brouter and Graphhopper is best for offline car routing, I don't know!


« Last Edit: June 15, 2018, 23:08:15 by john_percy »
 

Offline develar

  • More than Newbie
  • *
  • Posts: 12
  • Thanked: 6 times
    • View Profile
  • Device: Doogee S60
Re: Offline navigation - GraphHopper - preparation
« Reply #236 on: June 16, 2018, 08:39:22 »
@john_percy I will add CH data to support car mode, it seems as separate graph routing data because of https://github.com/graphhopper/graphhopper/issues/1398
 
The following users thanked this post: john_percy

Offline tannenzäpfle

  • Newbie
  • *
  • Posts: 8
    • View Profile
  • Device: samsung s3
Re: Offline navigation - GraphHopper - preparation
« Reply #237 on: June 18, 2018, 07:58:29 »
I published locus action files to simplify routing data installing and updating — https://graphhopper.develar.org As for openandromaps, now you can simply click "Locus" link to install or update.

Hello,
when downloading d.ch-at I receive always a fault report as per enclosed screen-shot. I have tried on two separate tablets and with different Internet connections.
 

Offline develar

  • More than Newbie
  • *
  • Posts: 12
  • Thanked: 6 times
    • View Profile
  • Device: Doogee S60
Re: Offline navigation - GraphHopper - preparation
« Reply #238 on: June 18, 2018, 09:24:04 »
@john_percy Car routing with turn restrictions is not possible at the moment — https://github.com/graphhopper/graphhopper/issues/1401

Without discussion with GraphHopper developers I don't want to publish car routing using CH because I think that turn restrictions (https://github.com/graphhopper/graphhopper/blob/master/docs/core/turn-restrictions.md) is very important. If will be confirmed that landmarks algo is very slow and it is not possible to speed up on mobile, CH will be published with a warning that  turn restrictions not supported (well, you have to always follow actual road signs, but people are people).
 
The following users thanked this post: john_percy

Offline develar

  • More than Newbie
  • *
  • Posts: 12
  • Thanked: 6 times
    • View Profile
  • Device: Doogee S60
Re: Offline navigation - GraphHopper - preparation
« Reply #239 on: June 18, 2018, 13:07:32 »
It is Locus bug, I have filed http://help.locusmap.eu/topic/locus-action-extract-doesnt-support-large-files

As workaround, please download and extract manually (btw, it will be cool if Locus can download in parallel, as https://play.google.com/store/apps/details?id=com.dv.adm&hl=en does).

Routing data only for Baern/Austria/CZ is available to avoid the whole Germany.

PS. To avoid polluting this topic, I suggest report bugs about routing data to https://github.com/develar/gh-routing-data/issues