Android Google Maps searching for places - android

I am new to Android development and I wanted to know about using the Google Maps API. What I am trying to accomplish is given the user a list of places defined here in Google Places API (https://developers.google.com/places/documentation/supported_types) table 1 only. When the user picks a supported type, I want to be able to get a list of all the corresponding places as an arraylist. For example, if I picked Hospital, I want to get a list of all closeby hospitals. I am not sure how to go about doing this. Can someone point me in the right direction? Any tutorials? Where can I start?

You can follow Google Places API Tutorial

Related

Getting street info from Google Maps API

On my Android app, I am trying to implement Dijkstra's algorithm for some cities, but I want to give weights to the streets manually. Is there any way I can get a graph of all crossroads of a given city and the streets connecting them using Google Maps Android API for implementing this? If no, is there any other service that will provide me with a similar feature?

Perform Hardcoded search in Google Maps on Android App

I am making my first android app to track and manage medications.
One of the features I want to include is adding a page that says '"Find Local Pharmacies'.
What I want is very simple - when the user opens this page I want a map to appear with pins on all the places that matched the term 'pharmacy' (within say a 5km radius).
I have never used Google Maps API before so I don't know if this sort of thing is even possible - online searches suggest Google doesn't have a 'search' API, but is there any easy way to do this?
Thanks!
One option would be to use the Google Places API. I see they've got a place type of "pharmacy".

Google Places API (Android) Autocomplete just like on Google Maps

I am working on an app in which there is a AutoCompleteTextView that returns suggestions when a user types in. Everything is working fine but I have noted that there is difference in suggestions comparing to maps.google.com. For example when I search "bakery near" in google maps it returns suggestions, but when I search same text on my test app (which uses Google Places API AutoComplete) it returns nothing. Please tell me how can I achieve the suggestions like maps.google.com.
Note: I don't want to show google maps in my app.
Google Maps Example: http://i.imgur.com/BiwzxoD.jpg ,
Google Places API AutoComplete Example: http://i.imgur.com/T4lQe7x.png
Your help would be highly appreciated.
For a query like, "bakery near ...", I believe you would want to use the Query Autocomplete web service. Though even with this I do notice some differences between the results on Google Maps and this web service. I suspect that Google Maps has custom logic that moulds the input/results to be a bit more intuitive.

How to get hospital details with specialization using google map for android?

I have created my application with Google Maps API for hospitals. I am able to get the nearest hospitals and displayed it. In Google maps it returns only details of the hospitals. But I need to get hospitals details with specializations like eye hospitals, diabetic center etc. I searched so far. But i cant get it. My question is google provides such options? Otherwise is there any API available to do like these kind of things? Can anybody clarify me?
Google Maps API Does'nt provide such type of filter for hospitals near any particular location.So using Google Maps API it can'nt possible to get hospitals for specializations.
Check This is a simple Google Maps Hospital API URL
Thanks

List of all street and road names in Google in API

Am doing a location based app.When using GPS, it provides with street names from Google API. When user need to enter it manually, for a autocomplete text view am in need of names of all street and roads in Google API. Where could i get all street and roads name which google API provides when using GPS?
I ve searched everywhere but in vain :(
Thanks in advance.
As far as I can find, Google does not provide a database of street names for public download, but this site does: Open Street Map
These databases are available for free download. They contain geographical information about the whole planet. I hope you find them useful.
The Google Places API suggests search results for city/street names etc. which you can use for an AutoCompleteTextView.
Here is a running JS demo for testing the results.
Because your using Maps API V3, here is the reference to google.maps.places.Autocomplete
Here you can find an API for Android.
Thanks above :) Actually I found an another way too.. the names of the streets and roads in xml returned by google api are marked as "route".. so I parsed the xml having type="route" to get only road and street names!!

Categories

Resources