GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
match P(city, village) feature code for S or T codes :?  XML
Forum Index -> General
Author Message
gilish



Joined: 10/06/2014 17:14:38
Messages: 3
Offline

a newbe question.
in the result for an S or T Toponyms i see the matching country under countryId or oountryCode.

Is there a way go get the P code for them ?
e.g. Bondi Beach is in the city Sydney which is in Australia.

http://api.geonames.org/searchJSON?name=bondi%20beach&username=demo

but when i search for Bondi Beach, All i get is the country information about Australia.

here is the result
Code:
 {
 		"countryId": "2077456",
 		"adminCode1": "02",
 		"countryName": "Australia",
 		"fclName": "mountain,hill,rock,... ",
 		"countryCode": "AU",
 		"lng": "151.2762",
 		"fcodeName": "beach",
 		"toponymName": "Bondi Beach",
 		"fcl": "T",
 		"name": "Bondi Beach",
 		"fcode": "BCH",
 		"geonameId": 2174949,
 		"lat": "-33.8902",
 		"adminName1": "New South Wales",
 		"population": 0
 	}
 

How do I see in which City it is ? How do I know it's in Sydney ?

Thanks!
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team