Skip to content

MapboxSearch.SearchResultMetadata values are all nil #183

@RL-William-Coates

Description

@RL-William-Coates

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?

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