Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#!/bin/bash #Script which determinesif a location is north or south #of another location if [ "$#" -lt 1 ] then echo "input error" echo "usage: $0
" echo "example usage: $0 '123 5th Ave S Naples FL'" exit 1 fi #set station's Lat s="26.181617" #Get Call's Lat address=$1 c="$(wget -O- -q "https://maps.googleapis.com/maps/api/geocode/json?address=$address"|\ grep '"lat"'|head -n1|awk '{print $3}'|cut -d\, -f1)" #Determine if (( $(bc <<< "$s < $c") )); then echo "North"; else echo "Greater"; fi
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)