node-where
A basic geolocation library for node.js.
Uses freegeoip.net and the Google Maps Geocoding API
Installation
npm install node-where --save
Usage
Where can search by Postal Address, landmark or IP Address:
Search by Postal Address:
var where = ; where;
Search by Landmark:
var where = ; where;
Search by IP Address (both IPv4 and IPv6):
var where = ; where;
NOTE: IP address lookups do not include any street address information.
Usage as Express middleware:
var where = ; app;
Testing
Run the spec suite by running:
npm test