OSMServer/Importer/Node.cs

21 lines
412 B
C#
Raw Normal View History

2023-02-02 19:03:00 +01:00
namespace OSMServer;
public class Node : Coordinates
{
private HashSet<Connection> connections = new HashSet<Connection>();
public Node(float lat, float lon) : base(lat, lon)
{
}
public void AddConnection(Connection connection)
{
this.connections.Add(connection);
}
public Connection[] GetConnections()
{
return this.connections.ToArray();
}
}