Location Tags
Optional
Needed if your app uses Location Tags.
Overview
Any point in a building can be marked as a Location Tag and assigned with custom metadata. Location Tags are represented in the IPSFramework with IPSLocationTag objects. Each IPSLocationTag contains custom metadata which can be used to implement your application logic.
An overview of the content structure in the system is available here. The location tags can be configured using the REST API.
Location Tag Object
The representation of a location tag in the IPS SDK is IPSLocationTag object.
Each Location Tag Object contains:
- Unique ID,
IPSLocationTag.id; - Name,
IPSLocationTag.name; - Custom metadata,
IPSLocationTag.metadata; - Description (optional),
IPSLocationTag.description; - Image URL (optional),
IPSLocationTag.imageUrl; - List of regions to which it is attached,
IPSLocationTag.attachedToRegions; - List of placements,
IPSRegion.placements(See Content Item Placements).
Searching for Location Tags
The IPSFramework makes possible searching for location tags and other location-based content in a building, by name. See Content Search guide for details.
Getting Location Tags by IDs
To get location tags by ID, use the IPSContent.getLocationTagsById() method. The request requires an Internet connection, and will return only the location tags available for the currently selected Space.