Landmark

Landmark object This is the core interface for location information.

Constructors

Link copied to clipboard
constructor()
constructor(address: Long)
constructor(address: Long, isRef: Boolean)
constructor(name: String, coords: Coordinates)
constructor(name: String, latitude: Double, longitude: Double)

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Link copied to clipboard

Address of this landmark. On return the parameter fields are set to the correct values. Some of them( or all) may be empty. Gets direct access to the address info attached to this landmark.

Link copied to clipboard

Author of this landmark. On return the parameter is set to the field value. It may be empty.

Link copied to clipboard

Get landmark categories list

Link copied to clipboard

Direct access to the contact info attached to this landmark. Phone numbers & descriptions, email addresses & descriptions, URLs & descriptions

Link copied to clipboard

Centroid coordinates. On return the parameter is set to the actual value. The coordinates may be invalid. This aspect needs to be checked by the API user. Gets direct access to the coordinates attached to this landmark (centroid coordinates).

Link copied to clipboard

Description of this landmark. On return the parameter is set to the field value. It may be empty.

Link copied to clipboard

Get direct access to the entrances locations. If there is no entrance information (NULL) it is allocated.

Link copied to clipboard

Landmark extra image.

Link copied to clipboard

Direct access to the extra info attached to this landmark.

Link copied to clipboard

Geographic area.

Link copied to clipboard
val id: Int

Landmark ID. GemError.General ( -1 ) if it does not have an associated ID, i.e. the landmark doesn't belong to a landmark store.

Link copied to clipboard
var image: Image?

Landmark Image. The API client is responsible to check if the Image is valid.

Link copied to clipboard

If the landmark store is set then it returns the landmark store ID (>0).

Link copied to clipboard

If the landmark store is set then it returns the landmark store type( See ELandmarkStoreType if value >=0 ).

Link copied to clipboard
var name: String?

Name of this landmark. On return the parameter is set to the field value. It may be empty.

Link copied to clipboard

Provider id of this landmark

Link copied to clipboard

Timestamp. On return the parameter is set to the actual value. The timestamp may be invalid. This aspect needs to be checked by the API user.

Functions

Link copied to clipboard
external fun assign(landmark: Landmark)

Make the current landmark to be a duplicate( copy) of another landmark. ( provided as parameter).

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard
external fun findExtraInfo(startStr: String): String?

Find extra info.

Link copied to clipboard
external fun getContourGeographicArea(relevantOnly: Boolean = true): RectangleGeographicArea?

Get contour rectangle geographic area

Link copied to clipboard
fun imageAsBitmap(imgSizes: Int): Bitmap?

Gets the image as Bitmap.

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if:

Link copied to clipboard
external fun reset()

Resets landmarks data