| | | 1 | | using System.Collections.Generic; |
| | | 2 | | using Itinero.Routes.Paths; |
| | | 3 | | |
| | | 4 | | namespace Itinero.MapMatching.Model; |
| | | 5 | | |
| | | 6 | | public class GraphEdge |
| | | 7 | | { |
| | 269378 | 8 | | public int Node1 { get; set; } |
| | | 9 | | |
| | 248685 | 10 | | public int Node2 { get; set; } |
| | | 11 | | |
| | 243573 | 12 | | public double Cost { get; set; } |
| | | 13 | | |
| | 123667 | 14 | | public List<(string key, string value)>? Attributes { get; set; } |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// The cached route path between the two snap points, if available. |
| | | 18 | | /// </summary> |
| | 127689 | 19 | | public Path? CachedPath { get; set; } |
| | | 20 | | |
| | | 21 | | public override string ToString() |
| | 0 | 22 | | { |
| | 0 | 23 | | return $"{this.Node1} -> {this.Node2} with c={this.Cost}"; |
| | 0 | 24 | | } |
| | | 25 | | } |