Android card without Internet (offline)

I hope this is not a naive question, but is there a way to make an Android application that uses the map without using Google or the Internet in general (as is the case with google api)? Is it possible to download a map from somewhere and combined offline in code? I think in terms of how to have a street map, but not in your hand in this case. Thanks.

+6
source share
4 answers

Take a look at http://code.google.com/p/mapsforge/

It uses openstreetmap instead of googlemaps and allows offline maps. The API is almost identical to the googlemaps API. If you are familiar with the googlemaps api, it is very easy to switch it.

+5
source

Using google maps:

The google map app supports pre-caching, which does exactly what you want.

Now the bad news: this is not only impossible to do through the API (for now), but also violates the terms of service.

Read more here: Download / cache Google Maps for offline use

TOS 8 section:

License restrictions. Unless expressly permitted under the Terms, or if you have not obtained prior written permission from Google (or, if applicable, the provider of specific Content), the license granted to you in Section 7 is conditional on your adherence to all restrictions in this section 8. In accordance with this section 8, you must not (and will not allow anyone else):

...

8.2. copy, translate, modify, create derivative works, pre-fetch, cache, or publicly display any content or any part of it.

...

(Accent added by me)

Using other map services:

I do not know...

+6
source

You might want to try OpenStreetMap instead of GoogleMaps. While you will not have such a rich dataset, it is FOSS you can still do a lot with it.

The Android OSM page is here .

I haven’t delved into offline caching too much, but as you can see, many applications have already been created using their set.

+1
source

You can take a peek at OpenStreetMap and create your own tiles using Mapnik . For mobile use, I suggest exploring osmosis - crop different sections (bounding fields) - create smaller packages. Here he explained how this can be done.

+1
source

Source: https://habr.com/ru/post/903393/


All Articles