Sha256: 9fa0ad72f6813696cee4a566baa8ab0adc400baa11ba21cec29e373cecc80e2a
Contents?: true
Size: 896 Bytes
Versions: 1
Compression:
Stored size: 896 Bytes
Contents
Where ===== A basic geolocation library for Ruby. Installation ------------ Add this line to your application's Gemfile: gem 'where' And then execute: $ bundle Or install it yourself as: $ gem install where Usage ----- Search by Address: result = Where.is '4 yawkey way boston ma' if result.success? puts "Address: #{result.address}" puts "Street Number: #{result.street_number}" puts "Street: #{result.street}" puts "City: #{result.city}" puts "State: #{result.state}" puts "Zip: #{result.postal_code}" puts "Country: #{result.country}" puts "Lat: #{result.lat}" puts "Lng: #{result.lng}" end Or, by IP-Address: result = Where.is "173.194.33.104" ... Testing ------- Run the spec suite by running: rspec Copyright --------- Copyright (c) 2013 Matt Venables. See LICENSE.txt for details.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
where-0.0.2 | README.md |