001/* 002 * Copyright 2008 Marc Wick, geonames.org 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 * 016 */ 017package org.geonames; 018 019/** 020 * a postal code 021 * 022 * @author marc@geonames 023 * 024 */ 025public class PostalCode { 026 027 private String postalCode; 028 029 private String placeName; 030 031 private String countryCode; 032 033 private double latitude; 034 035 private double longitude; 036 037 private String adminName1; 038 039 private String adminCode1; 040 041 private String adminName2; 042 043 private String adminCode2; 044 045 private String adminName3; 046 047 private String adminCode3; 048 049 private double distance; 050 051 /** 052 * @return Returns the distance. 053 */ 054 public double getDistance() { 055 return distance; 056 } 057 058 /** 059 * @param distance 060 * The distance to set. 061 */ 062 public void setDistance(double distance) { 063 this.distance = distance; 064 } 065 066 /** 067 * @return Returns the adminCode1. 068 */ 069 public String getAdminCode1() { 070 return adminCode1; 071 } 072 073 /** 074 * @param adminCode1 075 * The adminCode1 to set. 076 */ 077 public void setAdminCode1(String adminCode1) { 078 this.adminCode1 = adminCode1; 079 } 080 081 /** 082 * @return Returns the adminCode2. 083 */ 084 public String getAdminCode2() { 085 return adminCode2; 086 } 087 088 /** 089 * @param adminCode2 090 * The adminCode2 to set. 091 */ 092 public void setAdminCode2(String adminCode2) { 093 this.adminCode2 = adminCode2; 094 } 095 096 /** 097 * @return Returns the adminName1. 098 */ 099 public String getAdminName1() { 100 return adminName1; 101 } 102 103 /** 104 * @param adminName1 105 * The adminName1 to set. 106 */ 107 public void setAdminName1(String adminName1) { 108 this.adminName1 = adminName1; 109 } 110 111 /** 112 * @return Returns the adminName2. 113 */ 114 public String getAdminName2() { 115 return adminName2; 116 } 117 118 /** 119 * @param adminName2 120 * The adminName2 to set. 121 */ 122 public void setAdminName2(String adminName2) { 123 this.adminName2 = adminName2; 124 } 125 126 /** 127 * @return the adminName3 128 */ 129 public String getAdminName3() { 130 return adminName3; 131 } 132 133 /** 134 * @param adminName3 135 * the adminName3 to set 136 */ 137 public void setAdminName3(String adminName3) { 138 this.adminName3 = adminName3; 139 } 140 141 /** 142 * @return the adminCode3 143 */ 144 public String getAdminCode3() { 145 return adminCode3; 146 } 147 148 /** 149 * @param adminCode3 150 * the adminCode3 to set 151 */ 152 public void setAdminCode3(String adminCode3) { 153 this.adminCode3 = adminCode3; 154 } 155 156 /** 157 * @return Returns the ISO 3166-1-alpha-2 countryCode. 158 */ 159 public String getCountryCode() { 160 return countryCode; 161 } 162 163 /** 164 * @param countryCode 165 * The ISO 3166-1-alpha-2 countryCode to set. 166 */ 167 public void setCountryCode(String countryCode) { 168 this.countryCode = countryCode; 169 } 170 171 /** 172 * latitude in WGS84 173 * 174 * @return Returns the latitude. 175 */ 176 public double getLatitude() { 177 return latitude; 178 } 179 180 /** 181 * @param latitude 182 * The latitude to set. 183 */ 184 public void setLatitude(double latitude) { 185 this.latitude = latitude; 186 } 187 188 /** 189 * longitude in WGS84 190 * 191 * @return Returns the longitude. 192 */ 193 public double getLongitude() { 194 return longitude; 195 } 196 197 /** 198 * @param longitude 199 * The longitude to set. 200 */ 201 public void setLongitude(double longitude) { 202 this.longitude = longitude; 203 } 204 205 /** 206 * @return Returns the placeName. 207 */ 208 public String getPlaceName() { 209 return placeName; 210 } 211 212 /** 213 * @param placeName 214 * The placeName to set. 215 */ 216 public void setPlaceName(String placeName) { 217 this.placeName = placeName; 218 } 219 220 /** 221 * @return Returns the postalCode. 222 */ 223 public String getPostalCode() { 224 return postalCode; 225 } 226 227 /** 228 * @param postalCode 229 * The postalCode to set. 230 */ 231 public void setPostalCode(String postalCode) { 232 this.postalCode = postalCode; 233 } 234 235}