osm-uk / envelopes-map

A simple map showing OpenStreetMap's addr:* tags as they would appear on an envelope.
0 stars 0 forks source link

Idea: Use the addr:flats tag #5

Open RobJN opened 2 years ago

RobJN commented 2 years ago

Do you think it would be worth adding something for addr:flats ranges? If there is something like addr:flats=1-4 or =1;3;5;7, you could pick the first (or last) number and add a row "Flat X".

E.g. for node 8904420166 , it could generate:

Flat 1 Barrett House, 7 Temple Mills Lane, [TOWN/CITY] [Postcode]

Proposed at https://lists.openstreetmap.org/pipermail/talk-gb/2022-January/028448.html

RobJN commented 2 years ago

It would be possible to add the addr:flats tag. I am not sure that picking just the first number is the right choice here as it might lead to confusion (people not seeing what they expect). Might just be better to show the full tag value but add something to the visualisation to show that this is multiple addresses rather than a single address.

rjw62 commented 2 years ago

Ideally, I think with both ranges and semi-colon separated values, you'd parse these to recognise it represents multiple distinct addresses. The logical thing to do would be to display multiple envelopes, one for each address. I'm not quite sure how the UI would work for this. Perhaps have a vertical scroll so you can view all of them, without a much bigger popup. Obviously this is more effort to programme though... (But we should have an agreed algorithm for parsing such values into multiple addresses.)