0.0
No commit activity in last 3 years
No release in over 3 years
Yet another rubymotion geocoder wrapper.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.4.1
 Project Readme

Geocoder API for RubyMotion

Code Climate

This RubyMotion gem provides Geocoder functionality that integrate Google's Geocoding API and Apple's Geocoder to your RubyMotion app.

Google

  • Geocoding API
  • Place API

Apple

  • CLGeocoder
  • MKLocalSearch

Setup

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")

Usage

Basic:

reverse geocoding

MotionGeocoder::AppleApi::Geocode.(lat, lng) do |address|
      ...
    end

place search

MotionGeocoder::AppleApi::Place.auto_complete "starbucks", \
        lat: @center.latitude, lng: @center.longitude do |results|
          ...
        end

TODO

  • still a lot of APIs to do

Contributions

Fork, please!