One object has more than one POI-tag (Hotel Café Restaurant)

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

One object has more than one POI-tag (Hotel Café Restaurant)

AnkEric
Issue: One object has (or should have) more than one POI-tags.

Possible situations:
* "Hotel Restaurant Xxxx"
* "Hotel Café Restaurant Xxxx"
* "Café Restaurant Xxxx"
* "Hotel Aaaa" and "Restaurant Aaaa" and "Café Aaaa" (same location, same
operator, name "Aaaa" is identical for all Objects, but only one Node on
OSM).

OSM best practice and OSM worst practice:

Relation: [type=site] + (building + hotel + restaurant + pub) as members.
But, issues, options:
* Address is on one node only. Duplicated addresses are error (imo), since
an address is (should be) unique.
* Name is set on relation only. But now I (as Renderer) cannot Get the name
from the relation and Set it to the individual POI’s. Also Validators will
complain: "this is a restaurant therefore a name is required".
* Name is set on all individual POI-nodes. Which is redundant and (imo)
therefore an Error.

Hotel + name is tagged on building outline ([building=hotel] +
[tourism=hotel] + [name=Hotel Aaaa]).
Also (imo) not correct: POI-tags should be set on Address-POI-node. I
sometimes search for a POI, look for the address and navigate there without
using GPS.
Also (some?) Renderers will not render POI-tags on building outline (JOSM).
No idea how mkgmap (default) style will handle this. For me
[mkgmap:line2poi] does resolve.

One POI-node: [tourism=hotel] + [amenity=restaurant].
No option to also Add [amenity=pub] (conflicting tag).
Renderer has to decide which POI will be rendered.

One POI-node One tag ONLY: OR [tourism=hotel] OR [amenity=restaurant] OR
[amenity=pub] OR [amenity=café]. Loss of information!
On OSM last Mapper will decide ( <cynical-mode> ): "I use this hotel only as
restaurant, therefore: Delete [tourism=hotel] + Set [amenity=restaurant]".
As a result: we cannot find our hotel on OSM (except - sometimes - by name).

Question (1):
Is it possible (for me as Renderer) to Get Name by site_relation?
Is it possible to Get address for all POI’s from the one Member having
address set? (Although not sure if this would be good practice, since
Renderer will now create Duplicated addresses).
I suggest (for now) a short answers should be either:
"Yes, you can: Read the Manual!", or: "Yes, you can: look at mkgmap default
style for an example!", or: "No!".

Question(2):
If "One POI-node: [tourism=hotel] + [amenity=restaurant]" can mkgmap
"DUPLICATE" a Node, so I can Render two POI’s: [hotel] + [restaurant]???
I do believe OsmAnd can do this. For a "DOUBLE-TAGGED-POI" I can search in
TWO different Categories: "Accommodation" and "Café and restaurant".
But also: OsmAnd can search for an address (by looking at near be
addresses). This is no option for Garmin GPS.
It might be even better (but I know: hard to implement) if I could Render
TWO POI's on slightly different locations (top and below):
- (hotel) "Hotel Aaaa"
- (restaurant) "Restaurant Aaaa"
OsmAnd will Render both POI’s on same location (but also: OsmAnd has an
option to show "Accommodation" and/or "Café and restaurant").






--
Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Reply | Threaded
Open this post in threaded view
|

Re: One object has more than one POI-tag (Hotel Café Restaurant)

Gerd Petermann
Hi Eric,

1)  not sure if all your site relation problems can be solved with the relations style file, if not, please give an example and let us know what is impossible.
2) You can create multiple POI using the continue statement.

Gerd

________________________________________
Von: mkgmap-dev <[hidden email]> im Auftrag von AnkEric <[hidden email]>
Gesendet: Freitag, 20. März 2020 14:20
An: [hidden email]
Betreff: [mkgmap-dev] One object has more than one POI-tag (Hotel Café Restaurant)

Issue: One object has (or should have) more than one POI-tags.

Possible situations:
* "Hotel Restaurant Xxxx"
* "Hotel Café Restaurant Xxxx"
* "Café Restaurant Xxxx"
* "Hotel Aaaa" and "Restaurant Aaaa" and "Café Aaaa" (same location, same
operator, name "Aaaa" is identical for all Objects, but only one Node on
OSM).

OSM best practice and OSM worst practice:

Relation: [type=site] + (building + hotel + restaurant + pub) as members.
But, issues, options:
* Address is on one node only. Duplicated addresses are error (imo), since
an address is (should be) unique.
* Name is set on relation only. But now I (as Renderer) cannot Get the name
from the relation and Set it to the individual POI’s. Also Validators will
complain: "this is a restaurant therefore a name is required".
* Name is set on all individual POI-nodes. Which is redundant and (imo)
therefore an Error.

