2

I thought these were US-related entities.

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

http://api.geonames.org/search?featureCode=PRK&username=genadinik&country=US&style=full&adminCode1=CR&maxRows=10

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

4
  • 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. Commented May 22, 2011 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
    Commented May 22, 2011 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 Commented May 23, 2011 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
    Commented May 31, 2011 at 14:58

2 Answers 2

3

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':

http://api.geonames.org/search?featureCode=PRK&username=genadinik&country=PR&style=full&maxRows=10

2

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 and acknowledge you have read our privacy policy.

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