//----------------------------------------------------------------------- // // Copyright (c) 2016 Mapbox. All rights reserved. // //----------------------------------------------------------------------- namespace Mapbox.Directions { using System.Collections.Generic; using Mapbox.Json; using Mapbox.Utils; using Mapbox.Utils.JsonConverters; /// /// A step from a Directions API call. /// public class Step { /// /// Gets or sets the intersections. /// /// The intersections. [JsonProperty("intersections")] public List Intersections { get; set; } /// /// Gets or sets the geometry. /// /// The geometry. [JsonProperty("geometry")] [JsonConverter(typeof(PolylineToVector2dListConverter))] public List Geometry { get; set; } /// /// Gets or sets the maneuver. /// /// The maneuver. [JsonProperty("maneuver")] public Maneuver Maneuver { get; set; } /// /// Gets or sets the duration. /// /// The duration. [JsonProperty("duration")] public double Duration { get; set; } /// /// Gets or sets the distance. /// /// The distance. [JsonProperty("distance")] public double Distance { get; set; } /// /// Gets or sets the name. /// /// The name. [JsonProperty("name")] public string Name { get; set; } /// /// Gets or sets the mode. /// /// The mode. [JsonProperty("mode")] public string Mode { get; set; } } }