All Projects → esam00 → SimplePlacePicker

esam00 / SimplePlacePicker

Licence: MIT License
Android place picker module for searching and selecting a location on google maps

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to SimplePlacePicker

GoogleMapsHelper
An easy to integrate Model Based Google Maps Helper (SVHTTPClient, AFNetworking) That lets you Geo Code , Reverse Geocode, Get Directions , Places Autocomplete.
Stars: ✭ 21 (-50%)
Mutual labels:  maps, google-maps, places
svelte-googlemaps
Svelte Google Maps Components
Stars: ✭ 62 (+47.62%)
Mutual labels:  maps, google-maps, places
ember-google-maps
A friendly Ember addon for working with Google Maps.
Stars: ✭ 93 (+121.43%)
Mutual labels:  maps, google-maps
Directions
Directions app for pebble
Stars: ✭ 15 (-64.29%)
Mutual labels:  google-maps, places
trackanimation
Track Animation is a Python 2 and 3 library that provides an easy and user-adjustable way of creating visualizations from GPS data.
Stars: ✭ 74 (+76.19%)
Mutual labels:  maps, google-maps
google maps
🗺 An unofficial Google Maps Platform client library for the Rust programming language.
Stars: ✭ 40 (-4.76%)
Mutual labels:  maps, google-maps
geocoder
Geocoder is a Typescript library which helps you build geo-aware applications by providing a powerful abstraction layer for geocoding manipulations
Stars: ✭ 28 (-33.33%)
Mutual labels:  google-maps, places
js-markerclusterer
Create and manage clusters for large amounts of markers
Stars: ✭ 92 (+119.05%)
Mutual labels:  maps, google-maps
map-kit-android
An extensive framework for map development in Android.
Stars: ✭ 44 (+4.76%)
Mutual labels:  maps, google-maps
HealthCare-Scan-Nearby-Hospital-Locations
I developed this android application to help beginner developers to know how to use Google Maps API and how to convert JSON data into Java Object.
Stars: ✭ 23 (-45.24%)
Mutual labels:  maps, google-maps
google-streetview-images
Pull google streetview panoramic images along a route.
Stars: ✭ 45 (+7.14%)
Mutual labels:  maps, google-maps
svelte-mapbox
MapBox Map and Autocomplete components for Svelte (or Vanilla JS)
Stars: ✭ 267 (+535.71%)
Mutual labels:  maps, google-maps
geojson-editor
A modified version of Googles Simple GeoJSON Editor
Stars: ✭ 43 (+2.38%)
Mutual labels:  maps, google-maps
mapus
A map tool with real-time collaboration 🗺️
Stars: ✭ 2,687 (+6297.62%)
Mutual labels:  maps, google-maps
Gmapsfx
Java API for using Google Maps within a JavaFX application.
Stars: ✭ 233 (+454.76%)
Mutual labels:  maps, google-maps
Google Maps Services Js
Node.js client library for Google Maps API Web Services
Stars: ✭ 2,432 (+5690.48%)
Mutual labels:  maps, places
Airbnb Android Google Map View
This is a sample Android Application which has Google Map view similar to what AirBnb Android Application. Moving Markers like Uber/Ola. Custom Google Search for places. Recycler view with Animations added.
Stars: ✭ 175 (+316.67%)
Mutual labels:  maps, google-maps
React Native Open Maps
🗺 A simple react-native library to perform cross-platform map actions (Google or Apple Maps)
Stars: ✭ 192 (+357.14%)
Mutual labels:  maps, google-maps
activeadmin-latlng
Active Admin plugin for setting up latitude and longitude
Stars: ✭ 34 (-19.05%)
Mutual labels:  maps, google-maps
Dual-color-Polyline-Animation
This library will help to show the polyline in dual color similar as Uber.
Stars: ✭ 73 (+73.81%)
Mutual labels:  maps, google-maps

Android Studio v4.0

SimplePlacePicker Android

If you have a use case that requires searching and selecting a specific location on map , Here is a nice independent module that you can simply import into your project to handle this scenario with some customizations

Features

  • Rich autoComplete and search for any location with the ability to filter results depending on country.
  • Get parsed string address for any location on map with a specified language.
  • Restrict specific supported areas for user to only pick from .
  • Listen for GPS configuration changes and ask user to enable GPS once it is disabled.

Requirements :

  1. Minimum SDK version 21
  2. Androidx
  3. Google Places Api key

Setup :

Before importing simpleplacepicker module into your android project, make sure that :

  1. your project manifest file contains internet and location permissions
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
  1. add meta_data for google api key in application tag within manifest file
<application
    --
    --
    <meta-data
        android:name="com.google.android.geo.API_KEY"
        android:value="@string/places_api_key" />
</application>

Make sure that you have original google places api key not only google maps key as autocomplete won't work without Places key.

  1. add this code to the the project level build.gradle file
allprojects {
  repositories {
    --
    --
    maven { url "https://jitpack.io" }
  }
}

How to import as Module

  1. Clone or download simplePlacePicker and save it at a path that you know.
  2. In your android project, Go to File > New > Import Module..
  3. Enter the path of simpleplacepicker module and click finish.
  4. After android studio finishes syncing, go to File > Project Structure and select Dependencies.
  5. Now you should see that you have two modules , your app module and simpleplacepicker module
  6. Select app module and in Declared dependencies section click the plus icon and choose Module Dependency
  7. Choose simpleplacepicker and click Ok.

Now you are ready to use SimplePlacePicker as a part of your project ^-^

just create intent and add extras to get some customization

        Intent intent = new Intent(this, MapActivity.class);
        Bundle bundle = new Bundle();

        bundle.putString(SimplePlacePicker.API_KEY,apiKey);
        bundle.putString(SimplePlacePicker.COUNTRY,country);
        bundle.putString(SimplePlacePicker.LANGUAGE,language);
        bundle.putStringArray(SimplePlacePicker.SUPPORTED_AREAS,supportedAreas);

        intent.putExtras(bundle);
        startActivityForResult(intent, SimplePlacePicker.SELECT_LOCATION_REQUEST_CODE);

Example project : TestPlacePicker

SimplePlacePicker module is implemented with the help of :

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].