private Dictionary <string, double> GetTweetCenterDistance(List <State> states, Tweet tweet) { Dictionary <string, double> tweetCenterDistance = new Dictionary <string, double>(states.Count); foreach (State state in states) { Point pointCenter = GeoLocation.CalculateGeoCenter(state.Coordinates); tweetCenterDistance.Add(state.Name, GeoLocation.CalculateGeoDistance(pointCenter.X, pointCenter.Y, tweet.Latitude, tweet.Longitude)); } return(tweetCenterDistance); }