Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.44 KB

RouteLeg.md

File metadata and controls

33 lines (24 loc) · 1.44 KB

RouteLeg

Properties

Name Type Description Notes
maneuvers List[RouteManeuver]
shape str An encoded polyline (https://developers.google.com/maps/documentation/utilities/polylinealgorithm) with 6 digits of decimal precision.
summary RouteSummary
elevation_interval float The sampling distance between elevation values along the route. This echoes the request parameter having the same name (converted to `units` if necessary). [optional]
elevation List[float] An array of elevation values sampled every `elevation_interval`. Units are either metric or imperial depending on the value of `units`. [optional]

Example

from stadiamaps.models.route_leg import RouteLeg

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

# convert the object into a dict
route_leg_dict = route_leg_instance.to_dict()
# create an instance of RouteLeg from a dict
route_leg_from_dict = RouteLeg.from_dict(route_leg_dict)

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