Created
May 13, 2009 18:51
-
-
Save dreamcat4/111203 to your computer and use it in GitHub Desktop.
External geocoders example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# (MY CHANGES) | |
def self.geocode(address) | |
res = do_geocode(address) | |
return res ? res : GeoLoc.new | |
end | |
# (ORIGINAL - YOUR CHANGES) | |
def self.geocode(address) | |
res = do_geocode(address) | |
return res.success? ? res : GeoLoc.new | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment