If you search for an address in Google Maps, but make one or two typos, Google Maps still manage to suggest the correct address. I am trying to figure out if it’s possible to achieve the same with implementing the Google Places Autocomplete SDK on Android and iOS. So far I can’t really find anything ..
Category : google-places-api
I have a search box for addresses in android studio with using google place, and I need to validate if the address that the user is entering has or not the featureName in Geocode or validate if he has put the street number in the address. The problem is that when you enter an address ..
I get the address but not the latlng package shweta.com.googleplacesautocomplete import android.util.Log import android.webkit.WebStorage import com.google.android.gms.maps.CameraUpdateFactory import com.google.android.gms.maps.GoogleMap import com.google.android.gms.maps.model.LatLng import com.google.android.gms.maps.model.LatLngBounds import com.google.android.gms.tasks.Tasks import com.google.android.libraries.places.api.model.AutocompletePrediction import com.google.android.libraries.places.api.model.AutocompleteSessionToken import com.google.android.libraries.places.api.model.Place import com.google.android.libraries.places.api.model.TypeFilter import com.google.android.libraries.places.api.net.FetchPlaceRequest import com.google.android.libraries.places.api.net.FindAutocompletePredictionsRequest import com.google.android.libraries.places.api.net.PlacesClient import java.util.concurrent.ExecutionException import java.util.concurrent.TimeUnit import java.util.concurrent.TimeoutException const val TASK_AWAIT = 120L const val MAP_CAMERA_ZOOM = 11f const ..
Is it possible to find places based on what a user inputs? What if a user inputs a state, like Alaska, and wants to see lakes. Is it possible to make the google-places API find random places in Alaska with lakes? I just need this as I am making an app that suggests unknown places ..
I am a beginner and could not understand most of the documentation required for what I wanted and also a lot of stuff is deprecated but I did find a similar project on Github https://github.com/kats2296/GoogleMap_NearbyPlaces and tried implementing it, it works well for the current location but does not work for other search queries as ..
I’m trying to use the Google Places API to search for nearby Gym locations as one of my functions for my school project, but whenever I run the code, it always crashes and give this error. java.lang.NullPointerException: Attempt to invoke virtual method ‘void com.google.android.gms.maps.GoogleMap.clear()’ on a null object reference) I just can’t seem to figure ..
I am making an android app where I need to show nearby places of the user according to its location. I followed a youtube tutorial and it worked in the video and others but in my case, it’s saying Exception thrown while binding and service not registered. Please help me understand what is it and ..
I am currently using the Google Places API within my (Java) Android application to get the current device location and display it into an editText. Currently when I make the call to placesClient.findCurrentPlace(request), a list of the closest places and the likelihood of the device being there are returned, like so: Place ‘XXXXXXX’ has likelihood: ..
I am trying to implement something similar to this (https://github.com/ankitsinghmyself/SearchNearByPlace) in my Android application. I have tried running the persons code straight from GitHub with my own API key and it works but will not allow Nearby Search. I have tried two YouTube tutorials and two GitHub repos and no luck with Nearby Search. Can ..
I’m working on an activity scheduler app where users can see nearby restaurants and bars, create activities there, and then save past activities to an activity history. As such, I need a service to retrieve information on nearby points of interest and then cache them, to be able to save activity details for the activity ..
Recent Comments