@cori-risi/cori.data.api / mapboxGeocode
mapboxGeocode()
mapboxGeocode(
api_key
,text
):Promise
<any
>
Defined in: lib/@cori-risi/mapbox/index.ts:18
This function is a simple wrapper around the Mapbox Geocoding API
Parameters
api_key
string
The Mapbox API (public) token (string)
text
string
The search terms (string) that will be passed at the query to the API request
import { mapboxGeocode } from "@cori-risi/cori.data.api";
// ...
const relevant_features = await mapboxGeocode(mapbox_access_token, text);
Returns
Promise
<any
>