GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Differences between postalCodeLookup and postalCodeSearch  XML
Forum Index -> Postal Codes
Author Message

Joined: 08/08/2011 10:44:14
Messages: 10

Is there any difference in the data being searched by these two functions?

I'm currently using postalCodeLookup, but I think my application would be better served by using the postalCodeSearch -- postalCodeLookup has weird results when you try to pass a non-numeric postal code (for example, to the US), while postalCodeSearch correctly returns zero results.

For example, try the following:

They both return the same result (with slight differences in order)

Now try the following:

Here, the results are wildly different.

I guess my actual question is -- other than the weird non-numeric behavior, is there any material differences between the postalCodeLookup and postalCodeSearch endpoints?

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