Class RouteMatrixResult

java.lang.Object
com.azure.maps.route.models.RouteMatrixResult
All Implemented Interfaces:
com.azure.json.JsonSerializable<RouteMatrixResult>

public class RouteMatrixResult extends Object implements com.azure.json.JsonSerializable<RouteMatrixResult>
Route Matrix result.
  • Constructor Details

    • RouteMatrixResult

      public RouteMatrixResult()
      Creates a new instance of RouteMatrixResult.
  • Method Details

    • getFormatVersion

      public String getFormatVersion()
      Get the formatVersion property: Format Version property.
      Returns:
      the formatVersion value.
    • getMatrix

      public List<List<RouteMatrix>> getMatrix()
      Get the matrix property: Results as a 2 dimensional array of route summaries.
      Returns:
      the matrix value.
    • getSummary

      public RouteMatrixSummary getSummary()
      Get the summary property: Summary object.
      Returns:
      the summary value.
    • getMatrixId

      public String getMatrixId()
      Get the matrix id of this request.
      Returns:
      the matrix id
    • setMatrixId

      public void setMatrixId(String matrixId)
      Sets the matrix id for this request.
      Parameters:
      matrixId - the matrix id
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<RouteMatrixResult>
      Throws:
      IOException
    • fromJson

      public static RouteMatrixResult fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of RouteMatrixResult from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of RouteMatrixResult 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 RouteMatrixResult.