Sha256: ab2d6ea4021efcd3110f5285b936e0399d125554ba41df63e41b90eff012fc75
Contents?: true
Size: 656 Bytes
Versions: 1
Compression:
Stored size: 656 Bytes
Contents
= Where A basic geolocation library for Ruby. == Installation 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" ... == Copyright Copyright (c) 2010 Matt Venables. See LICENSE for details.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
where-0.0.1 | README.rdoc |