UNPKG

universal-geocoder

Version:

Universal geocoding abstraction server-side and client-side with multiple built-in providers

26 lines 1.26 kB
import { GeocodeQuery, GeocodeQueryObject } from "../../query"; import { Coordinates } from "../../types"; export interface OpenCageGeocodeQueryObject extends GeocodeQueryObject { readonly countryCodes?: string[]; readonly proximity?: Coordinates; readonly minPrecision?: number; readonly noRecord?: boolean; } export default class OpenCageGeocodeQuery extends GeocodeQuery { private readonly countryCodes?; private readonly proximity?; private readonly minPrecision?; private readonly noRecord?; protected constructor({ countryCodes, proximity, minPrecision, noRecord, ...geocodeQueryObject }: OpenCageGeocodeQueryObject); static create(object: OpenCageGeocodeQueryObject): OpenCageGeocodeQuery; toObject(): OpenCageGeocodeQueryObject; withCountryCodes(countryCodes: string[]): OpenCageGeocodeQuery; getCountryCodes(): undefined | string[]; withProximity(proximity: Coordinates): OpenCageGeocodeQuery; getProximity(): undefined | Coordinates; withMinPrecision(minPrecision: number): OpenCageGeocodeQuery; getMinPrecision(): undefined | number; withNoRecord(noRecord: boolean): OpenCageGeocodeQuery; getNoRecord(): undefined | boolean; } //# sourceMappingURL=OpenCageGeocodeQuery.d.ts.map