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     */
017    package org.geonames;
018    
019    /**
020     * an intersection between two streets
021     * 
022     * @author Mark Thomas
023     * 
024     */
025    public class Intersection {
026            private String street2;
027    
028            private Address address = new Address();
029    
030            public double getDistance() {
031                    return address.getDistance();
032            }
033    
034            public void setDistance(double d) {
035                    address.setDistance(d);
036            }
037    
038            public String getAdminCode1() {
039                    return address.getAdminCode1();
040            }
041    
042            public void setAdminCode1(String s) {
043                    address.setAdminCode1(s);
044            }
045    
046            public String getAdminName1() {
047                    return address.getAdminName1();
048            }
049    
050            public void setAdminName1(String s) {
051                    address.setAdminName1(s);
052            }
053    
054            public String getAdminName2() {
055                    return address.getAdminName2();
056            }
057    
058            public void setAdminName2(String s) {
059                    address.setAdminName2(s);
060            }
061    
062            public String getCountryCode() {
063                    return address.getCountryCode();
064            }
065    
066            public void setCountryCode(String s) {
067                    address.setCountryCode(s);
068            }
069    
070            public double getLatitude() {
071                    return address.getLatitude();
072            }
073    
074            public void setLatitude(double d) {
075                    address.setLatitude(d);
076            }
077    
078            public double getLongitude() {
079                    return address.getLongitude();
080            }
081    
082            public void setLongitude(double d) {
083                    address.setLongitude(d);
084            }
085    
086            public String getPlaceName() {
087                    return address.getPlaceName();
088            }
089    
090            public void setPlaceName(String s) {
091                    address.setPlaceName(s);
092            }
093    
094            public String getPostalCode() {
095                    return address.getPostalCode();
096            }
097    
098            public void setPostalCode(String s) {
099                    address.setPostalCode(s);
100            }
101    
102            public String getStreet1() {
103                    return address.getStreet();
104            }
105    
106            public void setStreet1(String s) {
107                    address.setStreet(s);
108            }
109    
110            public String getStreet2() {
111                    return street2;
112            }
113    
114            public void setStreet2(String street2) {
115                    this.street2 = street2;
116            }
117    
118    }