mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-11-22 16:56:16 +00:00
Newsly download GMaps images have a red marker in them to pinpoint the exact location.
This commit is contained in:
parent
da2a7d88b6
commit
85c525ab1c
@ -74,7 +74,8 @@ class GeoFileManager(msg: TLMessage, user: UserManager, client: TelegramClient)
|
|||||||
@Throws(IOException::class)
|
@Throws(IOException::class)
|
||||||
override fun download(): Boolean {
|
override fun download(): Boolean {
|
||||||
val url = "https://maps.googleapis.com/maps/api/staticmap?" +
|
val url = "https://maps.googleapis.com/maps/api/staticmap?" +
|
||||||
"center=" + geo.getLat() + "," + geo.getLong() + "&" +
|
"center=${geo.getLat()},${geo.getLong()}&" +
|
||||||
|
"markers=color:red|${geo.getLat()},${geo.getLong()}&" +
|
||||||
"zoom=14&size=300x150&scale=2&format=png&" +
|
"zoom=14&size=300x150&scale=2&format=png&" +
|
||||||
"key=" + Config.SECRET_GMAPS
|
"key=" + Config.SECRET_GMAPS
|
||||||
return DownloadManager.downloadExternalFile(targetPathAndFilename, url)
|
return DownloadManager.downloadExternalFile(targetPathAndFilename, url)
|
||||||
|
Loading…
Reference in New Issue
Block a user