GeoNames Home
|
Postal Codes
|
Download / Webservice
|
About
GeoNames Forum
Search
Recent Topics
Back to home page
Register
/
Login
How to get JSON for http://sws.geonames.org/1880251/
Forum Index
->
General
Author
Message
17/04/2014 09:06:31
Subject:
How to get JSON for http://sws.geonames.org/1880251/
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
19/04/2014 10:18:08
Subject:
Re:How to get JSON for http://sws.geonames.org/1880251/
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:
Select a forum
Forum in English
-------------
General
Administrative Divisions
FAQ - frequently asked questions
Postal Codes
Discussion of GeoNames Toponyms
Forum in other language
-------------
Forum in Deutsch
Powered by
JForum 2.1.5
©
JForum Team
info@geonames.org
GeoNames Home
Postal Codes
Download / Webservice
Forum
About