blob: f8851e5bdcad20da65b72e68b710013d98759c68 (202 bytes)[doc][blame][raw]
1#!/bin/bash
2
3city="$1"
4state="$2"
5location=$(curl -sL "https://nominatim.openstreetmap.org/search?city=$city&state=$state&format=json" | jq -r '.[0] | "[" + .lat + ", " + .lon + "],"')
6echo "$location"