This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Creating maps and altitude cross sections

2

I'm trying to export a route from openstreetmap, as I'm writing an article for a cycling company in Majorca. I can see how to select a specific area on the map, but can't work out how to select a route and also create a cross section of the altitude of the route. (like this: http://mallorcacycling.co.uk/mallorca-cycle-routes/sa-calobra-route/) I have little coding knowledge, so if there's a simple way to create this using the info already in openstreetmap that would be great. Thanks

asked 11 Jul '16, 15:29

ClaireY's gravatar image

ClaireY
41114
accept rate: 0%

edited 11 Jul '16, 15:35

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866

Thanks Piskvor - that's really helpful. I'm embedding maps into a website for users to view. So I think graphhopper is the ideal solution. thanks:-)

(11 Jul '16, 16:33) ClaireY

One Answer:

1

Are you trying to do this as a user, or make a website which calculates this for users?

Is this what you're trying to get? https://graphhopper.com/maps/?point=39.582936%2C2.671051&point=39.760519%2C2.868805&locale=cs-CZ&vehicle=bike&weighting=fastest&elevation=true&layer=Omniscale

If doing this as a developer: elevation is not really a part of the OSM data. However, there are projects combining various free sources (OSM for maps and SRTM for elevation). Some of them are specifically geared towards cycle routing, such as https://www.cyclestreets.net/ (code is at https://github.com/cyclestreets )

Apparently Graphhopper also makes this possible: https://graphhopper.com/blog/2015/04/21/elevation-data-and-openstreetmap/

answered 18 Jul '16, 07:55

Piskvor's gravatar image

Piskvor
1.3k91535
accept rate: 37%

Source code available on GitHub .