-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAddressInfo.java
128 lines (103 loc) · 2.1 KB
/
AddressInfo.java
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
//package AddressBook;
public class AddressInfo {
private String name="";//姓名
private String phoneNumber="";//手机号
private String province="";//省级
private String city="";//市级
private String county="";//县级
private String town="";//镇
private String village1="";//具体地址
private String village2="";
private String village3="";
private double lng;//经度
private double lat;//纬度
//经度
public double getLng()
{
return lng;
}
public void setLng(double lng)
{
this.lng=lng;
}
//纬度
public double getLat()
{
return lat;
}
public void setLat(double lat)
{
this.lat=lat;
}
//姓名
public String getName()
{
return name;
}
public void setName(String name)
{
this.name=name;
}
//手机号
public String getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber= phoneNumber;
}
//省级
public String getProvince() {
return province;
}
public void setProvince(String province) {
this.province= province;
}
//市级
public String getCity() {
return city;
}
public void setCity(String city) {
this.city= city;
}
//县级
public String getCounty() {
return county;
}
public void setCounty(String county) {
this.county= county;
}
//镇
public String getTown() {
return town;
}
public void setTown(String town) {
this.town= town;
}
//具体地址1
public String getVillage1() {
return village1;
}
public void setVillage1(String village1) {
this.village1= village1;
}
//2
public String getVillage2() {
return village2;
}
public void setVillage2(String village2) {
this.village2= village2;
}
//3
public String getVillage3() {
return village3;
}
public void setVillage3(String village3) {
this.village3= village3;
}
@Override
public String toString() {
return "AddressInfo [lng=" + lng+ ", lat=" + lat
+ ", name="+name+", phone="+phoneNumber+", province=" + province + ", city=" + city
+ ", county=" + county + ", town=" +town+", village1="+village1+", village2="+village2+", village3="+village3+"]";
}
}