This repository has been archived on 2025-01-15. You can view files and clone it, but cannot push or open issues or pull requests.
Files
OSMServer/OSMDatastructure/Node.cs

22 lines
493 B
C#

namespace OSMDatastructure
{
public class Node : Coordinates
{
private readonly 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();
}
}
}