Skip to content

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 IPS SDK 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.getId();
  • Name, IPSLocationTag.getName();
  • Custom metadata, IPSLocationTag.getMetadata();
  • Description (optional), IPSLocationTag.getDescription();
  • Image URL (optional), IPSLocationTag.getImageUrl();
  • List of regions to which it is attached, IPSLocationTag.getRegionAttachments();
  • List of placements, IPSRegion.getPlacements() (See Content Item Placements).

Searching for Location Tags

The IPS SDK 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.