Skip to content

Possibility to take elevation data into account - #169

Closed
karussell wants to merge 51 commits into
masterfrom
dim3
Closed

karussell wants to merge 51 commits into
masterfrom
dim3

Conversation

@karussell

Copy link
Copy Markdown
Member

This pull request adds elevation data to GraphHopper, a lot thanks goes to @NopMap for the initial implementation and for pushing me to this here :)

Use it via:

osmreader.acceptWay=BIKE2
graph.elevation.provider=srtm
graph.elevation.cachedir=./srtmprovider

Please have a look and report back any issues you get or you see!

Several things were necessary to do so:

  • several data structure needed an elevation property
  • the import process needs to import elevation data, we currently use SRTM but others will follow
  • There can be now two speed values per edge (up and down hill). Useful for traffic jams too. This is already merged to master. See Bike2FlagEncoder for an example.
  • The UI now displays the elevation nicely per route if imported, see below. With the really nice https://github.com/MrMufflon/Leaflet.Elevation plugin where @MrMufflon implemented this nice feature
  • the web API changed the format according to New Web API response format #164 in order to avoid "clear text" coordinates for instructions which is especially bad for biking & hiking tours, as they have many of them.
  • world wide coverage needed lot of tuning to make accessing the elevation data possible without increasing RAM usage of the JVM. Done via MMAP. Still small tweak necessary.

The master branch already has cherry picked some changes from this:

  • the introduced reverse property in e.g. the Weighting.calcWeight method and so the algorithms now have a notion of two weights per edge
  • CH is working for two weights per edge, the important bit was to avoid swapping for the single weight of a shortcut

There are still some things to do:

  • speed up of several things
  • currently not possible to use elevation only for speed changes and throw away after import
  • CGIAR support, see Added Elevation data to OSMReader #83 for a ready to use implementation. It is probably just necessary to adapt to the new interface

ele-screenshot

Peter added 30 commits January 27, 2014 12:30
…e decoding; separate NodeAccess; removed QuadTree utils and GraphStorage3D
@karussell

Copy link
Copy Markdown
Member Author

Merged into master. New issues will be created for the single tasks.

@karussell karussell closed this Mar 27, 2014
@karussell karussell added this to the 0.3 milestone Mar 29, 2014
@karussell
karussell deleted the dim3 branch January 20, 2015 16:08
dabiih pushed a commit to dabiih/graphhopper that referenced this pull request Jan 7, 2025
* mount popup into container

* get the height calculation right

* change point where the popup flips direction

* Put popup into own component. The large screen layout now uses a portal based popup in an overlay over the sidebar. The small screen layout still uses the autocomplete within the fullsize address input

* Clean up a little and put messy scroll logic into effect

* Select autocomplete suggestions only if they are of type geolocation, but not for the default currentLocation

* Move scroll logic into popup module

* Change some Icons and ajdust their height

* Remove double scrolling of routing results. Now, the entire Sidebar is scrolled.

* Style cancel button for fullscreen address search slightly different.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant