27 November 2010

BROKEN: Converting relations to cycle routes

So, I've uploaded a whole set of edits to the OSM and in particular set up a relation covering the whole of a marked ride in Belgium. But now I want to follow the route on my GPS. In other words, how to covert a relation into a gpx.

OSM comes with an API, xapi, that provides access to data. The syntax to download all the elements of a relation is:

http://www.informationfreeway.org/api/0.6/relation[name=witloofroute] Note: does not work
or
http://www.informationfreeway.org/api/0.6/relation?name=witloofroute
http://www.informationfreeway.org/api/0.6/relation#14813

But I believe that this just gives the raw data, which is very frequently not ordered and would thus be useless to follow.

So, thank goodness for the OSM Relation Analyzer.

http://ra.osmsurround.org/analyze.jsp?relationId=14813

No comments: