CloudMade API ruby client library
Add this line to your application's Gemfile:
gem 'cloudmate'
And then execute:
$ bundle
Or install it yourself as:
$ gem install cloudmate
Cloudmate.configure do |config|
config.api_key = 'CLOUDMADE_API_KEY'
end
http://developers.cloudmade.com/projects/show/geocoding-http-api
Free form address search:
Cloudmate.geocode(q: 'Leinfelden-Echterdingen Germany Karlstr. 12')
Structured address search:
Cloudmate.geocode(q: { country: 'Germany', street: 'Karlstr.', city: 'Leinfelden-Echterdingen', zip: '70771', housenumber: '12' })
Reverse geocoding:
Cloudmate.geocode(q: [48.77615073, 9.16416465])
http://developers.cloudmade.com/wiki/routing-http-api/Documentation
Cloudmate.route(points: [[47.25976, 9.58423], [47.26117, 9.59882]], type: :bicycle)
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request