0

I am using PlaceAutocomplete for getting all the location and I have open default autocomplete location intent by using the following:

Intent intent = new PlaceAutocomplete.IntentBuilder(PlaceAutocomplete.MODE_FULLSCREEN)
                .build(this);
startActivityForResult(intent, PLACE_AUTOCOMPLETE_REQUEST_CODE);

I am getting result that are different from UBER or OLA.

So anybody knows why results are different from UBER and OLA.

Thanks!

Maddy
  • 4,525
  • 4
  • 33
  • 53
  • may be they using AutocompleteFilter to filter the results – darwin Apr 03 '18 at 12:00
  • I already used that one. It again give me same result as of defalut auto complete location Intent. . – Shruti Mahajan Apr 04 '18 at 04:54
  • you can use filter in intent, AutocompleteFilter countryFilter = new AutocompleteFilter.Builder() .setCountry("IN") .build(); Intent intent = new PlaceAutocomplete.IntentBuilder(PlaceAutocomplete.MODE_FULLSCREEN) .setFilter(countryFilter) .build(this); – darwin Apr 04 '18 at 07:01

0 Answers0