0

i am currently working on an app that require to temporary download google map for offline use .

as suggested here using tileprovider i can render my own tiles for offline use

so basically suppose i have the following location latlng(10,10) and zoom level 2 ,how can i get all tiles around a distance of 1km near this location .

as shown in this post i already know the equation required in order to convert latitude ,longitude to a tile coordinates x,y,z but my problem is i don't know how to figure out what are all the tiles positions around a specific location of a range of 1km for example

has19
  • 1,307
  • 16
  • 31
  • 2
    This goes against the section 3.2.4.a of the [Google Maps Platform Terms of Service](https://cloud.google.com/maps-platform/terms/#3-license) – antonio Nov 29 '18 at 19:43
  • check this https://stackoverflow.com/questions/46538148/how-to-download-specific-region-of-google-map-in-android/46569769?noredirect=1#comment93973989_46569769 it actually does temporary if you read the license agreement carefully – has19 Nov 30 '18 at 10:41
  • 1
    Just calc coords and zoom of tile which include all area that you need, then calc coords for 4 "subtiles" of zoom+1 etc. – Andrii Omelchenko Nov 30 '18 at 10:57

0 Answers0