All Projects → codemybrainsout → Place Search Dialog

codemybrainsout / Place Search Dialog

Licence: apache-2.0
A place autocomplete search dialog which uses Google's places API for finding results.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Place Search Dialog

Googleapi
C# .NET Core Google Api (Maps, Places, Roads, Search, Translate). Supports all endpoints and requests / responses.
Stars: ✭ 346 (+47.23%)
Mutual labels:  search, location
Fmap
宇行地图:高仿高德地图Android客户端(持续更新中...)
Stars: ✭ 347 (+47.66%)
Mutual labels:  search, location
Pelias Android Sdk
Android sdk for pelias
Stars: ✭ 20 (-91.49%)
Mutual labels:  search, location
Tldrstory
AI-powered understanding of headlines and story text
Stars: ✭ 214 (-8.94%)
Mutual labels:  search
Fuzzysort
Fast SublimeText-like fuzzy search for JavaScript.
Stars: ✭ 2,569 (+993.19%)
Mutual labels:  search
Actingweb firstapp
Starter app for Flutter that includes many different production app features; some not typically included in demo apps.
Stars: ✭ 224 (-4.68%)
Mutual labels:  location
Image Match
🎇 Quickly search over billions of images
Stars: ✭ 2,662 (+1032.77%)
Mutual labels:  search
Tntsearch
A fully featured full text search engine written in PHP
Stars: ✭ 2,693 (+1045.96%)
Mutual labels:  search
Amber
A code search / replace tool
Stars: ✭ 230 (-2.13%)
Mutual labels:  search
Scoper
Fuzzy and semantic search for captioned YouTube videos.
Stars: ✭ 225 (-4.26%)
Mutual labels:  search
Sitedorks
Search Google/Bing/Ecosia/DuckDuckGo/Yandex/Yahoo for a search term with a default set of websites, bug bounty programs or a custom collection.
Stars: ✭ 221 (-5.96%)
Mutual labels:  search
Search Engine Parser
Lightweight package to query popular search engines and scrape for result titles, links and descriptions
Stars: ✭ 216 (-8.09%)
Mutual labels:  search
Trinity
Trinity IR Infrastructure
Stars: ✭ 227 (-3.4%)
Mutual labels:  search
Material Ui Search Bar
Material design search bar
Stars: ✭ 215 (-8.51%)
Mutual labels:  search
Search Omnifocus
Alfred workflow that allows free text searching of OmniFocus tasks
Stars: ✭ 231 (-1.7%)
Mutual labels:  search
Scout
RESTful search server written in Python, powered by SQLite.
Stars: ✭ 213 (-9.36%)
Mutual labels:  search
Grab
experimental and very fast implementation of a grep
Stars: ✭ 230 (-2.13%)
Mutual labels:  search
Bower Components
[DEPRECATED] Site to discover Bower components
Stars: ✭ 220 (-6.38%)
Mutual labels:  search
Angular Instantsearch
⚡️Lightning-fast search for Angular apps, by Algolia
Stars: ✭ 219 (-6.81%)
Mutual labels:  search
Engine Mode
Minor mode for defining and querying search engines through Emacs.
Stars: ✭ 225 (-4.26%)
Mutual labels:  search

Place Search Dialog

A place autocomplete search dialog which uses Google's places API for finding results.

The dialog searches for locations from all around the world. To customize it, set the new location bounds using .setLatLngBounds(BOUNDS)

How to use

Setup

PlaceSearchDialog requires Places API key by Google. You can get it from here.

Use the dialog as it is

 PlaceSearchDialog placeSearchDialog = new PlaceSearchDialog.Builder(this)
                .setLocationNameListener(new PlaceSearchDialog.LocationNameListener() {
                    @Override
                    public void locationName(String locationName) {
                        //set textview or edittext
                    }
                })
                .build();
placeSearchDialog.show();

or Customize it accordingly

 PlaceSearchDialog placeSearchDialog = new PlaceSearchDialog.Builder(this)
                .setHeaderImage(R.drawable.dialog_header)
                .setHintText("Enter location name")
                .setHintTextColor(R.color.light_gray)
                .setNegativeText("CANCEL")
                .setNegativeTextColor(R.color.gray)
                .setPositiveText("SUBMIT")
                .setPositiveTextColor(R.color.red)
                .setLatLngBounds(BOUNDS)
                .setLocationNameListener(new PlaceSearchDialog.LocationNameListener() {
                    @Override
                    public void locationName(String locationName) {
                        //set textview or edittext
                    }
                })
                .build();
placeSearchDialog.show();

Add this in your applications AndroidManifest.xml

<meta-data android:name="com.google.android.geo.API_KEY"
            android:value="YOUR_API_KEY" />

Installation

Gradle

Just use it as a dependency in your app's build.gradle file

dependencies {
    compile 'com.codemybrainsout.placesearchdialog:placesearch:1.0.1'
}

Maven

Ensure you have android-maven-plugin version that support aar archives and add following dependency:

<dependency>
  <groupId>com.codemybrainsout.placesearchdialog</groupId>
  <artifactId>placesearch</artifactId>
  <version>1.0.0</version>
  <type>pom</type>
</dependency>

Credits

This project was initiated by Code My Brains Out. You can contribute to this project by submitting issues or/and by forking this repo and sending a pull request.

Follow us on:

Facebook     Twitter

Author: Rahul Juneja

License

Copyright (C) 2016 Code My Brains Out

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
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].