Exemplo n.º 1
0
 /// <summary>
 /// Creates a location object with the specified coordinate and altitude information.
 /// </summary>
 /// <param name="coordinate">A coordinate structure containing the latitude and longitude values.</param>
 /// <param name="altitude">The altitude value for the location.</param>
 /// <param name="hAccuracy">
 /// The radius of uncertainty for the geographical coordinate, measured in meters.
 /// Specify a negative number to indicate that the geographical coordinate is invalid.
 /// </param>
 /// <param name="vAccuracy">
 /// The accuracy of the altitude value, measured in meters.
 /// Specify a negative number to indicate that the altitude is invalid.
 /// </param>
 /// <param name="timestamp">
 /// he time to associate with the location object.
 /// Typically, you specify the current time.
 /// </param>
 public ISN_CLLocation(ISN_CLLocationCoordinate2D coordinate,
                       double altitude,
                       double hAccuracy,
                       double vAccuracy,
                       DateTime timestamp)
 {
     m_Coordinate         = coordinate;
     m_Altitude           = altitude;
     m_HorizontalAccuracy = hAccuracy;
     m_VerticalAccuracy   = vAccuracy;
     m_Timestamp          = SA_Unix_Time.ToUnixTime(timestamp);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes and returns a region object defining a circular geographic area.
 /// </summary>
 /// <param name="center">The center point of the geographic region to monitor.</param>
 /// <param name="radius">The distance (measured in meters) from the center point of the geographic region to the edge of the circular boundary.</param>
 /// <param name="identifier">
 /// A unique identifier to associate with the region object. You use this identifier to differentiate regions within your application.
 /// This value must not be <c>null</c>.
 /// </param>
 public ISN_CLCircularRegion(ISN_CLLocationCoordinate2D center, float radius, string identifier) : base(identifier)
 {
     m_center = center;
     m_radius = radius;
 }