logo separator

[mkgmap-dev] Road speed through urban areas

From Ticker Berkin rwb-mkgmap at jagit.co.uk on Tue Jul 7 08:09:18 BST 2020

Hi Fernando

The mkgmap default style doesn't understand maxspeed:practical.

If you are currently using the default style, it is easiest to make a
complete copy of the subdirectory
mkgmap-rXXXX/examples/styles/default into your own working area
subdirectory, eg 'lowspeed', point the --style-file option at this and
then modify as necessary.

You should be able to confine all your changes to
lowspeed/inc/roadspeed and not need to touch lowspeed/lines.

See tags mkgmap:road-speed, mkgmap:road-speed-class, mkgmap:road-speed
-max etc in the style manual (mkgmap-rXXXX/doc/style-manual.pdf)

Maybe make use of the new is-in function, eg:

highway=secondary & is_in(landuse, residential, any)
   {add mkgmap:road-speed=-1}

Ticker

On Tue, 2020-07-07 at 00:25 -0300, Fernando Trebien wrote:
> Thank you very much for your reply, Greg.
> 
> On Sat, Jul 4, 2020 at 10:55 PM Greg Troxel <gdt at lexort.com> wrote:
> > The next problem is that there is maxspeed and maxspeed:practical,
> > and
> > if you cannot drive at the speed limit usually, you should
> > 
> >   set maxspeed:practical
> > 
> >   check that if maxspeed:practical exists, mkgmpa uses it as the
> > speed
> >   limit
> 
> Just to be sure: does mkgmap understand maxspeed:practical by
> default?
> I didn't find any reference to maxspeed:practical in the most recent
> mkgmap code, and an old patch submission [1] had code with
> maxspeed:practical which is not part of the latest default style. I
> believe this means a custom style would be necessary, is that right?
> 
> [1] http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2013q3/018684.html
> 
> Best regards,
> 
> 
> --
> Fernando Trebien
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


More information about the mkgmap-dev mailing list