GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Help with API call please  XML
Forum Index -> General
Author Message
emmerson444



Joined: 24/03/2024 14:51:50
Messages: 1
Offline

Firstly I am getting 2 api requests come through at once but that could be my code. Next thing is I am not getting any population results from the call. I have put below my http. I am new to this could someone tell me what I am doing wrong?

API Request URL: http://api.geonames.org/search?name=Leeds&country=United+Kingdom&type=json&username=xxx

API Request URL: http://api.geonames.org/search?name=Leeds&country=United Kingdom&type=json&username=xxx
tequipo



Joined: 16/04/2024 15:57:55
Messages: 2
Offline

The country parameter must be the countryCode:
http://api.geonames.org/search?name=Leeds&country=UK&type=json&username=xxx
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team