Hey guys, I was hoping for some clarification with regards to Apartment/Flats mapping within the UK. I haven’t really been able to find any fully mapped apartments local to me to pick up the details from, so some guidance would be appreciated.
This building is a block of flats, with two seperate entrances for seperate apartments. The addresses are (simplified): Flat 1-6, Housename, City, County, Postcode & Flat 7-12, Housename, City, County, Postcode. The addresses lack a street (though I assume it’s okay to exclude the addr:street tag).
Could someone please explain what tags are necessary for each entrance? I’m getting tripped up as the wiki isn’t specific for this usecase, and there’s nothing local to learn from. Much appreciated!
That was my first go too, but OSM and its derivative apps seem unable to recognise the interior flats when tagged this way, and instead can only see the entrances, each named ‘housename’.
I would mark them all onto the building, but the wiki advises against it. Plus, the neighbouring building is much much larger, and entrance specifics would be very useful.
What do you mean when you say unable to recognize the interior flats? You mean it’s not rendering them on the entrance node? Or is Nominatim not pulling them up? I just checked, and both seem to work fine:
Interesting that it worked for you? Nominatim couldn’t find any of those addresses when I tried approx an hour ago.
In the meantime before your message I pushed a changeset changing from addr:flats to addr:housenumber to see if anything would change for me, but it still won’t recognise when I search for 24 castle moat court (for example).
If you say that both styles work and are recognised by Nominatim, then it would seem something’s broken on my setup, somehow. Strange.
There is a UK subforum here, and topic of addresses has been discussed there recently, maybe @mods-uk can help to move this topic to the UK subforum and point you to some resources?
Great, I’ll roll back that change and review in the morning then. That’s bizarre, because the tagging is identical to a working block nearby on greenside.
To help anyone wanting to look, I assume the flats in question are at OpenStreetMap (it’s always good to give a link so readers can see what you’re talking about).
There are various ways addresses like this can be modelled in OSM, and there may be some issues with the search that means not all of them will show up properly there. While the two are mostly aligned, you should focus first on using the address tags properly, rather that what the search shows.
Two things definitely not to do are (1) putting the full numbered addresses both on the building and on the entrances (since they’ll then be duplicated), and (2) using addr:housenumber for the units inside something with addr:housename (that would mean that the named house has that number on its street).
In general, for a named block of flats on a named street, I’d put the following on each entrance:
addr:flats = N-M
addr:housename = Xxxx
addr:housenumber = P (only if the block as a whole is a numbered on the street)
addr:street = Yyyyyy
addr:city = Zzzzz (for the post town)
But if the block doesn’t have a separate street as part of its address, then things are a bit more complicated. (Since addresses in OSM are expected to have an addr:street or addr:place tag within them.)
Ahhh, this is so so helpful, thank you so much! I’ll have a go at updating this a bit later to the correct scheme.
What would you propose in the case where an address has no specified street, as you mentioned at the bottom? I would have assumed there’s no issue in skipping that tag, but I guess not?
@Jack_Regan Yes, you’re right. That’s such an odd thing I forgot to do