sdk-routing / com.tomtom.online.sdk.routing.data.matrix / MatrixRoutingResult

MatrixRoutingResult

class MatrixRoutingResult

A class that is used to hold information about matrix routing such as summary, origin, and destination.

Constructors

<init>

MatrixRoutingResult(summary: Summary!, statusCode: Int, description: String!, origin: LatLng!, destination: LatLng!, responseStatus: ResponseStatus!)

A constructor that takes information about matrix routing results and assigns it to proper fields. Data assigned here is not persisted.

Functions

equals

fun equals(other: Any?): Boolean

getDescription

fun getDescription(): String!

Returns the description of the result of the query to the service.

getDestination

fun getDestination(): LatLng!

Returns the Route destination point.

getOrigin

fun getOrigin(): LatLng!

Returns the Route origin point.

getResponseStatus

fun getResponseStatus(): ResponseStatus!

Returns the result response.

getStatusCode

fun getStatusCode(): Int

Returns the status code of the result of the query to the service.

getSummary

fun getSummary(): Summary!

Returns the route summary. It contains basic information about the route, e.g., length, travel time, etc.

hashCode

fun hashCode(): Int

toString

fun toString(): String