Self-localization using the Google Maps API
Posted: Fri Feb 24, 2017 1:48 pm
Started with a simple proof-of-concept implementation of self-localization of an ESP using the Google Maps API. If does a scan of the locally visible SSIDs, formats a request to the Google Maps Web Service and receives latitude and longitude of its current location if available.
https://github.com/martin-ger/esp_google_locator
Of course, this all might be done better with a GPS-receiver, but this is much more expensive, requires more energy, and does not work indoors.
In order to work in other places than in the home WiFi network, the sketch additionally scans for open WiFi netorks and tries to connect via these.
This should serve as a starting point for some useful application ideas, e.g. like an ESP-based tracker that awakes from deep sleep, does a scan and either uploads its position to a server, stores it in flash for later usage, or performs a location dependent action.
https://github.com/martin-ger/esp_google_locator
Of course, this all might be done better with a GPS-receiver, but this is much more expensive, requires more energy, and does not work indoors.
In order to work in other places than in the home WiFi network, the sketch additionally scans for open WiFi netorks and tries to connect via these.
This should serve as a starting point for some useful application ideas, e.g. like an ESP-based tracker that awakes from deep sleep, does a scan and either uploads its position to a server, stores it in flash for later usage, or performs a location dependent action.