PoiCategory

class PoiCategory(val id: CategoryId, val name: String, val parents: Set<CategoryId> = emptySet(), val children: Set<CategoryId> = emptySet(), val synonyms: List<String> = emptyList())

Class representing a Point Of Interest(POI) category.

Constructors

Link copied to clipboard
constructor(id: CategoryId, name: String, parents: Set<CategoryId> = emptySet(), children: Set<CategoryId> = emptySet(), synonyms: List<String> = emptyList())

create a new PoiCategory object.

Properties

Link copied to clipboard

The list of sub-category ids of the POI category.

Link copied to clipboard

The identifier for the POI category.

Link copied to clipboard

The name of the POI category.

Link copied to clipboard

The list of parent ids of the POI category.

Link copied to clipboard

The synonyms for the POI category.

Functions

Link copied to clipboard
fun copy(id: CategoryId = this.id, name: String = this.name, parents: Set<CategoryId> = this.parents, children: Set<CategoryId> = this.children, synonyms: List<String> = this.synonyms): PoiCategory

Creates a copy of this PoiCategory object.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Checks if this PoiCategory object is equal to another object.

Link copied to clipboard
open override fun hashCode(): Int

Generates a hash code for this PoiCategory object.

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

Returns a string representation of this PoiCategory object.