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 street line segment. Includes house number information for the beginning
021 * and end of the line as well as right and left hand side of the line.
022 * 
023 * @author marc@geonames
024 * 
025 */
026public class StreetSegment extends PostalCode {
027
028        private double[] latArray;
029
030        private double[] lngArray;
031
032        /**
033         * census feature class codes see
034         * http://www.geonames.org/maps/Census-Feature-Class-Codes.txt
035         */
036        private String cfcc;
037
038        private String name;
039
040        /**
041         * from address left
042         */
043        private String fraddl;
044
045        /**
046         * from address right
047         */
048        private String fraddr;
049
050        /**
051         * to address left
052         */
053        private String toaddl;
054
055        /**
056         * to address right
057         */
058        private String toaddr;
059
060        /**
061         * @return the latArray
062         */
063        public double[] getLatArray() {
064                return latArray;
065        }
066
067        /**
068         * @param latArray
069         *            the latArray to set
070         */
071        public void setLatArray(double[] latArray) {
072                this.latArray = latArray;
073        }
074
075        /**
076         * @return the lngArray
077         */
078        public double[] getLngArray() {
079                return lngArray;
080        }
081
082        /**
083         * @param lngArray
084         *            the lngArray to set
085         */
086        public void setLngArray(double[] lngArray) {
087                this.lngArray = lngArray;
088        }
089
090        /**
091         * @return the cfcc
092         */
093        public String getCfcc() {
094                return cfcc;
095        }
096
097        /**
098         * @param cfcc
099         *            the cfcc to set
100         */
101        public void setCfcc(String cfcc) {
102                this.cfcc = cfcc;
103        }
104
105        /**
106         * @return the name
107         */
108        public String getName() {
109                return name;
110        }
111
112        /**
113         * @param name
114         *            the name to set
115         */
116        public void setName(String name) {
117                this.name = name;
118        }
119
120        /**
121         * @return the fraddl
122         */
123        public String getFraddl() {
124                return fraddl;
125        }
126
127        /**
128         * @param fraddl
129         *            the fraddl to set
130         */
131        public void setFraddl(String fraddl) {
132                this.fraddl = fraddl;
133        }
134
135        /**
136         * @return the fraddr
137         */
138        public String getFraddr() {
139                return fraddr;
140        }
141
142        /**
143         * @param fraddr
144         *            the fraddr to set
145         */
146        public void setFraddr(String fraddr) {
147                this.fraddr = fraddr;
148        }
149
150        /**
151         * @return the toaddl
152         */
153        public String getToaddl() {
154                return toaddl;
155        }
156
157        /**
158         * @param toaddl
159         *            the toaddl to set
160         */
161        public void setToaddl(String toaddl) {
162                this.toaddl = toaddl;
163        }
164
165        /**
166         * @return the toaddr
167         */
168        public String getToaddr() {
169                return toaddr;
170        }
171
172        /**
173         * @param toaddr
174         *            the toaddr to set
175         */
176        public void setToaddr(String toaddr) {
177                this.toaddr = toaddr;
178        }
179
180}