Cloudmate

CloudMade API ruby client library

Installation

Add this line to your application's Gemfile:

gem 'cloudmate'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cloudmate

Usage

Cloudmate.configure do |config|
  config.api_key = 'CLOUDMADE_API_KEY'
end

Geocoding

http://developers.cloudmade.com/projects/show/geocoding-http-api

Free form address search:

Cloudmate.geocode(query: '133 Fleet street, London, UK')

Structured address search:

Cloudmate.geocode(query: { house: '133', street: 'Fleet street', city: 'London', country: 'UK' })

Reverse POI Geocoding:

Cloudmate.geocode(object_type: 'cafe', around: [51.51558, -0.141449], distance: :closest)

Routing

http://developers.cloudmade.com/wiki/routing-http-api/Documentation

Cloudmate.route(points: [[47.25976, 9.58423], [47.26117, 9.59882]], type: :bicycle)

Contributing Build Status

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request