Use google maps offline in an app

2019-01-21 00:45发布

I'm trying to develop and app that overlays some information on a google map.

I was wondering, if it is possible to cache at least a portion of this map, so that it could be used offline.

3条回答
smile是对你的礼貌
2楼-- · 2019-01-21 01:29

You can use an OpenStreetMaps controller (like osmdroid) and Google Maps tiles. According to the Google Maps TOS (10.1.3.b), it seems that you can use a portion of maps if you cache it temporarily and securely. Read more at this tutorial.

查看更多
太酷不给撩
3楼-- · 2019-01-21 01:38

A status update in 2016:

Things have moved on in OSM world, and you can now get maps that are at least as good as the ones Google Maps provide using various SDK's. One of those is Mapbox Android SDK, which is vector based, and allows you to both cache things offline, and use them with a data connection.

查看更多
趁早两清
4楼-- · 2019-01-21 01:42

You won't have the permission to do that, as stated in Downloading/Caching Google Maps for Offline Use. However you could use the maps of OpenStreetMap or other providers who will allow this.

查看更多
登录 后发表回答