Cleanup postcode, set county
-
Hi there, many thanks for your simple and very useful plugin.
Have just installed it for a company selling gluten free pork pies for delivery in UK ??
Two minor points that would polish it for us – one is that people often enter their postcode lazily, e.g. yo268ay instead of YO26 8AY so it would be nice if the lookup could fill the postcode too. I can see this in the API response for yo268ay:
{
“postcode”: “YO26 8AY”,
“latitude”: 54.0254,
“longitude”: -1.322467,
“addresses”: [
{
“formatted_address”: [
“Grange Farm”,
“Boroughbridge Road”,
“”,
“Whixley, York”,
“North Yorkshire”
], etc….Also, the county is not being set, but again it’s there in the API output:
“locality”: “Whixley”,
“town_or_city”: “York”,
“county”: “North Yorkshire”,
“district”: “Harrogate”,
“country”: “England”
},These could be options, default off, in the admin.
Again, many thanks for this!
- The topic ‘Cleanup postcode, set county’ is closed to new replies.