On Mon, May 5, 2008 at 9:32 PM, Erik Johansson <<a href="mailto:erjohan@gmail.com">erjohan@gmail.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Tue, May 6, 2008 at 6:20 AM, Simon Wood <<a href="mailto:simon@mungewell.org">simon@mungewell.org</a>> wrote:<br>
> Hi all,<br>
> Is anyone working on any tools to facilitate the conversion of '.mp' to '.osm'?<br>
<br>
</div><div class="Ih2E3d">> Type=0x16<br>
> Label=Yamnuska West Ascent<br>
> RoadID=1176<br>
> RouteParam=1,0,0,0,1,1,1,1,1,0,0,1<br>
<br>
</div>Do you know what these means?<br>
<br>
<br>
grep -e ^Type Calgary_Area_Trail\ Map_1_13\ <a href="http://2.mp" target="_blank">2.mp</a> |sort|uniq -c |sort -gr |head<br>
1617 Type=0x16<br>
257 Type=0x5a00<br>
179 Type=0x6<br>
126 Type=0x4d00<br>
125 Type=0xa<br>
108 Type=0x18<br>
69 Type=0x4<br>
48 Type=0x6401<br>
46 Type=0x6412<br>
36 Type=0x4c<br>
.... removed..<br>
</blockquote><div><br>Type is the Garmin GPS object type. See the manual at <a href="http://www.cgpsmapper.com">www.cgpsmapper.com</a><br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
grep -e ^RouteParam Calgary_Area_Trail\ Map_1_13\ <a href="http://2.mp" target="_blank">2.mp</a> |sort|uniq -c |sort -gr<br>
1594 RouteParam=1,0,0,0,1,1,1,1,1,0,0,1<br>
172 RouteParam=3,0,0,0,0,0,0,0,0,0,0,0<br>
67 RouteParam=4,0,0,0,0,0,0,0,0,0,0,0<br>
62 RouteParam=4,2,0,0,0,0,0,0,0,0,0,0<br>
53 RouteParam=2,0,0,0,0,0,0,0,0,0,0,0<br>
10 RouteParam=5,3,0,0,0,0,0,0,0,0,0,0<br>
6 RouteParam=0,0,0,0,1,1,1,1,1,0,0,1<br>
5 RouteParam=3,0,1,0,0,0,0,0,0,0,0,0<br>
2 RouteParam=5,2,0,0,0,0,0,0,0,0,0,0<br>
1 RouteParam=3,1,0,0,0,0,0,0,0,0,0,0<br>
1 RouteParam=3,0,0,0,0,0,1,1,1,0,0,1<br>
1 RouteParam=0,0,0,0,0,0,1,1,1,0,0,1<br>
<font color="#888888">--<br>
/emj<br>
</font></blockquote></div><br>RouteParam is an encoding of attributes of the routable lines. The fields are: Speed (a number from 0-7 for 8 to 128 km/h), Road class (0-4 for "importance" of the road), One way (0 or 1), Toll (0 or 1), and then a series of vehicle restrictions (1 if restricted): emergency, delivery, car/motorcycle, bus, taxi, pedestrian, bicycle, truck. This is actually quite good, that probably means the files are topological and routable, but parsing them is more complicated.<br>
<br>Karl