location.geocode
The positions of an address, as the platform's geocoder finds them.
Verwendung
Find coordinates for an address.
// 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 matchSignaturen
(address: string): Promise<GeocodedLocation[]>Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
address | string | Ja | — |
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.