
Background: Often hotels have a restaurant also, the combination of amenity=restaurant and tourism=hotel on one node (or area) is quite common. Now the hotel should be in "Lodging - Hotel", and the restaurant somewhere in "Food and Drink". Hence my question is: is it possible to get one node into the index twice in different categories? I tried following rules: tourism=hotel & amenty!=* { name '${name|def:}(${stars}*)${operator|def:}' | '${name} ${operator}' | '${name}' | '${operator}' } [0x2b01 level 2] tourism=hotel & amenty=* { name '${name|def:}(${stars}*)${operator|def:}' | '${name} ${operator}' | '${name}' | '${operator}' } [0x2b01 level 2 continue] ... amenity=restaurant [0x2a00 level 0] On my Oregon 600, only the hotel is indexed, but not the restaurant. Is that currently possible with some different rules / order of rules, or not yet possible, or even not possible at all?

On Sat, Nov 09, 2013 at 02:36:58PM +0100, Bernhard Hiller wrote:
Hence my question is: is it possible to get one node into the index twice in different categories?
FWIW, the Garmin Edge 705 does this for some POI types by itself. For example, a "Truck stop" or "Convenience store" will show up in 2 menus. These are in the default style: amenity=fuel & fuel:HGV_diesel=yes [ 0x2f16 resolution 23] amenity=fuel & shop=convenience [ 0x2e06 resolution 24]
I tried following rules:
tourism=hotel & amenty!=* [...] tourism=hotel & amenty=* [...]
If you misspelled the amenity, then it obviously cannot work, unless you also misspell it in the data. :) I do not see why it should not work (generate 2 Garmin POIs), but I have not used 'continue' much. Best regards, Marko

Thanks for your hint. Really a bad typo. And after correcting the typo, it works. It is correct that Garmin places some points into two or more categories/sub-categories by itself. But that does not happen with hotel+restaurant. 2f16 is in Auto Services - Truck Stop and in Fuel Services - Truck Stop, 2e06 is in Shopping - Convenience and in Fuel Services - Convenience. Note that each of them has only one Garmin ID. The example from the style file will place any amenity=fuel with HGV_diesel=yes in both Truck Stop sub-categories, but not in a Convenience sub-categrory even if that is also available. Also for the hotel+restaurant, two IDs are required, one in Lodging, and one in Food and Drink. Am 09.11.2013 14:42, schrieb Marko Mäkelä:
On Sat, Nov 09, 2013 at 02:36:58PM +0100, Bernhard Hiller wrote:
Hence my question is: is it possible to get one node into the index twice in different categories?
FWIW, the Garmin Edge 705 does this for some POI types by itself. For example, a "Truck stop" or "Convenience store" will show up in 2 menus. These are in the default style:
amenity=fuel & fuel:HGV_diesel=yes [ 0x2f16 resolution 23] amenity=fuel & shop=convenience [ 0x2e06 resolution 24]
I tried following rules:
tourism=hotel & amenty!=* [...] tourism=hotel & amenty=* [...]
If you misspelled the amenity, then it obviously cannot work, unless you also misspell it in the data. :)
I do not see why it should not work (generate 2 Garmin POIs), but I have not used 'continue' much.
Best regards,
Marko
participants (2)
-
Bernhard Hiller
-
Marko Mäkelä