Skip to content

Instantly share code, notes, and snippets.

@assafmo
Created April 30, 2018 11:35
Show Gist options
  • Save assafmo/275f6dee672ca8aa67e637930e149992 to your computer and use it in GitHub Desktop.
Save assafmo/275f6dee672ca8aa67e637930e149992 to your computer and use it in GitHub Desktop.
Place name -> GPS coordinates using Google Maps
#!/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