Project

where

0.0
No commit activity in last 3 years
No release in over 3 years
A very simple geolocation library for searching based on postal address or ip address.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0

Runtime

 Project Readme

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.