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 aseerel4c26 ♦ |
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/ answered 19 Apr '15, 16:07 Richard ♦ |
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 answered 17 Apr '15, 17:14 aseerel4c26 ♦ 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
|
Also you can use APIs to get elevation by lot/lat for example from Google elevation API or this one answered 01 Aug '16, 09:42 Gaploid 1
No, you cannot use Google APIs and merge with OSM data due to OSM&Google licensing
(01 Aug '16, 10:13)
peatar
|