PointOfInterest

@Serializable(with = PointOfInterestSerializer::class)
data class PointOfInterest : CompactStringConvertible

A point of interest located on a map.

Constructors

Link copied to clipboard
constructor(name: String, coordinate: Coordinate, type: PointOfInterestType = PointOfInterestType.CATEGORY, description: String? = null, address: String? = null, imageUrl: String? = null, tags: List<String> = emptyList(), mediaThumbnailUrl: String? = null, mediaUrl: String? = null, mediaType: String? = null, extraMedias: List<PointOfInterest.ExtraMedia> = emptyList(), externalData: JsonElement? = null)

Creates a point of interest with a generated unique identifier.

Types

Link copied to clipboard
@Serializable
data class ExtraMedia(val type: String, val url: String)

An additional media associated with a point of interest.

Properties

Link copied to clipboard

Postal address of the point of interest.

Link copied to clipboard

Coordinate of the point of interest.

Link copied to clipboard

Textual description of the point of interest.

Link copied to clipboard
val externalData: JsonElement?

Arbitrary external data attached to the point of interest.

Link copied to clipboard

List of extra medias associated with the point of interest.

Link copied to clipboard
val id: Int

Unique identifier of the point of interest.

Link copied to clipboard

URL of the image representing the point of interest. Used for POI of type PointOfInterestType.CATEGORY.

Link copied to clipboard

URL of the thumbnail image representing the point of interest. Used for POI of type PointOfInterestType.VIDEO.

Link copied to clipboard

MIME type of the media associated with the point of interest.

Link copied to clipboard

URL of the media representing the point of interest. Used for POI of type PointOfInterestType.PICTURE.

Link copied to clipboard

Name of the point of interest.

Link copied to clipboard

Tags associated with the point of interest.

Link copied to clipboard

Type of the point of interest.

Functions

Link copied to clipboard
open override fun toCompactString(): String

Returns a compact, human-readable representation of this value.