Reputation: 125
I want to add Google search functionality to my Android app. I want to create one layout where I can display results from different branches (Books, Videos, Maps, etc). How can I get results programmatically? Any API and samples?
Upvotes: 2
Views: 3805
Reputation: 16354
Google Web Search would be the API that you are looking for.
In the search request, you can specify a latitude and longitude with the text to get a reference to the nearby places, if you are doing a location based search. Here is the reference to the parameters for the search request.
You can simply make a http call and parse the JSON response when it comes back.
However, CustomSearch is the new API that Google encourages you to use instead of the deprecated one.
Upvotes: 1