Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autofill not work until Number and char is filled #162

Open
1 of 4 tasks
mtrakal opened this issue Jul 17, 2023 · 1 comment
Open
1 of 4 tasks

Autofill not work until Number and char is filled #162

mtrakal opened this issue Jul 17, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@mtrakal
Copy link

mtrakal commented Jul 17, 2023

Environment

https://docs.mapbox.com/android/search/guides/address-form-fill/

  • Search SDK Component (check at least one)
    • Core Search SDK (SearchEngine class, and etc.)
    • Offline Search SDK (OfflineSearchEngine class, and etc.)
    • Address Autofill SDK
    • Search UI SDK
  • Android OS version: Any
  • Devices affected: Any
  • Search SDK Version: 1.0.0-rc.6 / 1.0.0-rc.7

Code examples

Used code from documentation / sample

Observed behavior and steps

In Europe and many other countries address format is Street space HouseNumber but Autofill suggestion start working after fill Number and Char, not before. So until we fill whole Street number it show: No suggestions found and thats inacceptable!

Compare this two variants:

  • 85 Borivojov
  • Borivojov

I expecting show street from Prague after just a few chars like Boriv) but I don't get any results until I fill first number.

Check the videos:

Screen_recording_20230717_122635.mp4
Screen_recording_20230717_122852.mp4

Expected behavior

Start suggesting street names

@mtrakal mtrakal added the bug Something isn't working label Jul 17, 2023
@DzmitryFomchyn
Copy link
Contributor

DzmitryFomchyn commented Jul 19, 2023

Thank you, it's a backend issue, I've notified the team.

UPD

@mtrakal also, it seems that PlaceAutocomplete might be more suitable for your use case

val response = placeAutocomplete.suggestions(
                query = "Bor",
                options = PlaceAutocompleteOptions(
                    // Limit results to required types
                    types = listOf(
                        PlaceAutocompleteType.AdministrativeUnit.Country,
                        PlaceAutocompleteType.AdministrativeUnit.Region,
                        PlaceAutocompleteType.AdministrativeUnit.Postcode,
                        PlaceAutocompleteType.AdministrativeUnit.District,
                        PlaceAutocompleteType.AdministrativeUnit.Place,
                        PlaceAutocompleteType.AdministrativeUnit.Locality,
                        PlaceAutocompleteType.AdministrativeUnit.Neighborhood,
                        PlaceAutocompleteType.AdministrativeUnit.Street,
                        PlaceAutocompleteType.AdministrativeUnit.Address,
                    )
                )
            )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants