-
Notifications
You must be signed in to change notification settings - Fork 0
/
GeoCoordinate.cs
43 lines (39 loc) · 1.04 KB
/
GeoCoordinate.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System.Runtime.Serialization;
namespace MeetingRequest
{
/// <summary>
/// Coordinate of an event.
/// </summary>
[DataContract]
public class GeoCoordinate
{
/// <summary>
/// Create a new GPS position
/// </summary>
/// <param name="latitude">Latitude</param>
/// <param name="longitude">Longitude</param>
public GeoCoordinate(double latitude, double longitude)
{
this.Lat = latitude;
this.Long = longitude;
}
/// <summary>
/// Longitude
/// </summary>
[DataMember]
public double Long { get; set; }
/// <summary>
/// Latitude
/// </summary>
[DataMember]
public double Lat { get; set; }
/// <summary>
/// Return an alarm class in RFC-2445 format
/// </summary>
internal string GetFormattedElement()
{
//;Latitude and Longitude components
return string.Format("{0};{1}", FormatHelper.FormatDouble(this.Lat), FormatHelper.FormatDouble(this.Long));
}
}
}