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)); } }); }
public bool Exists(GeoDistance distance) => distances.Exists(distance);
public void Add(GeoDistance distance) => distances.Add(distance);