renamed variable to google_api_key
This commit is contained in:
parent
930f1b7e61
commit
cbc55b0e09
@ -8,5 +8,6 @@
|
|||||||
"consumer_secret" : "",
|
"consumer_secret" : "",
|
||||||
"access_token" : "",
|
"access_token" : "",
|
||||||
"access_token_secret" : ""
|
"access_token_secret" : ""
|
||||||
}
|
},
|
||||||
|
"google_api_key": ""
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
-- Globals
|
-- Globals
|
||||||
-- If you have a google api key for the geocoding/timezone api
|
-- If you have a google api key for the geocoding/timezone api
|
||||||
api_key = config.time.api_key or nil
|
api_key = config.google_api_key or nil
|
||||||
base_api = "https://maps.googleapis.com/maps/api"
|
base_api = "https://maps.googleapis.com/maps/api"
|
||||||
dateFormat = "%A %d %B - %H:%M:%S"
|
dateFormat = "%A %d %B - %H:%M:%S"
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ end
|
|||||||
function get_latlong(area)
|
function get_latlong(area)
|
||||||
local api = base_api .. "/geocode/json?"
|
local api = base_api .. "/geocode/json?"
|
||||||
local parameters = "address=".. (URL.escape(area) or "")
|
local parameters = "address=".. (URL.escape(area) or "")
|
||||||
if api_key ~=nil then
|
if api_key ~= nil then
|
||||||
parameters = parameters .. "&key="..api_key
|
parameters = parameters .. "&key="..api_key
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user