SearchResult
Represents a place on a map that the user can navigate to. Must not necessary be instantiated by Mapbox, can also be created on the client side to convert 3rd-party search results into Mapbox format to then navigate to them.
Properties
The category IDs of the search result.
The coordinate of the search result.
The custom name of the search result.
The description of the search result.
The distance in meters from the search result to the user location.
The ID of the EV charging station, not null if this SearchResult is a charging station.
Indicates that the item was not explicitly requested by the user and may have been added automatically by the system (for example, a charging station). Filter out items with isTransient == true
if you only want entries that were added by the user.
The metadata of the search result. Can be used to store additional information.