Displaying 1 result from an estimated 1 matches for "googmapsresponse".
2010 Dec 14
5
Build associated model confusion
...ub('' '', ''+'')+"+"+location[:region].sub('' '',
''+'')+"+"+location[:country].sub('' '', ''+'')+"&sensor=false"
resp = Net::HTTP.get_response(URI.parse(url))
googMapsResponse = JSON.parse(resp.body)
@latitude = googMapsResponse["results"][0]["geometry"]["location"]
["lat"]
@longitude = googMapsResponse["results"][0]["geometry"]["location"]
["lng"]
end
def to_str
"#{self.nam...