İngilizce dilinde oku

Aracılığıyla paylaş


RouteMatrixSummary Class

  • java.lang.Object
    • com.azure.maps.route.models.RouteMatrixSummary

Implements

public final class RouteMatrixSummary
implements JsonSerializable<RouteMatrixSummary>

Summary object.

Constructor Summary

Constructor Description
RouteMatrixSummary()

Creates an instance of RouteMatrixSummary class.

Method Summary

Modifier and Type Method and Description
static RouteMatrixSummary fromJson(JsonReader jsonReader)

Reads an instance of RouteMatrixSummary from the JsonReader.

Integer getSuccessfulRoutes()

Get the successfulRoutes property: Number of successful routes in the response.

Integer getTotalRoutes()

Get the totalRoutes property: Total number of routes requested.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

RouteMatrixSummary

public RouteMatrixSummary()

Creates an instance of RouteMatrixSummary class.

Method Details

fromJson

public static RouteMatrixSummary fromJson(JsonReader jsonReader)

Reads an instance of RouteMatrixSummary from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RouteMatrixSummary if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the RouteMatrixSummary.

getSuccessfulRoutes

public Integer getSuccessfulRoutes()

Get the successfulRoutes property: Number of successful routes in the response.

Returns:

the successfulRoutes value.

getTotalRoutes

public Integer getTotalRoutes()

Get the totalRoutes property: Total number of routes requested. Number of cells in the input matrix.

Returns:

the totalRoutes value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to

Azure SDK for Java

Preview