universal-geocoder
Version:
Universal geocoding abstraction server-side and client-side with multiple built-in providers
26 lines • 1.22 kB
TypeScript
import { GeocodeQuery, GeocodeQueryObject } from "../../query";
import { Coordinates } from "../../types";
export interface MapboxGeocodeQueryObject extends GeocodeQueryObject {
readonly countryCodes?: string[];
readonly proximity?: Coordinates;
readonly types?: string[];
readonly fuzzyMatch?: boolean;
}
export default class MapboxGeocodeQuery extends GeocodeQuery {
private readonly countryCodes?;
private readonly proximity?;
private readonly types?;
private readonly fuzzyMatch?;
protected constructor({ countryCodes, proximity, types, fuzzyMatch, ...geocodeQueryObject }: MapboxGeocodeQueryObject);
static create(object: MapboxGeocodeQueryObject): MapboxGeocodeQuery;
toObject(): MapboxGeocodeQueryObject;
withCountryCodes(countryCodes: string[]): MapboxGeocodeQuery;
getCountryCodes(): undefined | string[];
withProximity(proximity: Coordinates): MapboxGeocodeQuery;
getProximity(): undefined | Coordinates;
withTypes(types: string[]): MapboxGeocodeQuery;
getTypes(): undefined | string[];
withFuzzyMatch(fuzzyMatch: boolean): MapboxGeocodeQuery;
getFuzzyMatch(): undefined | boolean;
}
//# sourceMappingURL=MapboxGeocodeQuery.d.ts.map