public void LatLngWorks() { var location = new LatLng { Latitude = 57, Longitude = 12 }; var values = location.ToArray(); Assert.Equal(2, values.Length); Assert.Equal(57, values[0]); Assert.Equal(12, values[1]); }
/// <summary> /// Initializes a new instance of the <see cref="CircleQualifer"/> class. /// </summary> /// <param name="center">The center point</param> /// <param name="radius">The radius of the search</param> public CircleQualifer(LatLng center, double radius) : base("$center", new object[] { center.ToArray(), radius }) { }
/// <summary> /// Initializes a new instance of the <see cref="NearQualifier"/> class. /// </summary> /// <param name="center">The center point</param> public NearQualifier(LatLng center) : base("$near", center.ToArray()) { }