localgovdrupal / localgov_events

Events for LocalGov Drupal.
GNU General Public License v2.0
1 stars 0 forks source link

Neighbourhood Facet should be in Location #151

Open JonathanDHolden opened 1 month ago

JonathanDHolden commented 1 month ago

it makes sense, right?

Then I'd love to know if there's a way to automatically select Neighbourhood from Postcode? Though I have no idea if council wards work like that...

ekes commented 1 month ago

I've used elsewhere (with geo entity) the addressfield zone https://git.drupalcode.org/project/address/-/blob/2.1.x/src/Plugin/Field/FieldType/ZoneItem.php?ref_type=heads and regular expressions on post codes for this.

However, my understanding from councils is that the level of detail for mappings to neighbourhood, or anything else practical on the ground, is much too complicated. So for Greenwich we've just got a direct full postcode to neighbourhood lookup table (1000s of lines).