mapbox / mapbox/mapbox-search-ios
Autofill does not work until both the number and character fields are filled.
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 28
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
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:
- Start typing a address by entering only letters
- 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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the AddressAutofill.Query creation and addressAutofill.suggestions flow shown in the issue, then reproduce the behavior using letters-only input on Search SDK 2.9.0. Done means street or address suggestions appear before a number is entered, while preserving the existing numeric-input behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile-dev, search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100