wifiGeolocation is a script for the automatic discovery and jotting down of nearby access points into a database. It also updates inferior datapoints with better data if later encountered.
Complete with the ability to export or import existing data as CSV for Google "My Maps".
-
Connect your GPS module of choice and ensure gpsd is active. (The socket usually takes care of this)
-
At a minimum, call
wifiGeolocation/main --interface wlpXxYy -
Wait for a GPS lock and the database will start writing.
The script supports a few options to begin with:
-
--interfaceAn interface to work with. Required for normal operation. -
--loglevel #Optional verbosity. Verbose=1, Debug=2. -
--debugQuick--loglevel 2- To have the script output more information about its activity (Useful for debugging or just keeping an eye on the process) -
--verboseQuick--loglevel 1 -
--nomanagementIf you plan to use this script alongside airodump-ng, bettercap or tcpdump with your own channel management method this prevents the script from managing interfaces and channel hopping. Just along for the ride. -
--importcsvTo import any csv data you've exported from the database or created using an earlier version -
--exportcsvTo export your datapoints to a CSV for use elsewhere. Useful for data visualisation platforms such as Elasticsearch (Kibana, Lens) or Google's "My Maps" feature. -
--googleOptional flag alongside--exportcsvto split CSV output to 2000 datapoints per csv file and creates multiple files per 2000 points. -
--skipgpsSkip GPS requirement. Good for offline testing. (Does not write points to db!)