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 String adminName4;
050
051        private String adminCode4;
052
053        private double distance;
054
055        /**
056         * @return Returns the distance.
057         */
058        public double getDistance() {
059                return distance;
060        }
061
062        /**
063         * @param distance The distance to set.
064         */
065        public void setDistance(double distance) {
066                this.distance = distance;
067        }
068
069        /**
070         * @return Returns the adminCode1.
071         */
072        public String getAdminCode1() {
073                return adminCode1;
074        }
075
076        /**
077         * @param adminCode1 The adminCode1 to set.
078         */
079        public void setAdminCode1(String adminCode1) {
080                this.adminCode1 = adminCode1;
081        }
082
083        /**
084         * @return Returns the adminCode2.
085         */
086        public String getAdminCode2() {
087                return adminCode2;
088        }
089
090        /**
091         * @param adminCode2 The adminCode2 to set.
092         */
093        public void setAdminCode2(String adminCode2) {
094                this.adminCode2 = adminCode2;
095        }
096
097        /**
098         * @return Returns the adminName1.
099         */
100        public String getAdminName1() {
101                return adminName1;
102        }
103
104        /**
105         * @param adminName1 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 The adminName2 to set.
120         */
121        public void setAdminName2(String adminName2) {
122                this.adminName2 = adminName2;
123        }
124
125        /**
126         * @return the adminName3
127         */
128        public String getAdminName3() {
129                return adminName3;
130        }
131
132        /**
133         * @param adminName3 the adminName3 to set
134         */
135        public void setAdminName3(String adminName3) {
136                this.adminName3 = adminName3;
137        }
138
139        /**
140         * @return the adminCode3
141         */
142        public String getAdminCode3() {
143                return adminCode3;
144        }
145
146        /**
147         * @param adminCode3 the adminCode3 to set
148         */
149        public void setAdminCode3(String adminCode3) {
150                this.adminCode3 = adminCode3;
151        }
152
153        /**
154         * @return the adminName4
155         */
156        public String getAdminName4() {
157                return adminName4;
158        }
159
160        /**
161         * @param adminName4 the adminName4 to set
162         */
163        public void setAdminName4(String adminName4) {
164                this.adminName4 = adminName4;
165        }
166
167        /**
168         * @return the adminCode4
169         */
170        public String getAdminCode4() {
171                return adminCode4;
172        }
173
174        /**
175         * @param adminCode4 the adminCode4 to set
176         */
177        public void setAdminCode4(String adminCode4) {
178                this.adminCode4 = adminCode4;
179        }
180
181        /**
182         * @return Returns the ISO 3166-1-alpha-2 countryCode.
183         */
184        public String getCountryCode() {
185                return countryCode;
186        }
187
188        /**
189         * @param countryCode The ISO 3166-1-alpha-2 countryCode to set.
190         */
191        public void setCountryCode(String countryCode) {
192                this.countryCode = countryCode;
193        }
194
195        /**
196         * latitude in WGS84
197         * 
198         * @return Returns the latitude.
199         */
200        public double getLatitude() {
201                return latitude;
202        }
203
204        /**
205         * @param latitude The latitude to set.
206         */
207        public void setLatitude(double latitude) {
208                this.latitude = latitude;
209        }
210
211        /**
212         * longitude in WGS84
213         * 
214         * @return Returns the longitude.
215         */
216        public double getLongitude() {
217                return longitude;
218        }
219
220        /**
221         * @param longitude The longitude to set.
222         */
223        public void setLongitude(double longitude) {
224                this.longitude = longitude;
225        }
226
227        /**
228         * @return Returns the placeName.
229         */
230        public String getPlaceName() {
231                return placeName;
232        }
233
234        /**
235         * @param placeName The placeName to set.
236         */
237        public void setPlaceName(String placeName) {
238                this.placeName = placeName;
239        }
240
241        /**
242         * @return Returns the postalCode.
243         */
244        public String getPostalCode() {
245                return postalCode;
246        }
247
248        /**
249         * @param postalCode The postalCode to set.
250         */
251        public void setPostalCode(String postalCode) {
252                this.postalCode = postalCode;
253        }
254
255}