GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
How to get JSON for http://sws.geonames.org/1880251/  XML
Forum Index -> General
Author Message
ckoscher



Joined: 14/04/2014 22:36:13
Messages: 1
Offline

I have a country specified in terms of its identifier. The URL in the subject takes one directly to a map presentation.

I'd like to get a simple JSON response with the country name.

What would the API call look like?

Thanks
Chuck
nebnitt



Joined: 18/04/2014 17:41:50
Messages: 2
Offline

Hey Chuck,

I believe you can use the following API call. It'll give you a bunch of results, one of which will be the country name:

http://api.geonames.org/getJSON?geonameId=1880251&username=
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team