Skip to main content

ReverseAddress

What useReverseAddress returns.

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

Signature​

import type { ReverseAddress } from "@mapcairn/map";

interface ReverseAddress

Properties​

lookUp​

readonly lookUp: () => void;

Sends the position, rounded to about 11 m, to the search provider. Calling it again aborts a lookup still in flight and starts a new one.

state​

readonly state: AddressState;

Where the lookup stands. It is idle until lookUp is called.

See also​

Source: packages/map/src/tools/PinCard/useReverseAddress.ts:16