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.

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?

share|improve this question
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
add comment

2 Answers

up vote 3 down vote accepted

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

share|improve this answer
add comment

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

share|improve this answer
add comment

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.