//----------------------------------------------------------------------- // // Copyright (c) 2016 Mapbox. All rights reserved. // //----------------------------------------------------------------------- namespace Mapbox.Directions { using System.Collections.Generic; using Mapbox.Json; /// /// A Leg from a Directions API call. /// public class Leg { /// /// Depending on the steps parameter, either an Array of RouteStep objects (true, default) or an empty array (false) /// /// The steps. [JsonProperty("steps")] public List Steps { get; set; } /// /// Depending on the summary parameter, either a String summarizing the route (true, default) or an empty String (false). /// /// The summary. [JsonProperty("summary")] public string Summary { get; set; } /// /// Number indicating the estimated travel time in seconds. /// [JsonProperty("duration")] public double Duration { get; set; } /// /// Number indicating the distance traveled in meters. /// [JsonProperty("distance")] public double Distance { get; set; } /// /// An annotations object that contains additional details about each line segment along the route geometry. Each entry in an annotations field corresponds to a coordinate along the route geometry. /// [JsonProperty("annotation")] public Annotation Annotation { get; set; } } }