MPDistanceMatrixResponse

open class MPDistanceMatrixResponse

Constructors

Link copied to clipboard
open fun MPDistanceMatrixResponse(    @NonNull destinations: List<String>,     @NonNull origins: List<String>,     @NonNull status: String,     @Nullable errorMessage: String)

Types

Link copied to clipboard
open class DistanceMatrixElement
Link copied to clipboard
open class Row
Link copied to clipboard
open class TextPair

Functions

Link copied to clipboard
open fun addElementRow(@NonNull elementRow: List<MPDistanceMatrixResponse.DistanceMatrixElement>)
Link copied to clipboard
open fun createElement(    @Nullable distance: MPDistanceMatrixResponse.TextPair,     @Nullable duration: MPDistanceMatrixResponse.TextPair,     @Nullable status: String,     @Nullable error: String): MPDistanceMatrixResponse.DistanceMatrixElement
Link copied to clipboard
open fun createTextPair(@Nullable text: String, @Nullable value: String): MPDistanceMatrixResponse.TextPair
Link copied to clipboard
open fun getDestinations(): List<String>
Link copied to clipboard
open fun getOrigins(): List<String>

Properties

Link copied to clipboard
@SerializedName(value = "error_message")
open val errorMessage: String
Link copied to clipboard
@SerializedName(value = "rows")
@get:NonNull
open val rows: List<MPDistanceMatrixResponse.Row>
Link copied to clipboard
@SerializedName(value = "status")
open val status: String