1. Interfaces

LocationData

Version:
TypeInterface
Import path@sitecore-cloudsdk/search/browser

In context: the geographical coordinates of the location where the site visitor made the search request. In filters: the location that the site visitor wants to see search results for.

Signature

export interface LocationData {
  latitude: number;
  longitude: number;
}

Properties

NameTypeDescriptionValue
latitudenumberRequired.

The latitude of a location.

You can infer the site visitor's current location from Navigator.geolocation.

Minimum: -90.000000.

Maximum: 90.000000.
-77.0089
longitudenumberRequired.

The longitude of a location.

You can infer the site visitor's current location from Navigator.geolocation.

Minimum: -180.000000.

Maximum: 180.000000.
-120.0017
If you have suggestions for improving this article, let us know!