Add a shop=massage filter ?

Asked by Thilo

Hello,

I just entered my favourite thai massage to OSM,
then realized there's no filter for this in uNav.

It's available in OsmAnd, for example :
http://wiki.openstreetmap.org/wiki/OsmAnd#Examples_of_OSM_POI_categories_supported_in_OsmAnd

Cheers,
Thilo

Question information

Language:
English Edit question
Status:
Answered
For:
uNav Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
costales (costales) said :
#1

Hi Thilo!

We're using OSM POIs, not OSMAnd.
There isn't that POI in Nominatin:
http://wiki.openstreetmap.org/wiki/Nominatim/Special_Phrases/EN

A hug and I'm so sorry.
--
Sent using Dekko from my Ubuntu device

Revision history for this message
Thilo (thaug) said :
#2

It was just an example that other navigation apps (based on OSM) DO use it.

In OSM, shop=massage is used 4 473 times :
http://taginfo.openstreetmap.org/tags/shop=massage#map

It's a usual POI / tag described here :
http://wiki.openstreetmap.org/wiki/Key:shop#Health_and_beauty

I think it would be helpful to many people
https://en.wikipedia.org/wiki/Back_pain#Pain
https://en.wikipedia.org/wiki/Massage#Modern_times
http://www.bbc.com/news/business-26338889

So why not list it, is there a technical issue ?

Revision history for this message
costales (costales) said :
#3

I only can use POIs from the link I sent you ;) OSM Nominatin hasn't all
POIs

--
--
Sent using Dekko from my Ubuntu device

Revision history for this message
Thilo (thaug) said :
#4

I see, didn't know that, thanks.

Created a ticket to add it :
https://trac.openstreetmap.org/ticket/5433#ticket

Revision history for this message
Thilo (thaug) said :
#5

In the meantime, the parameter seems to have been added :

Massage Shop shop massage - N
Massage Shops shop massage - Y
Massage Shop in shop massage in N
Massage Shops in shop massage in Y
Massage Shop near shop massage near N
Massage Shops near shop massage near Y

http://wiki.openstreetmap.org/wiki/Nominatim/Special_Phrases/EN

Revision history for this message
costales (costales) said :
#6

Hi Thilo,
One question, for me a massage shop is where you can buy things for a massage, not where you go to get a massage (?).
Best regards.

Revision history for this message
Thilo (thaug) said :
#7

Hi Costales,

this is the original proposal :
"Definition: Place to receive a massage"
http://wiki.openstreetmap.org/w/index.php?title=Proposed_features/Massage&oldid=366304#Further_specification_of_massage_type

According to taginfo, 59.83% is massage=thai

I understand your point, it should rather be amenity,
but there are other "shops" also which mainly "sell" a service
instead of products :
http://wiki.openstreetmap.org/wiki/Tag:shop%3Dhairdresser
http://wiki.openstreetmap.org/wiki/Tag:shop%3Dtattoo
http://wiki.openstreetmap.org/wiki/Tag:shop%3Dlaundry

Regarding vehicles, everything is shop= ,
also if it's repair (a service, not a product).

On the other hand, there's for instance
amenity =vending_machine
(which is IMHO clearly a shop)

There would also be the possibility to use amenity:massage=Thai (or medical/chinese/herbal/hotstone...)
Unfortunately I couldn't find a documentation about the philosophy behind
when this is done and why (another example is the switch to contact:phone=,
which hasn't been documented :
http://wiki.openstreetmap.org/wiki/Key:phone
There's an ongoing discussion since 2012 about that:
https://wiki.openstreetmap.org/wiki/Talk:Key:phone#format_inconsistency_with_the_key_.E2.80.9Ccontact:phone.E2.80.9D

In my point of view, this is a negative aspect in "grassroots democracy",
at least if there's no regulating instance at all (kinda "council of elders").

Cheers,
Thilo

Revision history for this message
costales (costales) said :
#8

I'll add it and do a few tests :) Could you send me a link to one of them for testing?
Thanks in advance!

Revision history for this message
Thilo (thaug) said :
#9
Revision history for this message
Thilo (thaug) said :
#10
Revision history for this message
costales (costales) said :
#11

Hi,

Uhm, it's not working :(
https://nominatim.openstreetmap.org/search?format=xml&bounded=1&limit=50&<email address hidden>&extratags=1&q=Massage%20Shops&viewbox=9.0624438598752,48.33146144612053,9.362443797290323,48.63146138353565

Any idea? The URL is the standard for any nearby place.

Thanks in advance!

Revision history for this message
Thilo (thaug) said :
#12

Could you provide a working link to compare ?
I can't resolve the "viewbox" parameter,
is this just for nominatim ?

Revision history for this message
costales (costales) said :
#13

Yes, this finds all the Veterinaries in 15km:
https://nominatim.openstreetmap.org/search?format=xml&bounded=1&limit=50&<email address hidden>&extratags=1&q=Veterinary Surgeries&viewbox=9.161955676972868,48.43139386367031,9.261955656111242,48.53139384280868

Revision history for this message
Thilo (thaug) said :
#14
Revision history for this message
costales (costales) said :
#15

That is not valid, because you're not looking into an area (use as reference from a center)

Revision history for this message
Thilo (thaug) said :
#16

Yes, was just a try.
The strage thing is, when I use the querystring="Veterinary" link,
it's resolved into this :
exclude_place_ids=

When I use the exact same link and just replace Veterinary%20Surgeries with any of the "massage" ones named here :
http://wiki.openstreetmap.org/wiki/Nominatim/Special_Phrases/EN
I don't get this "exclude" value.

Tried the same with "Vending Machine" which works fine.
Think I need to open another ticket at Nominatim,
the massage values seem to be somehow incomplete in the DB,
But obviously only when related to an area.

Revision history for this message
costales (costales) said :
#17

I think is not nominatin, it's the place itself, the field is not the
same as the nominatin search (?)

Revision history for this message
Thilo (thaug) said :
#18

Currently trying to understand the syntax, when I set bounded to zero, it works :
https://nominatim.openstreetmap.org/search?format=xml&bounded=0&limit=50&<email address hidden>&extratags=1&q=Massage%20shop&viewbox=9.161955676972868,48.43139386367031,9.261955656111242,48.53139384280868

Revision history for this message
costales (costales) said :
#19
Revision history for this message
costales (costales) said :
#20

The URL has to be that, you are bounding an area and looking inside area for a places ;)
http://wiki.openstreetmap.org/wiki/Nominatim#Parameters

viewbox=<left>,<top>,<right>,<bottom>
or viewboxlbrt=<left>,<bottom>,<right>,<top>

        The preferred area to find search results

bounded=[0|1]

    Restrict the results to only items contained with the bounding box.

Revision history for this message
Thilo (thaug) said :
#21

O.k., tried another bounding box which works :
https://nominatim.openstreetmap.org/search?format=xml&bounded=1&limit=100&<email address hidden>&extratags=1&q=Massage&viewbox=8.4045410156,48.2758815274,10.0964355469,49.0594698472

Value created with :
http://boundingbox.klokantech.com

Revision history for this message
costales (costales) said :
#22

Yeah, you can give a so big bound, like in your example, but that
doesn't fix the issue of not found massages places near ;)

Revision history for this message
costales (costales) said :
#23

Test:
In the are of your 1st example:
https://nominatim.openstreetmap.org/search.php?q=Tana+Thaimassage&polygon=1&viewbox=
there are not results if I apply to the same viewbox:
https://nominatim.openstreetmap.org/search.php?q=Massage+Shops&polygon=1&viewbox=9.2091%2C48.4826%2C9.2157%2C48.48011

I would say that the Massage is for Shops, and not for Massage places where get a massage (?)

Can you help with this problem?

Provide an answer of your own, or ask Thilo for more information if necessary.

To post a message you must log in.