From paul at paulbrackenridge.com Wed Jun 20 05:34:49 2007 From: paul at paulbrackenridge.com (Paul Brackenridge) Date: Wed, 20 Jun 2007 10:34:49 +0100 Subject: [Graticule-users] Restricting search to only using postal_code Message-ID: <61360a9c0706200234x6a866b79n4b9d5fe6c72ecf4c@mail.gmail.com> Is there a way to run a search that only uses the postal_code and country? The reason I ask is that I want to use Graticule in a store locator but sometimes the street part of the store address can be fairly odd with such things as "C/- Clinton Cards Hill Street Shopping Centre" At the moment I am using the following code in my Stores model geocoder = Graticule.service(:yahoo).new YAHOO_API location = geocoder.locate :postal_code => post_code, :country => country This works fine if the address is standard, but loops for ages trying to find the street address if it is non standard. Thanks in advance, P -- Paul Brackenridge -------------------------------------------------- T - 01484 513064 M - 078 6662 3067 E - paul at paulbrackenridge.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/graticule-users/attachments/20070620/ed91febc/attachment.html