HapiCoordLocation

data class HapiCoordLocation(id: String?, extId: String?, name: String, type: HapiLocationType, lon: Double?, lat: Double?, dist: Int?, refinable: Boolean, matchValue: Int?, LocationNotes: List<HapiLocationNote>, links: List<HapiResourceLink>, icon: HapiIcon?) : HapiStopOrCoordLocation

The element CoordLocation specifies a coordinate based location in a result of a location request. It contains an output name, latitude, longitude and a type (address or point of interest). The coordinates and the name can be used as origin or destination parameters to perform a trip request.

Constructors

HapiCoordLocation
Link copied to clipboard
fun HapiCoordLocation(id: String?, extId: String?, name: String, type: HapiLocationType, lon: Double?, lat: Double?, dist: Int?, refinable: Boolean = false, matchValue: Int?, LocationNotes: List<HapiLocationNote> = emptyList(), links: List<HapiResourceLink> = emptyList(), icon: HapiIcon?)

Properties

dist
Link copied to clipboard
val dist: Int?

This value specifies the distance to the given coordinate if called by a nearby search request.

extId
Link copied to clipboard
val extId: String?

This ID defines an alternative ID for this stop location and can not be used to perform further requests.

icon
Link copied to clipboard
val icon: HapiIcon?
id
Link copied to clipboard
val id: String?

This optional ID can either be used as originId or destId to perform a trip request.

lat
Link copied to clipboard
val lat: Double?

The WGS84 latitude of the geographical position of the stop/station.

links
Link copied to clipboard
val links: List<HapiResourceLink>
LocationNotes
Link copied to clipboard
val LocationNotes: List<HapiLocationNote>
lon
Link copied to clipboard
val lon: Double?

The WGS84 longitude of the geographical position of the stop/station.

matchValue
Link copied to clipboard
val matchValue: Int?

A percentage value 0, 100 indicating how well the name of the given location matches the input location name. This attribute is only available in the location.name response

name
Link copied to clipboard
val name: String

Contains the output name of the address or point of interest

refinable
Link copied to clipboard
val refinable: Boolean = false

True, if the stop is not resolved fully and could be refined.

type
Link copied to clipboard
val type: HapiLocationType

The attribute type specifies the type of location. Valid values are ADR (address), POI (point of interest), CRD (coordinate), MCP (mode change point) or HL (hailing point).