Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Is there any Google API which would return all the countries in the world with the country code?

share|improve this question
    
The AJAX API has the list you require? code.google.com/apis/language/translate/v2/… –  Mapperz Jan 30 '12 at 15:06

2 Answers 2

The Google Maps API family does not have anything like this. There might be other API's that do, but since ISO 3166-1 is fairly static you are probably better off embedding the data rather than retrieving it from an API every time you need it.

You could use Wikipedia's article on ISO 3166-1 as a source for the list of countries and codes.

share|improve this answer

How about KML Countries at GeoCommons. It has entries such as:

  • Cntryname: Australia, Fipscntry: AS
  • Cntryname: Egypt, Fipscntry: EG
  • Cntryname: France, Fipscntry: FR
  • Cntryname: United States, Fipscntry: US
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.