CEMAC
Published in

CEMAC

Get Lat/Lon Geolocation using Bash (or Python) and only a WiFi connection

In some cases, you may not have a GPS module available but will still want to find out your current location. We are able to do this using the Born Again SHell command curl

Photo by Alex Perez on Unsplash

The command

The command you are interested in is:

curl ipinfo.io

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Daniel Ellis Research

Daniel Ellis Research

Research Software Engineer specialising in Data Visualisation with a touch of HPC. — PhD in Atmospheric Chemistry and Masters in Theoretical Physics.