Displaying 1 result from an estimated 1 matches for "to_latlong".
2006 May 18
3
Google Map
...n''t seem
to work out how to draw the postcode from my table I keep getting hit by
method errors.
The controller is
require ''postcode_2_latlong''
postcode = Postcode.new("TN22 2LG")
# I want this to be a postcode from my database not TN22...
latlong = postcode.to_latlong
Then postcode.rb in /lib reads...
require ''uri''
require ''open-uri''
class Postcode
def initialize(postcode)
@postcode = postcode
end
def to_latlong
#postcode = URI.escape(@postcode)
postcode = @postcode.gsub(/ /, "+")
postcode2...