-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Entities.PlacesDetails.Response with latest properties and doc…
…strings from official google documentation: https://developers.google.com/maps/documentation/places/web-service/details Add supporting types for update
- Loading branch information
Showing
5 changed files
with
271 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace GoogleMapsApi.Entities.Common; | ||
|
||
/// <summary> | ||
/// An encoded location reference, derived from latitude and longitude coordinates, that represents an area, | ||
/// 1/8000th of a degree by 1/8000th of a degree (about 14m x 14m at the equator) or smaller. | ||
/// Plus codes can be used as a replacement for street addresses in places where they do not exist | ||
/// (where buildings are not numbered or streets are not named). | ||
/// </summary> | ||
[DataContract] | ||
public class PlusCode | ||
{ | ||
/// <summary> | ||
/// A 4 character area code and 6 character or longer local code (849VCWC8+R9). | ||
/// </summary> | ||
[DataMember(Name = "global_code")] | ||
public string GlobalCode { get; set; } | ||
|
||
/// <summary> | ||
/// A 6 character or longer local code with an explicit location (CWC8+R9, Mountain View, CA, USA). | ||
/// May return an empty string if the compound_code is not available. | ||
/// </summary> | ||
[DataMember(Name = "compound_code")] | ||
public string CompoundCode { get; set; } | ||
} |
15 changes: 15 additions & 0 deletions
15
GoogleMapsApi/Entities/PlacesDetails/Response/BusinessStatus.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace GoogleMapsApi.Entities.PlacesDetails.Response | ||
{ | ||
[DataContract] | ||
public enum BusinessStatus | ||
{ | ||
[EnumMember(Value = "OPERATIONAL")] | ||
Operational, | ||
[EnumMember(Value = "CLOSED_TEMPORARILY")] | ||
ClosedTemporarily, | ||
[EnumMember(Value = "CLOSED_PERMANENTLY")] | ||
ClosedPermanently, | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
GoogleMapsApi/Entities/PlacesDetails/Response/PlaceEditorialSummary.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace GoogleMapsApi.Entities.PlacesDetails.Response; | ||
|
||
/// <summary> | ||
/// Contains a summary of the place. | ||
/// </summary> | ||
[DataContract] | ||
public class PlaceEditorialSummary | ||
{ | ||
/// <summary> | ||
/// The language of the previous fields. May not always be present. | ||
/// </summary> | ||
[DataMember(Name = "language")] | ||
public string Language { get; set; } | ||
|
||
/// <summary> | ||
/// A medium-length textual summary of the place. | ||
/// </summary> | ||
[DataMember(Name = "overview")] | ||
public string Overview { get; set; } | ||
} |
10 changes: 10 additions & 0 deletions
10
GoogleMapsApi/Entities/PlacesDetails/Response/PriceLevel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace GoogleMapsApi.Entities.PlacesDetails.Response; | ||
|
||
public enum PriceLevel | ||
{ | ||
Free = 0, | ||
Inexpensive = 1, | ||
Moderate = 2, | ||
Expensive = 3, | ||
VeryExpensive = 4, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters