Landmarks
A landmark is a predefined, permanent location that holds detailed information such as its name, address, description, geographic area, categories (e.g., Gas Station, Shopping), entrance locations, contact details, and sometimes associated multimedia (e.g., icons or images). It represents significant, categorized locations with rich metadata, providing structured context about a place.
Landmark Structure
Geographic Details
A landmark's position is defined by coordinates (centroid) and geographicArea (full boundary). The geographic area can be a circle, rectangle, or polygon. For specific bounding areas, use the getContourGeographicArea method.
Calculate the distance between two landmarks using the distance method:
final double distanceInMeters = landmark1.coordinates.distance(landmark2.coordinates);
See the Coordinates guide for more details.
Waypoint Track Data
Some landmarks include a trackData attribute representing a sequence of waypoints that outline a path.
Available operations:
hasTrackData- Returnstrueif the landmark contains track datatrackData(getter) - Returns the track as aPathobject (empty when no track exists)trackData(setter) - Replaces the landmark's track with a providedPathreverseTrackData()- Reverses the waypoint sequence
Waypoint track data is used for path-based routes. See Compute path based route for details.
Descriptive Information
Landmarks include name, description, and author attributes. Names adapt to SDK language settings for localization.
Categories and Metadata
Landmarks can belong to one or more categories (described by LandmarkCategory). Use contactInfo for phone and email details, and extraInfo for additional metadata stored in a structured hashmap.
Media and Images
Retrieve landmark images using img (primary) or extraImg (secondary). Validate image data before use.
Address Information
The address attribute connects landmarks to AddressInfo for physical address details.