Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.67 KB

MatrixDistance.md

File metadata and controls

32 lines (23 loc) · 1.67 KB

MatrixDistance

Properties

Name Type Description Notes
distance float The distance (in `units`) between the location in `sources` at `from_index` and the location in `targets` at `to_index`. This value may be 0 in the case that the source and destination are the same, and `null` if no route was found between the locations.
time int The travel time (in seconds) between the location in `sources` at `from_index` and the location in `targets` at `to_index`. This value may be 0 in the case that the source and destination are the same, and `null` if no route was found between the locations.
from_index int The index of the start location in the `sources` array.
to_index int The index of the end location in the `targets` array.

Example

from stadiamaps.models.matrix_distance import MatrixDistance

# TODO update the JSON string below
json = "{}"
# create an instance of MatrixDistance from a JSON string
matrix_distance_instance = MatrixDistance.from_json(json)
# print the JSON string representation of the object
print(MatrixDistance.to_json())

# convert the object into a dict
matrix_distance_dict = matrix_distance_instance.to_dict()
# create an instance of MatrixDistance from a dict
matrix_distance_from_dict = MatrixDistance.from_dict(matrix_distance_dict)

[Back to Model list] [Back to API list] [Back to README]