Woocommerce shipping zone in the same country (UK) is not working - wordpress

I tried using 3 zone of UK country, but if do search a specific postcode, it only shows the Mainland UK shipping method.
Example if I search a postcode near in Northern Ireland, I expected to see Standard Delivery shipping method only but Mainland UK shipping method is showing as always.
I'm missing something in the setup? or I setup it wrong?
Thanks guys ..

Drag Mainland UK as your last zone (before rest of the world).

Related

HERE Traffic API: Does HERE provide data on accidents for Cape Town?

I'm using HERE Traffic API to get incident data, specifically data about accidents, for Cape Town.
Here is the link I'm using:
https://traffic.ls.hereapi.com/traffic/6.3/incidents.json?&apiKey=MY_API_KEY&bbox=-33.424531,18.208220;-34.398377,19.106580&type=Accident
which always yields a result such as:
{"TIMESTAMP": "08/26/2020 17:36:23 GMT", "VERSION": 2.4, "TIMESTAMP2": "2020-08-26T17:36:23.000+0000", "EXTENDED_COUNTRY_CODE": "NA"} - no accident is reported.
If I don't filter by the type of incident, i.e. using the link:
https://traffic.ls.hereapi.com/traffic/6.3/incidents.json?&apiKey=MY_API_KEY&bbox=-33.424531,18.208220;-34.398377,19.106580
I get data on other types of incidents and the "EXTENDED_COUNTRY_CODE" appears as D0 - as it should since it is the market code for South Africa (as per https://developer.here.com/documentation/traffic/dev_guide/topics/coverage-information.html).
Does the extended country code appear as NA when I filter by accident because HERE is not providing data on accidents for Cape Town? I've been able to filter the type of incident for other parts of the world so I guess there is no problem in how I am defining the link.
Many thanks in advance.
HERE does publish the accident data in South Africa. We also checked the data history internally, we do publish accident data for Cape Town.
I think when you get NA, mostly because there is no active accident at that time.
So far, we don't see any active accident event that has been missed but if you are aware of an active accident we missed please don't hesitate to let us know.

How to get timezone from postal code using Java?

I have some Java code and I need to implement logic that finds timezone from postal code of UK region. Do we have any service that does the same.
All of the United Kingdom of Great Britain and Northern Ireland uses Europe/London time zone. Including Northern Ireland, Man, Jersey and Guernsey. So you just need ZoneId.of("Europe/London") always.
Link: List of tz database time zones

Some postcode searches returning inaccurate results

I'm using the Here Geocoder API using free-form input and getting random results when searching for postcodes in the Isle of Man.
I haven't tried all postcodes but the couple I have tested (from customer complaints) do appear to have a problem.
You can test the postcodes on the examples page and see the response yourself - https://developer.here.com/api-explorer/rest/geocoder
When searching for the postcode IM4 4LH the response returns an address for IP4 4LH but if you search for IM4 4 you get the right general area.
Another example is if you search for IM5 1HD you get the right response but if you search for IM51HD you instead get a response with IP5 1HD as the postcode.
IM4 4LH & IM5 1HD are legitimate postcode areas so I was wondering if there is something else we can do to more accurately target postcodes.
I know results could be more accurate with more search data but I would have thought a postcode on it's own would be more than enough.
Any help would be appreciated.
Thanks,
Jason
In the core map for United Kingdom and for Isle of Man only sector postal codes are available. E.g. " IM5 1".
The Geocoder additionally uses an extra product which provides the full postal codes (seven digits). Until last quarter they were covering only United Kingdom. E.g. postal code " IP5 1HD" is coming from these products.
Starting from this quarter it will cover also Isle of Man. This still need to be integrated into the Geocoder database. As soon as we are done, full postal codes will also be available for Isle of Man.
We work on it but cannot yet commit on a timeline.

WooCommerce - get Geo-IP location working for custom region/province

I have added Northern Ireland as a country to WooCommerce for shipping reasons. For those unfamiliar, Northern Ireland, along with the Republic of Ireland, makeup the island of Ireland but Northern Ireland is a member of the United Kingdom (a province of the UK I think is the official designation).
WooCommerce groups England, Scotland, Wales and Northern Ireland under the ISO 3166-1 code of GB / United Kingdom. It is a pain for handling shipping between RoI, NI and the UK mainland
So... I added Northern Ireland as a country in my store with the custom ISO code of "GB-NIR". While GB-NIR is a valid ISO 3166-2 code, WooCommerce recognises only ISO 3166-1 codes so geolocation / geo-IP doesn't work for visitors from Northern Ireland - e.g. the country field isn't automatically set to "Northern Ireland" at checkout, etc... I assume IP addresses from Northern Ireland visitors will mostly identify as UK IP addresses with the ISO code of "GB" and I wouldn't expect any IP database to utilise GB-NIR.
Is there anywhere I can say write a rule so that all IP addresses identifying as GB / United Kingdom are mapped in WooCommerce to my custom country of GB-NIR / Northern Ireland? United Kingdom isn't in use in my store (shipping to RoI and NI only, not UK mainland) so there's no issue shoehorning all UK IP addresses into Northern Ireland
Any thoughts how I might approach this?

Collecting postal adresses from webpages?

I'm looking for a special program that able to collect postal adresses from web pages, not only from one pages, all pages from specific area.
I mean I want to find&collect all the enterprises in london. For example i would like to find the all hairdressers postal adresses in London. I just type hairdresser London and the program will collect me the data in tables like this style: url, postal adress
www.hairdresserlondon1.com, 83 Berwick Street, London, United Kingdom
www.hairdresserlondon2.com, 12 Getwick Street, London, United Kingdom
and so on...
Is there any idea which program is good for this task? What's the name of this kind of method?

Resources