Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Alerts And Pickers | 5,156 | 2 years ago | 89 | mit | Swift | |||||
Advanced usage of UIAlertController and pickers based on it: Telegram, Contacts, Location, PhotoLibrary, Country, Phone Code, Currency, Date... | ||||||||||
Leku | 718 | 24 days ago | 6 | March 15, 2022 | 32 | apache-2.0 | Kotlin | |||
:earth_africa: Map location picker component for Android. Based on Google Maps. An alternative to Google Place Picker. | ||||||||||
Jquery Locationpicker Plugin | 370 | 7 | 4 years ago | 1 | January 04, 2015 | 55 | mit | JavaScript | ||
JQuery Location Picker plugin | ||||||||||
Locationpicker | 239 | 10 | 6 months ago | 14 | November 04, 2019 | 5 | mit | Swift | ||
iOS location picker view controller | ||||||||||
Locationpickerview | 230 | 7 years ago | 7 | mit | Objective-C | |||||
MKMapView + UITableView + Parallax scrolling. Provides a framework for building an interactive location picker on iOS. | ||||||||||
React Native Google Place Picker | 184 | 12 | 3 years ago | 5 | January 06, 2017 | 26 | mit | Java | ||
React Native Wrapper of Google Place Picker for iOS + Android. | ||||||||||
Google_map_location_picker | 171 | 1 | a year ago | 57 | March 06, 2021 | 71 | apache-2.0 | Dart | ||
🌍 Map location picker component for flutter Based on google_maps_flutter | ||||||||||
Nibo | 163 | 5 years ago | 12 | mit | Java | |||||
Android Place picker dependent on Google places, made a custom version so I could style it anyway I wanted for my current project, WIP | ||||||||||
Placepicker | 147 | 4 months ago | 9 | bsd-2-clause | Kotlin | |||||
Free Android Map Place Picker alternative using Geocoder instead of Google APIs | ||||||||||
Locationpicker | 142 | 1 | 6 months ago | 24 | January 18, 2022 | 19 | other | Dart | ||
Location picker for Flutter. |
Vanilla Place Picker provides a UI that displays an interactive map to get the place details and Autocomplete functionality, which displays place predictions based on user search input.
Developers often come across a requirement of adding precise location. So, a place picker which is easy to implement, less time consuming, and simple enough for users to use it is always in demand and here we have a Vanilla Place Picker which developer can add it in quick simple steps.
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
or If Android studio version is Arctic Fox or higher then add it in your settings.gradle
dependencyResolutionManagement {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
...
implementation 'com.github.Mindinventory:VanillaPlacePicker:X.X.X'
}
google.maps_api_key=PLACE YOUR API KEY HERE
android {
...
defaultConfig {
...
#Access Google MAP Api Key from local.properties file
def properties = new Properties()
file("../local.properties").withInputStream { properties.load(it)
#Share the key with your `AndroidManifest.xml`
manifestPlaceholders = [ googleMapsApiKey:"${properties.getProperty('google.maps_api_key')}"]
}
<application ... >
...
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="${googleMapsApiKey}" />
</application>
#startActivityForResult is deprecated so better to use registerForActivityResult
var placePickerResultLauncher =
registerForActivityResult(ActivityResultContracts.StartActivityForResult()) { result ->
if (result.resultCode == Activity.RESULT_OK && result.data != null) {
val vanillaAddress = VanillaPlacePicker.getPlaceResult(result.data)
}
}
#Launch caller with Intent
val intent = VanillaPlacePicker.Builder(this)
.with(PickerType.MAP_WITH_AUTO_COMPLETE) // Select Picker type to enable autocompelte, map or both
.withLocation(23.057582, 72.534458)
.setPickerLanguage(PickerLanguage.HINDI) // Apply language to picker
.setLocationRestriction(LatLng(23.0558088,72.5325067), LatLng(23.0587592,72.5357321)) // Restrict location bounds in map and autocomplete
.setCountry("IN") // Only for Autocomplete
.enableShowMapAfterSearchResult(true) // To show the map after selecting the place from place picker only for PickerType.MAP_WITH_AUTO_C
/*
* Configuration for Map UI
*/
.setMapType(MapType.SATELLITE) // Choose map type (Only applicable for map screen)
.setMapStyle(R.raw.style_json) // Containing the JSON style declaration for night-mode styling
.setMapPinDrawable(android.R.drawable.ic_menu_mylocation) // To give custom pin image for map marker
.build()
placePickerResultLauncher.launch(intent)
Vanilla Place Picker is MIT-licensed.
We’d be really happy if you send us links to your projects where you use our component. Just send an email to [email protected] And do let us know if you have any questions or suggestion regarding our work.