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:
Marcel van der Boom
2014-12-19 16:31:25 +01:00
parent e12690479a
commit 1cd7ce1a9f
2 changed files with 53 additions and 14 deletions

View File

@ -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