Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2287 - 1

2
namespace GMap.NET
3
{
4
   /// <summary>
5
   /// represents place info
6
   /// </summary>
7
   public struct Placemark
8
   {
9
      string address;
10
 
11
      /// <summary>
12
      /// the address
13
      /// </summary>
14
      public string Address
15
      {
16
         get
17
         {
18
            return address;
19
         }
20
         internal set
21
         {
22
            address = value;
23
         }
24
      }
25
 
26
      /// <summary>
27
      /// the accuracy of address
28
      /// </summary>
29
      public int Accuracy;
30
 
31
      // parsed values from address      
32
      public string ThoroughfareName;      
33
      public string LocalityName;
34
      public string PostalCodeNumber;
35
      public string CountryName;
36
      public string AdministrativeAreaName;
37
      public string DistrictName;
38
      public string SubAdministrativeAreaName;
39
      public string Neighborhood;
40
      public string StreetNumber;
41
 
42
      public string CountryNameCode;
43
      public string HouseNo;
44
 
45
      internal Placemark(string address)
46
      {
47
         this.address = address;
48
 
49
         Accuracy = 0;
50
         HouseNo = string.Empty;
51
         ThoroughfareName = string.Empty;
52
         DistrictName = string.Empty;
53
         LocalityName = string.Empty;
54
         PostalCodeNumber = string.Empty;
55
         CountryName = string.Empty;
56
         CountryNameCode = string.Empty;
57
         AdministrativeAreaName = string.Empty;
58
         SubAdministrativeAreaName = string.Empty;
59
         Neighborhood = string.Empty;
60
         StreetNumber = string.Empty;
61
      }
62
   }
63
}