PoiProperties

@Serializable
data class PoiProperties(val osmId: Long, val osmType: Int, val distance: Double, val categoryIds: Map<Int, CategoryInfo>? = null, val osmTags: Map<String, String>? = null)

Properties seen in your sample. Some fields are optional across results.

  • category_ids is an object with integer keys -> map to Map

  • osm_tags is a free-form OSM tag map (strings)

Constructors

Link copied to clipboard
constructor(osmId: Long, osmType: Int, distance: Double, categoryIds: Map<Int, CategoryInfo>? = null, osmTags: Map<String, String>? = null)

Properties

Link copied to clipboard
@SerialName(value = "category_ids")
val categoryIds: Map<Int, CategoryInfo>? = null
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "osm_id")
val osmId: Long
Link copied to clipboard
@SerialName(value = "osm_tags")
val osmTags: Map<String, String>? = null
Link copied to clipboard
@SerialName(value = "osm_type")
val osmType: Int