Flutter SDK Overview | 2GIS Documentation
Flutter SDK

Flutter SDK

Flutter SDK allows you to add a Urbi map to your application. It can be used to display the map in your layout, add custom markers to it, draw geometric shapes, calculate routes, get information about map objects, control the camera movement, and so on.

You can find usage examples in the Examples section.

Geodata complies with OGC standards.

To work with SDK, you need to get the key file dgissdk.key with the obligatory indication of the appId of the application for which this key is created. This key will be used to connect to Urbi servers and retrieve the geographical data, as well as to use offline and the navigator. This key is unique to the SDK and cannot be used with other Urbi SDKs.

To obtain the key file:

  1. Fill in the form at urbi.ae.
  2. Add the resulting key file to the assets of the application.

When the key is activated, you can sign in to the Platform Manager and check the statistics of request distribution.

SDK packages are available in pub.dev:

Note

You cannot use Full and Map simultaneously. It causes an assembly error.

A binary artifact in the .aar is used when building for Android. To connect correctly, add a repository with this artifact to build.gradle of your application:

repositories {
    maven {
        url "https://artifactory.2gis.dev/sdk-maven-release"
    }
}