Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public TaxiData(TaxiNode.TaxiNodesDb2Record from, Dictionary <int, TaxiNode.TaxiNodesDb2Record> to)
 {
     From = from;
     To   = to;
 }