forked from BAPostma/PostcodeAPI.Net
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPostcodeArea.cs
More file actions
34 lines (33 loc) · 1.05 KB
/
Copy pathPostcodeArea.cs
File metadata and controls
34 lines (33 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System.Collections.Generic;
using Newtonsoft.Json;
using PostcodeAPI.V2.Wrappers;
namespace PostcodeAPI.V2.Model
{
public class PostcodeArea
{
/// <summary>
/// Post code in the P6 format
/// </summary>
[JsonProperty("postcode")]
public string Postcode { get; set; }
[JsonProperty("city")]
public City City { get; set; }
[JsonProperty("municipality")]
public Municipality Municipality { get; set; }
[JsonProperty("province")]
public Province Province { get; set; }
[JsonProperty("streets")]
public List<string> Streets { get; set; }
/// <summary>
/// Streets following the NEN5825 standard
/// </summary>
[JsonProperty("nen5825")]
public MultipleNEN5825 NEN5825 { get; set; }
[JsonProperty("distance")]
public double? Distance { get; set; }
[JsonProperty("geo")]
public Geo Geo { get; set; }
[JsonProperty("_links")]
public HalNavigator Links { get; set; }
}
}