Skip to content

Latest commit

 

History

History
 
 

plugin-places

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Mapbox places plugin

The places plugin is the easiest and most powerful way to take advantage of Mapbox's location search ("geocoding") capabilities. The plugin automatically makes geocoding requests, has built-in saved locations, includes location picker functionality, and adds beautiful UI into your Android project.

ezgif com-crop

Getting Started

More documentation about the plugin can be found here

To use the places plugin, you include it in your build.gradle file.

// In the root build.gradle file
repositories {
    mavenCentral()
    google()
}

...

// In the app build.gradle file
dependencies {
    implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-places-v9:0.12.0'
}

The places plugin is published to Maven Central and nightly SNAPSHOTs are available on Sonatype:

// In the root build.gradle file
repositories {
    mavenCentral()
    google()
    maven { url "http://oss.sonatype.org/content/repositories/snapshots/" }
}

...

// In the app build.gradle file
dependencies {
    implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-places-v9:0.13.0-SNAPSHOT'
}

Places plugin examples

Help and Usage

This repository includes an app that shows how to use each plugins in this repository. Check out its code for ready-to-use snippets.

Plugins are easy to use. A plugin is simply a library module built on top of the Mapbox Maps SDK for Android. Currently, we are not requiring plugins to register themselves or to implement any specific interfaces so that they're simple to consume.

We'd love to hear your feedback as we build more plugins and learn how you use them.

Why Plugins

Splitting specific functionality into plugins makes our Maps SDK lighter and nimble for you to use, and it also lets us iterate faster. We can release plugins more often than the SDK, which requires a slower pace due to its larger codebase.

The Mapbox Android team creates plugins but this plugins repository is an open-source project similar to the various Mapbox SDKs for Android. Plugins' lightweight nature makes them much easier for you and anyone else to contribute rather than trying to add the same feature to the more robust Maps SDK. The Mapbox team can also more easily accept contributed plugins and keep the plugin list growing.

Contributing

We welcome contributions to this plugin repository!

If you're interested in building and sharing your own plugin, please read the contribution guide to learn how to get started.