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-03-31 21:55:43 +02:00
|
|
|
public class OsmWay
|
2023-02-06 17:32:55 +01:00
|
|
|
{
|
2023-03-30 18:24:57 +02:00
|
|
|
public ulong wayId { get; }
|
2023-03-31 21:55:43 +02:00
|
|
|
public ulong startId { get; }
|
2023-03-30 18:24:57 +02:00
|
|
|
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-31 21:55:43 +02:00
|
|
|
public OsmWay(ulong wayId, ulong startId, ulong neighborId, ulong neighborRegion)
|
2023-02-06 17:32:55 +01:00
|
|
|
{
|
2023-03-31 21:55:43 +02:00
|
|
|
this.wayId = wayId;
|
|
|
|
this.startId = startId;
|
|
|
|
this.neighborId = neighborId;
|
2023-03-30 18:24:57 +02:00
|
|
|
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
|
|
|
}
|