Skip to Content

Location

The location object describes any physical or logical location, such as a warehouse, pickup point, customer address, or detected user location. It is not limited to store locations and can represent any relevant place in the context of the store or user.

Usage Example

{%- comment -%} Show location name, address, and coordinates {%- endcomment -%} <p> {{ location.name }}<br> {{ location.address }}<br> {{ location.city }}, {{ location.country }}<br> Coordinates: {{ location.latitude }}, {{ location.longitude }} </p>

Properties

zipcode

Returns the zipcode for this location.

city

Returns the city for this location.

subdivisions

Returns the subdivisions for this location.

country

Returns the country for this location.

continent

Returns the continent for this location.

accuracy_radius

Returns the accuracy radius in meters for this location.

latitude

Returns the latitude for this location.

longitude

Returns the longitude for this location.

time_zone

Returns the time zone for this location.