An easy way to access Wigle.net with Node.js. Requires a user account.
- Original version (C) 2013 Nuno Santos
- Fork that uses older Wigle.net API (C) 2015 Brannon Dorsey
- Forforked to update Wigle API to version 2 (C) 2017 Ibirisol Fontes
TODO: npm/git
var wigle = require('wigle-api');
var client = wigle.createClient(
'yourAccessToken'
);
client.query({
ssid: "linksys",
offset: 100
}, function(err, result) {
if (err) throw err;
console.log('Timestamp:', r.timestamp);
console.log('Number of networks found:', r.networks.length);
console.log('Networks:', r.networks);
});
Creates a new Client instance, and logs in to Wigle.net using the given credentials (token). The credentials are transmitted using an https
connection.
Sends a query to Wigle.net with the given parameters, and passes the response on to the callback. The responses from Wigle.net are always limited to 100 per request, but an offset can be used to retrieve further results.
The parameters are:
lat_north
northern latitude range (between [-90, 90], max length 14)lat_south
southern latitude range (between [-90, 90], max length 14)lng_east
eastern longitude range (between [-180, 180], max length 14)lng_west
western longitude range (between [-180, 180], max length 14)netid
BSSID / AP Max Address, expects either just the colon delimited vendor code or a full MAC such as either 0A:2C:EF or 0A:2C:EF:3D:25:1B, max length 14ssid
network SSID / Network Nameoffset
search result offset
After the query is executed, a callback is called with the signature callback(err, result)
, where err is an Error
Wigle-api is released under the MIT License.
See LICENSE for more details.
Copyright (C) 2013 Nuno Santos, http://nunosantos.org