SearchResult
A place a search found.
This is an interface exported by @mapcairn/core, checked against version 0.2.0.
Signature
import type { SearchResult } from "@mapcairn/core";
interface SearchResult
Properties
bounds
readonly bounds?: Bounds;
When present, the map fits these bounds instead of centring on a point.
centre
readonly centre: LatLng;
Where the map centres when the result is chosen.
id
readonly id: string;
Identifies the place among the results.
label
readonly label: string;
The place's name, as shown in the list.
secondaryLabel
readonly secondaryLabel?: string;
A second line, such as the region or country.