# SearchResult

A place a search found.

This is an interface exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import type { SearchResult } from "@mapcairn/core";
 
interface SearchResult
```

## Properties

### bounds

```ts
readonly bounds?: Bounds;
```

When present, the map fits these bounds instead of centring on a point.

### centre

```ts
readonly centre: LatLng;
```

Where the map centres when the result is chosen.

### id

```ts
readonly id: string;
```

Identifies the place among the results.

### label

```ts
readonly label: string;
```

The place's name, as shown in the list.

### secondaryLabel

```ts
readonly secondaryLabel?: string;
```

A second line, such as the region or country.

## See also

- [`Bounds`](https://docs.mapcairn.com/api/core/Bounds.md)
- [`LatLng`](https://docs.mapcairn.com/api/core/LatLng.md)

Source: [packages/core/src/ports/search.ts:6](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/ports/search.ts#L6)
