Module: WigleApi

Defined in:
lib/wigle_api.rb,
lib/wigle_api/version.rb,
lib/wigle_api/connection.rb,
lib/wigle_api/exceptions.rb,
lib/wigle_api/scraper/parser.rb,
lib/wigle_api/scraper/search.rb

Overview

Descriptions of all the valid search options and information about them:

addresscode - Street address, max length 30
statecode   - Two character state code
zipcode     - Five character integer zip code, maxlength 5
variance    - The latitude/longitude variance in degrees, values available in the form: 0.001, 0.002, 0.005, 0.010 (default), 0.020, 0.050, 0.100, 0.200
latrange1   - Begin latitude range, max length 14
latrange2   - End latitude range, max length 14
longrange1  - Begin longitude range, max length 14
longrange2  - End longitude range, max length 14
lastupdt    - A timestamp used to filter based on the last time the access point database was updated in the format of 20010925174546
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 14
ssid        - SSID / Network Name, max length 50
freenet     - Must be a freenet (Not sure what that means), set the value to on to filter with this, should be excluded completely otherwise
paynet      - Must be a Commercial Pay Net (Not sure what that means either...), same deal with on to filter with this
dhcp        - Must have DHCP enable, on again to filter with this...
onlymine    - Only search on the networks that the authenticated user has found
pagestart   - The search result offset
Query       - This is the submit button...

Defined Under Namespace

Modules: Scraper Classes: Connection, NotLoggedIn

Constant Summary collapse

WIGLE_URI =
URI.parse("https://wigle.net/")
WIGLE_LOGIN_URL =
"/gps/gps/main/login"
WIGLE_QUERY_URL =
"/gps/gps/main/confirmquery/"
VERSION =
"1.0.0"

Class Method Summary collapse

Class Method Details

.login(username, password) ⇒ Object



25
26
27
28
# File 'lib/wigle_api.rb', line 25

def self.(username, password)
  @connection ||= WigleApi::Connection.new
  @connection.(username, password)
end

.where(args) ⇒ Object



30
31
32
# File 'lib/wigle_api.rb', line 30

def self.where(args)
  WigleApi::Scraper::Search.new(args)
end