GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Possible bug with postalCodeSearchJSON webservice  XML
Forum Index -> General
Author Message
jamespmcgrath



Joined: 06/03/2013 03:22:05
Messages: 1
Offline

Hi all,

Apologies if this is not the place to report bugs, if I am in the wrong place please feel free to point me to the correct place for bug reports.

Ok, I believe that there is a possible bug in the postalCodeSearchJSON webservice which can be demonstrated with the following two urls:

http://api.geonames.org/postalCodeSearchJSON?maxRows=8&placename=West+Launcesto&username=demo&operator=OR&countryBias=AU

http://api.geonames.org/postalCodeSearchJSON?maxRows=8&placename=West+Launceston&username=demo&operator=OR&countryBias=AU

As you might notice the only difference between the two urls is that the firsthas the placename parameter as "West Launcesto" and the 2nd has "West Launceston".

I would expect that these two calls would have almost exactly the same result, but they are very different. The first call sends back results that have nothing to do with Launceston, the second has results only from Launceston.

Is this a bug, or is it a subtly of the web service that I am missing?

Thanks,

James.
marc



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

Hi James

Thanks. This was indeed a bug with the OR operator. It has been fixed now.

Best Regards

Marc

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