Skip to content

Commit 2fc2c28

Browse files
committed
Fix bulk API postal code field; add new TZ API response fields
1 parent b9603de commit 2fc2c28

File tree

155 files changed

+203
-174
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+203
-174
lines changed

.github/workflows/python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
16+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1717

1818
steps:
1919
- uses: actions/checkout@v4

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.12.0
1+
7.13.0

docs/BulkRequestQuery.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Name | Type | Description | Notes
2727
**locality** | **str** | The city, village, town, etc. that the place/address is part of. | [optional]
2828
**county** | **str** | Administrative divisions between localities and regions. Not commonly used as input to structured geocoding. | [optional]
2929
**region** | **str** | Typically the first administrative division within a country. For example, a US state or a Canadian province. | [optional]
30-
**postal_code** | **str** | A mail sorting code. | [optional]
30+
**postalcode** | **str** | A mail sorting code. | [optional]
3131
**country** | **str** | A country code in ISO 3116-1 alpha-2 or alpha-3 format. | [optional]
3232

3333
## Example

docs/GeospatialApi.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All URIs are relative to *https://api.stadiamaps.com*
55
Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**elevation**](GeospatialApi.md#elevation) | **POST** /elevation/v1 | Get the elevation profile along a polyline or at a point.
8-
[**tz_lookup**](GeospatialApi.md#tz_lookup) | **GET** /tz/lookup/v1 | Get the current time zone information for any point on earth.
8+
[**tz_lookup**](GeospatialApi.md#tz_lookup) | **GET** /tz/lookup/v1 | Get time zone information for any point on earth.
99

1010

1111
# **elevation**
@@ -92,9 +92,9 @@ Name | Type | Description | Notes
9292
# **tz_lookup**
9393
> TzResponse tz_lookup(lat, lng, timestamp=timestamp)
9494
95-
Get the current time zone information for any point on earth.
95+
Get time zone information for any point on earth.
9696

97-
The Stadia TZ API provides time zone information, as well as information about any special offset (such as DST) in effect based on the latest IANA TZDB. Note that this API may not be accurate for timestamps in the past and does not claim to report precise nautical times in the open ocean beyond territorial waters.
97+
Retrieve the time zone identifier, standard UTC offset, special offset (such as DST), and the localized time in several common formats.
9898

9999
### Example
100100

@@ -132,7 +132,7 @@ with stadiamaps.ApiClient(configuration) as api_client:
132132
timestamp = 56 # int | The UNIX timestamp at which the UTC and DST offsets will be calculated. This defaults to the present time. This endpoint is not necessarily guaranteed to be accurate for timestamps that occurred in the past. Time zone geographic boundaries change over time, so if the point you are querying for was previously in a different time zone, historical results will not be accurate. If, however, the point has been in the same geographic time zone for a very long time (ex: `America/New_York`), the historical data may be accurate for 100+ years in the past (depending on how far back the IANA TZDB rules have been specified). (optional)
133133

134134
try:
135-
# Get the current time zone information for any point on earth.
135+
# Get time zone information for any point on earth.
136136
api_response = api_instance.tz_lookup(lat, lng, timestamp=timestamp)
137137
print("The response of GeospatialApi->tz_lookup:\n")
138138
pprint(api_response)
@@ -168,7 +168,7 @@ Name | Type | Description | Notes
168168

169169
| Status code | Description | Response headers |
170170
|-------------|-------------|------------------|
171-
**200** | The time zone metadata. | - |
171+
**200** | The time zone information and local time. | - |
172172
**404** | Time zone not found | - |
173173

174174
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

docs/SearchStructuredQuery.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
1111
**locality** | **str** | The city, village, town, etc. that the place/address is part of. | [optional]
1212
**county** | **str** | Administrative divisions between localities and regions. Not commonly used as input to structured geocoding. | [optional]
1313
**region** | **str** | Typically the first administrative division within a country. For example, a US state or a Canadian province. | [optional]
14-
**postal_code** | **str** | A mail sorting code. | [optional]
14+
**postalcode** | **str** | A mail sorting code. | [optional]
1515
**country** | **str** | A country code in ISO 3116-1 alpha-2 or alpha-3 format. | [optional]
1616
**focus_point_lat** | **float** | The latitude of the point to focus the search on. This will bias results toward the focus point. Requires `focus.point.lon`. | [optional]
1717
**focus_point_lon** | **float** | The longitude of the point to focus the search on. This will bias results toward the focus point. Requires `focus.point.lat`. | [optional]

docs/TzResponse.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ Name | Type | Description | Notes
88
**tz_id** | **str** | The canonical time zone ID. In the event that multiple time zones could be returned, the first one from the Unicode CLDR timezone.xml is returned. |
99
**base_utc_offset** | **int** | The base offset, in seconds, from UTC that is normally in effect for this time zone. |
1010
**dst_offset** | **int** | The special offset, in seconds, from UTC that is in effect for this time zone as of the queried timestamp (defaults to now). If no additional offsets are in effect, this value is zero. This typically reflects Daylight Saving Time, but may indicate other special offsets. To get the total offset in effect, add `dst_offset` and `utc_offset` together. |
11+
**timestamp** | **int** | Integer non-leap seconds since January 1, 1970 (UNIX timestamp). If a timestamp is included with the request parameters, it will be echoed here. Otherwise, this will contain the current timestamp. |
12+
**local_rfc_2822_timestamp** | **str** | The local time expressed as an RFC 2822 timestamp (e.g. Tue, 1 Jul 2003 10:52:37 +0200). If a timestamp is included in the request, it will be localized here. Otherwise, this will reflect the time of the request. |
13+
**local_rfc_3389_timestamp** | **str** | The local time expressed as an RFC 3389 (ISO 8601) timestamp (e.g. 2003-06-01T10:52:37+02:00). If a timestamp is included in the request, it will be localized here. Otherwise, this will reflect the time of the request. |
1114

1215
## Example
1316

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "stadiamaps"
3-
version = "6.2.0"
3+
version = "6.3.0"
44
description = "Stadia Maps Geospatial APIs"
55
authors = [
66
{ name = "Stadia Maps Support", email = "[email protected]" }
@@ -21,9 +21,9 @@ documentation = "https://docs.stadiamaps.com/sdks/python/"
2121
source = "https://github.com/stadiamaps/stadiamaps-api-py"
2222

2323
[tool.poetry.dependencies]
24-
python = "^3.8"
24+
python = "^3.9"
2525

26-
urllib3 = ">= 1.25.3, < 3.0.0"
26+
urllib3 = ">= 2.1.0, < 3.0.0"
2727
python-dateutil = ">= 2.8.2"
2828
pydantic = ">= 2"
2929
typing-extensions = ">= 4.7.1"

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
urllib3 >= 1.25.3, < 3.0.0
1+
urllib3 >= 2.1.0, < 3.0.0
22
python_dateutil >= 2.8.2
33
pydantic >= 2
44
typing-extensions >= 4.7.1

stadiamaps/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
88
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
99
10-
The version of the OpenAPI document: 9.2.1
10+
The version of the OpenAPI document: 9.3.0
1111
1212
Generated by OpenAPI Generator (https://openapi-generator.tech)
1313
1414
Do not edit the class manually.
1515
""" # noqa: E501
1616

1717

18-
__version__ = "6.2.0"
18+
__version__ = "6.3.0"
1919

2020
# import apis into sdk package
2121
from stadiamaps.api.geocoding_api import GeocodingApi

stadiamaps/api/geocoding_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
77
8-
The version of the OpenAPI document: 9.2.1
8+
The version of the OpenAPI document: 9.3.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

0 commit comments

Comments
 (0)