Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 2.67 KB

BaseTraceRequest.md

File metadata and controls

37 lines (28 loc) · 2.67 KB

BaseTraceRequest

Properties

Name Type Description Notes
units DistanceUnit [optional] [default to DistanceUnit.KM]
language ValhallaLanguages [optional] [default to ValhallaLanguages.EN_MINUS_US]
directions_type str The level of directional narrative to include. Locations and times will always be returned, but narrative generation verbosity can be controlled with this parameter. [optional] [default to 'instructions']
id str An identifier to disambiguate requests (echoed by the server). [optional]
shape List[MapMatchWaypoint] REQUIRED if `encoded_polyline` is not present. Note that `break` type locations are only supported when `shape_match` is set to `map_match`. [optional]
encoded_polyline str REQUIRED if `shape` is not present. An encoded polyline (https://developers.google.com/maps/documentation/utilities/polylinealgorithm). Note that the polyline must be encoded with 6 digits of precision rather than the usual 5. [optional]
costing MapMatchCostingModel
costing_options CostingOptions [optional]
shape_match str Three snapping modes provide some control over how the map matching occurs. `edge_walk` is fast, but requires extremely precise data that matches the route graph almost perfectly. `map_snap` can handle significantly noisier data, but is very expensive. `walk_or_snap`, the default, tries to use edge walking first and falls back to map matching if edge walking fails. In general, you should not need to change this parameter unless you want to trace a multi-leg route with multiple `break` locations in the `shape`. [optional]

Example

from stadiamaps.models.base_trace_request import BaseTraceRequest

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

# convert the object into a dict
base_trace_request_dict = base_trace_request_instance.to_dict()
# create an instance of BaseTraceRequest from a dict
base_trace_request_from_dict = BaseTraceRequest.from_dict(base_trace_request_dict)

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