title: Geolocating 802.11 access points by MAC address using Google Geolocation API
body: <p>Support for the Google Geolocation API is now built in to most browsers. They do this, in part, by sending to Google the MAC address of nearby 802.11 access points (those whose beacons are captured by your computer.)</p>
  
  <p>I have a large number of 802.11 packets captured from various locations. I'm looking to geolocate the 802.11 access points. Assume that we only have their mac addresses. This should be possible by using the Google Geolocation API.</p>
  
  <p>Sources that I've found to date that might be helpful on this include:</p>
  
  <ul>
  <li><a href="http://mxr.mozilla.org/mozilla1.9.1/source/dom/src/geolocation/NetworkGeolocationProvider.js" rel="noreferrer">Geolocation source code from Mozilla 1.9.1 code base</a></li>
  <li><a href="https://developer.mozilla.org/En/Monitoring_WiFi_access_points" rel="noreferrer">MDN article on Monitoring WiFi access points</a></li>
  <li><a href="https://developer.mozilla.org/En/Using_geolocation" rel="noreferrer">MDN article on using geolocation</a></li>
  <li><a href="http://blog.mozilla.com/webdev/2009/05/01/geolocation-in-the-browser/" rel="noreferrer">Mozilla WebDev article on using Geolocation in the Browser</a></li>
  </ul>
  
  <p>The first is probably the best bet. Problem is, I'm not sure how to use the example there and actually create a program that lets me pipe in the MAC addresses and output lat/long pairs. I'm also not sure how to run JavaScript from a Unix/MacOS command line.</p>
  
  <p>I know that this is a lot to ask, but does anybody have any clue where I should start?</p>