[Talk-ca] Cleanup of addr:country, addr:province, addr:state
Pierre Béland
pierzenh at yahoo.fr
Mon Mar 19 16:19:33 UTC 2018
J'ai ajouté short_name pour le Québec, mais je pense effectivement que c'est inutile à comparer avec Ontario. Dans ce cas, le ON fonctionne sans doute à cause de state_code=ON.
Et effectivement, lorsque les relations de territoires sont ajoutées et fonctionnelles, les is_in et addr:province sont inutiles et Nominatim fourni correctement l'info.
Pierre
Le lundi 19 mars 2018 11 h 18 min 23 s HAE, Matthew Darwin <matthew at mdarwin.ca> a écrit :
Searching on "110 Laurier Avenue West, on" in Nominatim already works (it finds Ottawa City hall) even though the address has no addr:province tag for City Halle. So I don't think this is a good reason to be adding addr:province/addr:province:short_name tags. IMO. Unless there is another use case I am missing. Similarly your example of searching for "Toronto, ON" works fine.
I'm guessing this works because the Ontario admin relation has ISO3166-2 tag of CA-ON
On 2018-03-10 04:51 PM, Pierre Béland wrote:
Non, inutile si relations. Dans relation province d'Ontario - ajouter short_name='ON'.
De cette façon, Recherche Toronto, ON
devrait fonctionner. A essayer :)
Pierre
Le samedi 10 mars 2018 15:39:53 HNE, john whelan <jwhelan0112 at gmail.com> a écrit :
So you're suggesting adding short_name='ON' to ones that have addr:province=Ontario
How would that work?
addr:province=Ontario
addr:province:short_name=ON ?
Merci John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-ca/attachments/20180319/dcd0abd8/attachment-0001.html>
More information about the Talk-ca
mailing list