Location Component
With the location component, you can describe a specific location on a map using longitude and latitude. This is useful if your products have a specific location, like houses.
Location Component Usage
The location component can be used to store a precise geolocation.
When adding this component to a shape or piece, you can specify the following:
- Name (required) - A name for the component.
- Identifier - String that will be generated based on the component name when shape/piece is created or updated. You’ll use the identifier to reference the component programmatically.
- Description - An optional description of what the component should contain. This will be visible to anyone who adds content to the component later.
- Localized Content - If Yes, then you can specify different locations for each language set up within your tenant. If No, then the same location will be shared across all languages.
When editing a location component, you can search for a location or input latitude and longitude coordinates directly. There’s also a Show my location button that you can use to input the coordinates of your current location (as long as your browser has the appropriate permissions in place).
Catalogue API Access
Once created, location components and their content are accessible via the Catalogue API. Refer to our sample query for retrieving location component content, and to the API docs at https://api.crystallize.com/your-tenant-identifier/catalogue for more information.