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

MapboxSearch.SearchResultMetadata values are all nil #183

Open
RL-William-Coates opened this issue Feb 20, 2024 · 2 comments
Open

MapboxSearch.SearchResultMetadata values are all nil #183

RL-William-Coates opened this issue Feb 20, 2024 · 2 comments

Comments

@RL-William-Coates
Copy link

The received results from the following function contain no metadata for all categories.

func categorySearchResultsReceived(category: SearchCategory, results: [SearchResult]) {}

Here's an example of a restaurant's metadata:

MapboxSearch.SearchResultMetadata(data: ["iso_3166_2": "GB-ENG", "iso_3166_1": "gb"], primaryImage: nil, otherImages: nil, phone: nil, website: nil, reviewCount: nil, averageRating: nil, openHours: nil)

Here's the configuration of the search box.

    lazy var searchController: MapboxSearchController = {
        var configuration = Configuration(hideCategorySlots: true)
        return MapboxSearchController(configuration: configuration)
    }()
    lazy var panelController = MapboxPanelController(rootViewController: searchController)

I'm using Mapbox search 1.0.0-rc.8. Am I missing something in the configuration?

@aokj4ck
Copy link
Contributor

aokj4ck commented Feb 26, 2024

Hi @William-Coates, I was able to reproduce this behavior and I've asked my colleagues to assist investigating.

@RL-William-Coates
Copy link
Author

Hi @William-Coates, I was able to reproduce this behavior and I've asked my colleagues to assist investigating.

Hi @aokj4ck, has there been any progress with this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants