Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
IP Geo Locator using Ruby, MongoDB, and Picard for node.js
JavaScript Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
config initial commit
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)
})
Something went wrong with that request. Please try again.