public Place(int id, string name, JsonMoves.Day.Segment.Place.Location location) { this.id = id; this.name = name; this.location = location; }
public static float DistanceTo(JsonMoves.Day.Segment.Place.Location jwp1, JsonMoves.Day.Segment.Place.Location jwp2, char unit = 'K') { XmlTimeline.Coordinates wp1 = new XmlTimeline.Coordinates(jwp1.lat, jwp1.lon); XmlTimeline.Coordinates wp2 = new XmlTimeline.Coordinates(jwp2.lat, jwp2.lon); return(DistanceTo(wp1, wp2, unit)); }