I've got many GPX files in the following format:

<?xml version="1.0" encoding="utf-8"?>
<gpx xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.1" creator="c174a4ce-d611-43ef-b4d9-e4122bc8f2a4" xmlns="http://www.topografix.com/GPX/1/1">
    <name>Withens Clough, Cragg Vale and Stoodley Pike</name>
    <rtept lat="53.705918666306154" lon="-2.02137437495311">
    <rtept lat="53.705457119907116" lon="-2.0253609418514311">

I use this is a website to generate a route using OS Openspace maps. However, this doesn't create an elevation profile.

Is there a web service or something I can run on my web server that can generate GPX elevation graphs for embedding into webpages? My web server runs PHP.

I've found plenty of Google map ones but don't need the map, just the graph, but in the implementations I've looked at it seems like one depends on the other and don't want to compromise loading times by including two maps or remove the OS maps which are a lot better, in my view.


I found a nice OpenSpace Example with Elevation graph displayed that uploads gpx files for anywhere in the UK and displays the Elevation.


Altitude data from GeoNames http://www.geonames.org/export/web-services.html

(its worth looking a the code and contacting the author via the feedback form)

  • Wow, that's a very nice implementation indeed, just what I'm after. I'd been playing with the OS's own 'panorama' data but I'll have a good look at what has been done on that site with different data. Great. Thanks! – Scott Brown Dec 7 '12 at 15:10
  • panorama is not updated any more 'Update frequency: Unmaintained.' ordnancesurvey.co.uk/oswebsite/products/land-form-panorama/… it is not complete in mountainous areas either. – Mapperz Dec 7 '12 at 15:39
  • mapstogps.com is no longer in service, apparently. – Tomislav Nakic-Alfirevic Apr 11 '17 at 19:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.