Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 3.02 KB

TraceAttributesRequest.md

File metadata and controls

38 lines (29 loc) · 3.02 KB

TraceAttributesRequest

Properties

Name Type Description Notes
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]
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']
filters TraceAttributeFilterOptions If present, provides either a whitelist or a blacklist of keys to include/exclude in the response. This key is optional, and if omitted from the request, all available info will be returned. [optional]

Example

from stadiamaps.models.trace_attributes_request import TraceAttributesRequest

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

# convert the object into a dict
trace_attributes_request_dict = trace_attributes_request_instance.to_dict()
# create an instance of TraceAttributesRequest from a dict
trace_attributes_request_from_dict = TraceAttributesRequest.from_dict(trace_attributes_request_dict)

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