Created
May 16, 2013 23:26
-
-
Save owenkellogg/5595926 to your computer and use it in GitHub Desktop.
rubymotion get location with bubble wrap
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
BW::Location.get(distance_filter: 10, desired_accuracy: :nearest_ten_meters) do |result| | |
geocoder = CLGeocoder.alloc.init | |
geocoder.reverseGeocodeLocation result[:to], completionHandler: lambda {|location, x| | |
alert = UIAlertView.alloc.init | |
alert.message = "#{location[0].locality} : #{location[0].postalCode}" | |
alert.show | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment