@@ -17,27 +17,39 @@ namespace GeoJSON.Net.Feature
1717 using Newtonsoft . Json ;
1818
1919 /// <summary>
20- /// The Features endpoint provides details for all SimpleGeo features .
20+ /// A GeoJSON <see cref="http://geojson.org/geojson-spec.html#feature-objects">Feature Object</see> .
2121 /// </summary>
22- /// <seealso cref="http://simplegeo.com/docs/getting-started/simplegeo-101#feature"/>
23- /// <seealso cref="http://simplegeo.com/docs/api-endpoints/simplegeo-features"/>
24- /// <seealso cref="http://developers.simplegeo.com/blog/2010/12/08/simplegeo-features-api/"/>
2522 public class Feature : GeoJSONObject
2623 {
2724 /// <summary>
28- /// Gets the <see cref="id"/>.
25+ /// Initializes a new instance of the <see cref="Feature"/> class.
26+ /// </summary>
27+ /// <param name="geometry">The Geometry Object.</param>
28+ /// <param name="properties">The properties.</param>
29+ public Feature ( IGeometryObject geometry , Dictionary < string , object > properties = null )
30+ {
31+ this . Geometry = geometry ;
32+ this . Properties = properties ;
33+
34+ this . Type = GeoJSONObjectType . Feature ;
35+ }
36+
37+ /// <summary>
38+ /// Gets or sets the id.
2939 /// </summary>
3040 /// <value>The handle.</value>
3141 [ JsonProperty ( PropertyName = "id" ) ]
32- public string Id { get ; private set ; }
42+ public string Id { get ; set ; }
3343
3444 /// <summary>
35- /// Gets the geometry.
45+ /// Gets or sets the geometry.
3646 /// </summary>
37- /// <value>The geometry.</value>
47+ /// <value>
48+ /// The geometry.
49+ /// </value>
3850 [ JsonProperty ( PropertyName = "geometry" , Required = Required . AllowNull ) ]
3951 [ JsonConverter ( typeof ( GeometryConverter ) ) ]
40- public IGeometryObject GeometryObject { get ; private set ; }
52+ public IGeometryObject Geometry { get ; set ; }
4153
4254 /// <summary>
4355 /// Gets the properties.
0 commit comments