//----------------------------------------------------------------------- // // Copyright (c) 2016 Mapbox. All rights reserved. // //----------------------------------------------------------------------- namespace Mapbox.Geocoding { using System; using Mapbox.Json; using Mapbox.Utils; using Mapbox.Utils.JsonConverters; /// Point geometry representing location of geocode result. #if !WINDOWS_UWP //http://stackoverflow.com/a/12903628 [Serializable] #endif public class Geometry { /// /// Gets or sets type. Geocode results will always be type: point. /// /// The GeoJSON geometry type. [JsonProperty("type")] public string Type { get; set; } /// /// Gets or sets coordinates. Because they are points, Geocode results will always be a single Geocoordinate. /// /// The coordinates. [JsonConverter(typeof(LonLatToVector2dConverter))] [JsonProperty("coordinates")] public Vector2d Coordinates { get; set; } } }