-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added type property to Address Component
added type property to Address Component
- Loading branch information
1 parent
8d39638
commit ba8c24c
Showing
1 changed file
with
17 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,25 +1,41 @@ | ||
namespace OpenCage.Geocode | ||
using System.Runtime.Serialization; | ||
|
||
namespace OpenCage.Geocode | ||
{ | ||
[DataContract] | ||
public class AddressComponent | ||
{ | ||
[DataMember(Name = "_type")] | ||
public string Type { get; set; } | ||
|
||
[DataMember(Name = "Country")] | ||
public string Country { get; set; } | ||
|
||
[DataMember(Name = "StateDistrict")] | ||
public string StateDistrict { get; set; } | ||
|
||
[DataMember(Name = "CountryCode")] | ||
public string CountryCode { get; set; } | ||
|
||
[DataMember(Name = "State")] | ||
public string State { get; set; } | ||
|
||
[DataMember(Name = "Suburb")] | ||
public string Suburb { get; set; } | ||
|
||
[DataMember(Name = "City")] | ||
public string City { get; set; } | ||
|
||
[DataMember(Name = "BusStop")] | ||
public string BusStop { get; set; } | ||
|
||
[DataMember(Name = "County")] | ||
public string County { get; set; } | ||
|
||
[DataMember(Name = "Road")] | ||
public string Road { get; set; } | ||
|
||
[DataMember(Name = "Postcode")] | ||
public string Postcode { get; set; } | ||
} | ||
} |