3 ms·
You can use jq's string interpolation feature to simplify this: $ curl -s https://wifi.delta.com/api/flight-data | jq -r '"https://maps.google.com/?q=\(.la
by remram 3y ago
You can use jq's string interpolation feature to simplify this:
$ curl -s https://wifi.delta.com/api/flight-data | jq -r '"https://maps.google.com/?q=\(.latitude),\(.longitude)"'
- hackmiester 3y agoThanks! I was trying to figure this out but I didn't have great Internet access (for some reason...) so I just hacked it instead.
- shortrounddev2 3y agoIn powershell Invoke-WebRequest https://wifi.delta.com/api/flight-data | ConvertFrom-Json | %{ "https://maps.google.com/?q=$($_.latitude),$($_.longitude)"