GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
NearbyPlaceNameJSON returns different answer than findNearbyPlaceName (another example)  XML
Forum Index -> General
Author Message
cehilton



Joined: 05/11/2008 23:33:38
Messages: 5
Offline


for lat=44.93660 lng=1.01532 which is Les Eyzies-de-Tayac-Sireuil, France.

http://ws.geonames.org/findNearbyPlaceName?lat=44.93660&lng=1.01532

returns

-<geonames>
-<geoname>
<name>Les Eyzies-de-Tayac-Sireuil</name>
<lat>44.9333333</lat>
<lng>1.0166667</lng>
<geonameId>3001095</geonameId>
<countryCode>FR</countryCode>
<countryName>France</countryName>
<fcl>P</fcl>
<fcode>PPL</fcode>
<distance>0.3784</distance>
</geoname>
</geonames>

using same lat/lng but JSON form

http://ws.geonames.org/findNearbyPlaceNameJSON?lat=44.93660&lng=1.01532

returns different PPL

{"geonames":[{"countryName":"France","adminCode1":"97","fclName":"city, village,...",
"countryCode":"FR","lng":1.0166667,"fcodeName":"populated place","distance":"0.3784",
"fcl":"P","name":"La Mouthe","fcode":"PPL","geonameId":3007978,"lat":44.9333333,
"population":0,"adminName1":"Aquitaine"}]}


Thanks.
marc



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

both services are now served by the same server and you get the same result.

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