GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Different coordinates for local and English name of location  XML
Forum Index -> General
Author Message
cyberjunkie



Joined: 04/05/2011 22:58:19
Messages: 13
Offline

I discovered that the latitude and longitude differs according to the language of the location.

For example the international name of the city Bucharest returns

lat: 44.43224761932805
lng: 26.10626220703125

and the local name Bucureşti returns

lat: 44.428018465078985
lng: 26.096649169921875

Why is this?
marc



Joined: 08/12/2005 07:39:47
Messages: 4501
Offline

You are certainly getting two different features. One is probably the populated place and the other the administrative division.

Marc

[WWW]
cyberjunkie



Joined: 04/05/2011 22:58:19
Messages: 13
Offline

Thanks Marc! I think that you are right. I'm using javascript to retrieve data from the webserver, which I add to an auto-suggest dropdown list. It appears that I'm retrieving the administrative division but why am I also getting populated place?
Code:
 label: item.name + (item.adminName1 ? ", " + item.adminName1 : "") + ", " + item.countryName,
 value: item.name + (item.adminName1 ? ", " + item.adminName1 : "") + ", " + item.countryName,


edit: I'm also using feature class P because I want just to retrieve cities or towns. Is it possible to omit popular places or administrative division to get just one?
marc



Joined: 08/12/2005 07:39:47
Messages: 4501
Offline

you can use the parameter featureClass=P to only get populated places.

The search service is described here:
http://www.geonames.org/export/geonames-search.html

Best Regards

Marc

[WWW]
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team