Skip to content

Release 2254

Choose a tag to compare

@github-actions github-actions released this 31 Jan 15:04
038810d

Context

We can retrieve country from the Geocoding response. However, it tends to return 'United Kingdom', whereas we are interested in the actual country (England, Scotland, Northern Ireland, Wales). Therefore, we need to actively search the result for countries. The country mostly comes through on the key 'administrative_area_level_1', but this doesn't seem to be consistent.

Changes proposed in this pull request

Move the country logic into its own class, and handle unknown countries (i.e., countries that we don't actively search for)

Guidance to review