Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set "Types" in Google Place PlacePicker in Android?

In the new google places API, they come with a new feature called PlacePicker. It's a simple activity to select a place of the list/map of places they have.

In the Places API we can give a types list, to receive only places of those specific types.

I'm building an app that uses only "establishment" places.

But this activity shows all the places, including a lot of places that i do not need (libraries, schools, gas ...)

There is a way to set the types of the PlacePicker?

Reading the API docs doesn't say nothing about.

like image 799
Lafayette Avatar asked Jun 15 '15 18:06

Lafayette


People also ask

How Use Google places autocomplete Android?

The autocomplete widget is a search dialog with built-in autocomplete functionality. As a user enters search terms, the widget presents a list of predicted places to choose from. When the user makes a selection, a Place instance is returned, which your app can then use to get details about the selected place.

What is place type?

Place Types are data-driven ways to define and visualize the many aspects of land use-transportation interactions embodied in our land use plans. They are then used as an input to the Regional Strategic Planning Model (RSPM), allowing us to measure the impact of future changes to transportation and land use policies.

What is place autocomplete?

The Place Autocomplete service is a web service that returns place predictions in response to an HTTP request. The request specifies a textual search string and optional geographic bounds.


1 Answers

Currently it seems not to be possible. There is an open feature request, however. Please star it.

like image 170
Sebastian Engel Avatar answered Sep 20 '22 12:09

Sebastian Engel