private static double DistanceToLongitudeDegrees(Position position, Distance distance) { double latCircumference = LatitudeCircumferenceKm(position); return(distance.Kilometers / latCircumference * 360); }
public static MapSpan FromCenterAndRadius(Position center, Distance radius) { return(new MapSpan(center, 2 * DistanceToLatitudeDegrees(radius), 2 * DistanceToLongitudeDegrees(center, radius))); }
private static double DistanceToLatitudeDegrees(Distance distance) { return(distance.Kilometers / EarthCircumferenceKm * 360); }