From c5f8f297fe3bb4c63aa4a13b2c84d55d60ffad2b Mon Sep 17 00:00:00 2001 From: vivet Date: Mon, 13 Apr 2026 08:14:44 +0200 Subject: [PATCH 1/2] Added TimeZone to new place details response. --- .github/workflows/build-and-deploy.yml | 2 +- GoogleApi/Entities/PlacesNew/Common/Place.cs | 6 ++++++ .../Entities/PlacesNew/Common/TimeZone.cs | 18 ++++++++++++++++++ GoogleApi/GoogleApi.csproj | 8 ++++---- 4 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 GoogleApi/Entities/PlacesNew/Common/TimeZone.cs diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 1c40a986..53c78993 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -8,7 +8,7 @@ on: - master env: APP_NAME: GoogleApi - VERSION: 5.8.13 + VERSION: 5.8.14 NUGET_HOST: https://api.nuget.org/v3/index.json NUGET_APIKEY: ${{ secrets.NUGET_APIKEY }} jobs: diff --git a/GoogleApi/Entities/PlacesNew/Common/Place.cs b/GoogleApi/Entities/PlacesNew/Common/Place.cs index b2641418..86be15fa 100644 --- a/GoogleApi/Entities/PlacesNew/Common/Place.cs +++ b/GoogleApi/Entities/PlacesNew/Common/Place.cs @@ -125,6 +125,12 @@ public class Place /// public virtual OpeningHours RegularOpeningHours { get; set; } + /// + /// Represents a time zone from the IANA Time Zone Database. + /// https://www.iana.org/time-zones + /// + public virtual TimeZone TimeZone { get; set; } + /// /// Information (including references) about photos of this place. A maximum of 10 photos can be returned. /// diff --git a/GoogleApi/Entities/PlacesNew/Common/TimeZone.cs b/GoogleApi/Entities/PlacesNew/Common/TimeZone.cs new file mode 100644 index 00000000..172dc873 --- /dev/null +++ b/GoogleApi/Entities/PlacesNew/Common/TimeZone.cs @@ -0,0 +1,18 @@ +namespace GoogleApi.Entities.PlacesNew.Common; + +/// +/// Represents a time zone from the IANA Time Zone Database. +/// https://www.iana.org/time-zones +/// +public class TimeZone +{ + /// + /// IANA Time Zone Database time zone. For example "America/New_York". + /// + public virtual string Id { get; set; } + + /// + /// Optional. IANA Time Zone Database version number. For example "2019a". + /// + public virtual string Version { get; set; } +} \ No newline at end of file diff --git a/GoogleApi/GoogleApi.csproj b/GoogleApi/GoogleApi.csproj index 488a2f45..402717b8 100644 --- a/GoogleApi/GoogleApi.csproj +++ b/GoogleApi/GoogleApi.csproj @@ -6,9 +6,9 @@ True AnyCPU - 5.8.13.0 - 5.8.13.0 - 5.8.13.0 + 5.8.14.0 + 5.8.14.0 + 5.8.14.0 True GoogleApi.snk latest @@ -22,7 +22,7 @@ google api map maps place places elevation snaptoroad snaptoroads snap road roads speed speedlimit coordinate geo geocode geocoder geocoding geolocation search text nearby radar translate translation detect detection language languages nearest geography point geocoordinate address location latitude longitude distance duration matrix distancematrix direction directions travel path journey trip photo photos timezone time zone autocomplete auto-complete traffic spatial README.md - - Fix Typo in AuthorAttribution.DisplayName + - Added TimeZone to new place details response. LICENSE GitHub From ba5b294f5ede7498d0014a7d662306935b534de4 Mon Sep 17 00:00:00 2001 From: vivet Date: Mon, 13 Apr 2026 08:15:52 +0200 Subject: [PATCH 2/2] #424 --- GoogleApi/GoogleApi.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GoogleApi/GoogleApi.csproj b/GoogleApi/GoogleApi.csproj index 402717b8..9075b143 100644 --- a/GoogleApi/GoogleApi.csproj +++ b/GoogleApi/GoogleApi.csproj @@ -22,7 +22,7 @@ google api map maps place places elevation snaptoroad snaptoroads snap road roads speed speedlimit coordinate geo geocode geocoder geocoding geolocation search text nearby radar translate translation detect detection language languages nearest geography point geocoordinate address location latitude longitude distance duration matrix distancematrix direction directions travel path journey trip photo photos timezone time zone autocomplete auto-complete traffic spatial README.md - - Added TimeZone to new place details response. + - Added TimeZone to new place details response. LICENSE GitHub