Skip to content

Geocodio provides country and state codes rather than names #364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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