Answered by:
Certain ISO country codes not recognized

Question
-
If I submit a query consisting of "countryRegion=FR", I get a successful geocoding result for France. But if I submit "countryRegion=AX", where AX is the ISO code for Åland Islands, I get an empty response. Are only a subset of ISO codes supported? If so, where do I find the list of supported codes?
Thanks,
Adrian
Thursday, February 4, 2016 2:45 PM
Answers
-
Not every country ISO2 is supported. Only the more commonly used ones are. There are several reasons for this, primarily relevance.
http://rbrundritt.wordpress.com
- Proposed as answer by Ricky_Brundritt Friday, February 5, 2016 4:01 PM
- Marked as answer by ajstovold Monday, February 8, 2016 8:02 AM
Friday, February 5, 2016 3:58 PM
All replies
-
Åland Islands is not a country, but a region/province of Finland. So this is likely part of the issue. The full list of ISO-2 values are not supported, only those that belong to officially assigned countries. Note that the complete ISO-2 list includes a mix of countries, territories, and areas of geographical interest
http://rbrundritt.wordpress.com
- Proposed as answer by Ricky_Brundritt Thursday, February 4, 2016 7:23 PM
- Marked as answer by ajstovold Friday, February 5, 2016 7:59 AM
- Unmarked as answer by ajstovold Friday, February 5, 2016 8:49 AM
Thursday, February 4, 2016 7:21 PM -
Thanks, Ricky. I thought that was probably the case, but it's helpful to have it confirmed.
Sorry to unmark your reply as an answer; it's just that I found another example. If I submit "countryRegion=BI", where BI is the country code for Burundi, I again get no results, although as far as I know Burundi is generally recognized as a country. But if I submit "q=Burundi" I get a result, and it includes the element <CountryRegionIso2>BI</CountryRegionIso2>. So what value should I submit for "countryRegion" if I want the service to return Burundi?
- Edited by ajstovold Friday, February 5, 2016 8:56 AM
Friday, February 5, 2016 8:00 AM -
Not every country ISO2 is supported. Only the more commonly used ones are. There are several reasons for this, primarily relevance.
http://rbrundritt.wordpress.com
- Proposed as answer by Ricky_Brundritt Friday, February 5, 2016 4:01 PM
- Marked as answer by ajstovold Monday, February 8, 2016 8:02 AM
Friday, February 5, 2016 3:58 PM -
Thanks for the info, Ricky; that's useful to know.Monday, February 8, 2016 8:05 AM