Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Location

Yuri Schimke edited this page Jul 18, 2018 · 4 revisions

Location Support

OkUrl uses CoreLocationCLI on OSX to get the location. Use this for writing scripts based around your current location.

CoreLocation

$ okshell
jjs> var a = location();
jjs> print(a);
51.501364,-0.144084
jjs> a.latitude
51.501364
jjs> a.longitude
-0.144084

Manual Overides

$ cat ~/.okurl-location.json
{
  "latitude": 51.501364,
  "longitude": -0.144084
}
Clone this wiki locally