GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[BUG] postalCodeLookupJSON: always returns 20 results with dummy 'postalcode' for any 'country'  XML
Forum Index -> General
Author Message
sphakka



Joined: 01/06/2017 16:36:13
Messages: 1
Offline

Try this with dummy code 'foo-bar':

http://api.geonames.org/postalCodeLookupJSON?postalcode=foo-bar&country=CH&username=demo

You get 20 items!? It should be 0, or give an error response. Puzzling, as with a wrong numerical code the result list is indeed empty; c.f.

http://api.geonames.org/postalCodeLookupJSON?postalcode=00000&country=CH&username=demo

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