stadiamaps 3.2.0__py3-none-any.whl → 4.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- stadiamaps/__init__.py +24 -4
- stadiamaps/api/geocoding_api.py +1 -1
- stadiamaps/api/geospatial_api.py +1 -1
- stadiamaps/api/routing_api.py +12 -12
- stadiamaps/api_client.py +9 -2
- stadiamaps/configuration.py +3 -3
- stadiamaps/exceptions.py +1 -1
- stadiamaps/models/__init__.py +23 -3
- stadiamaps/models/access.py +1 -1
- stadiamaps/models/admin_region.py +1 -1
- stadiamaps/models/administrative.py +1 -1
- stadiamaps/models/annotation_filters.py +124 -0
- stadiamaps/models/auto_costing_options.py +1 -1
- stadiamaps/models/base_costing_options.py +1 -1
- stadiamaps/models/base_trace_request.py +4 -4
- stadiamaps/models/bicycle_costing_options.py +1 -1
- stadiamaps/models/bike_network.py +1 -1
- stadiamaps/models/bulk_request.py +80 -104
- stadiamaps/models/bulk_request_query.py +138 -0
- stadiamaps/models/bulk_search_response.py +1 -1
- stadiamaps/models/contour.py +1 -1
- stadiamaps/models/coordinate.py +1 -1
- stadiamaps/models/costing_model.py +1 -1
- stadiamaps/models/costing_options.py +1 -1
- stadiamaps/models/directions_options.py +1 -1
- stadiamaps/models/distance_unit.py +1 -1
- stadiamaps/models/edge_sign.py +1 -1
- stadiamaps/models/edge_use.py +1 -1
- stadiamaps/models/end_node.py +4 -4
- stadiamaps/models/extended_directions_options.py +121 -0
- stadiamaps/models/geo_attributes.py +1 -1
- stadiamaps/models/geo_json_geometry.py +1 -1
- stadiamaps/models/geo_json_geometry_base.py +1 -1
- stadiamaps/models/geo_json_line_string.py +1 -1
- stadiamaps/models/geo_json_point.py +1 -1
- stadiamaps/models/geo_json_polygon.py +1 -1
- stadiamaps/models/geocoding_object.py +1 -1
- stadiamaps/models/height_request.py +4 -4
- stadiamaps/models/height_response.py +4 -4
- stadiamaps/models/highway_classification.py +1 -1
- stadiamaps/models/intersecting_edge.py +1 -1
- stadiamaps/models/isochrone_costing_model.py +1 -1
- stadiamaps/models/isochrone_feature.py +1 -1
- stadiamaps/models/isochrone_properties.py +1 -1
- stadiamaps/models/isochrone_request.py +7 -7
- stadiamaps/models/isochrone_response.py +4 -4
- stadiamaps/models/locate_detailed_edge.py +1 -1
- stadiamaps/models/locate_edge.py +1 -1
- stadiamaps/models/locate_edge_info.py +1 -1
- stadiamaps/models/locate_node.py +1 -1
- stadiamaps/models/locate_object.py +17 -7
- stadiamaps/models/low_speed_vehicle_costing_options.py +1 -1
- stadiamaps/models/maneuver_sign.py +13 -13
- stadiamaps/models/maneuver_sign_element.py +1 -1
- stadiamaps/models/map_match_costing_model.py +1 -1
- stadiamaps/models/map_match_request.py +27 -5
- stadiamaps/models/map_match_route_response.py +4 -4
- stadiamaps/models/map_match_trace_options.py +1 -1
- stadiamaps/models/map_match_waypoint.py +1 -1
- stadiamaps/models/matched_point.py +1 -1
- stadiamaps/models/matrix_costing_model.py +1 -1
- stadiamaps/models/matrix_distance.py +1 -1
- stadiamaps/models/matrix_request.py +7 -7
- stadiamaps/models/matrix_response.py +13 -13
- stadiamaps/models/matrix_waypoint.py +1 -1
- stadiamaps/models/motor_scooter_costing_options.py +1 -1
- stadiamaps/models/motorcycle_costing_options.py +1 -1
- stadiamaps/models/nearest_roads_request.py +4 -4
- stadiamaps/models/node_id.py +1 -1
- stadiamaps/models/node_type.py +1 -1
- stadiamaps/models/optimized_route_request.py +28 -6
- stadiamaps/models/osrm_admin.py +103 -0
- stadiamaps/models/osrm_annotation.py +117 -0
- stadiamaps/models/osrm_banner_component.py +113 -0
- stadiamaps/models/osrm_banner_content.py +131 -0
- stadiamaps/models/osrm_banner_instruction.py +112 -0
- stadiamaps/models/osrm_base_api_response.py +112 -0
- stadiamaps/models/osrm_guidance_modifier.py +44 -0
- stadiamaps/models/osrm_intersection.py +145 -0
- stadiamaps/models/osrm_lane.py +111 -0
- stadiamaps/models/osrm_route.py +119 -0
- stadiamaps/models/osrm_route_leg.py +148 -0
- stadiamaps/models/osrm_route_response.py +132 -0
- stadiamaps/models/osrm_route_step.py +185 -0
- stadiamaps/models/osrm_speed_limit.py +117 -0
- stadiamaps/models/osrm_step_maneuver.py +127 -0
- stadiamaps/models/osrm_via_waypoint.py +105 -0
- stadiamaps/models/osrm_voice_instruction.py +105 -0
- stadiamaps/models/osrm_waypoint.py +108 -0
- stadiamaps/models/pedestrian_costing_options.py +1 -1
- stadiamaps/models/pelias_geo_json_feature.py +1 -1
- stadiamaps/models/pelias_geo_json_properties.py +1 -1
- stadiamaps/models/pelias_geo_json_properties_addendum.py +1 -1
- stadiamaps/models/pelias_geo_json_properties_addendum_osm.py +1 -1
- stadiamaps/models/pelias_layer.py +1 -1
- stadiamaps/models/pelias_response.py +4 -4
- stadiamaps/models/pelias_source.py +1 -1
- stadiamaps/models/restrictions.py +1 -1
- stadiamaps/models/road_class.py +1 -1
- stadiamaps/models/route200_response.py +138 -0
- stadiamaps/models/route_leg.py +4 -4
- stadiamaps/models/route_maneuver.py +1 -1
- stadiamaps/models/route_request.py +30 -8
- stadiamaps/models/route_response.py +4 -4
- stadiamaps/models/route_response_alternates_inner.py +1 -1
- stadiamaps/models/route_summary.py +1 -1
- stadiamaps/models/route_trip.py +7 -7
- stadiamaps/models/routing_response_waypoint.py +1 -1
- stadiamaps/models/routing_waypoint.py +1 -1
- stadiamaps/models/routing_waypoint_all_of_search_filter.py +1 -1
- stadiamaps/models/search_query.py +1 -1
- stadiamaps/models/search_structured_query.py +1 -1
- stadiamaps/models/simple_routing_waypoint.py +1 -1
- stadiamaps/models/speeds.py +1 -1
- stadiamaps/models/trace_attribute_filter_options.py +1 -1
- stadiamaps/models/trace_attribute_key.py +1 -1
- stadiamaps/models/trace_attributes_base_response.py +15 -10
- stadiamaps/models/trace_attributes_request.py +4 -4
- stadiamaps/models/trace_attributes_response.py +18 -13
- stadiamaps/models/trace_edge.py +2 -2
- stadiamaps/models/travel_mode.py +1 -1
- stadiamaps/models/traversability.py +1 -1
- stadiamaps/models/truck_costing_options.py +1 -1
- stadiamaps/models/tz_response.py +1 -1
- stadiamaps/models/valhalla_languages.py +1 -1
- stadiamaps/models/valhalla_long_units.py +1 -1
- stadiamaps/models/warning.py +1 -1
- stadiamaps/rest.py +1 -1
- {stadiamaps-3.2.0.dist-info → stadiamaps-4.0.0.dist-info}/METADATA +1 -1
- stadiamaps-4.0.0.dist-info/RECORD +160 -0
- {stadiamaps-3.2.0.dist-info → stadiamaps-4.0.0.dist-info}/WHEEL +1 -1
- stadiamaps-3.2.0.dist-info/RECORD +0 -138
- {stadiamaps-3.2.0.dist-info → stadiamaps-4.0.0.dist-info}/LICENSE.txt +0 -0
- {stadiamaps-3.2.0.dist-info → stadiamaps-4.0.0.dist-info}/top_level.txt +0 -0
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -93,9 +93,9 @@ class HeightRequest(BaseModel):
|
|
93
93
|
# override the default output from pydantic by calling `to_dict()` of each item in shape (list)
|
94
94
|
_items = []
|
95
95
|
if self.shape:
|
96
|
-
for
|
97
|
-
if
|
98
|
-
_items.append(
|
96
|
+
for _item_shape in self.shape:
|
97
|
+
if _item_shape:
|
98
|
+
_items.append(_item_shape.to_dict())
|
99
99
|
_dict['shape'] = _items
|
100
100
|
# puts key-value pairs in additional_properties in the top level
|
101
101
|
if self.additional_properties is not None:
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -81,9 +81,9 @@ class HeightResponse(BaseModel):
|
|
81
81
|
# override the default output from pydantic by calling `to_dict()` of each item in shape (list)
|
82
82
|
_items = []
|
83
83
|
if self.shape:
|
84
|
-
for
|
85
|
-
if
|
86
|
-
_items.append(
|
84
|
+
for _item_shape in self.shape:
|
85
|
+
if _item_shape:
|
86
|
+
_items.append(_item_shape.to_dict())
|
87
87
|
_dict['shape'] = _items
|
88
88
|
# puts key-value pairs in additional_properties in the top level
|
89
89
|
if self.additional_properties is not None:
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -88,9 +88,9 @@ class IsochroneRequest(BaseModel):
|
|
88
88
|
# override the default output from pydantic by calling `to_dict()` of each item in locations (list)
|
89
89
|
_items = []
|
90
90
|
if self.locations:
|
91
|
-
for
|
92
|
-
if
|
93
|
-
_items.append(
|
91
|
+
for _item_locations in self.locations:
|
92
|
+
if _item_locations:
|
93
|
+
_items.append(_item_locations.to_dict())
|
94
94
|
_dict['locations'] = _items
|
95
95
|
# override the default output from pydantic by calling `to_dict()` of costing_options
|
96
96
|
if self.costing_options:
|
@@ -98,9 +98,9 @@ class IsochroneRequest(BaseModel):
|
|
98
98
|
# override the default output from pydantic by calling `to_dict()` of each item in contours (list)
|
99
99
|
_items = []
|
100
100
|
if self.contours:
|
101
|
-
for
|
102
|
-
if
|
103
|
-
_items.append(
|
101
|
+
for _item_contours in self.contours:
|
102
|
+
if _item_contours:
|
103
|
+
_items.append(_item_contours.to_dict())
|
104
104
|
_dict['contours'] = _items
|
105
105
|
# puts key-value pairs in additional_properties in the top level
|
106
106
|
if self.additional_properties is not None:
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -85,9 +85,9 @@ class IsochroneResponse(BaseModel):
|
|
85
85
|
# override the default output from pydantic by calling `to_dict()` of each item in features (list)
|
86
86
|
_items = []
|
87
87
|
if self.features:
|
88
|
-
for
|
89
|
-
if
|
90
|
-
_items.append(
|
88
|
+
for _item_features in self.features:
|
89
|
+
if _item_features:
|
90
|
+
_items.append(_item_features.to_dict())
|
91
91
|
_dict['features'] = _items
|
92
92
|
# puts key-value pairs in additional_properties in the top level
|
93
93
|
if self.additional_properties is not None:
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
stadiamaps/models/locate_edge.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
stadiamaps/models/locate_node.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -81,22 +81,32 @@ class LocateObject(BaseModel):
|
|
81
81
|
# override the default output from pydantic by calling `to_dict()` of each item in nodes (list)
|
82
82
|
_items = []
|
83
83
|
if self.nodes:
|
84
|
-
for
|
85
|
-
if
|
86
|
-
_items.append(
|
84
|
+
for _item_nodes in self.nodes:
|
85
|
+
if _item_nodes:
|
86
|
+
_items.append(_item_nodes.to_dict())
|
87
87
|
_dict['nodes'] = _items
|
88
88
|
# override the default output from pydantic by calling `to_dict()` of each item in edges (list)
|
89
89
|
_items = []
|
90
90
|
if self.edges:
|
91
|
-
for
|
92
|
-
if
|
93
|
-
_items.append(
|
91
|
+
for _item_edges in self.edges:
|
92
|
+
if _item_edges:
|
93
|
+
_items.append(_item_edges.to_dict())
|
94
94
|
_dict['edges'] = _items
|
95
95
|
# puts key-value pairs in additional_properties in the top level
|
96
96
|
if self.additional_properties is not None:
|
97
97
|
for _key, _value in self.additional_properties.items():
|
98
98
|
_dict[_key] = _value
|
99
99
|
|
100
|
+
# set to None if nodes (nullable) is None
|
101
|
+
# and model_fields_set contains the field
|
102
|
+
if self.nodes is None and "nodes" in self.model_fields_set:
|
103
|
+
_dict['nodes'] = None
|
104
|
+
|
105
|
+
# set to None if edges (nullable) is None
|
106
|
+
# and model_fields_set contains the field
|
107
|
+
if self.edges is None and "edges" in self.model_fields_set:
|
108
|
+
_dict['edges'] = None
|
109
|
+
|
100
110
|
return _dict
|
101
111
|
|
102
112
|
@classmethod
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -79,30 +79,30 @@ class ManeuverSign(BaseModel):
|
|
79
79
|
# override the default output from pydantic by calling `to_dict()` of each item in exit_number_elements (list)
|
80
80
|
_items = []
|
81
81
|
if self.exit_number_elements:
|
82
|
-
for
|
83
|
-
if
|
84
|
-
_items.append(
|
82
|
+
for _item_exit_number_elements in self.exit_number_elements:
|
83
|
+
if _item_exit_number_elements:
|
84
|
+
_items.append(_item_exit_number_elements.to_dict())
|
85
85
|
_dict['exit_number_elements'] = _items
|
86
86
|
# override the default output from pydantic by calling `to_dict()` of each item in exit_branch_elements (list)
|
87
87
|
_items = []
|
88
88
|
if self.exit_branch_elements:
|
89
|
-
for
|
90
|
-
if
|
91
|
-
_items.append(
|
89
|
+
for _item_exit_branch_elements in self.exit_branch_elements:
|
90
|
+
if _item_exit_branch_elements:
|
91
|
+
_items.append(_item_exit_branch_elements.to_dict())
|
92
92
|
_dict['exit_branch_elements'] = _items
|
93
93
|
# override the default output from pydantic by calling `to_dict()` of each item in exit_toward_elements (list)
|
94
94
|
_items = []
|
95
95
|
if self.exit_toward_elements:
|
96
|
-
for
|
97
|
-
if
|
98
|
-
_items.append(
|
96
|
+
for _item_exit_toward_elements in self.exit_toward_elements:
|
97
|
+
if _item_exit_toward_elements:
|
98
|
+
_items.append(_item_exit_toward_elements.to_dict())
|
99
99
|
_dict['exit_toward_elements'] = _items
|
100
100
|
# override the default output from pydantic by calling `to_dict()` of each item in exit_name_elements (list)
|
101
101
|
_items = []
|
102
102
|
if self.exit_name_elements:
|
103
|
-
for
|
104
|
-
if
|
105
|
-
_items.append(
|
103
|
+
for _item_exit_name_elements in self.exit_name_elements:
|
104
|
+
if _item_exit_name_elements:
|
105
|
+
_items.append(_item_exit_name_elements.to_dict())
|
106
106
|
_dict['exit_name_elements'] = _items
|
107
107
|
# puts key-value pairs in additional_properties in the top level
|
108
108
|
if self.additional_properties is not None:
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -20,6 +20,7 @@ import json
|
|
20
20
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
23
|
+
from stadiamaps.models.annotation_filters import AnnotationFilters
|
23
24
|
from stadiamaps.models.costing_options import CostingOptions
|
24
25
|
from stadiamaps.models.distance_unit import DistanceUnit
|
25
26
|
from stadiamaps.models.map_match_costing_model import MapMatchCostingModel
|
@@ -42,13 +43,17 @@ class MapMatchRequest(BaseModel):
|
|
42
43
|
units: Optional[DistanceUnit] = DistanceUnit.KM
|
43
44
|
language: Optional[ValhallaLanguages] = ValhallaLanguages.EN_MINUS_US
|
44
45
|
directions_type: Optional[StrictStr] = Field(default='instructions', description="The level of directional narrative to include. Locations and times will always be returned, but narrative generation verbosity can be controlled with this parameter.")
|
46
|
+
format: Optional[StrictStr] = Field(default=None, description="The output response format. The default JSON format is extremely compact and ideal for web or data-constrained use cases where you want to fetch additional attributes on demand in small chunks. The OSRM format is much richer and is configurable with significantly more info for turn-by-turn navigation use cases.")
|
47
|
+
banner_instructions: Optional[StrictBool] = Field(default=None, description="Optionally includes helpful banners with timing information for turn-by-turn navigation. This is only available in the OSRM format.")
|
48
|
+
voice_instructions: Optional[StrictBool] = Field(default=None, description="Optionally includes voice instructions with timing information for turn-by-turn navigation. This is only available in the OSRM format.")
|
49
|
+
filters: Optional[AnnotationFilters] = None
|
45
50
|
begin_time: Optional[StrictInt] = Field(default=None, description="The timestamp at the start of the trace. Combined with `durations`, this provides a way to include timing information for an `encoded_polyline` trace.")
|
46
51
|
durations: Optional[StrictInt] = Field(default=None, description="A list of durations (in seconds) between each successive pair of points in a polyline.")
|
47
52
|
use_timestamps: Optional[StrictBool] = Field(default=False, description="If true, the input timestamps or durations should be used when computing elapsed time for each edge along the matched path rather than the routing algorithm estimates.")
|
48
53
|
trace_options: Optional[MapMatchTraceOptions] = None
|
49
54
|
linear_references: Optional[StrictBool] = Field(default=False, description="If true, the response will include a `linear_references` value that contains an array of base64-encoded [OpenLR location references](https://www.openlr-association.com/fileadmin/user_upload/openlr-whitepaper_v1.5.pdf), one for each graph edge of the road network matched by the trace.")
|
50
55
|
additional_properties: Dict[str, Any] = {}
|
51
|
-
__properties: ClassVar[List[str]] = ["id", "shape", "encoded_polyline", "costing", "costing_options", "shape_match", "units", "language", "directions_type", "begin_time", "durations", "use_timestamps", "trace_options", "linear_references"]
|
56
|
+
__properties: ClassVar[List[str]] = ["id", "shape", "encoded_polyline", "costing", "costing_options", "shape_match", "units", "language", "directions_type", "format", "banner_instructions", "voice_instructions", "filters", "begin_time", "durations", "use_timestamps", "trace_options", "linear_references"]
|
52
57
|
|
53
58
|
@field_validator('shape_match')
|
54
59
|
def shape_match_validate_enum(cls, value):
|
@@ -70,6 +75,16 @@ class MapMatchRequest(BaseModel):
|
|
70
75
|
raise ValueError("must be one of enum values ('none', 'maneuvers', 'instructions')")
|
71
76
|
return value
|
72
77
|
|
78
|
+
@field_validator('format')
|
79
|
+
def format_validate_enum(cls, value):
|
80
|
+
"""Validates the enum"""
|
81
|
+
if value is None:
|
82
|
+
return value
|
83
|
+
|
84
|
+
if value not in set(['json', 'osrm']):
|
85
|
+
raise ValueError("must be one of enum values ('json', 'osrm')")
|
86
|
+
return value
|
87
|
+
|
73
88
|
model_config = ConfigDict(
|
74
89
|
populate_by_name=True,
|
75
90
|
validate_assignment=True,
|
@@ -114,13 +129,16 @@ class MapMatchRequest(BaseModel):
|
|
114
129
|
# override the default output from pydantic by calling `to_dict()` of each item in shape (list)
|
115
130
|
_items = []
|
116
131
|
if self.shape:
|
117
|
-
for
|
118
|
-
if
|
119
|
-
_items.append(
|
132
|
+
for _item_shape in self.shape:
|
133
|
+
if _item_shape:
|
134
|
+
_items.append(_item_shape.to_dict())
|
120
135
|
_dict['shape'] = _items
|
121
136
|
# override the default output from pydantic by calling `to_dict()` of costing_options
|
122
137
|
if self.costing_options:
|
123
138
|
_dict['costing_options'] = self.costing_options.to_dict()
|
139
|
+
# override the default output from pydantic by calling `to_dict()` of filters
|
140
|
+
if self.filters:
|
141
|
+
_dict['filters'] = self.filters.to_dict()
|
124
142
|
# override the default output from pydantic by calling `to_dict()` of trace_options
|
125
143
|
if self.trace_options:
|
126
144
|
_dict['trace_options'] = self.trace_options.to_dict()
|
@@ -150,6 +168,10 @@ class MapMatchRequest(BaseModel):
|
|
150
168
|
"units": obj.get("units") if obj.get("units") is not None else DistanceUnit.KM,
|
151
169
|
"language": obj.get("language") if obj.get("language") is not None else ValhallaLanguages.EN_MINUS_US,
|
152
170
|
"directions_type": obj.get("directions_type") if obj.get("directions_type") is not None else 'instructions',
|
171
|
+
"format": obj.get("format"),
|
172
|
+
"banner_instructions": obj.get("banner_instructions"),
|
173
|
+
"voice_instructions": obj.get("voice_instructions"),
|
174
|
+
"filters": AnnotationFilters.from_dict(obj["filters"]) if obj.get("filters") is not None else None,
|
153
175
|
"begin_time": obj.get("begin_time"),
|
154
176
|
"durations": obj.get("durations"),
|
155
177
|
"use_timestamps": obj.get("use_timestamps") if obj.get("use_timestamps") is not None else False,
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -83,9 +83,9 @@ class MapMatchRouteResponse(BaseModel):
|
|
83
83
|
# override the default output from pydantic by calling `to_dict()` of each item in alternates (list)
|
84
84
|
_items = []
|
85
85
|
if self.alternates:
|
86
|
-
for
|
87
|
-
if
|
88
|
-
_items.append(
|
86
|
+
for _item_alternates in self.alternates:
|
87
|
+
if _item_alternates:
|
88
|
+
_items.append(_item_alternates.to_dict())
|
89
89
|
_dict['alternates'] = _items
|
90
90
|
# puts key-value pairs in additional_properties in the top level
|
91
91
|
if self.additional_properties is not None:
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -99,16 +99,16 @@ class MatrixRequest(BaseModel):
|
|
99
99
|
# override the default output from pydantic by calling `to_dict()` of each item in sources (list)
|
100
100
|
_items = []
|
101
101
|
if self.sources:
|
102
|
-
for
|
103
|
-
if
|
104
|
-
_items.append(
|
102
|
+
for _item_sources in self.sources:
|
103
|
+
if _item_sources:
|
104
|
+
_items.append(_item_sources.to_dict())
|
105
105
|
_dict['sources'] = _items
|
106
106
|
# override the default output from pydantic by calling `to_dict()` of each item in targets (list)
|
107
107
|
_items = []
|
108
108
|
if self.targets:
|
109
|
-
for
|
110
|
-
if
|
111
|
-
_items.append(
|
109
|
+
for _item_targets in self.targets:
|
110
|
+
if _item_targets:
|
111
|
+
_items.append(_item_targets.to_dict())
|
112
112
|
_dict['targets'] = _items
|
113
113
|
# override the default output from pydantic by calling `to_dict()` of costing_options
|
114
114
|
if self.costing_options:
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -85,32 +85,32 @@ class MatrixResponse(BaseModel):
|
|
85
85
|
# override the default output from pydantic by calling `to_dict()` of each item in sources (list)
|
86
86
|
_items = []
|
87
87
|
if self.sources:
|
88
|
-
for
|
89
|
-
if
|
90
|
-
_items.append(
|
88
|
+
for _item_sources in self.sources:
|
89
|
+
if _item_sources:
|
90
|
+
_items.append(_item_sources.to_dict())
|
91
91
|
_dict['sources'] = _items
|
92
92
|
# override the default output from pydantic by calling `to_dict()` of each item in targets (list)
|
93
93
|
_items = []
|
94
94
|
if self.targets:
|
95
|
-
for
|
96
|
-
if
|
97
|
-
_items.append(
|
95
|
+
for _item_targets in self.targets:
|
96
|
+
if _item_targets:
|
97
|
+
_items.append(_item_targets.to_dict())
|
98
98
|
_dict['targets'] = _items
|
99
99
|
# override the default output from pydantic by calling `to_dict()` of each item in sources_to_targets (list of list)
|
100
100
|
_items = []
|
101
101
|
if self.sources_to_targets:
|
102
|
-
for
|
103
|
-
if
|
102
|
+
for _item_sources_to_targets in self.sources_to_targets:
|
103
|
+
if _item_sources_to_targets:
|
104
104
|
_items.append(
|
105
|
-
[_inner_item.to_dict() for _inner_item in
|
105
|
+
[_inner_item.to_dict() for _inner_item in _item_sources_to_targets if _inner_item is not None]
|
106
106
|
)
|
107
107
|
_dict['sources_to_targets'] = _items
|
108
108
|
# override the default output from pydantic by calling `to_dict()` of each item in warnings (list)
|
109
109
|
_items = []
|
110
110
|
if self.warnings:
|
111
|
-
for
|
112
|
-
if
|
113
|
-
_items.append(
|
111
|
+
for _item_warnings in self.warnings:
|
112
|
+
if _item_warnings:
|
113
|
+
_items.append(_item_warnings.to_dict())
|
114
114
|
_dict['warnings'] = _items
|
115
115
|
# puts key-value pairs in additional_properties in the top level
|
116
116
|
if self.additional_properties is not None:
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -97,9 +97,9 @@ class NearestRoadsRequest(BaseModel):
|
|
97
97
|
# override the default output from pydantic by calling `to_dict()` of each item in locations (list)
|
98
98
|
_items = []
|
99
99
|
if self.locations:
|
100
|
-
for
|
101
|
-
if
|
102
|
-
_items.append(
|
100
|
+
for _item_locations in self.locations:
|
101
|
+
if _item_locations:
|
102
|
+
_items.append(_item_locations.to_dict())
|
103
103
|
_dict['locations'] = _items
|
104
104
|
# override the default output from pydantic by calling `to_dict()` of costing_options
|
105
105
|
if self.costing_options:
|