I am trying to get the nearby addresses that I need to send to Google geolocation service on MacOs. I know how to interact with the Google geolocation, I just need to get the adressess to send to it.
I tried and did not work:
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -s
Give no addresses just:
(redacted) ~ % /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s
WARNING: The airport command line tool is deprecated and will be removed in a future release.
For diagnosing Wi-Fi related issues, use the Wireless Diagnostics app or wdutil command line tool.
I also tried
sudo wdutil scan, but scancommand does not exists it says.
And I think arp -a gives the addresses of phones and etc, not the routers. I need all the wifi access points so Google can figure out where I am.
netsh wlan show networks mode=BssidIs there an equivalent in MacOS. I know that I should not be using MacOS for advanced stuff, but I currently don't have access to powerful tools like Windows.