IP Geo Locator using Ruby, MongoDB, and Picard for node.js
JavaScript Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
config
data
vendor
README
api.js
load_data.rb

README

install and start mongo db
gem install mongo_mapper
gem install bson_ext
run `ruby load_data.rb` to initialize the database
start the server with `node api.js`

query the service like:

$.getJSON('http://service_address.com/ip/w.x.y.z?callback=?', function(data){ 
  console.log(data.city)
})