gregrs-uk / fhodot

Food hygiene open data OpenStreetMap tool
https://gregrs.dev.openstreetmap.org/fhodot/
GNU General Public License v3.0
9 stars 3 forks source link

Add table for quick matching of FHRS/OSM objects with same postcodes #8

Closed gregrs-uk closed 9 months ago

gregrs-uk commented 3 years ago

This is useful for spotting matches that haven't been picked up as suggested matches, and particularly when a large number of FHRS IDs are changed in bulk for a local authority, as has happened in the past.

The table could use the OSM objects within the map area sorted by postcode and should include establishments with matching postcode but no location.

There isn't currently an API endpoint that provides this data.

gregrs-uk commented 9 months ago

This is now a work in progress…

gregrs-uk commented 9 months ago

https://github.com/gregrs-uk/fhodot/commit/79e2a81163fb4114fc5f284e65bb5a138ffdb0ac adds the necessary API endpoint for postcode matches and a new map layer. This is live on the dev server.

I haven't got round to adding the table yet. This will require some adapting of existing code because it's not simply one feature per row; the OSM object needs to span multiple rows with one postcode-matched FHRS establishment on each row.

Not sure whether I'll be able to get this done soon. If anyone is keen to code this I'm happy to discuss my intended approach.

gregrs-uk commented 9 months ago

The table is almost done but not quite ready yet…

gregrs-uk commented 9 months ago

Merged in https://github.com/gregrs-uk/fhodot/commit/a2436969f78b1ffa1c4235d29f6558a3bc674808 and live on dev server