<div dir="ltr">Given that SI units are standard across OSM could be define a "speed" value in addition to "Numeric" "String" etc like so:<br>(default to kmh as specified before (also means not adding millions of pointless "kmh" strings to the db)<br>
Factor means "multiply by this to convert to SI - interpreters would either use value as-is or multiply by Factor for that suffix to get SI units.<br>"Suffix" is the entire string after the numerical value, with whitespace trimmed - so spaced/not spaced suffix wouldn't matter - defining this rigidly would be ignored by most users, i suspect<br>
<br>My proposed table:<br>Unit - Factor<br>"" - 1<br>"kmh" - 1<br>"mph" - 1.609<br>"knots" - 1.852<br><br>Not sure if any other units are in (common) use? Can someone check tagwatch?<br>
<br>Tristan<br><br><div class="gmail_quote">2008/10/14 Matthias Julius <span dir="ltr"><<a href="mailto:lists@julius-net.net">lists@julius-net.net</a>></span><br><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">"Tristan Scott" <<a href="mailto:trs998@gmail.com">trs998@gmail.com</a>> writes:<br>
<br>
> If it were up to me (dicatorships are so much swifter to deal with<br>
> things...)<br>
> * maxspeed should be the only tag. Therefore you can't contradict<br>
> yourself/others (or update one to 40mph, or not catching because it's not<br>
> normal, maxspeed:mph is still 30 you end up with broken data)<br>
> * "mph" is the only permittable suffix (or a SHORT fixed list added to map<br>
> features), therefore parsing is simple. If Mph / MilesPerHour / mp/h /<br>
> yard/minute / walk / et al is allowed then parsing becomes either impossibly<br>
> (inf types of value) difficult, or becomes easy (if it's not all numeric,<br>
> ignore it).<br>
<br>
</div>The list doesn't need to be very short, but it needs to be defined<br>
somewhere.  Then, any application that uses the data can be taught how<br>
to deal with it.<br>
<br>
Then Map Features needs to specify that maxspeed is a speed<br>
measurement and link to the table of speed units.<br>
<br>
Then Maplint can be extended to recognize tags that require a speed<br>
unit and it can warn if there is none.<br>
<font color="#888888"><br>
Matthias<br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
talk mailing list<br>
<a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/talk" target="_blank">http://lists.openstreetmap.org/listinfo/talk</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Tristan Scott BSc(Hons)<br>Yare Valley Technical Services<br><a href="http://www.yvts.co.uk">www.yvts.co.uk</a><br>07837 205829<br>
</div>