attribute "city" of layer "address_p" should use OSM tag "addr:city", not "addr:place"

Created by: das-g

Use OSM tag addr:city rather than addr:place for attribute city of layer address_p in all SQL scripts where that attribute is set.


original title

What should we put into attribute "city" of layer "address_p"?

original description

Currently, we put the value of OSM tag addr:place=* into the city attribute of layer address_p.

I think if present, tags addr:city=*, is_in:city=*, addr:hamlet=* and addr:suburb=* should be used instead (if any of them present, precedence if several present TDB.)

If none of them are present, we can still fall back to addr:place=*. Although, we might only want to do that if addr:street=* is present, so that the addr:place=* hasn't already been used in attribute street.