GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Reverse Geocoding in Coastal Areas  XML
Forum Index -> General
Author Message
Kilgore661



Joined: 05/08/2009 09:09:37
Messages: 2
Offline

Hello Everyone,

Noob here. What a fantastic resource GeoNames is - thanks to all involved!

I just used

http://ws.geonames.org/countrySubdivisionJSON?lat=XXX&lng=YYY

to find the country at XXX,YYY. It didn't always return a result and it seems it is coastal areas for which this happens. The description of the service says that I should append &radius=RRR but this doesn't seem to work. Eg

(XXX,YYY) = (18.486510, -64.583385)

is a point on the coast of the British Virgin Islands and the service returns

'{"status":{"message":"we are afraid we could not find a administrative country subdivision for latitude and longitude : 18.48651,-64.583385","value":15}}'

and adding &radius=2.0 and/or &radius=20.0 gives exactly the same thing.

Am I misunderstanding something?

Thanks,


marc



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

Hi

GeoNames doesn't have any country subdivision information in this area.

The country service, however, returns: http://ws.geonames.org/countryCode?lat=18.48651&lng=-64.583385&style=full&type=XML&radius=10

If it is helpful we could add the country information to the country subdivision service for those regions where we have country information but no subdivision information. The elements countryCode and countryName would be filled for these regions and the admin elements would be missing.

Best

Marc

[WWW]
Kilgore661



Joined: 05/08/2009 09:09:37
Messages: 2
Offline

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