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.