francisbarton / lonlatapi

An API to return OA (Census output area) data for a given UK point location
MIT License
1 stars 0 forks source link

Use binary search logic or similar to home in on an area before using bounds #1

Open francisbarton opened 11 months ago

francisbarton commented 11 months ago

It's a bit silly to use national and regional spatial boundaries to get the search process started.

Probably a good thing to do would be:

This saves using boundr to look up national and regional boundary data, and saves getting all the LAD bounds for a region - instead you just get the handful (possibly just 1) LAD boundary that you need.

You could start with stored regional bboxes, and bboxes for Scotland and Wales too I suppose.

francisbarton commented 11 months ago

I mean, you could store bbox data all the way down, but I think querying using boundr makes more sense when you get down to sub-LAD level. You'll only have like 20 MSOAs in a LAD area to query.