[Talk-GB] OSM UK address project: tags
Frederik Ramm
frederik at remote.org
Wed Dec 22 14:46:53 UTC 2021
Hi,
On 22.12.21 14:20, Mark Goodge wrote:
> For example, as a data consumer, suppose I wanted to extract a list of
> all the pubs in Stoke-on-Trent. The most obvious way of doing that is to
> look for everything that's tagged as amenity=pub and
> addr:city=Stoke-on-Trent.
That is indeed the most obvious way but it is also not recommended; not
a week goes by without some poor OSM newbie hoping that they could just
extract atomic OSM information like that without having to apply any
geography operations.
The recommended way is to find the administrative boundary for
Stoke-on-Trent (or whichever area you are interested in), and then find
all amenity=pub objects (which may or may not have address tags - they
might not have one because the address is not mapped, or because they
are situated in a larger building and only the building has been given
an address, or whatever) in that polygon.
Bye
Frederik
--
Frederik Ramm ## eMail frederik at remote.org ## N49°00'09" E008°23'33"
More information about the Talk-GB
mailing list