Yaron Vazana

NLP, Algorithms, Machine Learning, Data Science, tutorials, tips and more

  • About
  • Blog
  • Projects
  • Medium

Contact Me

yaronv99 [at] gmail.com

Powered by Genesis

You are here: Home / Android / How To Add Android Google Places API Autocomplete

How To Add Android Google Places API Autocomplete

September 12, 2015 by Yaron 3 Comments

Google places API is defiantly one of the coolest API out there. It allows you to query for registered locations and get useful information about them. The base places API supports 3 majors actions you can do:

  1. Add an online place picker to your Android app so the user can select a place from a live map
  2. Send information to google about new places or other information you receive from your users
  3. Display places Autocomplete as an input so users can start typing a location and select it from an auto-generated list of places

This tutorial will show how to add the Autocomplete input. The places list is repopulated with relevant places results according to the search value.

google places api

 

We start by adding our GEO API key to the AndroidManifest file, you can get an API key yourself from here

After you have an API key, create an Autocomplete element inside your layout view file

The activity class makes sure we’re connected to google’s API and initialize the Autocomplete element with a new Adapter

Subscribe to Blog

Subscribe to get the latest posts to your inbox

Cheers

Filed Under: Android, Mobile Tagged With: Android, Apps, Google, Location, Mobile

I am a data science team lead at Darrow and NLP enthusiastic. My interests range from machine learning modeling to solving challenging data related problems. I believe sharing ideas is where we all become better in what we do. If you’d like to get in touch, feel free to say hello through any of the social platforms. More About Yaron…

SUBSCRIBE TO BLOG

Subscribe to Blog

Subscribe to get the latest posts to your inbox

Recent Posts

  • Training an AutoEncoder to Generate Text Embeddings
  • Using Dockers for your Data Science Dev Environment
  • Identifying Real Estate Opportunities using Machine Learning
  • How to Create a Simple WhatsApp Chatbot in Python using Doc2vec
  • Average Word Vectors – Generate Document / Paragraph / Sentence Embeddings
  • Visualizing Vectors using TensorBoard
  • Training a Doc2Vec Model with Gensim
 

Loading Comments...