Skip to content

Autofill does not work until both the number and character fields are filled. #372

@andreiStefanBursuc

Description

@andreiStefanBursuc

Describe the bug
I expect the street name suggestions to appear after entering just a few characters. However, I am not receiving any results until I enter the first number. This behavior is not aligned with the expected functionality.

Environment:
https://docs.mapbox.com/ios/search/guides/address-formfill/

To Reproduce
Steps to reproduce the behavior:

  1. Start typing a address by entering only letters
  2. See no results are returned

Expected behavior
Suggested addresses should be returned

Screenshots
https://github.com/user-attachments/assets/c674922c-f397-4b29-9335-c76c5260234d

Smartphone (please complete the following information):

  • Device: Any
  • OS: Any
  • Search SDK Version: 2.9.0
  • SearchUI SDK Version: not applicable
  • SearchEngine
    private lazy var addressAutofill = AddressAutofill()
    func search(for query: String) {
        guard let addressAutofillQuery = AddressAutofill.Query(value: query) else {
            return
        }

        addressAutofill.suggestions(for: addressAutofillQuery) { [weak self] result in
}

Additional context
When user is typing a number the results are starting to show

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions