Displaying 2 results from an estimated 2 matches for "postcodeanywhere".
2006 May 03
10
get Addresses and house numbers from Post Code?
Hi,
does anyone know a way to get the address and a list of house numbers
from a Post Code? Is their an online web service that will do this?
I''m creating an app for a chinese take-away and this functionality is
important. What do you think is the best way of achieving this? for UK
post codes.
Thanks
Chris
--
Posted via http://www.ruby-forum.com/.
2006 May 23
0
where to initialize a variable in an AJAX based application
...s that I instanciate a variable in method 1 that will deal
with the overhead of scanning the WSDL. When I call method 2, it
reinstanciate that variable thus loosing a couple of seconds. I have the
following:
---
class PostcodeController < ActionController::Base
def display_address
@p =
PostcodeAnywhereService.new("http://services.postcodeanywhere.co.uk/uk/lookup.asmx?wsdl")
res = @p.by_postcode(params[:postcode])
@array_Interim_result = res.byPostcodeResult.results.interimResult
end
def grab_address
@p =
PostcodeAnywhereService.new("http://services.postcodeanywher...