location.geocode
The positions of an address, as the platform's geocoder finds them.
Usage
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 matchSignatures
(address: string): Promise<GeocodedLocation[]>Parameters
| Name | Type | Required | Description |
|---|---|---|---|
address | string | Yes | — |
Returns
Promise<Position[]>
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.