logo separator

[mkgmap-dev] mp/hh / km/h m or other units in maxspeed or distance keys

From Steve Ratcliffe steve at parabola.me.uk on Thu Aug 30 20:44:27 BST 2012

On 28/08/12 16:25, Felix Hartmann wrote:
> Yes, but one cannot access the unit so far.
>
> speed>50 with value 50mp/h or 50m or 50km/h or plain 50 will always
> yield the same result, or thats what I understood so far.

Yes that is true.

I wasn't really clear what you were asking and how it would
work.  I'm guessing it would be something like this:

    maxspeed=* {set mkgmap:unit="${maxspeed|unit}" }
    mkgmap:unit=mph & maxspeed < 40 ....
    mkgmap:unit=kmh & maxspeed < 64 ...

Anyway it should be easy to make maxspeed < 40mph just work, so lets
do it.

..Steve



More information about the mkgmap-dev mailing list