Improvements for the location plugin
- use an api_key if one is configured - send the location by using the api - provide same pin color as standard map - send overview map based on the type of the location scale - remove the temporary file after download
This commit is contained in:
@ -36,7 +36,8 @@ function get_latlong(area)
|
||||
lat = data.results[1].geometry.location.lat
|
||||
lng = data.results[1].geometry.location.lng
|
||||
acc = data.results[1].geometry.location_type
|
||||
return lat,lng,acc
|
||||
types= data.results[1].types
|
||||
return lat,lng,acc,types
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user