You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.1 KiB

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