Created
April 30, 2018 11:35
-
-
Save assafmo/275f6dee672ca8aa67e637930e149992 to your computer and use it in GitHub Desktop.
Place name -> GPS coordinates using Google Maps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
place="$1" | |
curl "https://www.google.com/maps/place/${place}" -L -s --compressed | | |
grep -Po 'cacheResponse.+?\]' | | |
tr '[],()' ' ' | | |
awk '{print $4","$3}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment