stadiamaps 4.0.0__py3-none-any.whl → 5.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 +11 -11
- stadiamaps/api/geocoding_api.py +128 -116
- stadiamaps/api/geospatial_api.py +7 -3
- stadiamaps/api/routing_api.py +22 -8
- stadiamaps/api_client.py +14 -5
- stadiamaps/configuration.py +156 -40
- stadiamaps/exceptions.py +1 -1
- stadiamaps/models/__init__.py +10 -10
- stadiamaps/models/access.py +1 -1
- stadiamaps/models/admin_region.py +1 -1
- stadiamaps/models/administrative.py +1 -1
- stadiamaps/models/annotation_filters.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 +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 +4 -4
- 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 +4 -4
- 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/extended_directions_options.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/{pelias_response.py → geocode_response.py} +8 -8
- stadiamaps/models/{pelias_geo_json_feature.py → geocoding_geo_json_feature.py} +8 -8
- stadiamaps/models/{pelias_geo_json_properties.py → geocoding_geo_json_properties.py} +40 -14
- stadiamaps/models/{pelias_geo_json_properties_addendum.py → geocoding_geo_json_properties_addendum.py} +7 -7
- stadiamaps/models/{pelias_geo_json_properties_addendum_osm.py → geocoding_geo_json_properties_addendum_osm.py} +5 -5
- stadiamaps/models/{pelias_layer.py → geocoding_layer.py} +3 -3
- stadiamaps/models/geocoding_object.py +1 -1
- stadiamaps/models/{pelias_source.py → geocoding_source.py} +4 -3
- 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 +1 -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 +1 -1
- stadiamaps/models/map_match_request.py +10 -8
- 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 +4 -4
- stadiamaps/models/matrix_response.py +4 -4
- 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 +10 -8
- stadiamaps/models/osrm_admin.py +1 -1
- stadiamaps/models/osrm_annotation.py +1 -1
- stadiamaps/models/osrm_banner_component.py +1 -1
- stadiamaps/models/osrm_banner_content.py +1 -1
- stadiamaps/models/osrm_banner_instruction.py +1 -1
- stadiamaps/models/osrm_base_api_response.py +1 -1
- stadiamaps/models/osrm_guidance_modifier.py +1 -1
- stadiamaps/models/osrm_intersection.py +1 -1
- stadiamaps/models/osrm_lane.py +1 -1
- stadiamaps/models/osrm_route.py +1 -1
- stadiamaps/models/osrm_route_leg.py +1 -1
- stadiamaps/models/osrm_route_response.py +1 -1
- stadiamaps/models/osrm_route_step.py +1 -1
- stadiamaps/models/osrm_speed_limit.py +1 -1
- stadiamaps/models/osrm_step_maneuver.py +1 -1
- stadiamaps/models/osrm_via_waypoint.py +1 -1
- stadiamaps/models/osrm_voice_instruction.py +1 -1
- stadiamaps/models/osrm_waypoint.py +1 -1
- stadiamaps/models/pedestrian_costing_options.py +1 -1
- stadiamaps/models/restrictions.py +1 -1
- stadiamaps/models/road_class.py +1 -1
- stadiamaps/models/route200_response.py +1 -1
- stadiamaps/models/route_leg.py +1 -1
- 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 +7 -7
- stadiamaps/models/{valhalla_languages.py → routing_languages.py} +4 -4
- stadiamaps/models/{valhalla_long_units.py → routing_long_units.py} +4 -4
- 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 +6 -6
- stadiamaps/models/search_structured_query.py +6 -6
- 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 +10 -8
- stadiamaps/models/trace_attributes_response.py +4 -4
- 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/warning.py +1 -1
- stadiamaps/rest.py +2 -2
- {stadiamaps-4.0.0.dist-info → stadiamaps-5.0.0.dist-info}/METADATA +14 -6
- stadiamaps-5.0.0.dist-info/RECORD +157 -0
- {stadiamaps-4.0.0.dist-info → stadiamaps-5.0.0.dist-info}/WHEEL +1 -1
- stadiamaps/models/pelias_response_geocoding.py +0 -89
- stadiamaps/models/route_response_trip.py +0 -117
- stadiamaps/models/trace_attributes_response_all_of.py +0 -96
- stadiamaps-4.0.0.dist-info/RECORD +0 -160
- {stadiamaps-4.0.0.dist-info → stadiamaps-5.0.0.dist-info}/LICENSE.txt +0 -0
- {stadiamaps-4.0.0.dist-info → stadiamaps-5.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: 8.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -23,9 +23,9 @@ from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
23
23
|
from typing_extensions import Annotated
|
24
24
|
from stadiamaps.models.admin_region import AdminRegion
|
25
25
|
from stadiamaps.models.matched_point import MatchedPoint
|
26
|
+
from stadiamaps.models.routing_long_units import RoutingLongUnits
|
26
27
|
from stadiamaps.models.trace_attributes_base_response import TraceAttributesBaseResponse
|
27
28
|
from stadiamaps.models.trace_edge import TraceEdge
|
28
|
-
from stadiamaps.models.valhalla_long_units import ValhallaLongUnits
|
29
29
|
from typing import Optional, Set
|
30
30
|
from typing_extensions import Self
|
31
31
|
|
@@ -40,7 +40,7 @@ class TraceAttributesResponse(BaseModel):
|
|
40
40
|
shape: Optional[StrictStr] = Field(default=None, description="The encoded polyline (https://developers.google.com/maps/documentation/utilities/polylinealgorithm) of the matched path.")
|
41
41
|
confidence_score: Optional[Union[Annotated[float, Field(le=1, strict=True, ge=0)], Annotated[int, Field(le=1, strict=True, ge=0)]]] = None
|
42
42
|
id: Optional[StrictStr] = Field(default=None, description="An identifier to disambiguate requests (echoed by the server).")
|
43
|
-
units: Optional[
|
43
|
+
units: Optional[RoutingLongUnits] = RoutingLongUnits.KILOMETERS
|
44
44
|
alternate_paths: Optional[List[TraceAttributesBaseResponse]] = Field(default=None, description="Alternate paths, if any, that were not classified as the best match.")
|
45
45
|
additional_properties: Dict[str, Any] = {}
|
46
46
|
__properties: ClassVar[List[str]] = ["edges", "admins", "matched_points", "osm_changeset", "shape", "confidence_score", "id", "units", "alternate_paths"]
|
@@ -143,7 +143,7 @@ class TraceAttributesResponse(BaseModel):
|
|
143
143
|
"shape": obj.get("shape"),
|
144
144
|
"confidence_score": obj.get("confidence_score"),
|
145
145
|
"id": obj.get("id"),
|
146
|
-
"units": obj.get("units") if obj.get("units") is not None else
|
146
|
+
"units": obj.get("units") if obj.get("units") is not None else RoutingLongUnits.KILOMETERS,
|
147
147
|
"alternate_paths": [TraceAttributesBaseResponse.from_dict(_item) for _item in obj["alternate_paths"]] if obj.get("alternate_paths") is not None else None
|
148
148
|
})
|
149
149
|
# store additional fields in additional_properties
|
stadiamaps/models/trace_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: 8.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
stadiamaps/models/travel_mode.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: 8.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: 8.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: 8.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
stadiamaps/models/tz_response.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: 8.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
stadiamaps/models/warning.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: 8.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
stadiamaps/rest.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: 8.0.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -226,7 +226,7 @@ class RESTClientObject:
|
|
226
226
|
headers=headers,
|
227
227
|
preload_content=False
|
228
228
|
)
|
229
|
-
elif headers['Content-Type']
|
229
|
+
elif headers['Content-Type'].startswith('text/') and isinstance(body, bool):
|
230
230
|
request_body = "true" if body else "false"
|
231
231
|
r = self.pool_manager.request(
|
232
232
|
method,
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.2
|
2
2
|
Name: stadiamaps
|
3
|
-
Version:
|
3
|
+
Version: 5.0.0
|
4
4
|
Summary: Stadia Maps Geospatial APIs
|
5
5
|
Home-page: https://github.com/stadiamaps/stadiamaps-api-py
|
6
6
|
Author: Stadia Maps Support
|
@@ -8,10 +8,18 @@ Author-email: support@stadiamaps.com
|
|
8
8
|
Keywords: OpenAPI,OpenAPI-Generator,Stadia Maps Geospatial APIs
|
9
9
|
Description-Content-Type: text/markdown
|
10
10
|
License-File: LICENSE.txt
|
11
|
-
Requires-Dist: urllib3
|
12
|
-
Requires-Dist: python-dateutil
|
13
|
-
Requires-Dist: pydantic
|
14
|
-
Requires-Dist: typing-extensions
|
11
|
+
Requires-Dist: urllib3<3.0.0,>=1.25.3
|
12
|
+
Requires-Dist: python-dateutil>=2.8.2
|
13
|
+
Requires-Dist: pydantic>=2
|
14
|
+
Requires-Dist: typing-extensions>=4.7.1
|
15
|
+
Dynamic: author
|
16
|
+
Dynamic: author-email
|
17
|
+
Dynamic: description
|
18
|
+
Dynamic: description-content-type
|
19
|
+
Dynamic: home-page
|
20
|
+
Dynamic: keywords
|
21
|
+
Dynamic: requires-dist
|
22
|
+
Dynamic: summary
|
15
23
|
|
16
24
|
|
17
25
|
# Stadia Maps Python API Client
|
@@ -0,0 +1,157 @@
|
|
1
|
+
stadiamaps/__init__.py,sha256=bx7l8TsKAqxsskmUUzzAD6LFnI5Brp2sO7mJh3OKBOE,8872
|
2
|
+
stadiamaps/api_client.py,sha256=RrNgPMRwFdsTjR-61CUd_8yT4ZVOsjVCjc1ak0KNpJo,27490
|
3
|
+
stadiamaps/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
4
|
+
stadiamaps/configuration.py,sha256=HKA7sdPmyRk2mDQPWAKyzEdeIO2-Xd5P2PFLX490MW8,18719
|
5
|
+
stadiamaps/exceptions.py,sha256=UPhdiVloi-P_piWhq6xgV0aOQbXq_yERgU5eNFoVg44,6019
|
6
|
+
stadiamaps/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
|
+
stadiamaps/rest.py,sha256=t7t92pwv1Jo0dxAkWWg5Nyl9Yl8WsKD6voGp1BvOV4s,9455
|
8
|
+
stadiamaps/api/__init__.py,sha256=NRdfWLDRL2TYgITiS6K4OX8lmmVVmf9-_yyMe2_6hTs,208
|
9
|
+
stadiamaps/api/geocoding_api.py,sha256=s724_tPUFyq5uk3Wt1s3utiOPsLhHxR7SuItxDe_pKs,165739
|
10
|
+
stadiamaps/api/geospatial_api.py,sha256=49BLrkOnSKBJlQb9yZDC6M1Ridwv4MeMeNMR8O0Q9no,29585
|
11
|
+
stadiamaps/api/routing_api.py,sha256=r_0Ik8S7-UqUNlbcuzzNT9nPorvtpwySZM5IlSlFaCc,81120
|
12
|
+
stadiamaps/models/__init__.py,sha256=bR1naU_qNWJTYtpD8PZ6DDrdKpNB_t6gK34_lWLAWFM,8204
|
13
|
+
stadiamaps/models/access.py,sha256=yRpnYvjKaRLuM0KDq5Oi7hdBNJdDRhtEDWf9tlF6Ja4,4179
|
14
|
+
stadiamaps/models/admin_region.py,sha256=3XpXGkVIMAoTB9xGtRgt0qi_Wil4Qi1vA3zC8ChzhYM,3793
|
15
|
+
stadiamaps/models/administrative.py,sha256=qZBVI9ad8IviinMYqo-CYndpv9lYpB1RbYXjhSsa35w,3842
|
16
|
+
stadiamaps/models/annotation_filters.py,sha256=DziZVsQcrNPh5J-TcacqSeQNiW1d7fRV3M384i_jkAU,4314
|
17
|
+
stadiamaps/models/auto_costing_options.py,sha256=ZwxRhXRmzIYoVoArSJZkclldX6OVdpHWJ-VBk94GfKc,12767
|
18
|
+
stadiamaps/models/auto_costing_options_all_of.py,sha256=JSiFHNEljR4if13lP3jeJc8ny_gSfVzyQZErdt6LaBM,7083
|
19
|
+
stadiamaps/models/base_costing_options.py,sha256=KeGbxY5zeRuqr3IsNIy3KDZjV5lRI17i3rej9xxUewg,7721
|
20
|
+
stadiamaps/models/base_trace_request.py,sha256=do6Jxh0JTnbpHLsJai1kuEBmdf-oTUfqX5qCZfzygg4,7258
|
21
|
+
stadiamaps/models/bicycle_costing_options.py,sha256=ZnrnXXfdaNIWFPyYmywVuPvV3DypAfOZ_1VgQTbAin0,11693
|
22
|
+
stadiamaps/models/bicycle_costing_options_all_of.py,sha256=AhDT4CYE3wRA0j1EXvBiK_Bevw2mN-WQA4AnAb7uM5A,5904
|
23
|
+
stadiamaps/models/bike_network.py,sha256=glRZhnMXuzCCBxrRLBj8Wd-wC925PZ6tdsLnq8o_4go,3432
|
24
|
+
stadiamaps/models/bulk_request.py,sha256=GvB8M7cyBMkphR448M72iH_bKPp7hgyGt8XWGCxSudw,3897
|
25
|
+
stadiamaps/models/bulk_request_query.py,sha256=9qEI3_tJUvor4J2WkhZcYebPUZ1NkNLnNQDSRjsJFNo,5439
|
26
|
+
stadiamaps/models/bulk_search_request_inner.py,sha256=nKDAb78ku8Vw-BWL0JRlYHcAYXWfaa-Q4qNwpYwk9w4,5686
|
27
|
+
stadiamaps/models/bulk_search_response.py,sha256=vd7ZJty6B_kRC7Yd3PfrEON5m9mR0XCvYqdwaHewnU0,3750
|
28
|
+
stadiamaps/models/contour.py,sha256=t4zAvccKwuPrXcB6ETdeVhdWTZc_AcrNGvB1nAVL6Ms,3744
|
29
|
+
stadiamaps/models/coordinate.py,sha256=S9VRyp7Enw8IKUVv84ix_t6IaUqNkVBcDIR_G3hdGeg,3525
|
30
|
+
stadiamaps/models/costing_model.py,sha256=rdzx4-n_dVCMzKFiNUV5Ff44WDMSdhV-1J4jrDRfelg,1332
|
31
|
+
stadiamaps/models/costing_options.py,sha256=bft-e6UStU3fF5kWbgQpWlycPqG-fg6lJ6PBezlNxeM,6813
|
32
|
+
stadiamaps/models/directions_options.py,sha256=95CACuf6FUvCjbK-9Ammd1IvMyJi2Y2ZFlPV1wZwocI,4325
|
33
|
+
stadiamaps/models/distance_unit.py,sha256=R3WNWUi1We43fDxsyvr6sS8NsHxSRJfU0wQytJtPrDc,780
|
34
|
+
stadiamaps/models/edge_sign.py,sha256=NZ7EXsbv0PgbdU2ajJKRFqSxuGGwBvd0sKhXzwfd19M,3491
|
35
|
+
stadiamaps/models/edge_use.py,sha256=d18EgdUr9ESFlk-ehvSgNe6-uQw12G19EbfbY8tjPTA,1663
|
36
|
+
stadiamaps/models/end_node.py,sha256=BMdCaIM69eSwvvFeJr1r18fpDtJSEq7rOffrOqiohz8,4775
|
37
|
+
stadiamaps/models/extended_directions_options.py,sha256=sIgJsROFBKpx5LzMchg_0ugVecKUfiJVeNgtHOAEHDg,4887
|
38
|
+
stadiamaps/models/geo_attributes.py,sha256=nUl3xhcll7F-bxnBA7BVLDQ8POxML4ckCQLzj6nyHE8,4213
|
39
|
+
stadiamaps/models/geo_json_geometry.py,sha256=j6ctj76suKXnK1-5qo8Z8C2Mt9mp-XyB07TjOdvQuOc,6201
|
40
|
+
stadiamaps/models/geo_json_geometry_base.py,sha256=wysL62av0VUFeBY8HjgVc_KV7c3mdRgtpJJjkosfgpw,3532
|
41
|
+
stadiamaps/models/geo_json_line_string.py,sha256=cDKOwvATlQ7-CHLqpiW3-B6MHwpKhIS2G0uYLpyRq0k,3773
|
42
|
+
stadiamaps/models/geo_json_line_string_all_of.py,sha256=_vHsj7n-c1QEAoL9M8MAWj7Q1wv4AtqpG0lXHluRYzA,2663
|
43
|
+
stadiamaps/models/geo_json_point.py,sha256=0Mkz2iwv46k5jMpAvdUW3wtxaOXCcj9Mr4id8iByI7w,3747
|
44
|
+
stadiamaps/models/geo_json_point_all_of.py,sha256=Md1qYy2GAtnsy_8IwXrYXlNc5e_RBAfjTSBKzrrDUn8,2614
|
45
|
+
stadiamaps/models/geo_json_polygon.py,sha256=ktzcWX9KDmSH9Mi31GToDvlmHTExmPl7EPajt7TSkak,3767
|
46
|
+
stadiamaps/models/geo_json_polygon_all_of.py,sha256=lOsNbT0B-2d_wJTwOIQt7gny_aldHzT9cMC5XoIETtE,2648
|
47
|
+
stadiamaps/models/geocode_response.py,sha256=av3bvCDA6jZJYOzcam3lS9rh7w6tvcMZh1WAU06X7fQ,4424
|
48
|
+
stadiamaps/models/geocoding_geo_json_feature.py,sha256=RnLfPfDzSH9cEUI2uKzJxi1GjqhnSuhf21HQsdcOn9E,4619
|
49
|
+
stadiamaps/models/geocoding_geo_json_properties.py,sha256=8I5WbUgZZg6pp0lyhoQ5B_9Jytidf6drbqHCP6eVWFI,10181
|
50
|
+
stadiamaps/models/geocoding_geo_json_properties_addendum.py,sha256=0ZBaBdNND_JnyrKUlEPr5XfMa7NZpQHoFP9ekqOVkmc,3735
|
51
|
+
stadiamaps/models/geocoding_geo_json_properties_addendum_osm.py,sha256=BO-DTrHxsBmxGD9Bt8mGlKWz8_eDBd_A-SC5BLP7J6M,3531
|
52
|
+
stadiamaps/models/geocoding_layer.py,sha256=IG0NYYV8yqnwQa-w9yPB4XhYEI6a8qnq_OAu6lu4lJo,2528
|
53
|
+
stadiamaps/models/geocoding_object.py,sha256=M6K4ED0ssI0UvWb9n1YGgryvHmM9Ilcg9dc_nb1-0UY,4217
|
54
|
+
stadiamaps/models/geocoding_source.py,sha256=yW6bOgQOwA3yzFVfGKdx7DMQPA0IMTvkgK5pjcwFkfQ,1059
|
55
|
+
stadiamaps/models/height_request.py,sha256=qyO3bAT3fhcwTFC-Yif4SLAioC9rXeqYLTLGokRt1zE,5968
|
56
|
+
stadiamaps/models/height_response.py,sha256=TKR8KZ6PvwVmMYynsFLOtyyl6IbDqUlsqvCF0sh_Ndk,5110
|
57
|
+
stadiamaps/models/highway_classification.py,sha256=xx8aLL7KLVfBaTpC_3xh_yUgTPS5FPzb0dmiV9wM2eM,6219
|
58
|
+
stadiamaps/models/intersecting_edge.py,sha256=IIJ1vQpQpNdEmJ3Bgo9uErkXYu3Uya7hF86gQSgGo_0,4608
|
59
|
+
stadiamaps/models/isochrone_costing_model.py,sha256=WDurkB4V4iUHjRMrnvFhDRpqBECUzaPCblZiAOeObvE,1043
|
60
|
+
stadiamaps/models/isochrone_feature.py,sha256=S9Kn5iOLb4zRI5qTu1EBNFJgVDPFTI4ucUab3R3YIes,3996
|
61
|
+
stadiamaps/models/isochrone_properties.py,sha256=AcR-TEl6qbNTRr7g649hMUFPom1xIxqbT16-9hK_LCQ,4235
|
62
|
+
stadiamaps/models/isochrone_request.py,sha256=Ug5CJalxNJvf20gJIv4TtIlKEU_Dx3J9MzskamwTq9M,6758
|
63
|
+
stadiamaps/models/isochrone_response.py,sha256=G6cxfRrjhtWbTqyewtFVII5phBUSCKW1asIVr6zVGHc,4069
|
64
|
+
stadiamaps/models/locate_detailed_edge.py,sha256=0_1FXRBlFPO7Ez5Pkgbgs0UdXk38jZtHmxhiWn5W3Ms,10839
|
65
|
+
stadiamaps/models/locate_edge.py,sha256=pMBzf98J7_Ob3oeBPgHEfsyFU0GMWxxxm5fJIskC9i4,6553
|
66
|
+
stadiamaps/models/locate_edge_info.py,sha256=oAaMzATfG7eOZrPqK02iDwKlQCGjs9x4Z-4Vftmd0Rg,4350
|
67
|
+
stadiamaps/models/locate_node.py,sha256=9uDkAYxFO2NmUMUZTmYYad_UNGv98LVlWDC7egE--Hk,5948
|
68
|
+
stadiamaps/models/locate_node_all_of.py,sha256=CIpyV5ssH034gmC-fHlshAOZkolUy7LYejgHLqHeMyI,4800
|
69
|
+
stadiamaps/models/locate_object.py,sha256=j_2zoXdHHeDbH-uqHQEq8xzSpR-8TpKoOpABVe3o4J8,5113
|
70
|
+
stadiamaps/models/low_speed_vehicle_costing_options.py,sha256=QI41x-R6N5Ueor_EsIc36rKNs55P0y0MTdmCKGdHU2Q,9820
|
71
|
+
stadiamaps/models/maneuver_sign.py,sha256=SvhYdpa7XLcTU-R8aye0nG5JhfTbCYJmluSkj6Hthp0,6388
|
72
|
+
stadiamaps/models/maneuver_sign_element.py,sha256=CxWYoP2LcX5UmJH8JX0In0FKl2uEVicvFWBQP6q8lpc,3711
|
73
|
+
stadiamaps/models/map_match_costing_model.py,sha256=igJtVBlTl9mm5VnCB0NjaACbnr5byJd9XfhfHerKwp0,1040
|
74
|
+
stadiamaps/models/map_match_request.py,sha256=LZ5nUKXc9R2CZp9Jr9bPPD1HCbpCo3_98tvnPipBO_A,11771
|
75
|
+
stadiamaps/models/map_match_request_all_of.py,sha256=4I-A8Lvt59Gu-xMvfsHIe-GcCfO_qLab6uCKAXqTasM,4291
|
76
|
+
stadiamaps/models/map_match_route_response.py,sha256=QwkqiK1hhindhXuWQrDHBPFaa1r5Ng6OrfskYR1DfFU,4404
|
77
|
+
stadiamaps/models/map_match_route_response_all_of.py,sha256=WOWvtLLp801qQM4aJoKR-MTuL6e1nJ3C7FrTRPJ4gxI,2649
|
78
|
+
stadiamaps/models/map_match_trace_options.py,sha256=G0vz-jN_8_heNsNzwnZwVC5COUCLi1stsXNZWFV6yy4,4609
|
79
|
+
stadiamaps/models/map_match_waypoint.py,sha256=VIRpqwHoIl89yB3fS0gw6dOckqNOn8y5aaPMOTaXQ6I,4836
|
80
|
+
stadiamaps/models/map_match_waypoint_all_of.py,sha256=wLt5dB0JfKtZOqRcNoFZod2k-EJ3OcBGh_nhTjFA2gk,2793
|
81
|
+
stadiamaps/models/matched_point.py,sha256=Idqn2mZW1MVgO0-XDjKOw2t-se6hHYQXJCYOd1TH_v8,5417
|
82
|
+
stadiamaps/models/matrix_costing_model.py,sha256=pQ4N3uLzVgKbQ10xvjP1NRoitKK2wzgIv3NExzdxTbw,1034
|
83
|
+
stadiamaps/models/matrix_distance.py,sha256=H1gF4d00kZ8ZhOZxGc5C3nccufAHYHIGYlAebV--njw,4571
|
84
|
+
stadiamaps/models/matrix_request.py,sha256=YRZcwyWMlslY93uCXGbYFSMRSXaF6ezqQvXu4c8fstE,6858
|
85
|
+
stadiamaps/models/matrix_response.py,sha256=2groorSc6WqZnKCzGtpykWhO5u64rWtie5PUq57UYXg,6854
|
86
|
+
stadiamaps/models/matrix_waypoint.py,sha256=JudnFYNWFyreWQHFEgU_npFkPJWrqH8D9HKGiQyRqJw,3878
|
87
|
+
stadiamaps/models/motor_scooter_costing_options.py,sha256=GzzsZWI6Qp2mUJG7WOxyAth3OBBgTVKPhW_k_x1ghyE,13848
|
88
|
+
stadiamaps/models/motor_scooter_costing_options_all_of.py,sha256=3XuHRpUB_VvAro0XZwCbq1ExJbEMnB5cm6iagIruuP4,3525
|
89
|
+
stadiamaps/models/motorcycle_costing_options.py,sha256=ZAtP2YwJXfJFbR-t_IYcfgCSpyWngzvN2rzhRstZQZQ,13304
|
90
|
+
stadiamaps/models/motorcycle_costing_options_all_of.py,sha256=NJQD3ez643xF0r9Dmix88gGrPLzrbgJNBPz9il6G9HM,3479
|
91
|
+
stadiamaps/models/nearest_roads_request.py,sha256=IPzCTImjiR8JQrtRGpfilradgpDgFM3xDhWoo-RdQrM,5747
|
92
|
+
stadiamaps/models/node_id.py,sha256=Z34wD1FjNzH2z6elA3gxZj4PFjkg8F9SA922O48MMig,3367
|
93
|
+
stadiamaps/models/node_type.py,sha256=fBYIdoCQbSZM5LZAfaXZfhQ3f3BV1wc277hZtfcTpeo,1052
|
94
|
+
stadiamaps/models/optimized_route_request.py,sha256=_kPAoED-8dhxy5SaOybBubOF7fjj9TcDACNlLZ8pq6Q,8620
|
95
|
+
stadiamaps/models/osrm_admin.py,sha256=lNziKzjOZsX6gQOutlV73xVdj0VkuIudp_S-PsS5n9k,3460
|
96
|
+
stadiamaps/models/osrm_annotation.py,sha256=EzTlTVUBhEXwOxnBc_c1BzouvuvYp1jnA8NnlpzuRnc,4423
|
97
|
+
stadiamaps/models/osrm_banner_component.py,sha256=FL5cWBdz5wFozQj5AW8-uAL5K0II-hG3BCn71CpBrvc,3647
|
98
|
+
stadiamaps/models/osrm_banner_content.py,sha256=83x1LhkH3H3NpL_V-tR_WzlJE3XHEPh71fWmYzqewfA,5100
|
99
|
+
stadiamaps/models/osrm_banner_instruction.py,sha256=sN8nswDqX9ba4nTpwceZK3t_sk8cXtxXWreiTpXScow,4157
|
100
|
+
stadiamaps/models/osrm_base_api_response.py,sha256=Er1vqXJf7KXzAJ5Bfcg0VK1ETlQTpudcmgfNFBlaUZ4,3944
|
101
|
+
stadiamaps/models/osrm_guidance_modifier.py,sha256=QJypRWT3LBDc7_FzY7c4lzFmMlzlNTBG5oK5lU9edTU,1062
|
102
|
+
stadiamaps/models/osrm_intersection.py,sha256=EWevNfttBsk5ag3DXu1Lu0pqMvJVAScZGdsRWWkCHJo,7294
|
103
|
+
stadiamaps/models/osrm_lane.py,sha256=T7lFJeo0ljo7ODA76BvU06RpsDuoB3jUGPvosiaZpbU,3964
|
104
|
+
stadiamaps/models/osrm_route.py,sha256=XjQqE53roZZ_-qprwitXuvXetTxdgEKz4cC3hhgz2PQ,4525
|
105
|
+
stadiamaps/models/osrm_route_leg.py,sha256=JOCiHjYlP9uBd483H3Jg1tHUua1JDrGkmF7xCwDe2vo,6308
|
106
|
+
stadiamaps/models/osrm_route_response.py,sha256=A6JpEXYUFRvJKnRJSR_pf5AjtQoHWsSN6CgNvtkx4zY,5084
|
107
|
+
stadiamaps/models/osrm_route_step.py,sha256=MLeRUtWH14rwITOEqT5xzJXmXNFiqLgbPIDeCN3nPF4,9491
|
108
|
+
stadiamaps/models/osrm_speed_limit.py,sha256=4jW2ZUvOkkPVMkEGHEhvQr30bikLegsxeBPWziNBpQo,4071
|
109
|
+
stadiamaps/models/osrm_step_maneuver.py,sha256=qe1CyyNQrKoGKHc_MC3PFvNCrrQUPHMDBRVNif7E5iA,5253
|
110
|
+
stadiamaps/models/osrm_via_waypoint.py,sha256=G70wd9qDq68uMeld9sjD-Yg1ajQPjvptpwad8O6lIpQ,3653
|
111
|
+
stadiamaps/models/osrm_voice_instruction.py,sha256=Jf70ek8bEJ1okwDDCPYn_xpXNDJi9kDyaRBgo4KSMvM,3887
|
112
|
+
stadiamaps/models/osrm_waypoint.py,sha256=7krl96R2os2s5lC4YKnrT2HSYRG9baePl8fQQCH4emw,3696
|
113
|
+
stadiamaps/models/pedestrian_costing_options.py,sha256=u5RY91h-_rPlX-4sXucU6EoWVIGqhqbgvNBeF5zM4cE,9210
|
114
|
+
stadiamaps/models/restrictions.py,sha256=vQAP06wMNw-qZR4lHSQ0aKRDdMCwIcS4r0f0A4Czx-0,4203
|
115
|
+
stadiamaps/models/road_class.py,sha256=bFRUOt6fIZaqNBNEzoNIWy01a8Rly9PGztJfDqt3SQA,1002
|
116
|
+
stadiamaps/models/route200_response.py,sha256=W-sWkIsPllR7esHaE__tE_Jfx1aeJrJmKrnRD5VpoWU,5405
|
117
|
+
stadiamaps/models/route_leg.py,sha256=AYSWumla1vquAT4Py-0CblqWLmGmsYUgX7Wo-XXjSD0,4961
|
118
|
+
stadiamaps/models/route_maneuver.py,sha256=4iJTTUSM9ycyJ8mnGne0gjpyyVdtQnF2YYue5QK2hoU,12445
|
119
|
+
stadiamaps/models/route_request.py,sha256=wI0uuX9imQ0oXnkxBtW6EtAbO4TPDTLxPbAIuL6Qlt0,10325
|
120
|
+
stadiamaps/models/route_response.py,sha256=77VUVXrVcD8vppaGhm9ifuN69H78fEV6JF1ZEr4q0YE,4232
|
121
|
+
stadiamaps/models/route_response_alternates_inner.py,sha256=KBc4yCspLe45SwHWEWN1ITdIt9jt7IbAnAMkrDsSfMQ,3448
|
122
|
+
stadiamaps/models/route_summary.py,sha256=QAWfNx_euJg81rl4GQMWsWyF8hlq1sgoOpQHnbcq-Q0,4117
|
123
|
+
stadiamaps/models/route_trip.py,sha256=BZYb5fE8khZZhQiCrOT8cmVR35m45FHcg75y9Y7f5iw,5250
|
124
|
+
stadiamaps/models/routing_languages.py,sha256=sA5_4cFMCS5fZBzVfNdzNl64oi2UAfwbFHJlLM3dz0U,1548
|
125
|
+
stadiamaps/models/routing_long_units.py,sha256=yElax7yB4XRU4USvRD1daXV08LGyi4bVhJUxZPVrQ7w,814
|
126
|
+
stadiamaps/models/routing_response_waypoint.py,sha256=62tdphB81d4VtY-j1A6VmWOmMvdNXjbAjpiZshSi-Ak,4778
|
127
|
+
stadiamaps/models/routing_response_waypoint_all_of.py,sha256=2u_wmV3NfKkz1rl_DDAbc_6rqMdamOXCFA3XSmh22sA,2756
|
128
|
+
stadiamaps/models/routing_waypoint.py,sha256=2PEbvS_ZOMdChVWr_KHnQprwah8KLTpYFJluuc6LlIo,9513
|
129
|
+
stadiamaps/models/routing_waypoint_all_of.py,sha256=v7BryWQd_LrFAaEXhHKQBU1OBiF4WmCRN8FJstZUFzU,7320
|
130
|
+
stadiamaps/models/routing_waypoint_all_of_search_filter.py,sha256=bk-N11emDh4EqCaX4vOHQBvfg2yveyMELQDEAa8woAU,4506
|
131
|
+
stadiamaps/models/search_bulk_query.py,sha256=Fv3SYqwdlVMeXnqhqSLRW1Qte0k_NxV8JI1QkxsR2zI,3842
|
132
|
+
stadiamaps/models/search_bulk_request.py,sha256=xFoH4wfaXA2uoN-qd-B01Wu7bQ-MoNq0vA6ERSrvZ4Q,5646
|
133
|
+
stadiamaps/models/search_query.py,sha256=_oJGMAEkzErMAk2kU2TeyMN4EHciZ67JiuEdt4mzE4k,8773
|
134
|
+
stadiamaps/models/search_structured_bulk_query.py,sha256=VKNzx5en5CWoRXneiApWUYjLb_UxRUilQQdr_AKs33A,3945
|
135
|
+
stadiamaps/models/search_structured_query.py,sha256=bwUV7QguLxEGColZ7Le35KpmJi_VTrd1Wil9WF4tOvQ,10315
|
136
|
+
stadiamaps/models/simple_routing_waypoint.py,sha256=XL9Y4goM4gOAEFCwIJSDC4b03p-00Pe6bp6uT-OU7pc,4502
|
137
|
+
stadiamaps/models/simple_routing_waypoint_all_of.py,sha256=mFHVKuKWz3AuOxfqyGA5D_pai-RCu4Msdmmgf7fwm7A,3385
|
138
|
+
stadiamaps/models/speeds.py,sha256=94lfM_dw3VJR92aGfqz2nZMON-3KT0K0DGVVO4KhWS4,4550
|
139
|
+
stadiamaps/models/trace_attribute_filter_options.py,sha256=6ALJ1TJwbhQqN9fHiW9IvY3_yP8nIHy1IWfg27Kqa80,3813
|
140
|
+
stadiamaps/models/trace_attribute_key.py,sha256=rB4eFY-TyF6RfyAQXG9mosY07nrnvCv_g7tNVFsaCig,4323
|
141
|
+
stadiamaps/models/trace_attributes_base_response.py,sha256=puZwtd-5S31o-pIZ6gn4W4tE13R8cKLDgc6-F-Ww8Ag,6202
|
142
|
+
stadiamaps/models/trace_attributes_request.py,sha256=R_onQGv6TqWTgu0LpPneABjeomSoaqBDz29yiolJCwY,8848
|
143
|
+
stadiamaps/models/trace_attributes_request_all_of.py,sha256=ClTna0geZtUYYJHbVf96BwchKQ8sbf9PwWqKtSNXkyM,2967
|
144
|
+
stadiamaps/models/trace_attributes_request_all_of_filters.py,sha256=GM0OdKUGHcmDECtjbmifzLwS-SnbZWSWzn1qGWgia0o,3374
|
145
|
+
stadiamaps/models/trace_attributes_response.py,sha256=rUCYESmGFy8s2TN0r4jl13O-FJ9zaI2Ici_JJgMTTgY,7431
|
146
|
+
stadiamaps/models/trace_edge.py,sha256=HSP34qUI6PiaywSkm_mEGESr9caSyieMuedvDIYYDoE,14690
|
147
|
+
stadiamaps/models/travel_mode.py,sha256=7PHtmywbuecWkc5rVxl68M04MUjnckIuTjHYklIvgAU,844
|
148
|
+
stadiamaps/models/traversability.py,sha256=FJUTyBWxdHAGy0twIKgxA6KWZ6SzTcIHYlK6_JWH2IQ,860
|
149
|
+
stadiamaps/models/truck_costing_options.py,sha256=oFVcyPgsSWiCZ4J0hEtZnNYIW1VgklHAqgmsRDpZVfs,13669
|
150
|
+
stadiamaps/models/truck_costing_options_all_of.py,sha256=WJDDKZ8rNATbzi8EUoceT7qDzK_kTyu_MQuh45M7Uy0,3804
|
151
|
+
stadiamaps/models/tz_response.py,sha256=PTPnSlVfrvl5bI25G9A6BKctS2Jb877_kx9DmmOi9yU,3969
|
152
|
+
stadiamaps/models/warning.py,sha256=TUNPzhOuyG-XEY1IYqdV-QJFNret1c4bIXvGmCD3UjY,3206
|
153
|
+
stadiamaps-5.0.0.dist-info/LICENSE.txt,sha256=vs0H95Mi3Rf1pSskD7rv4KbXLYCSYZ6cqZcFmek0hOg,1518
|
154
|
+
stadiamaps-5.0.0.dist-info/METADATA,sha256=fr9BeZYsLP7Wh-BPima_CRI4zHI7z1SNOwT3GBCMQQc,2629
|
155
|
+
stadiamaps-5.0.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
156
|
+
stadiamaps-5.0.0.dist-info/top_level.txt,sha256=dFHpcPo1v2Ajmc74F29BleqU5u8MLB0fgTnNYJIatx0,11
|
157
|
+
stadiamaps-5.0.0.dist-info/RECORD,,
|
@@ -1,89 +0,0 @@
|
|
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. # noqa: E501
|
7
|
-
|
8
|
-
The version of the OpenAPI document: 5.0.6
|
9
|
-
Contact: support@stadiamaps.com
|
10
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
-
|
12
|
-
Do not edit the class manually.
|
13
|
-
"""
|
14
|
-
|
15
|
-
|
16
|
-
from __future__ import annotations
|
17
|
-
import pprint
|
18
|
-
import re # noqa: F401
|
19
|
-
import json
|
20
|
-
|
21
|
-
|
22
|
-
from typing import Any, Dict, List, Optional
|
23
|
-
from pydantic import BaseModel, Field, StrictStr, conlist
|
24
|
-
|
25
|
-
class PeliasResponseGeocoding(BaseModel):
|
26
|
-
"""
|
27
|
-
PeliasResponseGeocoding
|
28
|
-
"""
|
29
|
-
attribution: Optional[StrictStr] = Field(None, description="A URL containing attribution information. If you are not using Stadia Maps and our standard attribution already for your basemaps, you must include this attribution link somewhere in your website/app.")
|
30
|
-
query: Optional[Dict[str, Any]] = Field(None, description="Technical details of the query. This is most useful for debugging during development. See the full example for the list of properties; these should be self-explanatory, so we don't enumerate them in the spec.")
|
31
|
-
warnings: Optional[conlist(StrictStr)] = Field(None, description="An array of non-critical warnings. This is normally for informational/debugging purposes and not a serious problem.")
|
32
|
-
errors: Optional[conlist(StrictStr)] = Field(None, description="An array of more serious errors (for example, omitting a required parameter). Don’t ignore these.")
|
33
|
-
additional_properties: Dict[str, Any] = {}
|
34
|
-
__properties = ["attribution", "query", "warnings", "errors"]
|
35
|
-
|
36
|
-
class Config:
|
37
|
-
"""Pydantic configuration"""
|
38
|
-
allow_population_by_field_name = True
|
39
|
-
validate_assignment = True
|
40
|
-
|
41
|
-
def to_str(self) -> str:
|
42
|
-
"""Returns the string representation of the model using alias"""
|
43
|
-
return pprint.pformat(self.dict(by_alias=True))
|
44
|
-
|
45
|
-
def to_json(self) -> str:
|
46
|
-
"""Returns the JSON representation of the model using alias"""
|
47
|
-
return json.dumps(self.to_dict())
|
48
|
-
|
49
|
-
@classmethod
|
50
|
-
def from_json(cls, json_str: str) -> PeliasResponseGeocoding:
|
51
|
-
"""Create an instance of PeliasResponseGeocoding from a JSON string"""
|
52
|
-
return cls.from_dict(json.loads(json_str))
|
53
|
-
|
54
|
-
def to_dict(self):
|
55
|
-
"""Returns the dictionary representation of the model using alias"""
|
56
|
-
_dict = self.dict(by_alias=True,
|
57
|
-
exclude={
|
58
|
-
"additional_properties"
|
59
|
-
},
|
60
|
-
exclude_none=True)
|
61
|
-
# puts key-value pairs in additional_properties in the top level
|
62
|
-
if self.additional_properties is not None:
|
63
|
-
for _key, _value in self.additional_properties.items():
|
64
|
-
_dict[_key] = _value
|
65
|
-
|
66
|
-
return _dict
|
67
|
-
|
68
|
-
@classmethod
|
69
|
-
def from_dict(cls, obj: dict) -> PeliasResponseGeocoding:
|
70
|
-
"""Create an instance of PeliasResponseGeocoding from a dict"""
|
71
|
-
if obj is None:
|
72
|
-
return None
|
73
|
-
|
74
|
-
if not isinstance(obj, dict):
|
75
|
-
return PeliasResponseGeocoding.parse_obj(obj)
|
76
|
-
|
77
|
-
_obj = PeliasResponseGeocoding.parse_obj({
|
78
|
-
"attribution": obj.get("attribution"),
|
79
|
-
"query": obj.get("query"),
|
80
|
-
"warnings": obj.get("warnings"),
|
81
|
-
"errors": obj.get("errors")
|
82
|
-
})
|
83
|
-
# store additional fields in additional_properties
|
84
|
-
for _key in obj.keys():
|
85
|
-
if _key not in cls.__properties:
|
86
|
-
_obj.additional_properties[_key] = obj.get(_key)
|
87
|
-
|
88
|
-
return _obj
|
89
|
-
|
@@ -1,117 +0,0 @@
|
|
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. # noqa: E501
|
7
|
-
|
8
|
-
The version of the OpenAPI document: 5.0.6
|
9
|
-
Contact: support@stadiamaps.com
|
10
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
-
|
12
|
-
Do not edit the class manually.
|
13
|
-
"""
|
14
|
-
|
15
|
-
|
16
|
-
from __future__ import annotations
|
17
|
-
import pprint
|
18
|
-
import re # noqa: F401
|
19
|
-
import json
|
20
|
-
|
21
|
-
|
22
|
-
from typing import List
|
23
|
-
from pydantic import BaseModel, Field, StrictInt, StrictStr, conlist
|
24
|
-
from stadiamaps.models.route_leg import RouteLeg
|
25
|
-
from stadiamaps.models.route_summary import RouteSummary
|
26
|
-
from stadiamaps.models.routing_response_waypoint import RoutingResponseWaypoint
|
27
|
-
from stadiamaps.models.valhalla_languages import ValhallaLanguages
|
28
|
-
from stadiamaps.models.valhalla_long_units import ValhallaLongUnits
|
29
|
-
|
30
|
-
class RouteResponseTrip(BaseModel):
|
31
|
-
"""
|
32
|
-
RouteResponseTrip
|
33
|
-
"""
|
34
|
-
status: StrictInt = Field(..., description="The response status code")
|
35
|
-
status_message: StrictStr = Field(..., description="The response status message")
|
36
|
-
units: ValhallaLongUnits = Field(...)
|
37
|
-
language: ValhallaLanguages = Field(...)
|
38
|
-
locations: conlist(RoutingResponseWaypoint) = Field(...)
|
39
|
-
legs: conlist(RouteLeg) = Field(...)
|
40
|
-
summary: RouteSummary = Field(...)
|
41
|
-
additional_properties: Dict[str, Any] = {}
|
42
|
-
__properties = ["status", "status_message", "units", "language", "locations", "legs", "summary"]
|
43
|
-
|
44
|
-
class Config:
|
45
|
-
"""Pydantic configuration"""
|
46
|
-
allow_population_by_field_name = True
|
47
|
-
validate_assignment = True
|
48
|
-
|
49
|
-
def to_str(self) -> str:
|
50
|
-
"""Returns the string representation of the model using alias"""
|
51
|
-
return pprint.pformat(self.dict(by_alias=True))
|
52
|
-
|
53
|
-
def to_json(self) -> str:
|
54
|
-
"""Returns the JSON representation of the model using alias"""
|
55
|
-
return json.dumps(self.to_dict())
|
56
|
-
|
57
|
-
@classmethod
|
58
|
-
def from_json(cls, json_str: str) -> RouteResponseTrip:
|
59
|
-
"""Create an instance of RouteResponseTrip from a JSON string"""
|
60
|
-
return cls.from_dict(json.loads(json_str))
|
61
|
-
|
62
|
-
def to_dict(self):
|
63
|
-
"""Returns the dictionary representation of the model using alias"""
|
64
|
-
_dict = self.dict(by_alias=True,
|
65
|
-
exclude={
|
66
|
-
"additional_properties"
|
67
|
-
},
|
68
|
-
exclude_none=True)
|
69
|
-
# override the default output from pydantic by calling `to_dict()` of each item in locations (list)
|
70
|
-
_items = []
|
71
|
-
if self.locations:
|
72
|
-
for _item in self.locations:
|
73
|
-
if _item:
|
74
|
-
_items.append(_item.to_dict())
|
75
|
-
_dict['locations'] = _items
|
76
|
-
# override the default output from pydantic by calling `to_dict()` of each item in legs (list)
|
77
|
-
_items = []
|
78
|
-
if self.legs:
|
79
|
-
for _item in self.legs:
|
80
|
-
if _item:
|
81
|
-
_items.append(_item.to_dict())
|
82
|
-
_dict['legs'] = _items
|
83
|
-
# override the default output from pydantic by calling `to_dict()` of summary
|
84
|
-
if self.summary:
|
85
|
-
_dict['summary'] = self.summary.to_dict()
|
86
|
-
# puts key-value pairs in additional_properties in the top level
|
87
|
-
if self.additional_properties is not None:
|
88
|
-
for _key, _value in self.additional_properties.items():
|
89
|
-
_dict[_key] = _value
|
90
|
-
|
91
|
-
return _dict
|
92
|
-
|
93
|
-
@classmethod
|
94
|
-
def from_dict(cls, obj: dict) -> RouteResponseTrip:
|
95
|
-
"""Create an instance of RouteResponseTrip from a dict"""
|
96
|
-
if obj is None:
|
97
|
-
return None
|
98
|
-
|
99
|
-
if not isinstance(obj, dict):
|
100
|
-
return RouteResponseTrip.parse_obj(obj)
|
101
|
-
|
102
|
-
_obj = RouteResponseTrip.parse_obj({
|
103
|
-
"status": obj.get("status"),
|
104
|
-
"status_message": obj.get("status_message"),
|
105
|
-
"units": obj.get("units"),
|
106
|
-
"language": obj.get("language"),
|
107
|
-
"locations": [RoutingResponseWaypoint.from_dict(_item) for _item in obj.get("locations")] if obj.get("locations") is not None else None,
|
108
|
-
"legs": [RouteLeg.from_dict(_item) for _item in obj.get("legs")] if obj.get("legs") is not None else None,
|
109
|
-
"summary": RouteSummary.from_dict(obj.get("summary")) if obj.get("summary") is not None else None
|
110
|
-
})
|
111
|
-
# store additional fields in additional_properties
|
112
|
-
for _key in obj.keys():
|
113
|
-
if _key not in cls.__properties:
|
114
|
-
_obj.additional_properties[_key] = obj.get(_key)
|
115
|
-
|
116
|
-
return _obj
|
117
|
-
|
@@ -1,96 +0,0 @@
|
|
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. # noqa: E501
|
7
|
-
|
8
|
-
The version of the OpenAPI document: 5.0.6
|
9
|
-
Contact: support@stadiamaps.com
|
10
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
-
|
12
|
-
Do not edit the class manually.
|
13
|
-
"""
|
14
|
-
|
15
|
-
|
16
|
-
from __future__ import annotations
|
17
|
-
import pprint
|
18
|
-
import re # noqa: F401
|
19
|
-
import json
|
20
|
-
|
21
|
-
|
22
|
-
from typing import List, Optional
|
23
|
-
from pydantic import BaseModel, Field, StrictStr, conlist
|
24
|
-
from stadiamaps.models.trace_attributes_base_response import TraceAttributesBaseResponse
|
25
|
-
from stadiamaps.models.valhalla_long_units import ValhallaLongUnits
|
26
|
-
|
27
|
-
class TraceAttributesResponseAllOf(BaseModel):
|
28
|
-
"""
|
29
|
-
TraceAttributesResponseAllOf
|
30
|
-
"""
|
31
|
-
id: Optional[StrictStr] = Field(None, description="An identifier to disambiguate requests (echoed by the server).")
|
32
|
-
units: Optional[ValhallaLongUnits] = None
|
33
|
-
alternate_paths: Optional[conlist(TraceAttributesBaseResponse)] = Field(None, description="Alternate paths, if any, that were not classified as the best match.")
|
34
|
-
additional_properties: Dict[str, Any] = {}
|
35
|
-
__properties = ["id", "units", "alternate_paths"]
|
36
|
-
|
37
|
-
class Config:
|
38
|
-
"""Pydantic configuration"""
|
39
|
-
allow_population_by_field_name = True
|
40
|
-
validate_assignment = True
|
41
|
-
|
42
|
-
def to_str(self) -> str:
|
43
|
-
"""Returns the string representation of the model using alias"""
|
44
|
-
return pprint.pformat(self.dict(by_alias=True))
|
45
|
-
|
46
|
-
def to_json(self) -> str:
|
47
|
-
"""Returns the JSON representation of the model using alias"""
|
48
|
-
return json.dumps(self.to_dict())
|
49
|
-
|
50
|
-
@classmethod
|
51
|
-
def from_json(cls, json_str: str) -> TraceAttributesResponseAllOf:
|
52
|
-
"""Create an instance of TraceAttributesResponseAllOf from a JSON string"""
|
53
|
-
return cls.from_dict(json.loads(json_str))
|
54
|
-
|
55
|
-
def to_dict(self):
|
56
|
-
"""Returns the dictionary representation of the model using alias"""
|
57
|
-
_dict = self.dict(by_alias=True,
|
58
|
-
exclude={
|
59
|
-
"additional_properties"
|
60
|
-
},
|
61
|
-
exclude_none=True)
|
62
|
-
# override the default output from pydantic by calling `to_dict()` of each item in alternate_paths (list)
|
63
|
-
_items = []
|
64
|
-
if self.alternate_paths:
|
65
|
-
for _item in self.alternate_paths:
|
66
|
-
if _item:
|
67
|
-
_items.append(_item.to_dict())
|
68
|
-
_dict['alternate_paths'] = _items
|
69
|
-
# puts key-value pairs in additional_properties in the top level
|
70
|
-
if self.additional_properties is not None:
|
71
|
-
for _key, _value in self.additional_properties.items():
|
72
|
-
_dict[_key] = _value
|
73
|
-
|
74
|
-
return _dict
|
75
|
-
|
76
|
-
@classmethod
|
77
|
-
def from_dict(cls, obj: dict) -> TraceAttributesResponseAllOf:
|
78
|
-
"""Create an instance of TraceAttributesResponseAllOf from a dict"""
|
79
|
-
if obj is None:
|
80
|
-
return None
|
81
|
-
|
82
|
-
if not isinstance(obj, dict):
|
83
|
-
return TraceAttributesResponseAllOf.parse_obj(obj)
|
84
|
-
|
85
|
-
_obj = TraceAttributesResponseAllOf.parse_obj({
|
86
|
-
"id": obj.get("id"),
|
87
|
-
"units": obj.get("units"),
|
88
|
-
"alternate_paths": [TraceAttributesBaseResponse.from_dict(_item) for _item in obj.get("alternate_paths")] if obj.get("alternate_paths") is not None else None
|
89
|
-
})
|
90
|
-
# store additional fields in additional_properties
|
91
|
-
for _key in obj.keys():
|
92
|
-
if _key not in cls.__properties:
|
93
|
-
_obj.additional_properties[_key] = obj.get(_key)
|
94
|
-
|
95
|
-
return _obj
|
96
|
-
|