I want to implement Google Voice Search in my app. The module is simple where I speak "Cafe" and application goes to Google Map and returns me relevant results. Is there any tutorials for this?
I am afraid that the answer is NO. In order to archive what you want, you have to learn 2 things:
Speech to text with Speech to text guide
Use Place Search api to retrieve the Places results and display it on the map.
Related
I want to create an android app like nearby places (Shops,travelling places, Restaurants, etc). How to get the basics of Place API for android? Can someone give me any recommendations or ideas?
App Feathers -
When user opened my app, It's should be show to the user whats near to his place whatever he go.
Any Recommendations?
Google places Nearby Search lets you search for places within a specified area. You can refine your search request by supplying keywords or specifying the type of place you are searching for.
More details : https://developers.google.com/places/web-service/intro
You can use below API:
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362&radius=1500&type=restaurant&keyword=cruise&key=YOUR_API_KEY
First read and implement Maps SDK for Android
and then basically you need coordinates of the places that you want to show user and the location of user. Good luck!
I think I could use MultiAutoCompleteTextView to show hints. But how can I get some hints from Geocode API while typing it (e.g. where there are at least 3 letters typed)
Any idea?
On Android you can use Places API for Android.
Please look at this web site:
https://developers.google.com/places/android-api/
Places API for Android provides Place autocomplete and Place picker.
I'm trying to develop an app which needs to list airport names in world on an android autocomplete textview. I m trying to use google places api. But couldn't do it. What is the best way to do this. Thank you in advance.
hey arya you can go through this tutorial for reference , i found this tutorial very useful have a look-
google places and maps
in this tutorial you can replace cafe/Restaurants with airports and increase the radius size.
You could use Google places/Autocomplete api with the filter as airport.
You could run an async thread to fetch the result via their api or use their library to do the same. Check the below link for more.
https://developers.google.com/places/android-api/start
https://developers.google.com/places/supported_types
Also I suggest using a simple textview with a recyclerview below it for pure ui purposes. Basically the user has more space when the results are displayed on the entire screen than via an autocomplete view. This upto your choice.
I encountered the same problem too. Sadly, there is no way to correctly filter for airports using google places api for now. The only sets of filters that work are TYPE_ESTABLISHMENTS, TYPE_GEOCODE , TYPE_ADDRESS ... see table 3 for a list of supported filters for autocomplete
Hey !
I have an Android app where the user can search on a specific subject, let's take the word "Cats" for example. When the user submits the search I want to find an image similar or on the subjects the searched for. A search engine for images more or less. I want something "easy" to deal with, so I thought about integrating the Google Search API into my app. Let the user search Google, and take the first image that comes up.
However, I haven't found any example and I just need a push in the right direction. If you could give me an example API for my needs, that'd be great.
Apparently the Google Search API never was fully deprecated it's still up and running. It provides JSON data and is easily parsed with Android.
If anyone else needs an image API here's a test search: https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=searchquery&rsz=8&start=1&imgsz=small|medium
And the JSON reference: https://developers.google.com/image-search/v1/jsondevguide
i know there is lot of stuff on Google map and completed almost all things like showing current location, finding nearest places using Google Place API, searching a place but i want when somebody types in Edit Text for searching places it should show drop down list of all places names matching his entered sub string.
i tried a lot but not found good solution. thanks
Sorry Friends i just got the answer of this question from this link https://developers.google.com/places/documentation/autocomplete
You can use google web services API to search to get list of suggested words.
This will provide more information than expected. But you can have a try.
For more on google web service API visit https://developers.google.com/places/documentation/autocomplete