11using System . Collections . Generic ;
2- using System . Runtime . Serialization ;
2+ using System . Text . Json . Serialization ;
33
44namespace Mapbox . Api . Data ;
55
6- [ DataContract ]
6+ /// <summary>
7+ /// A geocoding feature result.
8+ /// </summary>
79public class Feature
810{
9- [ DataMember ( Name = "id" ) ]
11+ /// <summary>
12+ /// The feature identifier.
13+ /// </summary>
14+ [ JsonPropertyName ( "id" ) ]
1015 public string Id { get ; set ; } = null ! ;
1116
12- [ DataMember ( Name = "type" ) ]
17+ /// <summary>
18+ /// The GeoJSON type.
19+ /// </summary>
20+ [ JsonPropertyName ( "type" ) ]
1321 public string Type { get ; set ; } = null ! ;
1422
15- [ DataMember ( Name = "place_type" ) ]
23+ /// <summary>
24+ /// The place type(s).
25+ /// </summary>
26+ [ JsonPropertyName ( "place_type" ) ]
1627 public IList < string > PlaceType { get ; set ; } = null ! ;
1728
18- [ DataMember ( Name = "relevance" ) ]
29+ /// <summary>
30+ /// The relevance score.
31+ /// </summary>
32+ [ JsonPropertyName ( "relevance" ) ]
1933 public double Relevance { get ; set ; }
2034
21- [ DataMember ( Name = "properties" ) ]
35+ /// <summary>
36+ /// The feature properties.
37+ /// </summary>
38+ [ JsonPropertyName ( "properties" ) ]
2239 public Properties Properties { get ; set ; } = null ! ;
2340
24- [ DataMember ( Name = "text" ) ]
41+ /// <summary>
42+ /// The feature text.
43+ /// </summary>
44+ [ JsonPropertyName ( "text" ) ]
2545 public string Text { get ; set ; } = null ! ;
2646
27- [ DataMember ( Name = "place_name" ) ]
47+ /// <summary>
48+ /// The full place name.
49+ /// </summary>
50+ [ JsonPropertyName ( "place_name" ) ]
2851 public string PlaceName { get ; set ; } = null ! ;
2952
30- [ DataMember ( Name = "matching_text" ) ]
53+ /// <summary>
54+ /// The matching text.
55+ /// </summary>
56+ [ JsonPropertyName ( "matching_text" ) ]
3157 public string MatchingText { get ; set ; } = null ! ;
3258
33- [ DataMember ( Name = "matching_place_name" ) ]
59+ /// <summary>
60+ /// The matching place name.
61+ /// </summary>
62+ [ JsonPropertyName ( "matching_place_name" ) ]
3463 public string MatchingPlaceName { get ; set ; } = null ! ;
3564
36- [ DataMember ( Name = "center" ) ]
65+ /// <summary>
66+ /// The center coordinates.
67+ /// </summary>
68+ [ JsonPropertyName ( "center" ) ]
3769 public IList < double > Center { get ; set ; } = null ! ;
3870
39- [ DataMember ( Name = "geometry" ) ]
71+ /// <summary>
72+ /// The feature geometry.
73+ /// </summary>
74+ [ JsonPropertyName ( "geometry" ) ]
4075 public Geometry Geometry { get ; set ; } = null ! ;
4176
42- [ DataMember ( Name = "address" ) ]
77+ /// <summary>
78+ /// The address.
79+ /// </summary>
80+ [ JsonPropertyName ( "address" ) ]
4381 public string Address { get ; set ; } = null ! ;
4482
45- [ DataMember ( Name = "context" ) ]
83+ /// <summary>
84+ /// The context hierarchy.
85+ /// </summary>
86+ [ JsonPropertyName ( "context" ) ]
4687 public IList < Context > Context { get ; set ; } = null ! ;
4788
48- [ DataMember ( Name = "bbox" ) ]
89+ /// <summary>
90+ /// The bounding box.
91+ /// </summary>
92+ [ JsonPropertyName ( "bbox" ) ]
4993 public IList < double > Bbox { get ; set ; } = null ! ;
5094}
0 commit comments