public static TaxiData GetTaxiData(TaxiNode.TaxiNodesDb2Record from) { var to = new Dictionary <int, TaxiNode.TaxiNodesDb2Record>(); foreach (var record in _cachedTaxiPathRecords) { if (record.From != from.Id) { continue; } var nodeRecord = GetNode(record.To); if (nodeRecord.IsValid()) { to.Add(record.Id, nodeRecord); } } return(new TaxiData(from, to)); }
public TaxiData(TaxiNode.TaxiNodesDb2Record from, Dictionary <int, TaxiNode.TaxiNodesDb2Record> to) { From = from; To = to; }