wearscript / wearscript-android

JavaScript with Batteries Included for Google Glass
wearscript.com
216 stars 55 forks source link

Location triangulation with wifi #65

Open bwhite opened 11 years ago

bwhite commented 11 years ago

Using the WS.wifi* commands you can get signal strength, MACs, and SSIDs. It should be fairly simple to make a JS library that can provide either relative positioning or (with calibration) absolute positioning.

colegleason commented 11 years ago

I'm imagining the flow for this might be something like

function callback(lat, long) {
    WS.log("Lat: " + lat +", Long: " + long);
}
WS.wifiCalibrate({"01:ED:45:23:94:AB":{"lat":42.522803, "long":-98.971710}, ...});
WS.wifiLocationOn('callback');

Thoughts?