OSMServer/OSMDatastructure/OsmEdge.cs
glax 806dcf98c9 Renamed OsmWay -> OsmEdge again
Prevented duplicate writes of Tags for way
2023-04-01 01:47:56 +02:00

24 lines
621 B
C#

namespace OSMDatastructure.Graph;
[Serializable]
public class OsmEdge
{
public ulong wayId { get; }
public ulong startId { get; }
public ulong neighborId { get; }
public ulong neighborRegion { get; }
public OsmEdge(ulong wayId, ulong startId, ulong neighborId, ulong neighborRegion)
{
this.wayId = wayId;
this.startId = startId;
this.neighborId = neighborId;
this.neighborRegion = neighborRegion;
}
public override string ToString()
{
return $"EDGE WayID: {wayId} StartID: {startId} NeighborID: {neighborId} in {neighborRegion}";
}
}