stadiamaps 6.3.0__py3-none-any.whl → 7.0.1__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 +2 -2
- stadiamaps/api/geocoding_api.py +525 -1
- stadiamaps/api/geospatial_api.py +1 -1
- stadiamaps/api/routing_api.py +1 -1
- stadiamaps/api_client.py +2 -2
- stadiamaps/configuration.py +10 -3
- stadiamaps/exceptions.py +1 -1
- stadiamaps/models/__init__.py +1 -1
- stadiamaps/models/access.py +1 -1
- stadiamaps/models/addendum_v2.py +1 -1
- stadiamaps/models/address_components_v2.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 +2 -2
- 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/context.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 +1 -1
- stadiamaps/models/extended_directions_options.py +1 -1
- stadiamaps/models/feature_properties_v2.py +1 -1
- stadiamaps/models/feature_properties_v2_properties.py +1 -1
- stadiamaps/models/foursquare_addendum.py +1 -1
- stadiamaps/models/geo_attributes.py +1 -1
- stadiamaps/models/geo_json_geometry_base.py +1 -1
- stadiamaps/models/geo_json_point.py +1 -1
- stadiamaps/models/geocode_response.py +1 -1
- stadiamaps/models/geocode_response_envelope_properties_v2.py +1 -1
- stadiamaps/models/geocoding_geo_json_feature.py +1 -1
- stadiamaps/models/geocoding_geo_json_properties.py +1 -1
- stadiamaps/models/geocoding_geo_json_properties_addendum.py +1 -1
- stadiamaps/models/geocoding_geo_json_properties_addendum_osm.py +1 -1
- stadiamaps/models/geocoding_layer.py +1 -1
- stadiamaps/models/geocoding_meta.py +1 -1
- stadiamaps/models/geocoding_object.py +1 -1
- stadiamaps/models/geocoding_source.py +1 -1
- stadiamaps/models/geonames_addendum.py +1 -1
- stadiamaps/models/height_request.py +2 -2
- 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/layer_id.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 +2 -2
- 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/match_type.py +2 -2
- 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 +1 -1
- stadiamaps/models/matrix_response.py +1 -1
- 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 +1 -1
- stadiamaps/models/node_id.py +1 -1
- stadiamaps/models/node_type.py +1 -1
- stadiamaps/models/open_street_map_addendum.py +1 -1
- stadiamaps/models/optimized_route_request.py +1 -1
- 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 +2 -2
- stadiamaps/models/osrm_route_leg.py +1 -1
- stadiamaps/models/osrm_route_response.py +1 -1
- stadiamaps/models/osrm_route_step.py +2 -2
- stadiamaps/models/osrm_speed_limit.py +1 -1
- stadiamaps/models/osrm_step_maneuver.py +3 -3
- 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/pedestrian_type.py +1 -1
- stadiamaps/models/point.py +1 -1
- stadiamaps/models/precision.py +1 -1
- stadiamaps/models/properties_v2.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 +3 -3
- stadiamaps/models/route_maneuver.py +1 -1
- stadiamaps/models/route_request.py +1 -1
- 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 +1 -1
- stadiamaps/models/routing_languages.py +1 -1
- stadiamaps/models/routing_long_units.py +1 -1
- 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/source_attribution.py +1 -1
- stadiamaps/models/source_id.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 +2 -2
- stadiamaps/models/trace_attributes_response.py +1 -1
- 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/models/whos_on_first_concordances.py +1 -1
- stadiamaps/models/wof_context.py +1 -1
- stadiamaps/models/wof_context_component.py +1 -1
- stadiamaps/rest.py +2 -1
- {stadiamaps-6.3.0.dist-info → stadiamaps-7.0.1.dist-info}/METADATA +4 -2
- stadiamaps-7.0.1.dist-info/RECORD +183 -0
- test/integration/test_gecoding.py +8 -0
- stadiamaps-6.3.0.dist-info/RECORD +0 -183
- {stadiamaps-6.3.0.dist-info → stadiamaps-7.0.1.dist-info}/WHEEL +0 -0
- {stadiamaps-6.3.0.dist-info → stadiamaps-7.0.1.dist-info}/licenses/LICENSE.txt +0 -0
- {stadiamaps-6.3.0.dist-info → stadiamaps-7.0.1.dist-info}/top_level.txt +0 -0
stadiamaps/__init__.py
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
9
9
|
|
10
|
-
The version of the OpenAPI document:
|
10
|
+
The version of the OpenAPI document: 10.0.1
|
11
11
|
Contact: support@stadiamaps.com
|
12
12
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
13
13
|
|
@@ -15,7 +15,7 @@
|
|
15
15
|
""" # noqa: E501
|
16
16
|
|
17
17
|
|
18
|
-
__version__ = "
|
18
|
+
__version__ = "7.0.1"
|
19
19
|
|
20
20
|
# import apis into sdk package
|
21
21
|
from stadiamaps.api.geocoding_api import GeocodingApi
|
stadiamaps/api/geocoding_api.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: 10.0.1
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -3916,3 +3916,527 @@ class GeocodingApi:
|
|
3916
3916
|
)
|
3917
3917
|
|
3918
3918
|
|
3919
|
+
|
3920
|
+
|
3921
|
+
@validate_call
|
3922
|
+
def search_v2(
|
3923
|
+
self,
|
3924
|
+
text: Annotated[StrictStr, Field(description="The text to search for (the start of an address, place name, etc.).")],
|
3925
|
+
focus_point_lat: Annotated[Optional[Union[Annotated[float, Field(le=90, strict=True, ge=-90)], Annotated[int, Field(le=90, strict=True, ge=-90)]]], Field(description="The latitude of a focus point. If provided (along with longitude), the search results should be more locally relevant.")] = None,
|
3926
|
+
focus_point_lon: Annotated[Optional[Union[Annotated[float, Field(le=180, strict=True, ge=-180)], Annotated[int, Field(le=180, strict=True, ge=-180)]]], Field(description="The longitude of a focus point. If provided (along with longitude), the search results should be more locally relevant.")] = None,
|
3927
|
+
layers: Annotated[Optional[List[LayerId]], Field(description="A list of layers to limit the search to.")] = None,
|
3928
|
+
sources: Annotated[Optional[List[SourceId]], Field(description="A list of sources to limit the search to.")] = None,
|
3929
|
+
boundary_gid: Annotated[Optional[StrictStr], Field(description="The GID of a region to limit the search to. Note: these are not stable for all datasets! For example, OSM features may be deleted and re-added with a new ID.")] = None,
|
3930
|
+
boundary_country: Annotated[Optional[List[StrictStr]], Field(description="A list of comma-separated country codes in ISO 3116-1 alpha-2 or alpha-3 format. The search will be limited to these countries.")] = None,
|
3931
|
+
boundary_rect_min_lat: Annotated[Optional[Union[Annotated[float, Field(le=90, strict=True, ge=-90)], Annotated[int, Field(le=90, strict=True, ge=-90)]]], Field(description="The minimum latitude component of a search bounding box. NOTE: Requires all other boundary.rect parameters to be specified.")] = None,
|
3932
|
+
boundary_rect_min_lon: Annotated[Optional[Union[Annotated[float, Field(le=180, strict=True, ge=-180)], Annotated[int, Field(le=180, strict=True, ge=-180)]]], Field(description="The minimum longitude component of a search bounding box. NOTE: Requires all other boundary.rect parameters to be specified.")] = None,
|
3933
|
+
boundary_rect_max_lat: Annotated[Optional[Union[Annotated[float, Field(le=90, strict=True, ge=-90)], Annotated[int, Field(le=90, strict=True, ge=-90)]]], Field(description="The maximum latitude component of a search bounding box. NOTE: Requires all other boundary.rect parameters to be specified.")] = None,
|
3934
|
+
boundary_rect_max_lon: Annotated[Optional[Union[Annotated[float, Field(le=180, strict=True, ge=-180)], Annotated[int, Field(le=180, strict=True, ge=-180)]]], Field(description="The maximum longitude component of a search bounding box. NOTE: Requires all other boundary.rect parameters to be specified.")] = None,
|
3935
|
+
boundary_circle_lat: Annotated[Optional[Union[Annotated[float, Field(le=90, strict=True, ge=-90)], Annotated[int, Field(le=90, strict=True, ge=-90)]]], Field(description="The latitude of the center of a circle to limit the search to. NOTE: Requires boundary.circle.lon.")] = None,
|
3936
|
+
boundary_circle_lon: Annotated[Optional[Union[Annotated[float, Field(le=180, strict=True, ge=-180)], Annotated[int, Field(le=180, strict=True, ge=-180)]]], Field(description="The longitude of the center of a circle to limit the search to. NOTE: Requires boundary.circle.lat.")] = None,
|
3937
|
+
boundary_circle_radius: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="The radius of the circle (in kilometers) to limit the search to. NOTE: Requires the other boundary.circle parameters to take effect. Defaults to 50km if unspecified.")] = None,
|
3938
|
+
size: Annotated[Optional[Annotated[int, Field(le=25, strict=True, ge=1)]], Field(description="The maximum number of items to return from a query.")] = None,
|
3939
|
+
lang: Annotated[Optional[StrictStr], Field(description="A BCP47 language tag which specifies a preference for localization of results. There is no default value, so place names will be returned as-is, which is usually in the local language. NOTE: The Accept-Language header is also respected, and many user agents will set it automatically.")] = None,
|
3940
|
+
_request_timeout: Union[
|
3941
|
+
None,
|
3942
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3943
|
+
Tuple[
|
3944
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3945
|
+
Annotated[StrictFloat, Field(gt=0)]
|
3946
|
+
]
|
3947
|
+
] = None,
|
3948
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3949
|
+
_content_type: Optional[StrictStr] = None,
|
3950
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3951
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3952
|
+
) -> GeocodeResponseEnvelopePropertiesV2:
|
3953
|
+
"""search_v2
|
3954
|
+
|
3955
|
+
|
3956
|
+
:param text: The text to search for (the start of an address, place name, etc.). (required)
|
3957
|
+
:type text: str
|
3958
|
+
:param focus_point_lat: The latitude of a focus point. If provided (along with longitude), the search results should be more locally relevant.
|
3959
|
+
:type focus_point_lat: float
|
3960
|
+
:param focus_point_lon: The longitude of a focus point. If provided (along with longitude), the search results should be more locally relevant.
|
3961
|
+
:type focus_point_lon: float
|
3962
|
+
:param layers: A list of layers to limit the search to.
|
3963
|
+
:type layers: List[LayerId]
|
3964
|
+
:param sources: A list of sources to limit the search to.
|
3965
|
+
:type sources: List[SourceId]
|
3966
|
+
:param boundary_gid: The GID of a region to limit the search to. Note: these are not stable for all datasets! For example, OSM features may be deleted and re-added with a new ID.
|
3967
|
+
:type boundary_gid: str
|
3968
|
+
:param boundary_country: A list of comma-separated country codes in ISO 3116-1 alpha-2 or alpha-3 format. The search will be limited to these countries.
|
3969
|
+
:type boundary_country: List[str]
|
3970
|
+
:param boundary_rect_min_lat: The minimum latitude component of a search bounding box. NOTE: Requires all other boundary.rect parameters to be specified.
|
3971
|
+
:type boundary_rect_min_lat: float
|
3972
|
+
:param boundary_rect_min_lon: The minimum longitude component of a search bounding box. NOTE: Requires all other boundary.rect parameters to be specified.
|
3973
|
+
:type boundary_rect_min_lon: float
|
3974
|
+
:param boundary_rect_max_lat: The maximum latitude component of a search bounding box. NOTE: Requires all other boundary.rect parameters to be specified.
|
3975
|
+
:type boundary_rect_max_lat: float
|
3976
|
+
:param boundary_rect_max_lon: The maximum longitude component of a search bounding box. NOTE: Requires all other boundary.rect parameters to be specified.
|
3977
|
+
:type boundary_rect_max_lon: float
|
3978
|
+
:param boundary_circle_lat: The latitude of the center of a circle to limit the search to. NOTE: Requires boundary.circle.lon.
|
3979
|
+
:type boundary_circle_lat: float
|
3980
|
+
:param boundary_circle_lon: The longitude of the center of a circle to limit the search to. NOTE: Requires boundary.circle.lat.
|
3981
|
+
:type boundary_circle_lon: float
|
3982
|
+
:param boundary_circle_radius: The radius of the circle (in kilometers) to limit the search to. NOTE: Requires the other boundary.circle parameters to take effect. Defaults to 50km if unspecified.
|
3983
|
+
:type boundary_circle_radius: int
|
3984
|
+
:param size: The maximum number of items to return from a query.
|
3985
|
+
:type size: int
|
3986
|
+
:param lang: A BCP47 language tag which specifies a preference for localization of results. There is no default value, so place names will be returned as-is, which is usually in the local language. NOTE: The Accept-Language header is also respected, and many user agents will set it automatically.
|
3987
|
+
:type lang: str
|
3988
|
+
:param _request_timeout: timeout setting for this request. If one
|
3989
|
+
number provided, it will be total request
|
3990
|
+
timeout. It can also be a pair (tuple) of
|
3991
|
+
(connection, read) timeouts.
|
3992
|
+
:type _request_timeout: int, tuple(int, int), optional
|
3993
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3994
|
+
request; this effectively ignores the
|
3995
|
+
authentication in the spec for a single request.
|
3996
|
+
:type _request_auth: dict, optional
|
3997
|
+
:param _content_type: force content-type for the request.
|
3998
|
+
:type _content_type: str, Optional
|
3999
|
+
:param _headers: set to override the headers for a single
|
4000
|
+
request; this effectively ignores the headers
|
4001
|
+
in the spec for a single request.
|
4002
|
+
:type _headers: dict, optional
|
4003
|
+
:param _host_index: set to override the host_index for a single
|
4004
|
+
request; this effectively ignores the host_index
|
4005
|
+
in the spec for a single request.
|
4006
|
+
:type _host_index: int, optional
|
4007
|
+
:return: Returns the result object.
|
4008
|
+
""" # noqa: E501
|
4009
|
+
|
4010
|
+
_param = self._search_v2_serialize(
|
4011
|
+
text=text,
|
4012
|
+
focus_point_lat=focus_point_lat,
|
4013
|
+
focus_point_lon=focus_point_lon,
|
4014
|
+
layers=layers,
|
4015
|
+
sources=sources,
|
4016
|
+
boundary_gid=boundary_gid,
|
4017
|
+
boundary_country=boundary_country,
|
4018
|
+
boundary_rect_min_lat=boundary_rect_min_lat,
|
4019
|
+
boundary_rect_min_lon=boundary_rect_min_lon,
|
4020
|
+
boundary_rect_max_lat=boundary_rect_max_lat,
|
4021
|
+
boundary_rect_max_lon=boundary_rect_max_lon,
|
4022
|
+
boundary_circle_lat=boundary_circle_lat,
|
4023
|
+
boundary_circle_lon=boundary_circle_lon,
|
4024
|
+
boundary_circle_radius=boundary_circle_radius,
|
4025
|
+
size=size,
|
4026
|
+
lang=lang,
|
4027
|
+
_request_auth=_request_auth,
|
4028
|
+
_content_type=_content_type,
|
4029
|
+
_headers=_headers,
|
4030
|
+
_host_index=_host_index
|
4031
|
+
)
|
4032
|
+
|
4033
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
4034
|
+
'200': "GeocodeResponseEnvelopePropertiesV2",
|
4035
|
+
'400': "GeocodeResponseEnvelopePropertiesV2",
|
4036
|
+
'500': "GeocodeResponseEnvelopePropertiesV2",
|
4037
|
+
}
|
4038
|
+
response_data = self.api_client.call_api(
|
4039
|
+
*_param,
|
4040
|
+
_request_timeout=_request_timeout
|
4041
|
+
)
|
4042
|
+
response_data.read()
|
4043
|
+
return self.api_client.response_deserialize(
|
4044
|
+
response_data=response_data,
|
4045
|
+
response_types_map=_response_types_map,
|
4046
|
+
).data
|
4047
|
+
|
4048
|
+
|
4049
|
+
@validate_call
|
4050
|
+
def search_v2_with_http_info(
|
4051
|
+
self,
|
4052
|
+
text: Annotated[StrictStr, Field(description="The text to search for (the start of an address, place name, etc.).")],
|
4053
|
+
focus_point_lat: Annotated[Optional[Union[Annotated[float, Field(le=90, strict=True, ge=-90)], Annotated[int, Field(le=90, strict=True, ge=-90)]]], Field(description="The latitude of a focus point. If provided (along with longitude), the search results should be more locally relevant.")] = None,
|
4054
|
+
focus_point_lon: Annotated[Optional[Union[Annotated[float, Field(le=180, strict=True, ge=-180)], Annotated[int, Field(le=180, strict=True, ge=-180)]]], Field(description="The longitude of a focus point. If provided (along with longitude), the search results should be more locally relevant.")] = None,
|
4055
|
+
layers: Annotated[Optional[List[LayerId]], Field(description="A list of layers to limit the search to.")] = None,
|
4056
|
+
sources: Annotated[Optional[List[SourceId]], Field(description="A list of sources to limit the search to.")] = None,
|
4057
|
+
boundary_gid: Annotated[Optional[StrictStr], Field(description="The GID of a region to limit the search to. Note: these are not stable for all datasets! For example, OSM features may be deleted and re-added with a new ID.")] = None,
|
4058
|
+
boundary_country: Annotated[Optional[List[StrictStr]], Field(description="A list of comma-separated country codes in ISO 3116-1 alpha-2 or alpha-3 format. The search will be limited to these countries.")] = None,
|
4059
|
+
boundary_rect_min_lat: Annotated[Optional[Union[Annotated[float, Field(le=90, strict=True, ge=-90)], Annotated[int, Field(le=90, strict=True, ge=-90)]]], Field(description="The minimum latitude component of a search bounding box. NOTE: Requires all other boundary.rect parameters to be specified.")] = None,
|
4060
|
+
boundary_rect_min_lon: Annotated[Optional[Union[Annotated[float, Field(le=180, strict=True, ge=-180)], Annotated[int, Field(le=180, strict=True, ge=-180)]]], Field(description="The minimum longitude component of a search bounding box. NOTE: Requires all other boundary.rect parameters to be specified.")] = None,
|
4061
|
+
boundary_rect_max_lat: Annotated[Optional[Union[Annotated[float, Field(le=90, strict=True, ge=-90)], Annotated[int, Field(le=90, strict=True, ge=-90)]]], Field(description="The maximum latitude component of a search bounding box. NOTE: Requires all other boundary.rect parameters to be specified.")] = None,
|
4062
|
+
boundary_rect_max_lon: Annotated[Optional[Union[Annotated[float, Field(le=180, strict=True, ge=-180)], Annotated[int, Field(le=180, strict=True, ge=-180)]]], Field(description="The maximum longitude component of a search bounding box. NOTE: Requires all other boundary.rect parameters to be specified.")] = None,
|
4063
|
+
boundary_circle_lat: Annotated[Optional[Union[Annotated[float, Field(le=90, strict=True, ge=-90)], Annotated[int, Field(le=90, strict=True, ge=-90)]]], Field(description="The latitude of the center of a circle to limit the search to. NOTE: Requires boundary.circle.lon.")] = None,
|
4064
|
+
boundary_circle_lon: Annotated[Optional[Union[Annotated[float, Field(le=180, strict=True, ge=-180)], Annotated[int, Field(le=180, strict=True, ge=-180)]]], Field(description="The longitude of the center of a circle to limit the search to. NOTE: Requires boundary.circle.lat.")] = None,
|
4065
|
+
boundary_circle_radius: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="The radius of the circle (in kilometers) to limit the search to. NOTE: Requires the other boundary.circle parameters to take effect. Defaults to 50km if unspecified.")] = None,
|
4066
|
+
size: Annotated[Optional[Annotated[int, Field(le=25, strict=True, ge=1)]], Field(description="The maximum number of items to return from a query.")] = None,
|
4067
|
+
lang: Annotated[Optional[StrictStr], Field(description="A BCP47 language tag which specifies a preference for localization of results. There is no default value, so place names will be returned as-is, which is usually in the local language. NOTE: The Accept-Language header is also respected, and many user agents will set it automatically.")] = None,
|
4068
|
+
_request_timeout: Union[
|
4069
|
+
None,
|
4070
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4071
|
+
Tuple[
|
4072
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4073
|
+
Annotated[StrictFloat, Field(gt=0)]
|
4074
|
+
]
|
4075
|
+
] = None,
|
4076
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4077
|
+
_content_type: Optional[StrictStr] = None,
|
4078
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4079
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4080
|
+
) -> ApiResponse[GeocodeResponseEnvelopePropertiesV2]:
|
4081
|
+
"""search_v2
|
4082
|
+
|
4083
|
+
|
4084
|
+
:param text: The text to search for (the start of an address, place name, etc.). (required)
|
4085
|
+
:type text: str
|
4086
|
+
:param focus_point_lat: The latitude of a focus point. If provided (along with longitude), the search results should be more locally relevant.
|
4087
|
+
:type focus_point_lat: float
|
4088
|
+
:param focus_point_lon: The longitude of a focus point. If provided (along with longitude), the search results should be more locally relevant.
|
4089
|
+
:type focus_point_lon: float
|
4090
|
+
:param layers: A list of layers to limit the search to.
|
4091
|
+
:type layers: List[LayerId]
|
4092
|
+
:param sources: A list of sources to limit the search to.
|
4093
|
+
:type sources: List[SourceId]
|
4094
|
+
:param boundary_gid: The GID of a region to limit the search to. Note: these are not stable for all datasets! For example, OSM features may be deleted and re-added with a new ID.
|
4095
|
+
:type boundary_gid: str
|
4096
|
+
:param boundary_country: A list of comma-separated country codes in ISO 3116-1 alpha-2 or alpha-3 format. The search will be limited to these countries.
|
4097
|
+
:type boundary_country: List[str]
|
4098
|
+
:param boundary_rect_min_lat: The minimum latitude component of a search bounding box. NOTE: Requires all other boundary.rect parameters to be specified.
|
4099
|
+
:type boundary_rect_min_lat: float
|
4100
|
+
:param boundary_rect_min_lon: The minimum longitude component of a search bounding box. NOTE: Requires all other boundary.rect parameters to be specified.
|
4101
|
+
:type boundary_rect_min_lon: float
|
4102
|
+
:param boundary_rect_max_lat: The maximum latitude component of a search bounding box. NOTE: Requires all other boundary.rect parameters to be specified.
|
4103
|
+
:type boundary_rect_max_lat: float
|
4104
|
+
:param boundary_rect_max_lon: The maximum longitude component of a search bounding box. NOTE: Requires all other boundary.rect parameters to be specified.
|
4105
|
+
:type boundary_rect_max_lon: float
|
4106
|
+
:param boundary_circle_lat: The latitude of the center of a circle to limit the search to. NOTE: Requires boundary.circle.lon.
|
4107
|
+
:type boundary_circle_lat: float
|
4108
|
+
:param boundary_circle_lon: The longitude of the center of a circle to limit the search to. NOTE: Requires boundary.circle.lat.
|
4109
|
+
:type boundary_circle_lon: float
|
4110
|
+
:param boundary_circle_radius: The radius of the circle (in kilometers) to limit the search to. NOTE: Requires the other boundary.circle parameters to take effect. Defaults to 50km if unspecified.
|
4111
|
+
:type boundary_circle_radius: int
|
4112
|
+
:param size: The maximum number of items to return from a query.
|
4113
|
+
:type size: int
|
4114
|
+
:param lang: A BCP47 language tag which specifies a preference for localization of results. There is no default value, so place names will be returned as-is, which is usually in the local language. NOTE: The Accept-Language header is also respected, and many user agents will set it automatically.
|
4115
|
+
:type lang: str
|
4116
|
+
:param _request_timeout: timeout setting for this request. If one
|
4117
|
+
number provided, it will be total request
|
4118
|
+
timeout. It can also be a pair (tuple) of
|
4119
|
+
(connection, read) timeouts.
|
4120
|
+
:type _request_timeout: int, tuple(int, int), optional
|
4121
|
+
:param _request_auth: set to override the auth_settings for an a single
|
4122
|
+
request; this effectively ignores the
|
4123
|
+
authentication in the spec for a single request.
|
4124
|
+
:type _request_auth: dict, optional
|
4125
|
+
:param _content_type: force content-type for the request.
|
4126
|
+
:type _content_type: str, Optional
|
4127
|
+
:param _headers: set to override the headers for a single
|
4128
|
+
request; this effectively ignores the headers
|
4129
|
+
in the spec for a single request.
|
4130
|
+
:type _headers: dict, optional
|
4131
|
+
:param _host_index: set to override the host_index for a single
|
4132
|
+
request; this effectively ignores the host_index
|
4133
|
+
in the spec for a single request.
|
4134
|
+
:type _host_index: int, optional
|
4135
|
+
:return: Returns the result object.
|
4136
|
+
""" # noqa: E501
|
4137
|
+
|
4138
|
+
_param = self._search_v2_serialize(
|
4139
|
+
text=text,
|
4140
|
+
focus_point_lat=focus_point_lat,
|
4141
|
+
focus_point_lon=focus_point_lon,
|
4142
|
+
layers=layers,
|
4143
|
+
sources=sources,
|
4144
|
+
boundary_gid=boundary_gid,
|
4145
|
+
boundary_country=boundary_country,
|
4146
|
+
boundary_rect_min_lat=boundary_rect_min_lat,
|
4147
|
+
boundary_rect_min_lon=boundary_rect_min_lon,
|
4148
|
+
boundary_rect_max_lat=boundary_rect_max_lat,
|
4149
|
+
boundary_rect_max_lon=boundary_rect_max_lon,
|
4150
|
+
boundary_circle_lat=boundary_circle_lat,
|
4151
|
+
boundary_circle_lon=boundary_circle_lon,
|
4152
|
+
boundary_circle_radius=boundary_circle_radius,
|
4153
|
+
size=size,
|
4154
|
+
lang=lang,
|
4155
|
+
_request_auth=_request_auth,
|
4156
|
+
_content_type=_content_type,
|
4157
|
+
_headers=_headers,
|
4158
|
+
_host_index=_host_index
|
4159
|
+
)
|
4160
|
+
|
4161
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
4162
|
+
'200': "GeocodeResponseEnvelopePropertiesV2",
|
4163
|
+
'400': "GeocodeResponseEnvelopePropertiesV2",
|
4164
|
+
'500': "GeocodeResponseEnvelopePropertiesV2",
|
4165
|
+
}
|
4166
|
+
response_data = self.api_client.call_api(
|
4167
|
+
*_param,
|
4168
|
+
_request_timeout=_request_timeout
|
4169
|
+
)
|
4170
|
+
response_data.read()
|
4171
|
+
return self.api_client.response_deserialize(
|
4172
|
+
response_data=response_data,
|
4173
|
+
response_types_map=_response_types_map,
|
4174
|
+
)
|
4175
|
+
|
4176
|
+
|
4177
|
+
@validate_call
|
4178
|
+
def search_v2_without_preload_content(
|
4179
|
+
self,
|
4180
|
+
text: Annotated[StrictStr, Field(description="The text to search for (the start of an address, place name, etc.).")],
|
4181
|
+
focus_point_lat: Annotated[Optional[Union[Annotated[float, Field(le=90, strict=True, ge=-90)], Annotated[int, Field(le=90, strict=True, ge=-90)]]], Field(description="The latitude of a focus point. If provided (along with longitude), the search results should be more locally relevant.")] = None,
|
4182
|
+
focus_point_lon: Annotated[Optional[Union[Annotated[float, Field(le=180, strict=True, ge=-180)], Annotated[int, Field(le=180, strict=True, ge=-180)]]], Field(description="The longitude of a focus point. If provided (along with longitude), the search results should be more locally relevant.")] = None,
|
4183
|
+
layers: Annotated[Optional[List[LayerId]], Field(description="A list of layers to limit the search to.")] = None,
|
4184
|
+
sources: Annotated[Optional[List[SourceId]], Field(description="A list of sources to limit the search to.")] = None,
|
4185
|
+
boundary_gid: Annotated[Optional[StrictStr], Field(description="The GID of a region to limit the search to. Note: these are not stable for all datasets! For example, OSM features may be deleted and re-added with a new ID.")] = None,
|
4186
|
+
boundary_country: Annotated[Optional[List[StrictStr]], Field(description="A list of comma-separated country codes in ISO 3116-1 alpha-2 or alpha-3 format. The search will be limited to these countries.")] = None,
|
4187
|
+
boundary_rect_min_lat: Annotated[Optional[Union[Annotated[float, Field(le=90, strict=True, ge=-90)], Annotated[int, Field(le=90, strict=True, ge=-90)]]], Field(description="The minimum latitude component of a search bounding box. NOTE: Requires all other boundary.rect parameters to be specified.")] = None,
|
4188
|
+
boundary_rect_min_lon: Annotated[Optional[Union[Annotated[float, Field(le=180, strict=True, ge=-180)], Annotated[int, Field(le=180, strict=True, ge=-180)]]], Field(description="The minimum longitude component of a search bounding box. NOTE: Requires all other boundary.rect parameters to be specified.")] = None,
|
4189
|
+
boundary_rect_max_lat: Annotated[Optional[Union[Annotated[float, Field(le=90, strict=True, ge=-90)], Annotated[int, Field(le=90, strict=True, ge=-90)]]], Field(description="The maximum latitude component of a search bounding box. NOTE: Requires all other boundary.rect parameters to be specified.")] = None,
|
4190
|
+
boundary_rect_max_lon: Annotated[Optional[Union[Annotated[float, Field(le=180, strict=True, ge=-180)], Annotated[int, Field(le=180, strict=True, ge=-180)]]], Field(description="The maximum longitude component of a search bounding box. NOTE: Requires all other boundary.rect parameters to be specified.")] = None,
|
4191
|
+
boundary_circle_lat: Annotated[Optional[Union[Annotated[float, Field(le=90, strict=True, ge=-90)], Annotated[int, Field(le=90, strict=True, ge=-90)]]], Field(description="The latitude of the center of a circle to limit the search to. NOTE: Requires boundary.circle.lon.")] = None,
|
4192
|
+
boundary_circle_lon: Annotated[Optional[Union[Annotated[float, Field(le=180, strict=True, ge=-180)], Annotated[int, Field(le=180, strict=True, ge=-180)]]], Field(description="The longitude of the center of a circle to limit the search to. NOTE: Requires boundary.circle.lat.")] = None,
|
4193
|
+
boundary_circle_radius: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="The radius of the circle (in kilometers) to limit the search to. NOTE: Requires the other boundary.circle parameters to take effect. Defaults to 50km if unspecified.")] = None,
|
4194
|
+
size: Annotated[Optional[Annotated[int, Field(le=25, strict=True, ge=1)]], Field(description="The maximum number of items to return from a query.")] = None,
|
4195
|
+
lang: Annotated[Optional[StrictStr], Field(description="A BCP47 language tag which specifies a preference for localization of results. There is no default value, so place names will be returned as-is, which is usually in the local language. NOTE: The Accept-Language header is also respected, and many user agents will set it automatically.")] = None,
|
4196
|
+
_request_timeout: Union[
|
4197
|
+
None,
|
4198
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4199
|
+
Tuple[
|
4200
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4201
|
+
Annotated[StrictFloat, Field(gt=0)]
|
4202
|
+
]
|
4203
|
+
] = None,
|
4204
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4205
|
+
_content_type: Optional[StrictStr] = None,
|
4206
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4207
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4208
|
+
) -> RESTResponseType:
|
4209
|
+
"""search_v2
|
4210
|
+
|
4211
|
+
|
4212
|
+
:param text: The text to search for (the start of an address, place name, etc.). (required)
|
4213
|
+
:type text: str
|
4214
|
+
:param focus_point_lat: The latitude of a focus point. If provided (along with longitude), the search results should be more locally relevant.
|
4215
|
+
:type focus_point_lat: float
|
4216
|
+
:param focus_point_lon: The longitude of a focus point. If provided (along with longitude), the search results should be more locally relevant.
|
4217
|
+
:type focus_point_lon: float
|
4218
|
+
:param layers: A list of layers to limit the search to.
|
4219
|
+
:type layers: List[LayerId]
|
4220
|
+
:param sources: A list of sources to limit the search to.
|
4221
|
+
:type sources: List[SourceId]
|
4222
|
+
:param boundary_gid: The GID of a region to limit the search to. Note: these are not stable for all datasets! For example, OSM features may be deleted and re-added with a new ID.
|
4223
|
+
:type boundary_gid: str
|
4224
|
+
:param boundary_country: A list of comma-separated country codes in ISO 3116-1 alpha-2 or alpha-3 format. The search will be limited to these countries.
|
4225
|
+
:type boundary_country: List[str]
|
4226
|
+
:param boundary_rect_min_lat: The minimum latitude component of a search bounding box. NOTE: Requires all other boundary.rect parameters to be specified.
|
4227
|
+
:type boundary_rect_min_lat: float
|
4228
|
+
:param boundary_rect_min_lon: The minimum longitude component of a search bounding box. NOTE: Requires all other boundary.rect parameters to be specified.
|
4229
|
+
:type boundary_rect_min_lon: float
|
4230
|
+
:param boundary_rect_max_lat: The maximum latitude component of a search bounding box. NOTE: Requires all other boundary.rect parameters to be specified.
|
4231
|
+
:type boundary_rect_max_lat: float
|
4232
|
+
:param boundary_rect_max_lon: The maximum longitude component of a search bounding box. NOTE: Requires all other boundary.rect parameters to be specified.
|
4233
|
+
:type boundary_rect_max_lon: float
|
4234
|
+
:param boundary_circle_lat: The latitude of the center of a circle to limit the search to. NOTE: Requires boundary.circle.lon.
|
4235
|
+
:type boundary_circle_lat: float
|
4236
|
+
:param boundary_circle_lon: The longitude of the center of a circle to limit the search to. NOTE: Requires boundary.circle.lat.
|
4237
|
+
:type boundary_circle_lon: float
|
4238
|
+
:param boundary_circle_radius: The radius of the circle (in kilometers) to limit the search to. NOTE: Requires the other boundary.circle parameters to take effect. Defaults to 50km if unspecified.
|
4239
|
+
:type boundary_circle_radius: int
|
4240
|
+
:param size: The maximum number of items to return from a query.
|
4241
|
+
:type size: int
|
4242
|
+
:param lang: A BCP47 language tag which specifies a preference for localization of results. There is no default value, so place names will be returned as-is, which is usually in the local language. NOTE: The Accept-Language header is also respected, and many user agents will set it automatically.
|
4243
|
+
:type lang: str
|
4244
|
+
:param _request_timeout: timeout setting for this request. If one
|
4245
|
+
number provided, it will be total request
|
4246
|
+
timeout. It can also be a pair (tuple) of
|
4247
|
+
(connection, read) timeouts.
|
4248
|
+
:type _request_timeout: int, tuple(int, int), optional
|
4249
|
+
:param _request_auth: set to override the auth_settings for an a single
|
4250
|
+
request; this effectively ignores the
|
4251
|
+
authentication in the spec for a single request.
|
4252
|
+
:type _request_auth: dict, optional
|
4253
|
+
:param _content_type: force content-type for the request.
|
4254
|
+
:type _content_type: str, Optional
|
4255
|
+
:param _headers: set to override the headers for a single
|
4256
|
+
request; this effectively ignores the headers
|
4257
|
+
in the spec for a single request.
|
4258
|
+
:type _headers: dict, optional
|
4259
|
+
:param _host_index: set to override the host_index for a single
|
4260
|
+
request; this effectively ignores the host_index
|
4261
|
+
in the spec for a single request.
|
4262
|
+
:type _host_index: int, optional
|
4263
|
+
:return: Returns the result object.
|
4264
|
+
""" # noqa: E501
|
4265
|
+
|
4266
|
+
_param = self._search_v2_serialize(
|
4267
|
+
text=text,
|
4268
|
+
focus_point_lat=focus_point_lat,
|
4269
|
+
focus_point_lon=focus_point_lon,
|
4270
|
+
layers=layers,
|
4271
|
+
sources=sources,
|
4272
|
+
boundary_gid=boundary_gid,
|
4273
|
+
boundary_country=boundary_country,
|
4274
|
+
boundary_rect_min_lat=boundary_rect_min_lat,
|
4275
|
+
boundary_rect_min_lon=boundary_rect_min_lon,
|
4276
|
+
boundary_rect_max_lat=boundary_rect_max_lat,
|
4277
|
+
boundary_rect_max_lon=boundary_rect_max_lon,
|
4278
|
+
boundary_circle_lat=boundary_circle_lat,
|
4279
|
+
boundary_circle_lon=boundary_circle_lon,
|
4280
|
+
boundary_circle_radius=boundary_circle_radius,
|
4281
|
+
size=size,
|
4282
|
+
lang=lang,
|
4283
|
+
_request_auth=_request_auth,
|
4284
|
+
_content_type=_content_type,
|
4285
|
+
_headers=_headers,
|
4286
|
+
_host_index=_host_index
|
4287
|
+
)
|
4288
|
+
|
4289
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
4290
|
+
'200': "GeocodeResponseEnvelopePropertiesV2",
|
4291
|
+
'400': "GeocodeResponseEnvelopePropertiesV2",
|
4292
|
+
'500': "GeocodeResponseEnvelopePropertiesV2",
|
4293
|
+
}
|
4294
|
+
response_data = self.api_client.call_api(
|
4295
|
+
*_param,
|
4296
|
+
_request_timeout=_request_timeout
|
4297
|
+
)
|
4298
|
+
return response_data.response
|
4299
|
+
|
4300
|
+
|
4301
|
+
def _search_v2_serialize(
|
4302
|
+
self,
|
4303
|
+
text,
|
4304
|
+
focus_point_lat,
|
4305
|
+
focus_point_lon,
|
4306
|
+
layers,
|
4307
|
+
sources,
|
4308
|
+
boundary_gid,
|
4309
|
+
boundary_country,
|
4310
|
+
boundary_rect_min_lat,
|
4311
|
+
boundary_rect_min_lon,
|
4312
|
+
boundary_rect_max_lat,
|
4313
|
+
boundary_rect_max_lon,
|
4314
|
+
boundary_circle_lat,
|
4315
|
+
boundary_circle_lon,
|
4316
|
+
boundary_circle_radius,
|
4317
|
+
size,
|
4318
|
+
lang,
|
4319
|
+
_request_auth,
|
4320
|
+
_content_type,
|
4321
|
+
_headers,
|
4322
|
+
_host_index,
|
4323
|
+
) -> RequestSerialized:
|
4324
|
+
|
4325
|
+
_host = None
|
4326
|
+
|
4327
|
+
_collection_formats: Dict[str, str] = {
|
4328
|
+
'layers': 'csv',
|
4329
|
+
'sources': 'csv',
|
4330
|
+
'boundary.country': 'csv',
|
4331
|
+
}
|
4332
|
+
|
4333
|
+
_path_params: Dict[str, str] = {}
|
4334
|
+
_query_params: List[Tuple[str, str]] = []
|
4335
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
4336
|
+
_form_params: List[Tuple[str, str]] = []
|
4337
|
+
_files: Dict[
|
4338
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
4339
|
+
] = {}
|
4340
|
+
_body_params: Optional[bytes] = None
|
4341
|
+
|
4342
|
+
# process the path parameters
|
4343
|
+
# process the query parameters
|
4344
|
+
if text is not None:
|
4345
|
+
|
4346
|
+
_query_params.append(('text', text))
|
4347
|
+
|
4348
|
+
if focus_point_lat is not None:
|
4349
|
+
|
4350
|
+
_query_params.append(('focus.point.lat', focus_point_lat))
|
4351
|
+
|
4352
|
+
if focus_point_lon is not None:
|
4353
|
+
|
4354
|
+
_query_params.append(('focus.point.lon', focus_point_lon))
|
4355
|
+
|
4356
|
+
if layers is not None:
|
4357
|
+
|
4358
|
+
_query_params.append(('layers', layers))
|
4359
|
+
|
4360
|
+
if sources is not None:
|
4361
|
+
|
4362
|
+
_query_params.append(('sources', sources))
|
4363
|
+
|
4364
|
+
if boundary_gid is not None:
|
4365
|
+
|
4366
|
+
_query_params.append(('boundary.gid', boundary_gid))
|
4367
|
+
|
4368
|
+
if boundary_country is not None:
|
4369
|
+
|
4370
|
+
_query_params.append(('boundary.country', boundary_country))
|
4371
|
+
|
4372
|
+
if boundary_rect_min_lat is not None:
|
4373
|
+
|
4374
|
+
_query_params.append(('boundary.rect.min_lat', boundary_rect_min_lat))
|
4375
|
+
|
4376
|
+
if boundary_rect_min_lon is not None:
|
4377
|
+
|
4378
|
+
_query_params.append(('boundary.rect.min_lon', boundary_rect_min_lon))
|
4379
|
+
|
4380
|
+
if boundary_rect_max_lat is not None:
|
4381
|
+
|
4382
|
+
_query_params.append(('boundary.rect.max_lat', boundary_rect_max_lat))
|
4383
|
+
|
4384
|
+
if boundary_rect_max_lon is not None:
|
4385
|
+
|
4386
|
+
_query_params.append(('boundary.rect.max_lon', boundary_rect_max_lon))
|
4387
|
+
|
4388
|
+
if boundary_circle_lat is not None:
|
4389
|
+
|
4390
|
+
_query_params.append(('boundary.circle.lat', boundary_circle_lat))
|
4391
|
+
|
4392
|
+
if boundary_circle_lon is not None:
|
4393
|
+
|
4394
|
+
_query_params.append(('boundary.circle.lon', boundary_circle_lon))
|
4395
|
+
|
4396
|
+
if boundary_circle_radius is not None:
|
4397
|
+
|
4398
|
+
_query_params.append(('boundary.circle.radius', boundary_circle_radius))
|
4399
|
+
|
4400
|
+
if size is not None:
|
4401
|
+
|
4402
|
+
_query_params.append(('size', size))
|
4403
|
+
|
4404
|
+
if lang is not None:
|
4405
|
+
|
4406
|
+
_query_params.append(('lang', lang))
|
4407
|
+
|
4408
|
+
# process the header parameters
|
4409
|
+
# process the form parameters
|
4410
|
+
# process the body parameter
|
4411
|
+
|
4412
|
+
|
4413
|
+
# set the HTTP header `Accept`
|
4414
|
+
if 'Accept' not in _header_params:
|
4415
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
4416
|
+
[
|
4417
|
+
'application/json'
|
4418
|
+
]
|
4419
|
+
)
|
4420
|
+
|
4421
|
+
|
4422
|
+
# authentication setting
|
4423
|
+
_auth_settings: List[str] = [
|
4424
|
+
'ApiKeyAuth'
|
4425
|
+
]
|
4426
|
+
|
4427
|
+
return self.api_client.param_serialize(
|
4428
|
+
method='GET',
|
4429
|
+
resource_path='/geocoding/v2/search',
|
4430
|
+
path_params=_path_params,
|
4431
|
+
query_params=_query_params,
|
4432
|
+
header_params=_header_params,
|
4433
|
+
body=_body_params,
|
4434
|
+
post_params=_form_params,
|
4435
|
+
files=_files,
|
4436
|
+
auth_settings=_auth_settings,
|
4437
|
+
collection_formats=_collection_formats,
|
4438
|
+
_host=_host,
|
4439
|
+
_request_auth=_request_auth
|
4440
|
+
)
|
4441
|
+
|
4442
|
+
|
stadiamaps/api/geospatial_api.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: 10.0.1
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
stadiamaps/api/routing_api.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: 10.0.1
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
stadiamaps/api_client.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: 10.0.1
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -91,7 +91,7 @@ class ApiClient:
|
|
91
91
|
self.default_headers[header_name] = header_value
|
92
92
|
self.cookie = cookie
|
93
93
|
# Set default User-Agent.
|
94
|
-
self.user_agent = 'OpenAPI-Generator/
|
94
|
+
self.user_agent = 'OpenAPI-Generator/7.0.1/python'
|
95
95
|
self.client_side_validation = configuration.client_side_validation
|
96
96
|
|
97
97
|
def __enter__(self):
|
stadiamaps/configuration.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: 10.0.1
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -162,6 +162,8 @@ class Configuration:
|
|
162
162
|
:param ssl_ca_cert: str - the path to a file of concatenated CA certificates
|
163
163
|
in PEM format.
|
164
164
|
:param retries: Number of retries for API requests.
|
165
|
+
:param ca_cert_data: verify the peer using concatenated CA certificate data
|
166
|
+
in PEM (str) or DER (bytes) format.
|
165
167
|
|
166
168
|
:Example:
|
167
169
|
|
@@ -202,6 +204,7 @@ conf = stadiamaps.Configuration(
|
|
202
204
|
ignore_operation_servers: bool=False,
|
203
205
|
ssl_ca_cert: Optional[str]=None,
|
204
206
|
retries: Optional[int] = None,
|
207
|
+
ca_cert_data: Optional[Union[str, bytes]] = None,
|
205
208
|
*,
|
206
209
|
debug: Optional[bool] = None,
|
207
210
|
) -> None:
|
@@ -279,6 +282,10 @@ conf = stadiamaps.Configuration(
|
|
279
282
|
self.ssl_ca_cert = ssl_ca_cert
|
280
283
|
"""Set this to customize the certificate file to verify the peer.
|
281
284
|
"""
|
285
|
+
self.ca_cert_data = ca_cert_data
|
286
|
+
"""Set this to verify the peer using PEM (str) or DER (bytes)
|
287
|
+
certificate data.
|
288
|
+
"""
|
282
289
|
self.cert_file = None
|
283
290
|
"""client certificate file
|
284
291
|
"""
|
@@ -524,8 +531,8 @@ conf = stadiamaps.Configuration(
|
|
524
531
|
return "Python SDK Debug Report:\n"\
|
525
532
|
"OS: {env}\n"\
|
526
533
|
"Python Version: {pyversion}\n"\
|
527
|
-
"Version of the API:
|
528
|
-
"SDK Package Version:
|
534
|
+
"Version of the API: 10.0.1\n"\
|
535
|
+
"SDK Package Version: 7.0.1".\
|
529
536
|
format(env=sys.platform, pyversion=sys.version)
|
530
537
|
|
531
538
|
def get_host_settings(self) -> List[HostSetting]:
|
stadiamaps/exceptions.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: 10.0.1
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|