logo separator

[mkgmap-dev] [PATCH] Restaurant+hotel not appearing in nuvi

From Marko Mäkelä marko.makela at iki.fi on Thu Apr 2 08:00:24 BST 2009

Hallo Bernhard,

On Thu, Apr 02, 2009 at 08:22:20AM +0200, Bernhard Heibler wrote:
> Hi,
>
> I can provide a patch to mkgmap for this problem. I just forgot to  
> publish it but remembered when I saw your topic. I called it multi tag  
> patch. It just duplicates POIs for points that match more then one rule.  
> It also should work with tags like this: amenity=fuel;post_office.
> Tested with my nuvi 360. Please let me know if it works for you.

Looking at the patch, it would not produce the desirable result for

amenity=restaurant, cuisine=pizza;kebab

With my restaurant-cuisine.patch, this would create two entries for
such restaurants.  (I've since revised my patch to say cuisine=pizza*
so that pizza;kebab places will end up in the pizza restaurants
menu instead of "other restaurants".)

I think that the splitting of the node should be made explicit in the
style file.  Then, some special cases could still be handled differently.
Something like this:

amenity=fuel;shop [ 0x2e06 resolution 19 ]
amenity=fuel;* { split amenity=fuel, amenity=+5 }

The syntax is just a suggestion.  The latter rule would discard the original
node and create two new nodes: one with amenity=fuel, and the other with
amenity=... (whatever follows the fuel; in the original string).  The latter
rule wouldn't match already processed nodes, such as amenity=fuel;shop.
All rules would then be processed for each node again.  What do you think?

	Marko



More information about the mkgmap-dev mailing list