Skip to content

Instantly share code, notes, and snippets.

@stef
Created September 22, 2010 09:55
Show Gist options
  • Save stef/591436 to your computer and use it in GitHub Desktop.
Save stef/591436 to your computer and use it in GitHub Desktop.
gives back geo locs for neighbouring wlan APs
for mac in $(iwlist wlan0 scan | grep -o 'Address: .*' | cut -d' ' -f2); do curl -d '{version:"1.1.0",request_address:true,wifi_towers:[{mac_address:"'$mac'"}]}' www.google.com/loc/json; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment