Adding building:flats=* to addresses in North Sydney

Hi, as discussed on the #oceania discord group, I’m thinking of adding the building:flats=* tag to addresses in my suburb, and potentially in the 4 neighbouring suburbs where addresses and buildings have already been mapped (11km²).

We can determine the value of building:flats=* by looking at the NSW Address Dataset, which we have permission to use.

Using a script, we can count all the units at an address. For example, if that dataset has 5 addresses at the same location:

  • 12 Example Street
  • Unit G01, 12 Example Street
  • Unit G02, 12 Example Street
  • Unit 101, 12 Example Street
  • Unit 102, 12 Example Street

Then that would be building:flats=4 on the apartment building, if it’s already mapped as a building area. It’s 4, not 5, because we don’t count the first row (the overall address with no unit number)


Is this an import?

not really, but kinda? it’s just a one-off process that i want to use in my local area, combined with a few walks around the neighbourhood to spot-check the number of letterboxes.

but I think any lessons learned from this project could be useful for existing projects like the vicmap import, or a hypotheical future address import in NSW.

I won’t import any addresses themselves, almost all are already mapped in this LGA, and that needs a much larger discussion obviously.


Edge cases

I propose to skip:

  • any non-residential buildings, like hotels, offices, or mixed-use developments (24, example)
  • any apartments that are not mapped in OSM yet or have no address tags (111, example)
  • if multiple OSM buildings have the same address (238, example)
    • these could either be converted to multipolygons. or the letterboxes could be surveyed, and each building could get a more specific building:flats tag
  • any buildings that already have a building:flats tag, even if the existing OSM value is different to my calculated value (2, example)

When cross-checking letterboxes on the ground, I would not count:

  • any letterbox with no number and a label instead that says something like “Strata Committie”, “Building Manager”, etc.
  • any modern skyscrapers where the letterboxes are inside a secure lobby, obviously
  • any blank letter boxes. sometimes apartments buy a prefabricated grid of 4x4 or 3x5 letterboxes, even if they need less than that. so some letterboxes are unlabeled and presumbly unused.
  • any letterboxes with weird labels instead of unit numbers (0, example)

How many buildings are affected?

For the whole LGA of North Sydney, 28% of buildings are apartments. In suburbs like Cremorne Point, Saint Leonards, and Milsons Point, over 50% of buildings are apartments.

These percentages are high because this LGA has the 3rd highest population density in the state (and it’s the 5th smallest LGA). Another reason why I find this data quite interesting.

Therefore, there’d be about 200 apartment buildings affected per suburb.

If there are no data quality issues, then this could eventually be expanded to the whole LGA, which has 2,881 apartment buildings.


The data

If anyone wants to look at the data, I’ve run the script for the whole LGA and uploaded the results here

2 Likes

This is fine with me, thanks for posting.

I’ve mapped a bunch of these around Chatswood based on surveys of either entrance signage or letterboxes, usually in combination with addr:flats.


Separate to your proposal, it would be nice to resolve the edge cases. Take your example of mixed-use developments, where there might be 5 retail/commercial units on the ground floor, with 112 residential units above.

building:flats is defined on the wiki as the number of residential units so we’d need to set building:flats=112. Would we then use building:flats:retail=5?

What about a warehouse/industrial building with 5 “industrial units” only? Would that be building:flats=0 because there are no residential units + building:flats:industrial=5? Or should building:flats really be the total count of units and then building:flats:residential=* is used for the residential count?

Then we should try and keep it consistent with addr:flats=*.

The wiki doesn’t limit addr:flats=* to residential units, it applies to any kind of unit, and one would expect that building:flats=* should equal the count of addr:flats, indeed if addr:flats=* is specified then building:flats is something that is trivial to derive from it. If it’s trivial to derive, should we keep mapping it, or just expect data consumers to derive it?

So based on this reasoning it seems that building:flats shouldn’t be limited to residential units, to keep it consistent with addr:flats.

1 Like

addr:flats= is restricted to apartment in the parent article’s table Key:addr:* - OpenStreetMap Wiki Template:Map Features:addr - OpenStreetMap Wiki
“flats” is British English for apartment. “(apartments/units/suites)” are listed as synonyms synonyms, not defining non-residential units as included. The {{KeyDescription| template box is incomplete for not mentioning this.

Sorry Kyle for turning your thread off a tangent here…

The unit numbers (a range or a list) of the flats or apartments located behind a single entrance door.

I still don’t read that as explicitly only for residential units.

The same way that “housenumber” in addr:housenumber is being used for any street address (such as office towers, or factory/warehouse buildings), not just houses (in Australian English I associate “house” with freestanding residential dwelling)…

…and the same way that “unit” in addr:unit is being used for any unit number be it an Apartment number, Flat number, Suite number, Shop number, Villa number, etc. not only where the type is a “Unit” number…

Then I think it makes sense to extend that the “flats” in addr:flats means listing out all the addr:unit numbers at this address (because they aren’t being mapped as different objects using addr:unit).

The meaning of “House Number”, and “City” on addresses are well-known to be more than houses, and cities House numbering - Wikipedia
Flats don’t seem to be. Even if addr:flats= is to be used for non-flats, building:flats= could be kept as for flats only.
If not, you still have a problem from expanding the definition of building:flats= to be the total, causing building:flats:residential= to be needed. In places where mixed-use buildings are the norm, especially those with a large base part with many shops, you would make all of the many building:flats= there inaccurate. Instead of having to edit/correct, rename, and change applications, inventing something new, or adopting the imported building:units= would be less work, and less debated.
Apparently building:flats= was bulked added at first too. If a suffix needs to be standardized on, building:units:*= would be better. No need to follow addr:flats= simply because it exists with the same naming.

1 Like

It does seem odd that addr:flats is a compressed list of addr:unit but building:flats is not a count of members of that set.

1 Like

that is so unfortunate :wilted_flower::wilted_flower:

actually building:units= is equally muddled. to quote the wiki:

the vast majority (>99.8%) of uses of [building:units=] came from […] import in which it was specifically defined as the number of living units.

so i guess it’s time to invent a third competing tag :sweat_smile: bonus points if the new tag gets to 2.5 million uses without a proper community discussion

alright well here’s my only contribution to the 30 day mapping challenge: Buildings in the North Sydney LGA coloured by building:flats

  • 0: grey
  • 2-4: light green
  • 5-9: dark green
  • 10-20: yellow
  • 20-50: orange
  • 50-100: red
  • >100: purple

offices and mixed-use buildings are grey because of the limitations discussed above.

note that this tag has not been added to OSM yet. I’m still surveying the accuracy, and it seems perfect so far. updates to follow.

1 Like