logo separator

[mkgmap-dev] [patch] change bus_stop to Transit Service category and add name / operator

From Marko Mäkelä marko.makela at iki.fi on Sat Jul 18 19:49:05 BST 2009

Hi Maning,

On Sat, Jul 18, 2009 at 12:49:17PM +0800, maning sambale wrote:
> used this in my
> highway=bus_stop [0x2f17 resolution 21]
> 
> But it didn't appear in mapsource

On today's ride, I noticed that the Edge 705 renders 0x2f17 as a white
tiny square, similar to amenity=recycling (0x2f15, public service).
Before the patch, it was translated into 0x2f08, rendered as a bus symbol.

This is something that could/should be addressed with a TYP file.  My
understanding is that the "Find Places" menu structure is fixed, but the
symbol names and icons can be overridden with a TYP file.  Because of this,
I would try to avoid overloading Garmin symbol codes.  For example, when
your vehicle breaks, you want a menu with just the bicycle shops or car
services, so that you can search for the nearest ones.  I wouldn't care
that much how the icons are rendered on the map by default.

I would prefer to have only the major things (bus stations and train stops)
in one menu and all the others (bus stops, tram stops) in the other menu.
In this way, it should be easier to plan long journeys when travelling by
train or long-haul bus.  And for getting around inside a city, you'd look
for the nearest bus or tram stop.  I assume that this was Ben's reasoning
too.

Best regards,

	Marko

> On Fri, Jul 17, 2009 at 4:30 PM, Marko Mäkelä<marko.makela at iki.fi> wrote:
> > Hi Ben,
> >
> > On Fri, Jul 17, 2009 at 02:14:36AM -0400, Ben Konrath wrote:
> >> Here's a patch to change the highway=bus_stop POI to the Transit Service
> >> category and add the name and/or operator. As usual, comments are
> >> welcome.
> >
> > Good idea!  This will nicely separate bus stops and train stops.  Maybe
> > use the same symbol code also for tram stops?
> >
> >> -highway=bus_stop [0x2f08 resolution 21]
> >> +highway=bus_stop { name '${name} - ${operator}' | '${name}' | '${operator}' } [0x2f17 resolution 20]
> >
> > Can we have a variant with ${name} ${ref} to the mix?  Or perhaps something
> > like this:
> >
> > underground or train stations:
> >        ${ref|highway-symbol:hbox} $name
> > tram stops:
> >        ${ref|highway-symbol:box} $name
> > bus stops:
> >        ${ref|highway-symbol:oval} $name
> >
> > Nope, unfortunately the Edge 705 would display the highway-symbol:oval
> > as a substitution character (solid diamond, similar to U+FFFD).
> >
> > Around here, there usually are at least two stops with the same name,
> > on each side of the road.  (Four if there are tram stops as well.)
> > I would map all stops, especially if some of them are only reachable
> > by bridges or tunnels.
> >
> > There will be a combinatorial explosion if there is no way to write
> > this kind of rules:
> >
> > name += ref
> > name += operator
> >
> > I tested this patch on my Edge 705.  Bus stations are still listed with
> > train stops and train stations in the Ground Transport menu.
> >
> > Index: mkgmap/resources/styles/default/points
> > ===================================================================
> > --- mkgmap/resources/styles/default/points      (revision 1087)
> > +++ mkgmap/resources/styles/default/points      (working copy)
> > @@ -85,7 +85,8 @@
> >  amenity=university [0x2c05 resolution 21]
> >  amenity=zoo [0x2c07 resolution 21]
> >
> > -highway=bus_stop [0x2f08 resolution 21]
> > +highway=bus_stop | railway=tram_stop | railway=halt | railway=station { name '${name} ${ref} - ${operator}' | '${name} ${ref}' | '${name} - ${operator}' | '${ref} ${operator}' | '${name}' | '${ref}' | '${operator}' }
> > +highway=bus_stop [0x2f17 resolution 20]
> >
> >  highway=motorway_junction { name '${ref} ${name}' | '${ref}' | '${name}' }
> >  highway=motorway_junction [0x2000 resolution 16]
> > @@ -133,7 +134,7 @@
> >
> >  railway=halt [0x2f08 resolution 21]
> >  railway=station [0x2f08 resolution 20]
> > -railway=tram_stop [0x2f08 resolution 21]
> > +railway=tram_stop [0x2f17 resolution 21]
> >
> >  shop=bakers [0x2e02 resolution 20]
> >  shop=bakery [0x2e02 resolution 20]
> >
> > Best regards,
> >
> >        Marko
> > _______________________________________________
> > mkgmap-dev mailing list
> > mkgmap-dev at lists.mkgmap.org.uk
> > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> >
> 
> 
> 
> -- 
> cheers,
> maning
> ------------------------------------------------------
> "Freedom is still the most radical idea of all" -N.Branden
> wiki: http://esambale.wikispaces.com/
> blog: http://epsg4253.wordpress.com/
> ------------------------------------------------------
> _______________________________________________
> 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