GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Error codes confusion  XML
Forum Index -> General
Author Message
gogeo



Joined: 20/09/2009 22:17:10
Messages: 1
Offline

Hello,

After reading the documentation I found that there are some error codes for various situations. For example there is an error 15 if there is no result found.

I want to use XML service for my application but after testing the service I see that there is no error code provided as the documentation talks about.

For example in the case below the address is found and it provides the correct nodes:
http://ws.geonames.org/findNearestAddress?lat=37.451&lng=-122.18

but
on the case below

http://ws.geonames.org/findNearestAddress?lat=34.451&lng=-122.18

the address is not found but I see no error code. Instead I see something like :

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<geonames />

I'm I doing something wrong?
marc



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

You are not doing anything wrong.

For the findNearestAddress it is not considered an exception to not find an address. I would even estimate that it is normal for this service to not find an address, the US is not so densely populated that each coordinate is close to an address.

Best

Marc

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