2023-12-22 Geocoding

This is the reverse of what I do for EXIF data in images. There, I have latitude and longitude and want to know where I took the picture. But for this, I want to give it the name of a location and know the latitude and longitude.

where-is-it

$ where-is-it zürich
Zurich, District Zurich, Zurich, Switzerland
lat: 47.3744489 lon: 8.5410422
Zurich, Switzerland
lat: 47.4133024 lon: 8.656394
Zurich, Rooks County, Kansas, United States
lat: 39.234454 lon: -99.438161
Zurich, Súdwest-Fryslân, Frisia, Netherlands
lat: 53.1117662 lon: 5.3929759

All of this just to set up `wlsunset` in my Sway config file:

exec wlsunset -l 47.4 -L 8.6

​#Programming ​#Perl