Hotel + name is tagged on building outline ([building=hotel] +
[tourism=hotel] + [name=Hotel Aaaa]).
Also (imo) not correct: POI-tags should be set on Address-POI-node. I
sometimes search for a POI, look for the address and navigate there without
using GPS.
Also (some?) Renderers will not render POI-tags on building outline (JOSM).
No idea how mkgmap (default) style will handle this. For me
[mkgmap:line2poi] does resolve.

One POI-node: [tourism=hotel] + [amenity=restaurant].
No option to also Add [amenity=pub] (conflicting tag).
Renderer has to decide which POI will be rendered.

One POI-node One tag ONLY: OR [tourism=hotel] OR [amenity=restaurant] OR
[amenity=pub] OR [amenity=café]. Loss of information!
On OSM last Mapper will decide ( <cynical-mode> ): "I use this hotel only as
restaurant, therefore: Delete [tourism=hotel] + Set [amenity=restaurant]".
As a result: we cannot find our hotel on OSM (except - sometimes - by name).

Question (1):
Is it possible (for me as Renderer) to Get Name by site_relation?
Is it possible to Get address for all POI’s from the one Member having
address set? (Although not sure if this would be good practice, since
Renderer will now create Duplicated addresses).
I suggest (for now) a short answers should be either:
"Yes, you can: Read the Manual!", or: "Yes, you can: look at mkgmap default
style for an example!", or: "No!".

Question(2):
If "One POI-node: [tourism=hotel] + [amenity=restaurant]" can mkgmap
"DUPLICATE" a Node, so I can Render two POI’s: [hotel] + [restaurant]???
I do believe OsmAnd can do this. For a "DOUBLE-TAGGED-POI" I can search in
TWO different Categories: "Accommodation" and "Café and restaurant".
But also: OsmAnd can search for an address (by looking at near be
addresses). This is no option for Garmin GPS.
It might be even better (but I know: hard to implement) if I could Render
TWO POI's on slightly different locations (top and below):
- (hotel) "Hotel Aaaa"
- (restaurant) "Restaurant Aaaa"
OsmAnd will Render both POI’s on same location (but also: OsmAnd has an
option to show "Accommodation" and/or "Café and restaurant").






--
Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Reply | Threaded
Open this post in threaded view
|

Re: One object has more than one POI-tag (Hotel Café Restaurant)

AnkEric
Hi Gerd,

I don't know if it's impossible.
Just don't know how to. But before investing a lot of time, I would like to
know if it should be possible.
You have already answered that question: "not sure"...

Attached an example: Het Wapen van Harmelen_hotel_cafe_restaurant.osm

 - [addr*] is on one node only (should apply to all)
 - [name] is redundant on all nodes (to make Osmose happy, if I remember
correctly).
 - [name] is not on relation, which is preferred (imo, redundancy)
 - [opening_hours] different on different nodes (correct).
 - [website] is on hotel only, but does apply to all 3 nodes.

Het_Wapen_van_Harmelen_hotel_cafe_restaurant.osm
<http://gis.19327.n8.nabble.com/file/t344065/Het_Wapen_van_Harmelen_hotel_cafe_restaurant.osm>  

And thanks for the "continue". I should have guessed that one myself; -)

Eric.



--
Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Reply | Threaded
Open this post in threaded view
|

Re: One object has more than one POI-tag (Hotel Café Restaurant)

Gerd Petermann
Hi Eric,

with the current type=site relation I don't see any need to process it. Would be different with the older version where name and other tags were only in the relation.
Anyway, a rule in the relations file should allow to transfer the info to the members.

Gerd

________________________________________
Von: mkgmap-dev <[hidden email]> im Auftrag von AnkEric <[hidden email]>
Gesendet: Freitag, 20. März 2020 15:29
An: [hidden email]
Betreff: Re: [mkgmap-dev] One object has more than one POI-tag (Hotel Café Restaurant)

Hi Gerd,

I don't know if it's impossible.
Just don't know how to. But before investing a lot of time, I would like to
know if it should be possible.
You have already answered that question: "not sure"...

Attached an example: Het Wapen van Harmelen_hotel_cafe_restaurant.osm

 - [addr*] is on one node only (should apply to all)
 - [name] is redundant on all nodes (to make Osmose happy, if I remember
correctly).
 - [name] is not on relation, which is preferred (imo, redundancy)
 - [opening_hours] different on different nodes (correct).
 - [website] is on hotel only, but does apply to all 3 nodes.

Het_Wapen_van_Harmelen_hotel_cafe_restaurant.osm
<http://gis.19327.n8.nabble.com/file/t344065/Het_Wapen_van_Harmelen_hotel_cafe_restaurant.osm>

And thanks for the "continue". I should have guessed that one myself; -)

Eric.



--
Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev