RubyMotion wrapper for
- Geocoding API
- Place API
- CLGeocoder
- MKLocalSearch
####Improving ...
Add MotionGeocoder to your Gemfile, and run bundle install
:
gem 'motion-geocoder'
Edit the Rakefile of your RubyMotion project and add the following require line:
# After the line that require Rubymotion
require 'bundler'
Bundler.require
To use google api, you need to register the key, i.e. in app_delegate.rb
:
MotionGeocoder::GoogleApi.register("key")
Basic:
MotionGeocoder::AppleApi::Geocode.(lat, lng) do |address|
...
end
MotionGeocoder::AppleApi::Place.auto_complete "starbucks", \
lat: @center.latitude, lng: @center.longitude do |results|
...
end
- still a lot of APIs to do
Fork, please!