You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do we fetch a list of all the countries in the database, and their values like country codes?
Two reasons...
For the mapping we need to know what the country codes are to map to our sites.
We actually have a contact form where a user chooses their country. I would like that country automatically chosen. So the country list needs to be all the countries in the database.
So how can we get this list?
Thanks!
The text was updated successfully, but these errors were encountered:
It's not possible to query the Maxmind database for countries, it's strictly for ip lookups.
The isoCode property on Country follows the ISO-3166-1 two-letter standard (https://en.m.wikipedia.org/wiki/ISO_3166-1), so you can get a list of countries that follows that standard from anywhere, and use that.
How do we fetch a list of all the countries in the database, and their values like country codes?
Two reasons...
For the mapping we need to know what the country codes are to map to our sites.
We actually have a contact form where a user chooses their country. I would like that country automatically chosen. So the country list needs to be all the countries in the database.
So how can we get this list?
Thanks!
The text was updated successfully, but these errors were encountered: