The location object

The location object has the following attributes:


location.name

Returns the name of the location

{{location.name}}

location.url

Returns the url of the location

{{location.url}}

location.address_line_1

Returns the value of the address line 1 field of the location

{{location.address_line_1}}

location.address_line_2

Returns the value of the address line 2 field of the location

{{location.address_line_2}}

location.postal_zip_code

Returns the locations postal/zip code

{{location.postal_zip_code}}

location.city

Returns the city object that the location is within

{{location.city}}

location.region

Returns the region object that the location is within

{{location.region}}

location.country

Returns the country object that the location is within

{{location.country}}

location.lat

Returns the locations latitude

{{location.lat}}

location.lng

Returns the locations longitude

{{location.lng}}

location.tags

Returns an array of tag objects belonging to the location

{{location.tags}}

location.image_url

Returns the image url of the location

{{location.image_url}}

location.website

Returns the website of the location

{{location.website}}

location.email

Returns the email of the location

{{location.email}}

location.phone_number

Returns the phone number of the location

{{location.phone_number}}

location.closes_at

Returns a liquid date object of when the location closes

{{location.closes_at}}

location.next_open

Returns a liquid date object for when the location is next open

{{location.next_open}}

location.open_now?

Returns true if the location is currently open

{{location.open_now?}}

location.opening_hours

Returns an array of opening hour objects for the locations opening times

{{location.opening_hours}}

location.apple_maps_directions

Returns a link for apple maps directions, to be used in a href

{{location.apple_maps_directions}}

location.google_maps_directions

Returns a link for google maps directions, to be used in a href

{{location.google_maps_directions}}

location.location_image_url

Returns a Mapbox static map image url of the locations coordinates

{{location.location_image_url}}

location.page_title

Returns the locations page title, this will come from the SEO template if the value is not set

{{location.page_title}}

location.page_description

Returns the locations page description, this will come from the SEO template if the value is not set

{{location.page_description}}

location.meta_title

Returns the locations meta title, this will come from the SEO template if the value is not set

{{location.meta_title}}

location.meta_description

Returns the locations meta description, this will come from the SEO template if the value is not set

{{location.meta_description}}

Was this page helpful? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Contact