stadiamaps 3.1.0__py3-none-any.whl → 3.2.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 +8 -2
- stadiamaps/api/geocoding_api.py +384 -101
- stadiamaps/api/geospatial_api.py +13 -11
- stadiamaps/api/routing_api.py +46 -39
- stadiamaps/api_client.py +22 -11
- stadiamaps/configuration.py +19 -5
- stadiamaps/exceptions.py +1 -1
- stadiamaps/models/__init__.py +7 -1
- stadiamaps/models/access.py +1 -1
- stadiamaps/models/admin_region.py +1 -1
- stadiamaps/models/administrative.py +1 -1
- stadiamaps/models/auto_costing_options.py +1 -1
- stadiamaps/models/base_costing_options.py +1 -1
- stadiamaps/models/base_trace_request.py +5 -5
- stadiamaps/models/bicycle_costing_options.py +1 -1
- stadiamaps/models/bike_network.py +1 -1
- stadiamaps/models/bulk_request.py +141 -0
- stadiamaps/models/bulk_search_request_inner.py +141 -0
- stadiamaps/models/bulk_search_response.py +109 -0
- 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 +5 -5
- 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 +1 -1
- 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 +1 -1
- stadiamaps/models/height_response.py +1 -1
- stadiamaps/models/highway_classification.py +1 -1
- stadiamaps/models/intersecting_edge.py +1 -1
- stadiamaps/models/isochrone_costing_model.py +8 -1
- stadiamaps/models/isochrone_feature.py +1 -1
- stadiamaps/models/isochrone_properties.py +1 -1
- stadiamaps/models/isochrone_request.py +1 -1
- stadiamaps/models/isochrone_response.py +1 -1
- 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 +1 -1
- stadiamaps/models/low_speed_vehicle_costing_options.py +1 -1
- stadiamaps/models/maneuver_sign.py +1 -1
- stadiamaps/models/maneuver_sign_element.py +1 -1
- stadiamaps/models/map_match_costing_model.py +8 -2
- stadiamaps/models/map_match_request.py +5 -5
- stadiamaps/models/map_match_route_response.py +1 -1
- 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 +5 -5
- stadiamaps/models/matrix_response.py +2 -2
- 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 +5 -5
- stadiamaps/models/node_id.py +1 -1
- stadiamaps/models/node_type.py +1 -1
- stadiamaps/models/optimized_route_request.py +5 -5
- stadiamaps/models/pedestrian_costing_options.py +1 -1
- stadiamaps/models/pelias_geo_json_feature.py +3 -5
- stadiamaps/models/pelias_geo_json_properties.py +2 -2
- 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 +1 -1
- stadiamaps/models/pelias_source.py +1 -1
- stadiamaps/models/restrictions.py +1 -1
- stadiamaps/models/road_class.py +1 -1
- stadiamaps/models/route_leg.py +2 -2
- stadiamaps/models/route_maneuver.py +1 -1
- stadiamaps/models/route_request.py +5 -5
- stadiamaps/models/route_response.py +1 -1
- stadiamaps/models/route_response_alternates_inner.py +1 -1
- stadiamaps/models/route_summary.py +1 -1
- stadiamaps/models/route_trip.py +3 -3
- 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_bulk_query.py +117 -0
- stadiamaps/models/search_bulk_request.py +141 -0
- stadiamaps/models/search_query.py +134 -0
- stadiamaps/models/search_structured_bulk_query.py +117 -0
- stadiamaps/models/search_structured_query.py +148 -0
- 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 +1 -1
- stadiamaps/models/trace_attributes_request.py +5 -5
- stadiamaps/models/trace_attributes_response.py +3 -3
- stadiamaps/models/trace_edge.py +1 -1
- 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.1.0.dist-info → stadiamaps-3.2.0.dist-info}/METADATA +1 -1
- stadiamaps-3.2.0.dist-info/RECORD +138 -0
- {stadiamaps-3.1.0.dist-info → stadiamaps-3.2.0.dist-info}/WHEEL +1 -1
- stadiamaps-3.1.0.dist-info/RECORD +0 -130
- {stadiamaps-3.1.0.dist-info → stadiamaps-3.2.0.dist-info}/LICENSE.txt +0 -0
- {stadiamaps-3.1.0.dist-info → stadiamaps-3.2.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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -39,8 +39,8 @@ class MapMatchRequest(BaseModel):
|
|
39
39
|
costing: MapMatchCostingModel
|
40
40
|
costing_options: Optional[CostingOptions] = None
|
41
41
|
shape_match: Optional[StrictStr] = Field(default=None, description="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`.")
|
42
|
-
units: Optional[DistanceUnit] =
|
43
|
-
language: Optional[ValhallaLanguages] =
|
42
|
+
units: Optional[DistanceUnit] = DistanceUnit.KM
|
43
|
+
language: Optional[ValhallaLanguages] = ValhallaLanguages.EN_MINUS_US
|
44
44
|
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.")
|
45
45
|
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
46
|
durations: Optional[StrictInt] = Field(default=None, description="A list of durations (in seconds) between each successive pair of points in a polyline.")
|
@@ -147,8 +147,8 @@ class MapMatchRequest(BaseModel):
|
|
147
147
|
"costing": obj.get("costing"),
|
148
148
|
"costing_options": CostingOptions.from_dict(obj["costing_options"]) if obj.get("costing_options") is not None else None,
|
149
149
|
"shape_match": obj.get("shape_match"),
|
150
|
-
"units": obj.get("units"),
|
151
|
-
"language": obj.get("language"),
|
150
|
+
"units": obj.get("units") if obj.get("units") is not None else DistanceUnit.KM,
|
151
|
+
"language": obj.get("language") if obj.get("language") is not None else ValhallaLanguages.EN_MINUS_US,
|
152
152
|
"directions_type": obj.get("directions_type") if obj.get("directions_type") is not None else 'instructions',
|
153
153
|
"begin_time": obj.get("begin_time"),
|
154
154
|
"durations": obj.get("durations"),
|
@@ -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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -33,8 +33,8 @@ class MatrixRequest(BaseModel):
|
|
33
33
|
"""
|
34
34
|
MatrixRequest
|
35
35
|
""" # noqa: E501
|
36
|
-
units: Optional[DistanceUnit] =
|
37
|
-
language: Optional[ValhallaLanguages] =
|
36
|
+
units: Optional[DistanceUnit] = DistanceUnit.KM
|
37
|
+
language: Optional[ValhallaLanguages] = ValhallaLanguages.EN_MINUS_US
|
38
38
|
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.")
|
39
39
|
id: Optional[StrictStr] = Field(default=None, description="An identifier to disambiguate requests (echoed by the server).")
|
40
40
|
sources: Annotated[List[MatrixWaypoint], Field(min_length=1)] = Field(description="The list of starting locations")
|
@@ -130,8 +130,8 @@ class MatrixRequest(BaseModel):
|
|
130
130
|
return cls.model_validate(obj)
|
131
131
|
|
132
132
|
_obj = cls.model_validate({
|
133
|
-
"units": obj.get("units"),
|
134
|
-
"language": obj.get("language"),
|
133
|
+
"units": obj.get("units") if obj.get("units") is not None else DistanceUnit.KM,
|
134
|
+
"language": obj.get("language") if obj.get("language") is not None else ValhallaLanguages.EN_MINUS_US,
|
135
135
|
"directions_type": obj.get("directions_type") if obj.get("directions_type") is not None else 'instructions',
|
136
136
|
"id": obj.get("id"),
|
137
137
|
"sources": [MatrixWaypoint.from_dict(_item) for _item in obj["sources"]] if obj.get("sources") is not None else 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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -137,7 +137,7 @@ class MatrixResponse(BaseModel):
|
|
137
137
|
for _item in obj["sources_to_targets"]
|
138
138
|
] if obj.get("sources_to_targets") is not None else None,
|
139
139
|
"warnings": [Warning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None,
|
140
|
-
"units": obj.get("units")
|
140
|
+
"units": obj.get("units") if obj.get("units") is not None else ValhallaLongUnits.KILOMETERS
|
141
141
|
})
|
142
142
|
# store additional fields in additional_properties
|
143
143
|
for _key in obj.keys():
|
@@ -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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -33,8 +33,8 @@ class NearestRoadsRequest(BaseModel):
|
|
33
33
|
"""
|
34
34
|
NearestRoadsRequest
|
35
35
|
""" # noqa: E501
|
36
|
-
units: Optional[DistanceUnit] =
|
37
|
-
language: Optional[ValhallaLanguages] =
|
36
|
+
units: Optional[DistanceUnit] = DistanceUnit.KM
|
37
|
+
language: Optional[ValhallaLanguages] = ValhallaLanguages.EN_MINUS_US
|
38
38
|
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.")
|
39
39
|
locations: Annotated[List[Coordinate], Field(min_length=1)]
|
40
40
|
costing: Optional[CostingModel] = None
|
@@ -121,8 +121,8 @@ class NearestRoadsRequest(BaseModel):
|
|
121
121
|
return cls.model_validate(obj)
|
122
122
|
|
123
123
|
_obj = cls.model_validate({
|
124
|
-
"units": obj.get("units"),
|
125
|
-
"language": obj.get("language"),
|
124
|
+
"units": obj.get("units") if obj.get("units") is not None else DistanceUnit.KM,
|
125
|
+
"language": obj.get("language") if obj.get("language") is not None else ValhallaLanguages.EN_MINUS_US,
|
126
126
|
"directions_type": obj.get("directions_type") if obj.get("directions_type") is not None else 'instructions',
|
127
127
|
"locations": [Coordinate.from_dict(_item) for _item in obj["locations"]] if obj.get("locations") is not None else None,
|
128
128
|
"costing": obj.get("costing"),
|
stadiamaps/models/node_id.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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
stadiamaps/models/node_type.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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -33,8 +33,8 @@ class OptimizedRouteRequest(BaseModel):
|
|
33
33
|
"""
|
34
34
|
OptimizedRouteRequest
|
35
35
|
""" # noqa: E501
|
36
|
-
units: Optional[DistanceUnit] =
|
37
|
-
language: Optional[ValhallaLanguages] =
|
36
|
+
units: Optional[DistanceUnit] = DistanceUnit.KM
|
37
|
+
language: Optional[ValhallaLanguages] = ValhallaLanguages.EN_MINUS_US
|
38
38
|
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.")
|
39
39
|
id: Optional[StrictStr] = Field(default=None, description="An identifier to disambiguate requests (echoed by the server).")
|
40
40
|
locations: Annotated[List[Coordinate], Field(min_length=3)] = Field(description="The list of locations. The first and last are assumed to be the start and end points, and all intermediate points are locations that you want to visit along the way.")
|
@@ -121,8 +121,8 @@ class OptimizedRouteRequest(BaseModel):
|
|
121
121
|
return cls.model_validate(obj)
|
122
122
|
|
123
123
|
_obj = cls.model_validate({
|
124
|
-
"units": obj.get("units"),
|
125
|
-
"language": obj.get("language"),
|
124
|
+
"units": obj.get("units") if obj.get("units") is not None else DistanceUnit.KM,
|
125
|
+
"language": obj.get("language") if obj.get("language") is not None else ValhallaLanguages.EN_MINUS_US,
|
126
126
|
"directions_type": obj.get("directions_type") if obj.get("directions_type") is not None else 'instructions',
|
127
127
|
"id": obj.get("id"),
|
128
128
|
"locations": [Coordinate.from_dict(_item) for _item in obj["locations"]] if obj.get("locations") is not None else 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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -34,9 +34,8 @@ class PeliasGeoJSONFeature(BaseModel):
|
|
34
34
|
geometry: GeoJSONPoint
|
35
35
|
properties: Optional[PeliasGeoJSONProperties] = None
|
36
36
|
bbox: Optional[Annotated[List[Union[StrictFloat, StrictInt]], Field(min_length=4, max_length=4)]] = Field(default=None, description="An array of 4 floating point numbers representing the (W, S, E, N) extremes of the features found.")
|
37
|
-
id: Optional[StrictStr] = None
|
38
37
|
additional_properties: Dict[str, Any] = {}
|
39
|
-
__properties: ClassVar[List[str]] = ["type", "geometry", "properties", "bbox"
|
38
|
+
__properties: ClassVar[List[str]] = ["type", "geometry", "properties", "bbox"]
|
40
39
|
|
41
40
|
@field_validator('type')
|
42
41
|
def type_validate_enum(cls, value):
|
@@ -112,8 +111,7 @@ class PeliasGeoJSONFeature(BaseModel):
|
|
112
111
|
"type": obj.get("type"),
|
113
112
|
"geometry": GeoJSONPoint.from_dict(obj["geometry"]) if obj.get("geometry") is not None else None,
|
114
113
|
"properties": PeliasGeoJSONProperties.from_dict(obj["properties"]) if obj.get("properties") is not None else None,
|
115
|
-
"bbox": obj.get("bbox")
|
116
|
-
"id": obj.get("id")
|
114
|
+
"bbox": obj.get("bbox")
|
117
115
|
})
|
118
116
|
# store additional fields in additional_properties
|
119
117
|
for _key in obj.keys():
|
@@ -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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -29,7 +29,7 @@ class PeliasGeoJSONProperties(BaseModel):
|
|
29
29
|
"""
|
30
30
|
PeliasGeoJSONProperties
|
31
31
|
""" # noqa: E501
|
32
|
-
gid: Optional[StrictStr] = Field(default=None, description="A scoped GID for this result. This can be passed to the place endpoint. Note that these are not always stable. For
|
32
|
+
gid: Optional[StrictStr] = Field(default=None, description="A scoped GID for this result. This can be passed to the place endpoint. Note that these are not always stable. For Geonames and Who's on First, these are usually stable, but for other sources like OSM, no stability is guaranteed.")
|
33
33
|
source_id: Optional[StrictStr] = Field(default=None, description="An ID referencing the original data source (specified via source) for the result. These IDs are specific to the source that they originated from. For example, in the case of OSM, these typically look like way/123 or point/123.")
|
34
34
|
label: Optional[StrictStr] = Field(default=None, description="A full, human-readable label. However, you may not necessarily want to use this; be sure to read the docs for name, locality, and region before making a decision. This field is mostly localized. The order of components is generally locally correct (ex: for an address in South Korea, the house number appears after the street name). However, components will use a request language equivalent if one exists (ex: Seoul instead of 서울 if lang=en).")
|
35
35
|
layer: Optional[PeliasLayer] = 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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
stadiamaps/models/road_class.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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
stadiamaps/models/route_leg.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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -33,7 +33,7 @@ class RouteLeg(BaseModel):
|
|
33
33
|
maneuvers: Annotated[List[RouteManeuver], Field(min_length=1)]
|
34
34
|
shape: StrictStr = Field(description="An encoded polyline (https://developers.google.com/maps/documentation/utilities/polylinealgorithm) with 6 digits of decimal precision.")
|
35
35
|
summary: RouteSummary
|
36
|
-
elevation_interval: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The sampling distance between elevation values along the route. This echoes the request parameter having the same name.")
|
36
|
+
elevation_interval: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The sampling distance between elevation values along the route. This echoes the request parameter having the same name (converted to `units` if necessary).")
|
37
37
|
elevation: Optional[List[Union[StrictFloat, StrictInt]]] = Field(default=None, description="An array of elevation values sampled every `elevation_interval`. Units are either metric or imperial depending on the value of `units`.")
|
38
38
|
additional_properties: Dict[str, Any] = {}
|
39
39
|
__properties: ClassVar[List[str]] = ["maneuvers", "shape", "summary", "elevation_interval", "elevation"]
|
@@ -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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -33,8 +33,8 @@ class RouteRequest(BaseModel):
|
|
33
33
|
"""
|
34
34
|
RouteRequest
|
35
35
|
""" # noqa: E501
|
36
|
-
units: Optional[DistanceUnit] =
|
37
|
-
language: Optional[ValhallaLanguages] =
|
36
|
+
units: Optional[DistanceUnit] = DistanceUnit.KM
|
37
|
+
language: Optional[ValhallaLanguages] = ValhallaLanguages.EN_MINUS_US
|
38
38
|
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.")
|
39
39
|
id: Optional[StrictStr] = Field(default=None, description="An identifier to disambiguate requests (echoed by the server).")
|
40
40
|
locations: Annotated[List[RoutingWaypoint], Field(min_length=2)]
|
@@ -133,8 +133,8 @@ class RouteRequest(BaseModel):
|
|
133
133
|
return cls.model_validate(obj)
|
134
134
|
|
135
135
|
_obj = cls.model_validate({
|
136
|
-
"units": obj.get("units"),
|
137
|
-
"language": obj.get("language"),
|
136
|
+
"units": obj.get("units") if obj.get("units") is not None else DistanceUnit.KM,
|
137
|
+
"language": obj.get("language") if obj.get("language") is not None else ValhallaLanguages.EN_MINUS_US,
|
138
138
|
"directions_type": obj.get("directions_type") if obj.get("directions_type") is not None else 'instructions',
|
139
139
|
"id": obj.get("id"),
|
140
140
|
"locations": [RoutingWaypoint.from_dict(_item) for _item in obj["locations"]] if obj.get("locations") is not None else 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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
stadiamaps/models/route_trip.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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -119,8 +119,8 @@ class RouteTrip(BaseModel):
|
|
119
119
|
_obj = cls.model_validate({
|
120
120
|
"status": obj.get("status"),
|
121
121
|
"status_message": obj.get("status_message"),
|
122
|
-
"units": obj.get("units"),
|
123
|
-
"language": obj.get("language"),
|
122
|
+
"units": obj.get("units") if obj.get("units") is not None else ValhallaLongUnits.KILOMETERS,
|
123
|
+
"language": obj.get("language") if obj.get("language") is not None else ValhallaLanguages.EN_MINUS_US,
|
124
124
|
"locations": [RoutingResponseWaypoint.from_dict(_item) for _item in obj["locations"]] if obj.get("locations") is not None else None,
|
125
125
|
"legs": [RouteLeg.from_dict(_item) for _item in obj["legs"]] if obj.get("legs") is not None else None,
|
126
126
|
"summary": RouteSummary.from_dict(obj["summary"]) if obj.get("summary") is not None else 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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
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: 6.
|
8
|
+
The version of the OpenAPI document: 6.6.2
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|