MaplibreGeocoderApiConfig: {
    bbox?: number[];
    countries?: string;
    language?: string;
    limit?: number;
    proximity?: number[];
    query?: string | number[];
    reverseMode?: "distance" | "score";
    types?: string;
}

Type declaration

  • Optionalbbox?: number[]

    A bounding box given as an array in the format [minX, minY, maxX, maxY]. Search results will be limited to the bounding box.

  • Optionalcountries?: string

    A comma separated list of country codes to limit results to specified country or countries.

  • Optionallanguage?: string

    Specify the language to use for response text and query result weighting. Options are IETF language tags comprised of a mandatory ISO 639-1 language code and optionally one or more IETF subtags for country or script. More than one value can also be specified, separated by commas. Defaults to the browser's language settings.

  • Optionallimit?: number

    Number of results to limit by

  • Optionalproximity?: number[]

    A geographical point given as an object with latitude and longitude properties. Search results closer to this point will be given higher priority.

  • Optionalquery?: string | number[]

    Search query string

  • OptionalreverseMode?: "distance" | "score"

    Set the factors that are used to sort nearby results.

  • Optionaltypes?: string

    A comma seperated list of types that filter results to match those specified. See https://docs.mapbox.com/api/search/#data-types for available types. If reverseGeocode is enabled, you should specify one type. If you configure more than one type, the first type will be used.