Home > @vsf-enterprise/sap-commerce-webservices-sdk > StoresApi > countStoreLocations

StoresApi.countStoreLocations() method

In the response header, the "x-total-count" indicates the number of all store locations that are near the location specified in a query, or based on latitude and longitude. Get a header with the number of store locations.

Signature:

countStoreLocations(baseSiteId: string, accuracy?: number, latitude?: number, longitude?: number, query?: string, radius?: number, options?: any): Promise<import("axios").AxiosResponse<void>>;

Parameters

Parameter Type Description
baseSiteId string Base site identifier
accuracy number Accuracy in meters.
latitude number Coordinate that specifies the north-south position of a point on the Earth&#39;s surface.
longitude number Coordinate that specifies the east-west position of a point on the Earth&#39;s surface.
query string Location in natural language i.e. city or country.
radius number Radius in meters. Max value: 40075000.0 (Earth&#39;s perimeter).
options any Override http request option.

Returns:

Promise<import("axios").AxiosResponse<void>>

Exceptions

{RequiredError} StoresApi