Nick,<div>I am sure that all routing programs must do something similar, but last year Hermann Kraus produced <a href="http://wiki.openstreetmap.org/wiki/Srtm2wayinfo">srtm2wayinfo</a> for his Google Summer of Code Project.</div>
<div>It does what you are talking about - looks for junctions between ways and splits the ways into sections between junctions.   The output is a set of relations representing each section.</div><div>The 'srtm' part of the program is that it will also give you the total climb in each section too.</div>
<div><br></div><div>Graham.<br><br><div class="gmail_quote">On 19 November 2010 10:04, Nick Whitelegg <span dir="ltr"><<a href="mailto:Nick.Whitelegg@solent.ac.uk">Nick.Whitelegg@solent.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I'm wanting to add a feature to Freemap (UK OSM-based hiking site) to allow users to tag individual trails with route descriptions, interesting features etc - with the eventual aim of allowing users to select a walking route and have a ready-made route description (note these descriptions will be stored in my own database... no need to worry about overloading OSM with this!)<br>

<br>
However, to do this effectively I need to split ways at junctions, e.g. if a trail has 3 junctions it should be split into 4 multi-point "segments", because a walking route will consist of several of these segments in a line or loop. (The more I think about it, the more I think that maybe we should have kept segments - the only problem with them was that they were restricted to 2 points -but anyway....)<br>

<br>
Anyway the crux of the matter is I'm wondering if anyone has a tool to do this already (to either write out an OSM file or write to a database) I could easily do one myself but obviously if there's something out there already I may as well use it.<br>

<br>
Thanks,<br>
Nick<br>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.org/listinfo/dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Graham Jones<div>Hartlepool, UK.</div><br>
</div>