Search JS Core provides a higher level framework for the Mapbox Search Service. The framework provides strong typing for the APIs, handles requests/responses automatically, and can manage session tokens.
This documentation is divided into several sections:
AddressAutofillCore object is your connection to the Mapbox Address Autofill API. It lets you query interactive address suggestions with validation features.SearchBoxCore object is your connection to the Mapbox Search Box API. It lets you query interactive search suggestions, geographic coordinates, and reverse geocoding.GeocodingCore object is your connection to the Mapbox Geocoding API. It lets you do forward and reverse geocoding queries.SearchSession object is a high-level session manager for wrapped AddressAutofillCore and SearchBoxCore objects. It also lets you debounce and abort suggestion calls.polyfillFetch function allows polyfilling the Fetch API and AbortController APIs on unsupported platforms.Each section describes classes or objects as well as their properties, parameters, instance members, and associated events. Many sections also include inline code examples and related resources.