GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
postalcode_startsWith not available in json lookup?  XML
Forum Index -> General
Author Message
jnz31



Joined: 18/03/2014 20:13:09
Messages: 2
Offline

when i search for
http://ws.geonames.org/postalCodeLookupJSON?lang=en&maxRows=10&username=demo&country=DE&placename=muenchen

its the same results, when i search for
http://ws.geonames.org/postalCodeLookupJSON?lang=en&maxRows=10&username=demo&country=DE&placename=muenchen&postalcode_startsWith=815

the results always begin with 80331, while there does exist zip codes that go 815...
is this feature not available for json, just xml?
when i look up the docs, i can see the parameters for the xml call, but for json it says: Parameters : postalcode,country ,maxRows (default = 20),callback, charset (default = UTF-
nice shades by the way.

no chance for json postalcode_startsWith, or am i missing something?

thanks for the help and thanks for this incredible service.
jnz31



Joined: 18/03/2014 20:13:09
Messages: 2
Offline

okay, i found the solution.
for some reason postalCodeLookupJSON doesnt work, but there is a similar function that goes postalCodeSearchJSON and that does the trick.

http://ws.geonames.org/postalCodeSearchJSON?lang=en&maxRows=10&username=demo&country=de&postalcode_startsWith=81
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team