private void Process()
        {
            var store = this.State.Store;
            var osm   = new OpenStreetMapsProxy();

            Parallel.ForEach(store.GeocodeMatrices(), (m) =>
            {
                foreach (var n in f(m))
                {
                    var c = m.GeoCode.Code;
                    var d = osm.FindDistance(c, n);
                    store.Add(GeoDistance.Create(c, n, d));
                }
            });
        }
Beispiel #2
0
 public bool Exists(GeoDistance distance) => distances.Exists(distance);
Beispiel #3
0
 public void Add(GeoDistance distance) => distances.Add(distance);