Verwendung

Find coordinates for an address.

tsx
// Find coordinates for an address.
import { location } from 'kuito';

const matches = await location.geocode('1 Infinite Loop, Cupertino');

matches[0]?.latitude; // 37.33, or [] with no match

Signaturen

ts
(address: string): Promise<GeocodedLocation[]>

Parameter

NameTypErforderlichBeschreibung
addressstringJa—

Rückgabe

Promise<Position[]>

Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.