Re:Uber CLI
by coderholic on Friday February 24, 2017 @07:38PM
(#13729283)
Nice ipinfo.io mashup! This whole part
dig +short myip.opendns.com @resolver1.opendns.com | xargs -I {} echo "ipinfo.io/"{} | xargs curl | grep loc | cut -d: -f2 | sed "s/,$//"
can be simplified to curl ipinfo.io/loc
which gives you exactly the same information, per https://ipinfo.io/developersBut ip geolocation usually gives you city or zipcode level accuracy, which may or may not be good enough to get an accurate uber estimate depending on how big your city/zip area is.
dig +short myip.opendns.com @resolver1.opendns.com | xargs -I {} echo "ipinfo.io/"{} | xargs curl | grep loc | cut -d: -f2 | sed "s/,$//" | xargs uber time