MapboxBuildingsApi
Mapbox Buildings Api allows you to query buildings on a MapboxMap that you would like to highlight using the MapboxBuildingView.
Functions
The API can be invoked to query a building on MapboxMap using the RouteProgress provided as an input. Use this function to query a building when you reach your destination. The API returns a BuildingError if there is an internal issue fetching the buildings. Otherwise, it returns buildings wrapped inside BuildingValue in a form of list of QueriedRenderedFeature. This list is empty if the building is not found on the MapboxMap
The API can be invoked to query a building on MapboxMap using the RouteProgress provided as an input. Use this function to query a building when you reach a waypoint in a multi-leg trip. The API returns a BuildingError if there is an internal issue fetching the buildings. Otherwise, it returns buildings wrapped inside BuildingValue in a form of list of QueriedRenderedFeature. This list is empty if the building is not found on the MapboxMap
The API can be invoked to query a building on MapboxMap using the point provided as an input. The API returns a BuildingError if there is an internal issue fetching the buildings. Otherwise, it returns buildings wrapped inside BuildingValue in a form of list of QueriedRenderedFeature. This list is empty if the building is not found on the MapboxMap