I'm just doing a rebuild of my iOS App in Android, here and there horrible to do. One horrible part is that map thing.
I need to get places around users location by query like "park", "cafe", "bakery" etc.
In swift I just used localSearchRequest.naturalLanguageQuery
self.localSearchRequest = MKLocalSearchRequest()
self.localSearchRequest.naturalLanguageQuery = mapSearchQuery
self.localSearchRequest.region = region
self.localSearch = MKLocalSearch(request: self.localSearchRequest)
for item in localSearchResponse!.mapItems
let annotation = MKPointAnnotation()
annotation.coordinate = item.placemark.coordinate
annotation.title = item.name
self.mapView.addAnnotation(annotation)
}
Is there a similar way to do the same in Android by using GoogleMaps API? The only way I found was to get them via JSON from https://developers.google.com/places/web-service/search and I'm not even sure if this is for Android applications.
The GooglePlaces API for Android just list all places around a location without a way to filter them or something.
after long trying I was going with the following solution. Using the GooglePlaces webservice (link in my question):
If this will accept from google we will see.