I thought these were US-related entities.

When I make this kind of a query to geoNames, I get nothing back.


Does anyone know how to query for parks in these territories?

  • 6
    As this is the fourth question you've asked along similar lines, might I suggest you look at the files that are on the GeoNames website? The file you're looking for is download.geonames.org/export/dump/countryInfo.txt Which gives you all the country codes. I'll leave choosing the right country code for the Maldives as an exercise for the reader. – MerseyViking May 22 '11 at 13:52
  • 1
    @Mersey In response to your observation, I have merged the three most similar questions: they all concern identifying the correct country codes for park queries. – whuber May 22 '11 at 15:46
  • According to the documentation geonames.org/export/geonames-search.html the country names are ISO-3166 iso.org/iso/country_codes.htm – MathiasWestin May 23 '11 at 6:34
  • Since your question about the Maldives was closed, let me note here that MA is the code for Morocco; the code for the Maldives is MV. Here is a friendlier link to the ISO 3166-1-alpha-2 codes. – Jaime Soto May 31 '11 at 14:58

Puerto Rico isn't included under the 'US' label (likely due to its unincorporated status), it can instead by found by changing the country to 'PR':



The country code for American Samoa is AS. Try something like this: http://api.geonames.org/search?featureCode=PRK&username=genadinik&country=AS&maxRows=1000

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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