GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
findNearbyPostalCodes DOES NOT return all values  XML
Forum Index -> General
Author Message
gloveny



Joined: 18/05/2007 19:34:57
Messages: 5
Offline

Hi, I'm setting the maxRows to 500 because any more and the script times out.

The findNearbyPostalCodes call returns somthing like the following....
Code:
 <geonames>
 <code>
 <postalcode>BN20</postalcode>
 <name>Friston</name>
 <countryCode>GB</countryCode>
 ...More elements here......
 <distance>61.19110105762875</distance>
 </code>
 <code>
 <postalcode>BN20</postalcode>
 <name>East Dean</name>
 <countryCode>GB</countryCode>
 ...More elements here......
 <distance>63.00841809561317</distance>
 </code>
 


Now from that you can see that there are two areas in the same post code. Is there something we can do to filter the outcome to only one instance of the same post code. In this particuallr application I am only intrested in Nearby post codes, so returning all the areas in the same postcode is not wanted. Each instance is classed as a row and therefore limiting the number of postcodes I get back as there may be 30 rows all for the same post code.
So in some instances when Im hovering over london, I only get SE post codes when clearly I should also be getting East , west and north london postcodes aswell.

Please tell my if this does nt make sence.

thanks.
Graham


marc



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

Graham

At them moment I don't see a good solution with our web service. What you can do is download the dump and run it on your own server.

Marc

[WWW]
gloveny



Joined: 18/05/2007 19:34:57
Messages: 5
Offline

marc, thanks for replying. Ok thanks, I'll do that.
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team