2023-03-14 17:00:59 +01:00
|
|
|
namespace OSMDatastructure.Graph;
|
2023-02-06 17:32:55 +01:00
|
|
|
|
2023-03-30 18:24:57 +02:00
|
|
|
[Serializable]
|
2023-02-06 17:32:55 +01:00
|
|
|
public class OsmEdge
|
|
|
|
{
|
2023-03-30 18:24:57 +02:00
|
|
|
public ulong wayId { get; }
|
|
|
|
public ulong neighborId { get; }
|
|
|
|
public ulong neighborRegion { get; }
|
2023-02-06 17:32:55 +01:00
|
|
|
|
2023-02-07 23:52:57 +01:00
|
|
|
|
2023-03-30 18:24:57 +02:00
|
|
|
public OsmEdge(ulong wayID, ulong neighborID, ulong neighborRegion)
|
2023-02-06 17:32:55 +01:00
|
|
|
{
|
2023-03-30 18:24:57 +02:00
|
|
|
this.wayId = wayID;
|
|
|
|
this.neighborId = neighborID;
|
|
|
|
this.neighborRegion = neighborRegion;
|
2023-02-08 18:49:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
{
|
2023-03-30 18:24:57 +02:00
|
|
|
return $"EDGE WayID: {wayId} NeighborID: {neighborId} {neighborRegion}";
|
2023-02-08 18:49:21 +01:00
|
|
|
}
|
2023-02-06 17:32:55 +01:00
|
|
|
}
|