Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to cache/download google map v2 tile programmatically?

How to cache/download google map v2 tile programmatically?, is it possible?

Bcos according to this prntscr.com/3cyiqf its not possible but as I have seen this link TileProvider using local tiles I thought that if Android provides TileProvider class to load/use tile from the asset than it should be something available for caching/downloading a tile programmatically/run time

My Actual requirement is :

If user is connected with internet at that time he can able to download/cache a tile of specific area or he can download/cache, visible map in the phone screen only and whenever he goes offline at that time downloaded map should goes to be visible.

What I have done up till now:

I have seen OSMDROID lib they provide very good functionality but issue is I want to use Google Map V2 only

I have already checked Static Map API and I have also created one demo for downloading a tile but they return an image with specified zoom level so in that case if I use static map api than user can see only 1 level of map they can’t able to zoom-in/out so that’s not good.

Conclusion :

I want to know is Google Map V2 provide any facility to download/cache a map tiles programmatically/run time?

EDIT

Can i use Google Map Engine for the same?

like image 874
Rajan Avatar asked Apr 25 '14 09:04

Rajan


People also ask

How do I cache Google Maps?

Once you have the area you'd like to cache in view, type “okay maps” into the search box. Google will take a moment to “pre-load” the area and then save the copy to your device's offline cache. Once it's cached you can use the map at any time, even in Airplane mode.


2 Answers

According this 10.1.3(b) you can do it temporally on mobile device.

This project implement it, I can't provide particular example but you can dig in into it coz it open-source.

like image 104
ar-g Avatar answered Nov 15 '22 17:11

ar-g


From this link I understand that you must have licence for what you want. At the bottom of the page says

You can license Google Maps as an embedded feature of your stand-alone software or device

Google provides you a lot of free services, but most of all have a limit and after that limit you must pay that service.

like image 33
Popa Andrei Avatar answered Nov 15 '22 17:11

Popa Andrei