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. |
|
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]