Skip to content

Finds your current position on planet earth using the wifi access points in your vicinity

License

Notifications You must be signed in to change notification settings

watson/wifi-triangulate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wifi-triangulate

Finds your current position on planet earth using the wifi access points in your vicinity

Build status

js-standard-style

Installation

npm install wifi-triangulate

Usage

This module requires that the wifi card on your computer is active and that you have access to the internet in order to communicate with Google so that it can triangulate your position.

var triangulate = require('wifi-triangulate')

triangulate(function (err, location) {
  if (err) throw err
  console.log(location) // => { lat: 38.0690894, lng: -122.8069356, accuracy: 42 }
})

CLI

Install wifi-triangulate as a global module to use it as a CLI:

npm install --global wifi-triangulate

Now just execute the wifi-triangulate command:

$ wifi-triangulate
{
    "lat": 38.0690894,
    "lng": -122.8069356,
    "accuracy": 42
}

License

MIT

About

Finds your current position on planet earth using the wifi access points in your vicinity

Resources

License

Stars

Watchers

Forks

Packages

No packages published