mysociety / mapit.mysociety.org

A Django project for running mySociety's main instance of MapIt for the UK
http://mapit.mysociety.org
Other
6 stars 2 forks source link

Add UPRNs #116

Open dracos opened 3 years ago

dracos commented 3 years ago

The /postcode lookup is really more a "point identifier" lookup.

We could add a PointType model, and add an endpoint that accepts it e.g. /point/postcode/B24QA or /point/uprn/10033544614 or similar. And/or add a /uprn endpoint and treat it specially.

Then it should be straightforward to import the UPRNs as a new set of point identifiers.

dracos commented 3 years ago

Would want to store associated data with this, e.g. want to store postcode with UPRN, so can do postcode -> UPRNs lookup.