Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/greatwolf/geolocate
Simple lua script that fetches GPS coordinates using Google's geolocation API
https://github.com/greatwolf/geolocate
Last synced: about 1 month ago
JSON representation
Simple lua script that fetches GPS coordinates using Google's geolocation API
- Host: GitHub
- URL: https://github.com/greatwolf/geolocate
- Owner: greatwolf
- License: unlicense
- Created: 2016-08-24T02:01:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-06T00:24:57.000Z (almost 5 years ago)
- Last Synced: 2024-04-22T20:26:51.430Z (9 months ago)
- Language: Lua
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Geolocate
geolocate.lua takes one or more files as input and
outputs the corresponding longitude/latitude GPS coordinates
for each of those input files.The input file should contain bssid(access point's MAC) and
signal per line using this format:
```
BSSID : <6-byte MAC address> Signal : %
```
Note that Google's geolocation API requires at least 2 sets of
BSSID data to work.To have geolocate read from `stdin` use '-' as input filename.
For example, in Windows, the command below pipes the `stdout` from `netsh`
and feeds it into geolocate's `stdin`:netsh wlan show networks mode=bssid | geolocate.lua -
### Dependencies
The Lua script uses the following external lua libraries:
- penlight's pretty `dump` module
- dkjson for dealing with json messages
- luasocket's http module for doing REST request
- luasec's https module for handling ssl/tls communication.
- luacom for displaying generated map page in browser w/o blocking