MapLocationInfo.java 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. /*
  2. * @Title: MapLocation.java
  3. * @Description: 地图信息
  4. * @version: V1.0
  5. * @data: 2015-12-16 下午2:03:01
  6. * @Copyright: Zac Co., Ltd. Copyright 2003-2015, All rights reserved
  7. */
  8. package com.zhilin.patrol.bean;
  9. import android.text.TextUtils;
  10. import java.io.Serializable;
  11. /**
  12. * @author hanli
  13. */
  14. public class MapLocationInfo implements Serializable {
  15. /**
  16. *
  17. */
  18. private static final long serialVersionUID = 1L;
  19. /** 地址 */
  20. private String address;
  21. /** 省份 */
  22. private String province;
  23. /** 城市 */
  24. private String city;
  25. /** 区域 */
  26. private String district;
  27. /** 街道 */
  28. private String street;
  29. /** 纬度 */
  30. private double latitude;
  31. /** 精度 */
  32. private double longitude;
  33. /** 附近点 */
  34. private String aoi;
  35. /** 兴趣点 */
  36. private String poi;
  37. public MapLocationInfo() {
  38. }
  39. public MapLocationInfo(String address, String province, String city, String district, String street, double latitude, double longitude, String aoi, String poi) {
  40. super();
  41. this.address = address;
  42. this.province = province;
  43. this.city = city;
  44. this.street = street;
  45. this.district = district;
  46. this.latitude = latitude;
  47. this.longitude = longitude;
  48. this.aoi = aoi;
  49. this.poi = poi;
  50. }
  51. public String getAoi() {
  52. return TextUtils.isEmpty(aoi) ? "" : aoi;
  53. }
  54. public void setAoi(String aoi) {
  55. this.aoi = aoi;
  56. }
  57. public String getPoi() {
  58. return TextUtils.isEmpty(poi) ? "" : poi;
  59. }
  60. public void setPoi(String poi) {
  61. this.poi = poi;
  62. }
  63. public String getStreet() {
  64. return TextUtils.isEmpty(street) ? "" : street;
  65. }
  66. public void setStreet(String street) {
  67. this.street = street;
  68. }
  69. public String getAddress() {
  70. return address;
  71. }
  72. public void setAddress(String address) {
  73. this.address = address;
  74. }
  75. public String getProvince() {
  76. return TextUtils.isEmpty(province) ? "" : province;
  77. }
  78. public void setProvince(String province) {
  79. this.province = province;
  80. }
  81. public String getCity() {
  82. return TextUtils.isEmpty(city) ? "" : city;
  83. }
  84. public void setCity(String city) {
  85. this.city = city;
  86. }
  87. public String getDistrict() {
  88. return TextUtils.isEmpty(district) ? "" : district;
  89. }
  90. public void setDistrict(String district) {
  91. this.district = district;
  92. }
  93. public double getLatitude() {
  94. return latitude;
  95. }
  96. public void setLatitude(double latitude) {
  97. this.latitude = latitude;
  98. }
  99. public double getLongitude() {
  100. return longitude;
  101. }
  102. public void setLongitude(double longitude) {
  103. this.longitude = longitude;
  104. }
  105. @Override
  106. public String toString() {
  107. return "MapLocationInfo{" +
  108. "address='" + address + '\'' +
  109. ", province='" + province + '\'' +
  110. ", city='" + city + '\'' +
  111. ", district='" + district + '\'' +
  112. ", street='" + street + '\'' +
  113. ", latitude=" + latitude +
  114. ", longitude=" + longitude +
  115. '}';
  116. }
  117. }