Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 647 Bytes

search-ui-react.getuserlocation.md

File metadata and controls

24 lines (14 loc) · 647 Bytes

Home > @yext/search-ui-react > getUserLocation

getUserLocation() function

Retrieves user's location using navigator.geolocation API.

Signature:

export declare function getUserLocation(geolocationOptions?: PositionOptions): Promise<GeolocationPosition>;

Parameters

Parameter Type Description
geolocationOptions PositionOptions

Returns:

Promise<GeolocationPosition>