DistanceMatrixElementResponse

data class DistanceMatrixElementResponse(val status: DistanceMatrixElementResponse.Status? = null, val duration: DurationValue? = null, val distance: DistanceValue? = null)

Attributes describing an element of origin and destination returned in distance Matrix response.

Parameters

status

Status returned for Distance Matrix Element Response. - OK indicates the response contains a valid result. - NOT_FOUND indicates that the origin and/or destination of this pairing could not be matched to the network. - ZERO_RESULTS indicates no route could be found between the origin and destination.

duration
distance

Constructors

Link copied to clipboard
constructor(status: DistanceMatrixElementResponse.Status? = null, duration: DurationValue? = null, distance: DistanceValue? = null)

Types

Link copied to clipboard

Status returned for Distance Matrix Element Response. - OK indicates the response contains a valid result. - NOT_FOUND indicates that the origin and/or destination of this pairing could not be matched to the network. - ZERO_RESULTS indicates no route could be found between the origin and destination.

Properties

Link copied to clipboard
@SerializedName(value = "distance")
val distance: DistanceValue? = null
Link copied to clipboard
@SerializedName(value = "duration")
val duration: DurationValue? = null
Link copied to clipboard
@SerializedName(value = "status")
val status: DistanceMatrixElementResponse.Status? = null