⚠️ 2GIS NativeSDK is under development. It is not ready for production usage.
Full documentation, including more usage examples and detailed descriptions of all classes and methods, can be found at https://docs.2gis.com/ru/android/native/maps/overview.
Usage of this SDK requires an API key to connect to 2GIS servers and retrieve the geographical data. This API key is unique to the SDK and cannot be used with other 2GIS SDKs.
To obtain the key, contact us.
To install the SDK:
- Declare a custom repository in your build.gradle file:
repositories {
maven {
url "http://maven.2gis.dev/libs-release"
}
}- Add a build dependency:
dependencies {
implementation 'ru.dgis.sdk:sdk:latest.release'
}To run the example app, first add your API key to the local.properties file in your project:
dgisMapApiKey=MAP_API_KEY
dgisDirectoryApiKey=DIRECTORY_API_KEY
You can find more usage examples at https://docs.2gis.com/ru/android/native/maps/examples/unstable.