Has Places Api Got Deprecated

[Solved] Has Places Api Got Deprecated | Php Frameworks Codeigniter - Code Explorer | yomemimo.com
Question : has places api got deprecated???

Answered by : lovely-louse-b0nigs6fo7wf

// Set the fields to specify which types of place data to return.
List<Place.Field> fields = Arrays.asList(Place.Field.ID, Place.Field.NAME);
// Start the autocomplete intent.
Intent intent = new Autocomplete.IntentBuilder( AutocompleteActivityMode.FULLSCREEN, fields) .build(this);
startActivityForResult(intent, AUTOCOMPLETE_REQUEST_CODE);
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == AUTOCOMPLETE_REQUEST_CODE) { if (resultCode == RESULT_OK) { Place place = Autocomplete.getPlaceFromIntent(data); Log.i(TAG, "Place: " + place.getName() + ", " + place.getId()); } else if (resultCode == AutocompleteActivity.RESULT_ERROR) { // TODO: Handle the error. Status status = Autocomplete.getStatusFromIntent(data); Log.i(TAG, status.getStatusMessage()); } else if (resultCode == RESULT_CANCELED) { // The user canceled the operation. } }
}

Source : https://stackoverflow.com/questions/54638080/places-for-android-api-deprecated-alternative | Last Update : Sun, 17 May 20

Question : has places api got deprecated???

Answered by : lovely-louse-b0nigs6fo7wf

 // Add an import statement for the client library. import com.google.android.libraries.places.api.Places; // Initialize Places. Places.initialize(getApplicationContext(), "***YOUR API KEY***"); // Create a new Places client instance. PlacesClient placesClient = Places.createClient(this);

Source : https://stackoverflow.com/questions/54638080/places-for-android-api-deprecated-alternative | Last Update : Sun, 17 May 20

Answers related to has places api got deprecated

Code Explorer Popular Question For Php Frameworks Codeigniter