Skip to content

Geocodio provides country and state codes rather than names#364

Open
idpaterson wants to merge 1 commit intonchaulet:mainfrom
idpaterson:pull-requests/geocodio-country-state-codes
Open

Geocodio provides country and state codes rather than names#364
idpaterson wants to merge 1 commit intonchaulet:mainfrom
idpaterson:pull-requests/geocodio-country-state-codes

Conversation

@idpaterson
Copy link

Breaking change, the country and state geocoding result fields were populated with country and state codes from the API. This pull request uses countryCode and stateCode respectively. Geocodio API docs

Personally, I am passing node-geocoder results through a normalization phase using ISO 3166-2 data to map codes to names and vice versa with the expectation that the country, countryCode, state, and stateCode are not used consistently. Certainly not urgent to introduce a breaking change, hopefully others using Geocodio have been doing something similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant