{"id":13583491,"url":"https://github.com/watson/geocode-wifi","last_synced_at":"2025-07-29T21:10:17.429Z","repository":{"id":33735762,"uuid":"37390345","full_name":"watson/geocode-wifi","owner":"watson","description":"Returns a latitude and a longitude given an array of wifi access points","archived":false,"fork":false,"pushed_at":"2015-07-07T20:53:06.000Z","size":140,"stargazers_count":27,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-06T10:54:00.320Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/watson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-13T22:36:30.000Z","updated_at":"2025-05-02T12:56:18.000Z","dependencies_parsed_at":"2022-08-26T10:22:33.668Z","dependency_job_id":null,"html_url":"https://github.com/watson/geocode-wifi","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/watson/geocode-wifi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson%2Fgeocode-wifi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson%2Fgeocode-wifi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson%2Fgeocode-wifi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson%2Fgeocode-wifi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/watson","download_url":"https://codeload.github.com/watson/geocode-wifi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson%2Fgeocode-wifi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267758490,"owners_count":24139869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T15:03:31.046Z","updated_at":"2025-07-29T21:10:17.353Z","avatar_url":"https://github.com/watson.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Modules"],"sub_categories":[],"readme":"# geocode-wifi\n\nReturns a latitude and a longitude given an array of wifi access points.\n\n[![Build status](https://travis-ci.org/watson/geocode-wifi.svg?branch=master)](https://travis-ci.org/watson/geocode-wifi)\n\n[![js-standard-style](https://raw.githubusercontent.com/feross/standard/master/badge.png)](https://github.com/feross/standard)\n\n## Installation\n\n```\nnpm install geocode-wifi\n```\n\n## Usage\n\nThis module needs network access in order to communicate with Google so\nit can triangulate the provided access points.\n\n```js\nvar geocodeWifi = require('geocode-wifi')\n\nvar towers = [\n  { mac: '0e:1d:41:0c:22:d4', ssid: 'NodeConf', signal: -72 },\n  { mac: '01:1c:ef:0c:21:2a', ssid: 'NSA Lobby', signal: -2 },\n  { mac: 'e0:53:41:92:00:bb', ssid: 'Microsoft Taco', signal: -89 }\n]\n\ngeocodeWifi(towers, function (err, location) {\n  if (err) throw err\n  console.log(location) // =\u003e { lat: 38.0690894, lng: -122.8069356, accuracy: 42 }\n})\n```\n\nGeocode-wifi have special support for the\n[node-wifiscanner](https://github.com/mauricesvay/node-wifiscanner)\nmodule. This means you can parse the output of node-wifiscanner directly\ninto geocode-wifi:\n\n```js\nvar geocodeWifi = require('geocode-wifi')\nvar wifiScanner = require('node-wifiscanner')\n\nwifiScanner.scan(function (err, towers) {\n  if (err) throw err\n\n  geocodeWifi(towers, function (err, location) {\n    if (err) throw err\n\n    console.log(location) // =\u003e { lat: 38.0690894, lng: -122.8069356, accuracy: 42 }\n  })\n})\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatson%2Fgeocode-wifi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwatson%2Fgeocode-wifi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatson%2Fgeocode-wifi/lists"}