Beispiel #1
0
        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]);
        }
Beispiel #2
0
 /// <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 })
 {
 }
Beispiel #3
0
 /// <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())
 {
 }