Urban-Analytics-Technology-Platform / popgetter

https://popgetter.readthedocs.io/en/latest/
Apache License 2.0
5 stars 1 forks source link

Use case: LTN and 15m tools #3

Closed dabreegster closed 1 year ago

dabreegster commented 1 year ago

I want to make use of census area polygons with some basic data in some parts of A/B Street. In both the LTN and 15m tools, getting a rough count of people in an area would be useful.

What attributes are useful?

I want to bundle this data in the map_model::Map directly, I think. Loading separate files or generating on-the-fly would be slow and complex. And at first glance, the data is tiny. A gzipped geojson with the OA-level geometry and string OA11CD ID (which is maybe not even so necessary) is 50K for Leeds, 150KB for Central London.

So the usage pattern is from the importer. The UK-wide topojson uncompressed in 80MB, and reading + filtering to get this output is under 5s. So this is actually quite easy perf-wise.

dabreegster commented 1 year ago

https://github.com/a-b-street/abstreet/pull/1074 gets this started end-to-end