Skip to content

Instantly share code, notes, and snippets.

@owenkellogg
Created May 16, 2013 23:26
Show Gist options
  • Save owenkellogg/5595926 to your computer and use it in GitHub Desktop.
Save owenkellogg/5595926 to your computer and use it in GitHub Desktop.
rubymotion get location with bubble wrap
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