RadarPlace

class RadarPlace(_id: String, name: String, categories: Array<String>, chain: RadarChain?, location: RadarCoordinate, group: String?, metadata: JSONObject?)

Represents a place.

See also

Constructors

RadarPlace
Link copied to clipboard
fun RadarPlace(_id: String, name: String, categories: Array<String>, chain: RadarChain?, location: RadarCoordinate, group: String?, metadata: JSONObject?)

Functions

hasCategory
Link copied to clipboard
fun hasCategory(category: String): Boolean
Returns a boolean indicating whether the place has the specified category.
isChain
Link copied to clipboard
fun isChain(slug: String): Boolean
Returns a boolean indicating whether the place is part of the specified chain.
toJson
Link copied to clipboard
fun toJson(): JSONObject

Properties

_id
Link copied to clipboard
val _id: String
The Radar ID of the place.
categories
Link copied to clipboard
val categories: Array<String>
The categories of the place.
chain
Link copied to clipboard
val chain: RadarChain?
The chain of the place, if known.
group
Link copied to clipboard
val group: String?
The group for the place, if any.
location
Link copied to clipboard
val location: RadarCoordinate
The location of the place.
metadata
Link copied to clipboard
val metadata: JSONObject?
The metadata for the place, if part of a group.
name
Link copied to clipboard
val name: String
The name of the place.