Skip to content

Commit 3b9960b

Browse files
Update README.md
formatting
1 parent 508c459 commit 3b9960b

1 file changed

Lines changed: 8 additions & 31 deletions

File tree

README.md

Lines changed: 8 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,22 @@ Designed to help troubleshoot incorrect geolocation, Wi-Fi positioning errors, o
66
Features
77

88
Logs latitude, longitude, accuracy, city, state, country
9-
109
Detects whether location is derived from Wi-Fi or IP-based sources
11-
1210
Records your current public IP address
13-
1411
Scans and logs all nearby Wi-Fi SSIDs and BSSIDs
15-
1612
SSIDs and BSSIDs are strictly separated
17-
1813
Multiple networks recorded in a single row
19-
2014
Stores your current system timezone
2115

2216
Generates two CSV files:
23-
2417
location_log.csv – full continuous log
25-
26-
location_alerts.csv – entries where the detected city is not Brisbane
18+
location_alerts.csv – entries where the detected city is not Brisbane (customisable)
2719

2820
Useful for diagnosing:
29-
3021
Wrong-region search results
31-
3222
Incorrect website geolocation
33-
3423
Microsoft Location Services inconsistencies
35-
3624
Wi-Fi triangulation issues
37-
3825
VPN, ISP routing, or tower handover anomalies
3926

4027
Output Columns
@@ -54,33 +41,21 @@ BSSIDs
5441
Each scan produces one row. SSIDs and BSSIDs are semicolon-separated lists.
5542

5643
How It Works
57-
5844
Uses Windows’ GeoCoordinateWatcher to acquire coordinates
59-
6045
Scans nearby Wi-Fi access points via netsh wlan show networks mode=bssid
61-
6246
Reverse-geocodes coordinates using OpenStreetMap (Nominatim)
63-
6447
Logs your system-reported timezone
65-
6648
Appends data to CSV files every 15 seconds
6749

6850
Use Cases
69-
7051
Troubleshooting incorrect GeoIP or Wi-Fi location on Windows
71-
7252
Investigating why Microsoft services think you're in the wrong city
73-
7453
Auditing network coverage, duplicate Wi-Fi networks, or rogue APs
75-
7654
Recording movement patterns for testing or analysis
77-
7855
Checking public IP changes over time (dynamic IP, VPN, carrier NAT)
7956

8057
Running the Script
81-
8258
Save the script as location_logger.ps1
83-
8459
Run PowerShell as Administrator
8560

8661
Execute:
@@ -91,16 +66,18 @@ Set-ExecutionPolicy Bypass -Scope Process -Force
9166

9267
The script runs continuously until closed.
9368

94-
Notes
69+
This script checks whether your public IP’s GeoIP location matches your expected city.
70+
By default, it is set to Brisbane.
9571

96-
Uses the OpenStreetMap Nominatim API — please respect rate limits
72+
To change it:
73+
Open the script in any text editor.
74+
Find and replace "Brisbane" with your desired city.
9775

76+
Notes
77+
Uses the OpenStreetMap Nominatim API — please respect rate limits
9878
Works on Windows 10 and Windows 11
99-
10079
Wi-Fi scanning requires wireless adapters enabled
101-
10280
BSSID and SSID parsing is strict to avoid mixed data
10381

10482
License
105-
10683
MIT License.

0 commit comments

Comments
 (0)