useReverseAddress
Looks up the address at a position with the search provider's reverse,
but only when lookUp is called, because the position leaves the device.
The provider receives the position rounded with roundForLookup.
This is a function exported by @mapcairn/map, checked against version 0.2.0.
Signature
import { useReverseAddress } from "@mapcairn/map";
function useReverseAddress(input: LatLng): ReverseAddress;
Parameters
{ lat, lng }input(LatLng)
Returns
ReverseAddress
Remarks
Moving the position, or unmounting, aborts the lookup in flight and
returns the state to idle. An aborted lookup never changes state, and an
answer is only ever shown for the position it was asked for. A failed
lookup is error, which callers should show with a way to try again.
See also
Source: packages/map/src/tools/PinCard/useReverseAddress.ts:49