0

I've been working on a routing app for the last few months and it's near completion now. The final feature I want to add is elevation. So when when running/cycling through a path, I would also wanna add the elevation data, so I know SRTM provides elevation data..but I don't know the best way to merge this with the osm xml file I'm using.

asked 17 Apr '15, 16:32

echoalphapapa's gravatar image

echoalphapapa
417812
accept rate: 0%

edited 17 Apr '15, 17:05

aseerel4c26's gravatar image

aseerel4c26 ♦
32.2k16239552


3 Answers:
5

See this recently published solution for using elevation data in routing (based on OSRM, but I'm sure it could be relevant to other routing apps): http://www.liedman.net/2015/04/13/add-elevation-data-to-osrm/

permanent link

answered 19 Apr '15, 16:07

Richard's gravatar image

Richard ♦
28.5k40253383
accept rate: 19%

4

your "add the elevation data" is not very specific on what you want to do.

Let me try a first help (although I never did anything similar):

AFAIK SRTM is more or less a big bitmap with the heights, so really merging this with the OSM XML is not possible (except for contour lines in a map making process). You would need to merge them in a later processing step.

You might want to have a look at other open source routing applications. E.g. graphhopper (demo) - uses the elevation data for routing (i.e. avoiding or targeting mountains). See this very recent blog post: Elevation data and OpenStreetMap (by karussell).

Also see

permanent link

answered 17 Apr '15, 17:14

aseerel4c26's gravatar image

aseerel4c26 ♦
32.2k16239552
accept rate: 18%

edited 27 Apr '15, 22:13

3

I can confirm that graphhopper uses elevation for routing e.g. for the bike profile it tries to avoid hills. And there is a simple config change to enable elevation, either via SRTM or the enhanced CGIAR data

(18 Apr '15, 09:47) peatar

@peatar: thanks! I have fixed it in my text and also linked the recent blog post about this.

(27 Apr '15, 22:14) aseerel4c26 ♦

Thanks :) !

(30 Apr '15, 21:23) peatar
-1

Also you can use APIs to get elevation by lot/lat for example from Google elevation API or this one

permanent link

answered 01 Aug '16, 09:42

Gaploid's gravatar image

Gaploid
10113
accept rate: 0%

edited 01 Aug '16, 09:43

1

No, you cannot use Google APIs and merge with OSM data due to OSM&Google licensing

(01 Aug '16, 10:13) peatar

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×110
×80
×10
×9

question asked: 17 Apr '15, 16:32

question was seen: 5,529 times

last updated: 01 Aug '16, 10:13

powered by OSQA