stadiamaps 3.2.1__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 +23 -2
- 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 +22 -1
- 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 +1 -1
- stadiamaps/models/bulk_request_query.py +1 -1
- 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 +7 -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 +10 -10
- stadiamaps/models/trace_attributes_request.py +4 -4
- stadiamaps/models/trace_attributes_response.py +13 -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.1.dist-info → stadiamaps-4.0.0.dist-info}/METADATA +1 -1
- stadiamaps-4.0.0.dist-info/RECORD +160 -0
- {stadiamaps-3.2.1.dist-info → stadiamaps-4.0.0.dist-info}/WHEEL +1 -1
- stadiamaps-3.2.1.dist-info/RECORD +0 -139
- {stadiamaps-3.2.1.dist-info → stadiamaps-4.0.0.dist-info}/LICENSE.txt +0 -0
- {stadiamaps-3.2.1.dist-info → stadiamaps-4.0.0.dist-info}/top_level.txt +0 -0
stadiamaps/models/edge_use.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
|
|
stadiamaps/models/end_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
|
|
@@ -82,9 +82,9 @@ class EndNode(BaseModel):
|
|
82
82
|
# override the default output from pydantic by calling `to_dict()` of each item in intersecting_edges (list)
|
83
83
|
_items = []
|
84
84
|
if self.intersecting_edges:
|
85
|
-
for
|
86
|
-
if
|
87
|
-
_items.append(
|
85
|
+
for _item_intersecting_edges in self.intersecting_edges:
|
86
|
+
if _item_intersecting_edges:
|
87
|
+
_items.append(_item_intersecting_edges.to_dict())
|
88
88
|
_dict['intersecting_edges'] = _items
|
89
89
|
# puts key-value pairs in additional_properties in the top level
|
90
90
|
if self.additional_properties is not None:
|
@@ -0,0 +1,121 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Stadia Maps Geospatial APIs
|
5
|
+
|
6
|
+
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 7.0.0
|
9
|
+
Contact: support@stadiamaps.com
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
14
|
+
|
15
|
+
|
16
|
+
from __future__ import annotations
|
17
|
+
import pprint
|
18
|
+
import re # noqa: F401
|
19
|
+
import json
|
20
|
+
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
23
|
+
from stadiamaps.models.annotation_filters import AnnotationFilters
|
24
|
+
from typing import Optional, Set
|
25
|
+
from typing_extensions import Self
|
26
|
+
|
27
|
+
class ExtendedDirectionsOptions(BaseModel):
|
28
|
+
"""
|
29
|
+
ExtendedDirectionsOptions
|
30
|
+
""" # noqa: E501
|
31
|
+
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.")
|
32
|
+
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.")
|
33
|
+
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.")
|
34
|
+
filters: Optional[AnnotationFilters] = None
|
35
|
+
additional_properties: Dict[str, Any] = {}
|
36
|
+
__properties: ClassVar[List[str]] = ["format", "banner_instructions", "voice_instructions", "filters"]
|
37
|
+
|
38
|
+
@field_validator('format')
|
39
|
+
def format_validate_enum(cls, value):
|
40
|
+
"""Validates the enum"""
|
41
|
+
if value is None:
|
42
|
+
return value
|
43
|
+
|
44
|
+
if value not in set(['json', 'osrm']):
|
45
|
+
raise ValueError("must be one of enum values ('json', 'osrm')")
|
46
|
+
return value
|
47
|
+
|
48
|
+
model_config = ConfigDict(
|
49
|
+
populate_by_name=True,
|
50
|
+
validate_assignment=True,
|
51
|
+
protected_namespaces=(),
|
52
|
+
)
|
53
|
+
|
54
|
+
|
55
|
+
def to_str(self) -> str:
|
56
|
+
"""Returns the string representation of the model using alias"""
|
57
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
58
|
+
|
59
|
+
def to_json(self) -> str:
|
60
|
+
"""Returns the JSON representation of the model using alias"""
|
61
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
62
|
+
return json.dumps(self.to_dict())
|
63
|
+
|
64
|
+
@classmethod
|
65
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
66
|
+
"""Create an instance of ExtendedDirectionsOptions from a JSON string"""
|
67
|
+
return cls.from_dict(json.loads(json_str))
|
68
|
+
|
69
|
+
def to_dict(self) -> Dict[str, Any]:
|
70
|
+
"""Return the dictionary representation of the model using alias.
|
71
|
+
|
72
|
+
This has the following differences from calling pydantic's
|
73
|
+
`self.model_dump(by_alias=True)`:
|
74
|
+
|
75
|
+
* `None` is only added to the output dict for nullable fields that
|
76
|
+
were set at model initialization. Other fields with value `None`
|
77
|
+
are ignored.
|
78
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
79
|
+
"""
|
80
|
+
excluded_fields: Set[str] = set([
|
81
|
+
"additional_properties",
|
82
|
+
])
|
83
|
+
|
84
|
+
_dict = self.model_dump(
|
85
|
+
by_alias=True,
|
86
|
+
exclude=excluded_fields,
|
87
|
+
exclude_none=True,
|
88
|
+
)
|
89
|
+
# override the default output from pydantic by calling `to_dict()` of filters
|
90
|
+
if self.filters:
|
91
|
+
_dict['filters'] = self.filters.to_dict()
|
92
|
+
# puts key-value pairs in additional_properties in the top level
|
93
|
+
if self.additional_properties is not None:
|
94
|
+
for _key, _value in self.additional_properties.items():
|
95
|
+
_dict[_key] = _value
|
96
|
+
|
97
|
+
return _dict
|
98
|
+
|
99
|
+
@classmethod
|
100
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
101
|
+
"""Create an instance of ExtendedDirectionsOptions from a dict"""
|
102
|
+
if obj is None:
|
103
|
+
return None
|
104
|
+
|
105
|
+
if not isinstance(obj, dict):
|
106
|
+
return cls.model_validate(obj)
|
107
|
+
|
108
|
+
_obj = cls.model_validate({
|
109
|
+
"format": obj.get("format"),
|
110
|
+
"banner_instructions": obj.get("banner_instructions"),
|
111
|
+
"voice_instructions": obj.get("voice_instructions"),
|
112
|
+
"filters": AnnotationFilters.from_dict(obj["filters"]) if obj.get("filters") is not None else None
|
113
|
+
})
|
114
|
+
# store additional fields in additional_properties
|
115
|
+
for _key in obj.keys():
|
116
|
+
if _key not in cls.__properties:
|
117
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
118
|
+
|
119
|
+
return _obj
|
120
|
+
|
121
|
+
|
@@ -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
|
|
@@ -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,16 +81,16 @@ 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:
|
@@ -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:
|