Location

data class Location(val id: String, val label: String, val latitude: Double, val longitude: Double, val icon: LocationIcon? = null, val category: String?, val address: Address? = null, val openingSchedule: OpeningSchedule? = null, val websiteUrl: String? = null, val phoneNumber: String? = null, val emailAddress: String? = null, val userRating: Float? = null, val userRatingCount: Int? = null, val departures: List<Departure>? = null, val fixMeUrl: String? = null, val attribution: Attribution? = null)

Constructors

Link copied to clipboard
constructor(id: String, label: String, latitude: Double, longitude: Double, icon: LocationIcon? = null, category: String?, address: Address? = null, openingSchedule: OpeningSchedule? = null, websiteUrl: String? = null, phoneNumber: String? = null, emailAddress: String? = null, userRating: Float? = null, userRatingCount: Int? = null, departures: List<Departure>? = null, fixMeUrl: String? = null, attribution: Attribution? = null)

Properties

Link copied to clipboard
val address: Address? = null
Link copied to clipboard
Link copied to clipboard

Human-readable category of the location. Should be localized.

Link copied to clipboard
val departures: List<Departure>? = null
Link copied to clipboard
val emailAddress: String? = null
Link copied to clipboard
val fixMeUrl: String? = null
Link copied to clipboard
val icon: LocationIcon? = null
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val phoneNumber: String? = null
Link copied to clipboard
val userRating: Float? = null

User rating of a location, from 0 to 1. Will be multiplied by 5 to get a 5-star rating.

Link copied to clipboard
val userRatingCount: Int? = null

Number of reviews that were used to calculate the user rating.

Link copied to clipboard
val websiteUrl: String? = null