// ----------------------------------------------------------------------- // // TODO: Update copyright text. // // ----------------------------------------------------------------------- namespace OsmReader { using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Windows.Forms; using System.Xml.Serialization; using OsmReader.OsmData; using OsmReader.OsmData.Elements; /// /// TODO: Update summary. /// public class Link { public OsmWay way { get; private set; } public OsmNode startNode { get; private set; } public OsmNode endNode { get; private set; } public double length { get; private set; } public Link( OsmWay way, OsmNode startNode, OsmNode endNode, double length) { this.way = way; this.startNode = startNode; this.endNode = endNode; this.length = length; } public override string ToString() { return this.way.Ref + " '" + this.way.Name + "'" + " (" + this.way.id + ") " + " " + this.startNode.Name + " (" + this.startNode.id + ") " + " [ " + this.startNode.lat + " " + this.startNode.lon + " ] - " + this.endNode.Name + " (" + this.endNode.id + ") " + " [ " + this.endNode.lat + " " + this.endNode.lon + " ] " + this.way.Maxspeed + " km/h " + " Oneway=" + this.way.Oneway + " " + " Type=" + this.way.WayType + " " + "\r\n"; } } }