microg / android_frameworks_mapsv1

MapsV1: A system library, providing the functionality of Google Maps API v1
Apache License 2.0
103 stars 28 forks source link

Provide linkable Maps v1 library #14

Open schildbach opened 7 years ago

schildbach commented 7 years ago

If I'm understanding right this library is a system library, so ROM builders/modders use it as a replacement for Google Maps v1.

I'd like to link the library into my app, so that it can access Google Maps on any device. So this is a feature request to make this possible.

mar-v-in commented 7 years ago

The mapsv1-compat-osmdroid submodule is (supposed to be) an android library that can be used as a drop-in replacement for google maps v1 library. It does not use Google Maps but instead uses openstreetmap through osmdroid.

I just put a snapshot to the sonatype oss snapshot repository. Be aware that this is probably far from feature complete release quality, but you can still try it out: put maven { url "https://oss.sonatype.org/content/repositories/snapshots" } into your repositories and 'org.microg:mapsv1-compat-osmdroid:master-SNAPSHOT' as a dependency.

schildbach commented 7 years ago

Thanks for that. I guess if it uses OSM there is again the problem of finding a tile provider who is willing to pay for the traffic (or host your own). I was searching for a solution that uses Google Maps.

mar-v-in commented 7 years ago

Technically it should be possible (while not implemented in this library) to use the Google tiles if you still have a maps v1 api key. However I bet that their terms of service restrict usage of the tile servers as well, one of them very likely being "do not use third party software to access our servers".

microG Project intends to provide a tile server in the future (Q1-2 2017) that will be free of use for all usages of microG libraries and tools. Until then we have to rely on third party servers providing free services.