Added clamp to make larger windows look better
This commit is contained in:
10
src/modules/api/location.cr
Normal file
10
src/modules/api/location.cr
Normal file
@@ -0,0 +1,10 @@
|
||||
module Wince::Location
|
||||
extend self
|
||||
|
||||
client = Geoclue::Simple.new()
|
||||
|
||||
def find_location()
|
||||
location = client.location
|
||||
[location.latitude, location.longitude]
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user