GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
cities15000 contains PPLX values  XML
Forum Index -> General
Author Message
LA_



Joined: 27/07/2016 19:45:22
Messages: 2
Offline

I would like to use the following API methods to find big city close to user:
1) search(q, cities='cities15000'), if user just types the country name and city OR;
2) findNearbyPlaceName(lat, lng, cities='cities15000')

But I faced with the following problem -
1) if user inputs 'Moscow, Russia', then I get the correct value of geoname id - 524901
2) if I send lat and lng values (55.734569, 37.627686), then I get 465057, which is not city, but part of the city (PPLX).

Don't understand how to achieve what I need.
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team