This is a javascript wrapper on the web API.
bower install --save https://github.com/docmarionum1/jsapi.git
In your HTML file include the script:
<script src="wifimappingapi.js"></script>
In your javascript code:
angular
.module('App', ['WifiMapping'])
.controller('Ctrl', function(wifiMappingAPI) {
wifiMappingAPI.query({
ssid: 'nyu'
}).then(function(res) {
//Do stuff
});
});
The demo directory contains an example of using the library. It can easily
be run with:
# Python 2
$ python -m SimpleHTTPServer
# Python 3
$ python -m http.server
And then navigating to http://localhost:8000/demo/ in a browser.
Query the API for individual scans. Takes an object with the following parameters:
page_size: Number of responsespage: when using page size, which page to return. Starts at 0.columns: a list of columns to return. Available columns are:idxlatlngaccaltitudetimedevice_macapp_versiondroid_versiondevice_modelssidbssidcapslevelfreq
acc: accuracy greater than or equal to the given valuestartdate: date grater than or equal to this dateenddate: date less than this dateapp_version: scan done by given app versiondroid_version: scan done by phone with given android versiondevice_model: scan done by phone of given modelssid: a single ssid or list of ssidsbssid: equal to the given bssidcaps: contains a given capability. i.e.wpslevel: greater than or equal to the given signal strengthfreq: Equal to the specified frequency
Returns a list of scan results with the columns specified.
Query the API for unique access points. Takes an object with the following parameters:
page_size: Number of responsespage: when using page size, which page to return. Starts at 0.columns: a list of columns to return. Available columns are:ssidbssidcapsfreq
acc: accuracy greater than or equal to the given valuestartdate: date grater than or equal to this dateenddate: date less than this dateapp_version: scan done by given app versiondroid_version: scan done by phone with given android versiondevice_model: scan done by phone of given modelssid: a single ssid or list of ssidsbssid: equal to the given bssidcaps: contains a given capability. i.e.wpslevel: greater than or equal to the given signal strengthfreq: Equal to the specified frequency
Returns a list of access points with the columns specified.
The list of available parameters.
The list of columns for query.
The list of columns for getAccessPoints.
