When we search for Southampton against the JSON API with the country code set, we seem to be getting results from Bermuda when we are only after those on the mainland.
As you can see from the above request, the first 5 fields are all for Southampton Parish which has a country code of BM. I understand Bermuda is a British overseas territory but I cannot find it listed in https://www.iso.org/obp/ui/#iso:code:3166:GB so surely it should not show up in the API response.
Can anyone help as to why this is happening or assist as to an alternative method to get only the results on the UK mainland (plus Scotland & Wales)?
It is actually a feature
For the depencencies the main country is added added to the search index as a secondary country.
For the UK this might be an overkill for some dependencies as they have their own postal code system. We could exclude them except for Guernsey, Jersey and Isle of Man.
Is there any way we can filter within a query parameter or something to get just the mainland?
We are using it as a place resolution to search for local services in the UK. So at the moment when people search for Southampton, it says it cannot find anything nearby as it's off in the middle of the Atlantic .