API
Data Model ¶
This section contains the core structure of data model, which includes all the variables used in the ATC survey.
Data Model for the SDIA Survey
AirPassenger
¶
Bases: Respondent
Data model for an air passenger respondent. It includes attributes specific to air passengers.
Source code in data_model/data_model.py
1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 | |
access_mode_frequency = Field(..., description='Number of times respondent used revealed access modes for other SDIA airport access trips in the past 12 months')
class-attribute
instance-attribute
¶
Number of times respondent used revealed access modes for other SDIA airport access trips in the past 12 months.
airline = Field(..., description="Airline of the respondent's flight")
class-attribute
instance-attribute
¶
Airline of the respondent’s flight.
airline_other = Field(..., description="Other (not listed) airline of the respondent's flight")
class-attribute
instance-attribute
¶
Other (not listed) airline of the respondent’s flight.
airport_access_transit_use_elsewhere = Field(..., description='Frequency of Transit use by respondent to access other airports')
class-attribute
instance-attribute
¶
Frequency of Transit use by respondent to access other airports.
airport_terminal
property
¶
Airport Terminal for Air Passenger
airportaccesstransitname = Field(..., description='Name of other airport accessed by transit')
class-attribute
instance-attribute
¶
Name of other airport accessed by transit.
carryon_bags = Field(..., description='Number of carry-on bags')
class-attribute
instance-attribute
¶
Number of carry-on bags.
checked_bags = Field(..., description='Number of checked bags')
class-attribute
instance-attribute
¶
Number of checked bags.
country_of_residence = Field(..., description='Country of residence for international vistors')
class-attribute
instance-attribute
¶
Country of residence for international vistors.
flight_number = Field(..., description="Flight number of the respondent's flight")
class-attribute
instance-attribute
¶
Flight number of the respondent’s flight.
flight_purpose = Field(..., description="Purpose of the respondent's flight")
class-attribute
instance-attribute
¶
Purpose of the respondent’s flight.
flight_purpose_other = Field(..., description="Other (not listed) purpose of the respondent's flight")
class-attribute
instance-attribute
¶
Other (not listed) purpose of the respondent’s flight
is_direct_flight = Field(..., description='True if the passenger did not use/is not using any connecting flights in their journey')
class-attribute
instance-attribute
¶
True if the passenger did not use/is not using any connecting flights in their journey
is_sdia_home_airport = Field(..., description="True if the respondent's home airport is SDIA")
class-attribute
instance-attribute
¶
True if the respondent’s home airport is SDIA
non_sdia_flight_frequency = Field(..., description="Respondent's number of flights from airport other than SDIA in the past 12 months")
class-attribute
instance-attribute
¶
Respondent’s number of flights from airport other than SDIA in the past 12 months.
number_of_nights = Field(..., description='Number of nights the respondent will be visiting/away')
class-attribute
instance-attribute
¶
Number of nights the respondent will be visiting/away
other_airport_accessmode = Field(..., description='Travel mode used to access other airports')
class-attribute
instance-attribute
¶
Travel mode used to access other airports
other_airport_accessmode_grouped = Field(..., description='Grouped Travel mode used to access other airports')
class-attribute
instance-attribute
¶
Grouped Travel mode used to access other airports
party_composition_list = Field(..., description='List of people in the traveling party')
class-attribute
instance-attribute
¶
List of people in the traveling party
party_includes_child_aged00to05 = Field(..., description='True if the traveling party includes a child aged zero to two')
class-attribute
instance-attribute
¶
True if the traveling party includes a child aged zero to two.
party_includes_child_aged06to17 = Field(..., description='True if the traveling party includes a child aged three to nine')
class-attribute
instance-attribute
¶
True if the traveling party includes a child aged three to nine.
party_includes_coworker = Field(..., description='True if the traveling party includes a coworker')
class-attribute
instance-attribute
¶
True if the traveling party includes a coworker.
party_includes_friend_relative = Field(..., description='True if the traveling party includes a friend or relative')
class-attribute
instance-attribute
¶
True if the traveling party includes a friend or relative.
party_includes_mobility_impaired = Field(..., description='True if the traveling party includes a mobility impaired person')
class-attribute
instance-attribute
¶
True if the traveling party includes a mobility impaired person
party_size_ground_access = Field(..., description='Size of ground access travel party')
class-attribute
instance-attribute
¶
Size of ground access travel party
party_size_ground_access_same = Field(..., description='Whether flying party all traveled to airport together')
class-attribute
instance-attribute
¶
Whether flying party all traveled to airport together
passenger_segment = Field(..., description='Segment of the air passenger: (Resident/Visitor and Arriving/Departing)')
class-attribute
instance-attribute
¶
Segment of the air passenger: (Resident/Visitor and Arriving/Departing)
passenger_type = Field(..., description='Type of Passenger: Arriving, Departing or Connecting')
class-attribute
instance-attribute
¶
Type of Passenger: Arriving, Departing or Connecting
previous_or_next_airport = Field(..., description='Where is the respondent flying from/flying to')
class-attribute
instance-attribute
¶
Where is the respondent flying from/flying to.
qualified_visitor = Field(..., description='True if the respondent is a qualified visitor')
class-attribute
instance-attribute
¶
True if the respondent is a qualified visitor.
reasons_no_transit_dislike_crowded_trains_buses = Field(..., description="True if the respondent did not use transit because they don't like crowded trains and buses")
class-attribute
instance-attribute
¶
True if the respondent did not use transit because they don’t like crowded trains and buses.
reasons_no_transit_dislike_public_transport = Field(..., description="True if the respondent did not use transit because they don't like public transport")
class-attribute
instance-attribute
¶
True if the respondent did not use transit because they don’t like public transport
reasons_no_transit_dislike_public_transport_with_luggage = Field(..., description="True if the respondent did not use transit because they don't like public transport with luggage")
class-attribute
instance-attribute
¶
True if the respondent did not use transit because they don’t like public transport with luggage
reasons_no_transit_does_not_run_when_needed = Field(..., description="True if the respondent did not use transit because of it's schedule")
class-attribute
instance-attribute
¶
True if the respondent did not use transit because of it’s schedule
reasons_no_transit_dont_know_how = Field(..., description="True if the respondent did not use transit because they don't know how")
class-attribute
instance-attribute
¶
True if the respondent did not use transit because they don’t know how.
reasons_no_transit_list = Field(..., description='List of reasons why the respondent did not use transit')
class-attribute
instance-attribute
¶
List of reasons why the respondent did not use transit.
reasons_no_transit_no_good_options = Field(..., description='True if the respondent did not use transit because there are no good options')
class-attribute
instance-attribute
¶
True if the respondent did not use transit because there are no good options
reasons_no_transit_not_convenient = Field(..., description='True if the respondent did not use transit because it is not convenient')
class-attribute
instance-attribute
¶
True if the respondent did not use transit because it is not convenient.
reasons_no_transit_not_economical = Field(..., description='True if the respondent did not use transit because it is not economical')
class-attribute
instance-attribute
¶
True if the respondent did not use transit because it is not economical
reasons_no_transit_not_flexible = Field(..., description='True if the respondent did not use transit because it is not flexible')
class-attribute
instance-attribute
¶
True if the respondent did not use transit because it is not flexible.
reasons_no_transit_not_reliable = Field(..., description='True if the respondent did not use transit because it is not reliable')
class-attribute
instance-attribute
¶
True if the respondent did not use transit because it is not reliable.
reasons_no_transit_not_safe = Field(..., description='True if the respondent did not use transit because it is not safe')
class-attribute
instance-attribute
¶
True if the respondent did not use transit because it is not safe.
reasons_no_transit_other = Field(..., description='Other reason why the respondent did not use transit')
class-attribute
instance-attribute
¶
Other reason why the respondent did not use transit.
reasons_no_transit_prefer_other_mode = Field(..., description='True if the respondent did not use transit because they prefer other modes(s)')
class-attribute
instance-attribute
¶
True if the respondent did not use transit because they prefer other mode(s)
reasons_no_transit_ride_too_long = Field(..., description='True if the respondent did not use transit because it takes too long')
class-attribute
instance-attribute
¶
True if the respondent did not use transit because it takes too long
reasons_no_transit_stop_too_far = Field(..., description='True if the respondent did not use transit because the stop is too far')
class-attribute
instance-attribute
¶
True if the respondent did not use transit because the stop is too far
reasons_no_transit_too_complicated = Field(..., description='True if the respondent did not use transit because it too complicated')
class-attribute
instance-attribute
¶
True if the respondent did not use transit because it is too complicated.
reasons_no_transit_too_many_transfers = Field(..., description='True if the respondent did not use transit because it requries too many transfers')
class-attribute
instance-attribute
¶
True if the respondent did not use transit because it requires too many transfers
reasons_no_transit_too_much_walking_stairs = Field(..., description='True if the respondent did not use transit because it involves too much walking and/or stairs')
class-attribute
instance-attribute
¶
True if the respondent did not use transit because it too much walking and/or stairs
reasons_no_transit_wait_too_long = Field(..., description='True if the respondent did not use transit because the wait time is too long')
class-attribute
instance-attribute
¶
True if the respondent did not use transit because the wait time is too long
resident_visitor_arriving = Field(..., description='True if respondent lives outside San Diego Region and is going home by ground transportation')
class-attribute
instance-attribute
¶
True if respondent lives outside San Diego Region and is going home by ground transportation
resident_visitor_followup = Field(..., description='If neither a resident or a visitor, whether the respondent is visiting San Diego')
class-attribute
instance-attribute
¶
If neither a resident or a visitor, whether the respondent is visiting San Diego.
resident_visitor_general = Field(..., description='Whether a resident or a visitor of the San deigo airport service area')
class-attribute
instance-attribute
¶
Whether a resident or a visitor of the San deigo airport service area.
sdia_accessmode_decision = Field(..., description='Factor which affects mode choice, for respondents who do not always used the same mode')
class-attribute
instance-attribute
¶
Factor which affects mode choice, for respondents who do not always used the same mode.
sdia_accessmode_split_bicycle_electric_bikeshare = Field(..., description='True if the respondent used an electric bikeshare for their trip to SDIA in the last 12 months')
class-attribute
instance-attribute
¶
True if the respondent used an electric bikeshare for their trip to SDIA in the last 12 months
sdia_accessmode_split_bicycle_non_electric_bikeshare = Field(..., description='True if the respondent used a non-electric bikeshare for their trip to SDIA in the last 12 months')
class-attribute
instance-attribute
¶
True if the respondent used a non-electric bikeshare for their trip to SDIA in the last 12 months
sdia_accessmode_split_bicycle_personal_electric_bicycle = Field(..., description='True if the respondent used a personal electric bicycle for their trip to SDIA in the last 12 months')
class-attribute
instance-attribute
¶
True if the respondent used a personal electric bicycle for their trip to SDIA in the last 12 months
sdia_accessmode_split_bicycle_personal_non_electric_bicycle = Field(..., description='True if the respondent used a personal non-electric bicycle for their trip to SDIA in the last 12 months')
class-attribute
instance-attribute
¶
True if the respondent used a personal non-electric bicycle for their trip to SDIA in the last 12 months
sdia_accessmode_split_car_black = Field(..., description='True if the respondent used a black car or luxury service for their trip to SDIA in the last 12 months')
class-attribute
instance-attribute
¶
True if the respondent used a black car or luxury service for their trip to SDIA in the last 12 months
sdia_accessmode_split_chartered_tour_bus = Field(..., description='True if the respondent used a chartered tour bus for their trip to SDIA in the last 12 months')
class-attribute
instance-attribute
¶
True if the respondent used a chartered tour bus for their trip to SDIA in the last 12 months
sdia_accessmode_split_dropped_off_by_family_friend = Field(..., description='True if the respondent was dropped off by a family member or friend for their trip to SDIA in the last 12 months')
class-attribute
instance-attribute
¶
True if the respondent was dropped off by a family member or friend for their trip to SDIA in the last 12 months
sdia_accessmode_split_drove_alone_and_parked = Field(..., description='True if the respondent drove alone and parked at SDIA in the last 12 months')
class-attribute
instance-attribute
¶
True if the respondent drove alone and parked at SDIA in the last 12 months
sdia_accessmode_split_drove_with_others_and_parked = Field(..., description='True if the respondent drove with others and parked at SDIA in the last 12 months')
class-attribute
instance-attribute
¶
True if the respondent drove with others and parked at SDIA in the last 12 months
sdia_accessmode_split_e_scooter_personal = Field(..., description='True if the respondent used a personal electric scooter for their trip to SDIA in the last 12 months')
class-attribute
instance-attribute
¶
True if the respondent used a personal electric scooter for their trip to SDIA in the last 12 months
sdia_accessmode_split_e_scooter_shared = Field(..., description='True if the respondent used a shared electric scooter for their trip to SDIA in the last 12 months')
class-attribute
instance-attribute
¶
True if the respondent used a shared electric scooter for their trip to SDIA in the last 12 months
sdia_accessmode_split_employee_shuttle = Field(..., description='True if the respondent used an employee shuttle for their trip to SDIA in the last 12 months')
class-attribute
instance-attribute
¶
True if the respondent used an employee shuttle for their trip to SDIA in the last 12 months
sdia_accessmode_split_flyer_shuttle = Field(..., description='True if the respondent used the Flyer Shuttle for their trip to SDIA in the last 12 months')
class-attribute
instance-attribute
¶
True if the respondent used the Flyer Shuttle for their trip to SDIA in the last 12 months
sdia_accessmode_split_hotel_shuttle_van = Field(..., description='True if the respondent used a hotel shuttle van for their trip to SDIA in the last 12 months')
class-attribute
instance-attribute
¶
True if the respondent used a hotel shuttle van for their trip to SDIA in the last 12 months
sdia_accessmode_split_list = Field(..., description='List of modes used by the respondent for their trip to SDIA in the last 12 months')
class-attribute
instance-attribute
¶
List of modes used by the respondent for their trip to SDIA in the last 12 months.
sdia_accessmode_split_mts992 = Field(..., description='True if the respondent used MTS992 for their trip to SDIA in the last 12 months')
class-attribute
instance-attribute
¶
True if the respondent used MTS992 for their trip to SDIA in the last 12 months
sdia_accessmode_split_other = Field(..., description='Other mode the respondent used for their trip to SDIA in the last 12 months')
class-attribute
instance-attribute
¶
Other mode the respondent used for their trip to SDIA in the last 12 months.
sdia_accessmode_split_other_public_transit = Field(..., description='True if the respondent used another form of public transit for their trip to SDIA in the last 12 months')
class-attribute
instance-attribute
¶
True if the respondent used another form of public transit for their trip to SDIA in the last 12 months
sdia_accessmode_split_other_shared_van = Field(..., description='True if the respondent used another type of shared van service for their trip to SDIA in the last 12 months')
class-attribute
instance-attribute
¶
True if the respondent used another type of shared van service for their trip to SDIA in the last 12 months
sdia_accessmode_split_rental_car_dropped_off = Field(..., description='True if the respondent used a rental car and was dropped off at SDIA in the last 12 months')
class-attribute
instance-attribute
¶
True if the respondent used a rental car and was dropped off at SDIA in the last 12 months
sdia_accessmode_split_rental_car_parked = Field(..., description='True if the respondent parked a rental car at SDIA in the last 12 months')
class-attribute
instance-attribute
¶
True if the respondent parked a rental car at SDIA in the last 12 months
sdia_accessmode_split_rode_with_other_travelers_and_parked = Field(..., description='True if the respondent rode with other travelers and parked at SDIA in the last 12 months')
class-attribute
instance-attribute
¶
True if the respondent rode with other travelers and parked at SDIA in the last 12 months
sdia_accessmode_split_taxi = Field(..., description='True if the respondent used taxi as a mode for his trip to SDIA in the last 12 months')
class-attribute
instance-attribute
¶
True if the respondent used taxi as a mode for his trip to SDIA in the last 12 months
sdia_accessmode_split_uber_lyft = Field(..., description='True if the respondent used Uber or Lyft as a mode for their trip to SDIA in the last 12 months')
class-attribute
instance-attribute
¶
True if the respondent used Uber or Lyft as a mode for their trip to SDIA in the last 12 months
sdia_accessmode_split_walk = Field(..., description='True if the respondent walked to SDIA in the last 12 months')
class-attribute
instance-attribute
¶
True if the respondent walked to SDIA in the last 12 months
sdia_accessmode_split_wheelchair = Field(..., description='True if the respondent used a wheelchair for their trip to SDIA in the last 12 months')
class-attribute
instance-attribute
¶
True if the respondent used a wheelchair for their trip to SDIA in the last 12 months
sdia_flight_frequency = Field(..., description="Respondent's number of flights from SDIA in the past 12 months")
class-attribute
instance-attribute
¶
Respondent’s number of flights from SDIA in the past 12 months.
sdia_transit_awareness = Field(..., description='Whether respondent is aware that buses are serving SDIA')
class-attribute
instance-attribute
¶
Whether respondent is aware that buses are serving SDIA
state_of_residence = Field(..., description='State of residence for US and Mexico residents')
class-attribute
instance-attribute
¶
State of residence for US and Mexico residents.
ArrivingAirPassenger
¶
Bases: AirPassenger
Data model for an arriving air passenger. It includes attributes specific to arriving air passengers.
Source code in data_model/data_model.py
2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 | |
flight_arrival_time = Field(..., description='Time of flight arrival')
class-attribute
instance-attribute
¶
Time of flight arrival.
is_original_origin
property
¶
True if the previous flight origin was original and not a layover
original_flight_origin = Field(..., description='Original origin for arriving passengers')
class-attribute
instance-attribute
¶
Original origin for arriving passengers.
previous_flight_origin
property
¶
Previous flight origin for an arriving passenger
ArrivingPassengerResident
¶
Bases: ArrivingAirPassenger, Resident
Data Model for a departing air passenger who is a resident of the San Deigo Region.
Source code in data_model/data_model.py
2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 | |
reverse_mode = Field(..., description='Mode that was used in the reverse direction')
class-attribute
instance-attribute
¶
Mode that was used in the reverse direction.
ArrivingPassengerVisitor
¶
Bases: ArrivingAirPassenger, Visitor
Data Model for an arriving air passenger who is a visitor of the San Deigo Region.
Source code in data_model/data_model.py
2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 | |
reverse_mode_predicted = Field(..., description='Mode that will be used in the reverse direction')
class-attribute
instance-attribute
¶
Mode that will be used in the reverse direction.
reverse_mode_predicted_other = Field(..., description='Mode (not listed) which will be used in the reverse direction')
class-attribute
instance-attribute
¶
Mode (not listed) which will be used in the reverse direction
DepartingAirPassenger
¶
Bases: AirPassenger
Data model for a departing air passenger. It includes attributes specific to departing air passengers.
Source code in data_model/data_model.py
2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 | |
final_flight_destination = Field(..., description='Final destination of the flight for departing passengers')
class-attribute
instance-attribute
¶
Final destination of the flight for departing passengers.
flight_departure_time = Field(..., description='Time of flight departure')
class-attribute
instance-attribute
¶
Time of flight departure.
is_final_destination
property
¶
True if the next flight destination is final and not a layover
next_flight_destination
property
¶
Next Flight Destination for a departing passenger
trip_arrival_time = Field(..., description='Arrival time of the trip')
class-attribute
instance-attribute
¶
Arrival time of the trip.
trip_start_time = Field(..., description='Start time of the trip')
class-attribute
instance-attribute
¶
Start time of the trip.
DepartingPassengerResident
¶
Bases: DepartingAirPassenger, Resident
Data Model for a departing air passenger who is a resident of the San Deigo Region.
Source code in data_model/data_model.py
2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 | |
car_available = Field(..., description='Status of car availability for the trip to the airport')
class-attribute
instance-attribute
¶
Status of car availability for the trip to the airport
car_available_other = Field(..., description='Status of car availability (other than listed) for the trip to the airport')
class-attribute
instance-attribute
¶
Status of car availability (other than listed) for the trip to the airport
reverse_mode_predicted = Field(..., description='Mode that will be used in the reverse direction')
class-attribute
instance-attribute
¶
Mode that will be used in the reverse direction.
reverse_mode_predicted_grouped = Field(..., description='Grouped Mode that will be used in the reverse direction')
class-attribute
instance-attribute
¶
Grouped Mode that will be used in the reverse direction
reverse_mode_predicted_other = Field(..., description='Mode (not listed) which will be used in the reverse direction')
class-attribute
instance-attribute
¶
Mode (not listed) which will be used in the reverse direction
DepartingPassengerVisitor
¶
Bases: DepartingAirPassenger, Visitor
Data Model for a departing air passenger who is a resident of the San Deigo Region.
Source code in data_model/data_model.py
2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 | |
general_modes_used_visitor_bicycle_electric_bikeshare = Field(..., description='True if the visitor used an electric bicycle through a bikeshare service during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor used an electric bicycle through a bikeshare service during their visit to the San Diego Region.
general_modes_used_visitor_bicycle_non_electric_bikeshare = Field(..., description='True if the visitor used a non-electric bicycle through a bikeshare service during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor used a non-electric bicycle through a bikeshare service during their visit to the San Diego Region.
general_modes_used_visitor_bicycle_personal_electric_bicycle = Field(..., description='True if the visitor used their personal electric bicycle during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor used their personal electric bicycle during their visit to the San Diego Region.
general_modes_used_visitor_bicycle_personal_non_electric_bicycle = Field(..., description='True if the visitor used their personal non-electric bicycle during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor used their personal non-electric bicycle during their visit to the San Diego Region.
general_modes_used_visitor_car_black = Field(..., description='True if the visitor used a black car service as a mode during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor used a black car service as a mode during their visit to the San Diego Region.
general_modes_used_visitor_chartered_tour_bus = Field(..., description='True if the visitor used a chartered tour bus during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor used a chartered tour bus during their visit to the San Diego Region.
general_modes_used_visitor_coaster = Field(..., description='True if the visitor used the Coaster train during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor used the Coaster train during their visit to the San Diego Region.
general_modes_used_visitor_dropped_off_by_family_friend = Field(..., description='True if the visitor was dropped off by a family member or friend during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor was dropped off by a family member or friend during their visit to the San Diego Region.
general_modes_used_visitor_drove_alone_and_parked = Field(..., description='True if the visitor drove alone and parked during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor drove alone and parked during their visit to the San Diego Region.
general_modes_used_visitor_drove_with_others_and_parked = Field(..., description='True if the visitor drove with others and parked during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor drove with others and parked during their visit to the San Diego Region.
general_modes_used_visitor_e_scooter_personal = Field(..., description='True if the visitor used their personal e-scooter during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor used their personal e-scooter during their visit to the San Diego Region.
general_modes_used_visitor_e_scooter_shared = Field(..., description='True if the visitor used a shared e-scooter during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor used a shared e-scooter during their visit to the San Diego Region.
general_modes_used_visitor_employee_shuttle = Field(..., description='True if the visitor used an employee shuttle during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor used an employee shuttle during their visit to the San Diego Region.
general_modes_used_visitor_hotel_shuttle_van = Field(..., description='True if the visitor used a hotel shuttle or van during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor used a hotel shuttle or van during their visit to the San Diego Region.
general_modes_used_visitor_list = Field(..., description='List of modes used by the visitor during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
List of modes used by the visitor during their visit to the San Diego Region
general_modes_used_visitor_mts_red_trolley = Field(..., description='True if the visitor used the MTS Red Trolley during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor used the MTS Red Trolley during their visit to the San Diego Region.
general_modes_used_visitor_other = Field(..., description='Other mode used by the visitor during their visit to the San Diego Region.')
class-attribute
instance-attribute
¶
Other mode used by the visitor during their visit to the San Diego Region.
general_modes_used_visitor_other_public_bus = Field(..., description='True if the visitor used other public bus services during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor used other public bus services during their visit to the San Diego Region.
general_modes_used_visitor_other_public_transit = Field(..., description='True if the visitor used other public transit services during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor used other public transit services during their visit to the San Diego Region.
general_modes_used_visitor_other_shared_van = Field(..., description='True if the visitor used another type of shared van service during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor used another type of shared van service during their visit to the San Diego Region.
general_modes_used_visitor_rental_car_dropped_off = Field(..., description='True if the visitor used a rental car and was dropped off during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor used a rental car and was dropped off during their visit to the San Diego Region.
general_modes_used_visitor_rental_car_parked = Field(..., description='True if the visitor used a rental car and parked during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor used a rental car and parked during their visit to the San Diego Region.
general_modes_used_visitor_rode_with_other_travelers_and_parked = Field(..., description='True if the visitor rode with other travelers and parked during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor rode with other travelers and parked during their visit to the San Diego Region.
general_modes_used_visitor_taxi = Field(..., description='True if the visitor used Taxi as a mode during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor used Taxi as a mode during their visit to the San Diego Region.
general_modes_used_visitor_uber_lyft = Field(..., description='True if the visitor used Uber or Lyft as a mode during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor used Uber or Lyft as a mode during their visit to the San Diego Region.
general_modes_used_visitor_walk = Field(..., description='True if the visitor walked as a mode during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor walked as a mode during their visit to the San Diego Region.
general_modes_used_visitor_wheelchair = Field(..., description='True if the visitor used a wheelchair during their visit to the San Diego Region')
class-attribute
instance-attribute
¶
True if the visitor used a wheelchair during their visit to the San Diego Region.
reverse_mode = Field(..., description='Mode that was used in the reverse direction')
class-attribute
instance-attribute
¶
Mode that was used in the reverse direction.
reverse_mode_combined = Field(..., description='Mode in the reverse direction')
class-attribute
instance-attribute
¶
Mode in the reverse direction.
reverse_mode_combined_other = Field(..., description='Other mode in the reverse direction')
class-attribute
instance-attribute
¶
Other mode in the reverse direction.
reverse_mode_grouped = Field(..., description='Grouped Mode that was used in the reverse direction')
class-attribute
instance-attribute
¶
Grouped Mode that was used in the reverse direction
Employee
¶
Bases: Respondent
Data model for an employee respondent. It includes attributes specific to employees.
Source code in data_model/data_model.py
1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 | |
alt_commute_mode_airport_flyer_shuttle = Field(..., description='True if the employee used the Airport Flyer Shuttle to commute to the airport in the past 30 days')
class-attribute
instance-attribute
¶
True if the employee used the Airport Flyer Shuttle to commute to the airport in the past 30 days.
alt_commute_mode_bicycle_electric_bikeshare = Field(..., description='True if the employee used an electric bicycle through a bikeshare service to commute to the airport in the past 30 days')
class-attribute
instance-attribute
¶
True if the employee used an electric bicycle through a bikeshare service to commute to the airport in the past 30 days.
alt_commute_mode_bicycle_non_electric_bikeshare = Field(..., description='True if the employee used a non-electric bicycle through a bikeshare service to commute to the airport in the past 30 days')
class-attribute
instance-attribute
¶
True if the employee used a non-electric bicycle through a bikeshare service to commute to the airport in the past 30 days.
alt_commute_mode_bicycle_personal_electric_bicycle = Field(..., description='True if the employee used their personal electric bicycle to commute to the airport in the past 30 days')
class-attribute
instance-attribute
¶
True if the employee used their personal electric bicycle to commute to the airport in the past 30 days.
alt_commute_mode_bicycle_personal_non_electric_bicycle = Field(..., description='True if the employee used their personal non-electric bicycle to commute to the airport in the past 30 days')
class-attribute
instance-attribute
¶
True if the employee used their personal non-electric bicycle to commute to the airport in the past 30 days.
alt_commute_mode_car_black = Field(..., description='True if the employee used a black car service as a mode to commute to the airport in the past 30 days')
class-attribute
instance-attribute
¶
True if the employee used a black car service as a mode to commute to the airport in the past 30 days.
alt_commute_mode_e_scooter_personal = Field(..., description='True if the employee used their personal e-scooter to commute to the airport in the past 30 days')
class-attribute
instance-attribute
¶
True if the employee used their personal e-scooter to commute to the airport in the past 30 days.
alt_commute_mode_e_scooter_shared = Field(..., description='True if the employee used a shared e-scooter to commute to the airport in the past 30 days')
class-attribute
instance-attribute
¶
True if the employee used a shared e-scooter to commute to the airport in the past 30 days.
alt_commute_mode_list = Field(..., description='List of modes used by the employee to commute to the airport in the past 30 days.')
class-attribute
instance-attribute
¶
List of modes used by the employee to commute to the airport in the past 30 days
alt_commute_mode_mts_route_992 = Field(..., description='True if the employee used MTS Route 992 to commute to the airport in the past 30 days')
class-attribute
instance-attribute
¶
True if the employee used MTS Route 992 to commute to the airport in the past 30 days.
alt_commute_mode_other = Field(..., description='Other mode used by the employee to commute to the airport in the past 30 days.')
class-attribute
instance-attribute
¶
Other mode used by the employee to commute to the airport in the past 30 days
alt_commute_mode_other_public_transit = Field(..., description='True if the employee used other public transit services to commute to the airport in the past 30 days')
class-attribute
instance-attribute
¶
True if the employee used other public transit services to commute to the airport in the past 30 days.
alt_commute_mode_other_shared_van = Field(..., description='True if the employee used another type of shared van service to commute to the airport in the past 30 days')
class-attribute
instance-attribute
¶
True if the employee used another type of shared van service to commute to the airport in the past 30 days.
alt_commute_mode_parked_vehicle_and_drive_alone = Field(..., description='True if the employee drove alone and parked their vehicle while commuting to the airport in the past 30 days')
class-attribute
instance-attribute
¶
True if the employee drove alone and parked their vehicle while commuting to the airport in the past 30 days.
alt_commute_mode_parked_vehicle_and_drive_with_others = Field(..., description='True if the employee drove with others and parked their vehicle while commuting to the airport in the past 30 days')
class-attribute
instance-attribute
¶
True if the employee drove with others and parked their vehicle while commuting to the airport in the past 30 days.
alt_commute_mode_parked_vehicle_and_ride_with_other_travelers = Field(..., description='True if the employee rode with other travelers and parked their vehicle while commuting to the airport in the past 30 days')
class-attribute
instance-attribute
¶
True if the employee rode with other travelers and parked their vehicle while commuting to the airport in the past 30 days.
alt_commute_mode_picked_by_family_friend = Field(..., description='True if the employee was picked up by a family member or friend to commute to the airport in the past 30 days')
class-attribute
instance-attribute
¶
True if the employee was picked up by a family member or friend to commute to the airport in the past 30 days.
alt_commute_mode_taxi = Field(..., description='True if the employee used Taxi as a mode to commute to the airport in the past 30 days')
class-attribute
instance-attribute
¶
True if the employee used Taxi as a mode to commute to the airport in the past 30 days.
alt_commute_mode_uber_lyft = Field(..., description='True if the employee used Uber or Lyft as a mode to commute to the airport in the past 30 days')
class-attribute
instance-attribute
¶
True if the employee used Uber or Lyft as a mode to commute to the airport in the past 30 days.
alt_commute_mode_walk = Field(..., description='True if the employee walked as a mode to commute to the airport in the past 30 days')
class-attribute
instance-attribute
¶
True if the employee walked as a mode to commute to the airport in the past 30 days.
alt_commute_mode_wheelchair = Field(..., description='True if the employee used a wheelchair to commute to the airport in the past 30 days')
class-attribute
instance-attribute
¶
True if the employee used a wheelchair to commute to the airport in the past 30 days.
commute_mode_decision = Field(..., description='Factor affecting the Mode choice of the employee')
class-attribute
instance-attribute
¶
Factor affecting the Mode choice of the employee
commute_mode_decision_other = Field(..., description='(Other) Factor affecting the Mode choice of the employee')
class-attribute
instance-attribute
¶
(Other) Factor affecting the Mode choice of the employee
employee_parking = Field(..., description='Whether the respondent has access to employee parking')
class-attribute
instance-attribute
¶
Whether the respondent has access to employee parking.
employer = Field(..., description="Name of respondent's employer")
class-attribute
instance-attribute
¶
Name of respondent’s employer.
employer_other = Field(..., description="Name (not listed) of respondent's employer")
class-attribute
instance-attribute
¶
Name (not listed) of respondent’s employer.
number_commute_days = Field(..., description='Number of days respondent commuted to the airport in the past 7 days')
class-attribute
instance-attribute
¶
Number of days respondent commuted to the airport in the past 7 days.
number_hours_worked = Field(..., description='Number of hours respondent worked in the past 7 days')
class-attribute
instance-attribute
¶
Number of hours respondent worked in the past 7 days.
occupation = Field(..., description='Occupation of the employee')
class-attribute
instance-attribute
¶
Occupation of the employee.
occupation_detail = Field(..., description='Occupation Details for the airport employee')
class-attribute
instance-attribute
¶
Occupation Details for the airport employee
occupation_other = Field(..., description='Occupation (other, not listed) of the employee')
class-attribute
instance-attribute
¶
Occupation (other, not listed) of the employee
reverse_commute_mode = Field(..., description='Reverse commute mode for the employee')
class-attribute
instance-attribute
¶
Reverse commute mode for the employee
reverse_commute_mode_grouped = Field(..., description='Grouped reverse commute mode for the employee')
class-attribute
instance-attribute
¶
Grouped reverse commute mode for the employee
reverse_commute_mode_other = Field(..., description='Reverse commute mode for the employee (other, not listed)')
class-attribute
instance-attribute
¶
Reverse commute mode for the employee (other, not listed)
same_commute_mode = Field(..., description='True if the employee always used the same travel mode to commute in the last 30 days')
class-attribute
instance-attribute
¶
True if the employee always used the same travel mode to commute in the last 30 days
same_commute_mode_other = Field(..., description="Other Response to employee's travel mode to commute in the last 30 days")
class-attribute
instance-attribute
¶
Other Response to employee’s travel mode to commute in the last 30 days
shift_end_time = Field(..., description="Time when the employee's shift ends")
class-attribute
instance-attribute
¶
Time when the employee’s shift ends.
shift_start_airport_building = Field(..., description='Name of building where employee starts their shift')
class-attribute
instance-attribute
¶
Name of building where employee starts their shift.
shift_start_airport_building_other = Field(..., description='Name of building (not listed) where employee starts their shift')
class-attribute
instance-attribute
¶
Name of building (not listed) where employee starts their shift.
shift_start_time = Field(..., description="Time when the employee's shift starts")
class-attribute
instance-attribute
¶
Time when the employee’s shift starts.
trip_arrival_time = Field(..., description='Arrival time of the trip')
class-attribute
instance-attribute
¶
Arrival time of the trip.
trip_start_time = Field(..., description='Start time of the trip')
class-attribute
instance-attribute
¶
Start time of the trip.
Lat
¶
Bases: BaseModel
Source code in data_model/data_model.py
163 164 165 | |
lat
instance-attribute
¶
Latitude
Lng
¶
Bases: BaseModel
Source code in data_model/data_model.py
167 168 169 | |
lng
instance-attribute
¶
Longitude
PydanticModel
¶
Bases: BaseModel
Base class for all Pydantic models, create in case future modifications are helpful
Source code in data_model/data_model.py
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 | |
validation_error = Field(default='', description='Holds validation error messages')
class-attribute
instance-attribute
¶
Holds the validation error message
validation_num_errors = Field(default=0, description='Number of missing (null) fields for the record')
class-attribute
instance-attribute
¶
Number of missing (null) fields for the record
validation_severity = Field(default='', description='Holds the severity of the validation error')
class-attribute
instance-attribute
¶
Holds the severity of the validation error
Resident
¶
Bases: Respondent
Data Model for a Air Passenger who is a resident of the San Deigo Region. It includes attributes specific to a Resident.
Source code in data_model/data_model.py
2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 | |
general_use_transit_resident = Field(..., description='General transit use frequency by residents of San Diego region in San Diego region')
class-attribute
instance-attribute
¶
General transit use frequency by residents of San Diego region in San Diego region.
nights_away = Field(..., description='Number of nights the departing air passengers will be away')
class-attribute
instance-attribute
¶
Number of nights the departing air passengers will be away.
Respondent
¶
Bases: PydanticModel
Data model for a survey respondent. It includes attributes common to air passengers and employees.
Source code in data_model/data_model.py
741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 | |
age = Field(..., description='Age category of the respondent')
class-attribute
instance-attribute
¶
Age category of the respondent.
date_completed = Field(..., description='Date when respondent completed the survey')
class-attribute
instance-attribute
¶
Date when respondent completed the survey
gender = Field(..., description='Gender of the respondent')
class-attribute
instance-attribute
¶
Gender of the respondent.
gender_other = Field(..., description='Gender of the respondent (not listed)')
class-attribute
instance-attribute
¶
Gender of the respondent (not listed)
home_location_latitude = Field(..., description='Latitude of the home location of the respondent')
class-attribute
instance-attribute
¶
Latitude of the home location of the respondent
home_location_longitude = Field(..., description='Longitude of the home location of the respondent')
class-attribute
instance-attribute
¶
Longitude of the home location of the respondent
home_location_municipal_zone = Field(..., description='Municipal zone of home address of the respondent')
class-attribute
instance-attribute
¶
Municipal zone of home address of the Resident
home_location_place_name = Field(..., description='Postal City of the home location of the respondent')
class-attribute
instance-attribute
¶
Postal City of the home location of the respondent
home_location_pmsa = Field(..., description='Pseudo MSA of home address of the Resident')
class-attribute
instance-attribute
¶
Pseudo MSA of home address of the Resident
home_location_state = Field(..., description='State of the home location of the respondent')
class-attribute
instance-attribute
¶
State of the home location of the respondent
home_location_zip = Field(..., description='ZIP of the home location of the respondent')
class-attribute
instance-attribute
¶
ZIP of the home location of the respondent
household_income = Field(..., description="Income range of the respondent's household")
class-attribute
instance-attribute
¶
Income range of the respondent’s household.
initial_etc_check = Field(..., description="True if the record passed ETC's initial check")
class-attribute
instance-attribute
¶
True if the record is to be used for submittal
interview_location = Field(..., description='Location where respondent was intercepted')
class-attribute
instance-attribute
¶
Location where respondent was intercepted.
interview_location_other = Field(..., description='Other Location where respondent was intercepted')
class-attribute
instance-attribute
¶
Other Location where respondent was intercepted
is_completed = Field(..., description='True if the record is complete')
class-attribute
instance-attribute
¶
True if the record is complete
is_income_below_poverty = Field(..., description="Is the respondent's household income below poverty?")
class-attribute
instance-attribute
¶
Is the respondent’s household income below poverty?
is_pilot = Field(..., description='True if the record was collected during the pilot survey')
class-attribute
instance-attribute
¶
True if the record was collected during the pilot survey
is_qualified_age = Field(..., description='Whether the respondent is of a qualified age to participate in the survey')
class-attribute
instance-attribute
¶
Whether the respondent is of a qualified age to participate in the survey.
is_self_administered = Field(default=False, description='True if the survey was self-administered by the respondent')
class-attribute
instance-attribute
¶
True if the survey was self-administered by the respondent.
marketsegment = Field(..., description='Type of respondent, either passenger, employee, or other')
class-attribute
instance-attribute
¶
Type of respondent, either passenger, employee, or other.
number_of_travel_companions = Field(..., description='Number of people flying with the respondent (count excludes the respondent)')
class-attribute
instance-attribute
¶
Number of people flying with the respondent (count excludes the respondent)
number_persons_in_household = Field(..., description="Number of persons in the respondent's household")
class-attribute
instance-attribute
¶
Number of persons in the respondent’s household.
number_vehicles = Field(..., description="Number of vehicles in the respondent's household")
class-attribute
instance-attribute
¶
Number of vehicles in the respondent’s household.
number_workers = Field(..., description="Number of workers in the respondent's household")
class-attribute
instance-attribute
¶
Number of workers in the respondent’s household.
party_size_flight = Field(..., description='Size of the travel party')
class-attribute
instance-attribute
¶
Size of the travel party
race_aian = Field(..., description='Does the respondent identify as American Indian or Alaska Native?')
class-attribute
instance-attribute
¶
Does the respondent identify as American Indian or Alaska Native?
race_asian = Field(..., description='Does the respondent identify as Asian?')
class-attribute
instance-attribute
¶
Does the respondent identify as Asian?
race_black = Field(..., description='Does the respondent identify as Black or African American?')
class-attribute
instance-attribute
¶
Does the respondent identify as Black or African American?
race_hispanic = Field(..., description='Does the respondent identify as Hispanic or Latino?')
class-attribute
instance-attribute
¶
Does the respondent identify as Hispanic or Latino?
race_hp = Field(..., description='Does the respondent identify as Native Hawaiian or Other Pacific Islander?')
class-attribute
instance-attribute
¶
Does the respondent identify as Native Hawaiian or Other Pacific Islander?
race_list = Field(..., description='List of Races the respondent identifies as (comma separated)')
class-attribute
instance-attribute
¶
List of Races the respondent identifies as (comma separated)
race_middle_eastern = Field(..., description='Does the respondent identify as Middle Eastern?')
class-attribute
instance-attribute
¶
Does the respondent identify as Middle Eastern?
race_other = Field(..., description='If the respondent enters a race/ethnicicy not listed above, this field will be populated')
class-attribute
instance-attribute
¶
If the respondent enters a race/ethnicity not listed above, this field will be populated.
race_unknown = Field(..., description='Does the respondent identify as an unknown')
class-attribute
instance-attribute
¶
Does the respondent identify as an unknown race/ethnicity?
race_white = Field(..., description='Does the respondent identify as White?')
class-attribute
instance-attribute
¶
Does the respondent identify as White?
record_type_synthetic = Field(..., description='True if the record is synthetically generated')
class-attribute
instance-attribute
¶
True if the record is synthetically generated
resident_visitor = Field(..., description='Where the respondent resides in the airport service area most of the year')
class-attribute
instance-attribute
¶
Where the respondent resides in the airport service area most of the year.
resident_visitor_purpose = Field(..., description='Determines the resident/visitor classification based on the home airport status and flight purpose')
class-attribute
instance-attribute
¶
Determines the resident/visitor classification based on the home airport status and flight purpose
respondentid = Field(..., description='Unique identifier for the respondent')
class-attribute
instance-attribute
¶
Unique identifier for the respondent.
sp_access_walk_time = Field(..., description='Maximum walking time (in minutes) the respondent is willing to take to access the transit station.')
class-attribute
instance-attribute
¶
Maximum walking time (in minutes) the respondent is willing to take to access the transit station.
sp_connection_to_convention_center = Field(..., description='Likelihood of using the new transit connection to the San Diego Convention Center.')
class-attribute
instance-attribute
¶
Likelihood of using the new transit connection to the San Diego Convention Center.
sp_connection_to_old_town_center = Field(..., description='Likelihood of using the new transit connection to the Old Town Transit Center.')
class-attribute
instance-attribute
¶
Likelihood of using the new transit connection to the Old Town Transit Center.
sp_connection_to_santafe_depot = Field(..., description='Likelihood of using the new transit connection to the Santa Fe Depot train station.')
class-attribute
instance-attribute
¶
Likelihood of using the new transit connection to the Santa Fe Depot train station.
sp_dropoff_choice_no_transit_access = Field(..., description='Likelihood of being dropped off at the new transit station in areas without existing transit access.')
class-attribute
instance-attribute
¶
Likelihood of being dropped off at the new transit station in areas without existing transit access.
sp_dropoff_choice_transit_access = Field(..., description='Likelihood of being dropped off at a transit stop in areas with existing transit access.')
class-attribute
instance-attribute
¶
Likelihood of being dropped off at a transit stop in areas with existing transit access.
sp_dropoff_escort = Field(..., description='Type of Person who dropped the respondent off at the airport.')
class-attribute
instance-attribute
¶
Type of Person who dropped the respondent off at the airport.
sp_feature_early_morning = Field(..., description='Level of importance assigned to the service starting early in the morning (before 5 AM).')
class-attribute
instance-attribute
¶
Level of importance assigned to the service starting early in the morning (before 5 AM).
sp_feature_late_night = Field(..., description='Level of importance assigned to the service operating past 10 PM.')
class-attribute
instance-attribute
¶
Level of importance assigned to the service operating past 10 PM.
sp_feature_luggage_rack = Field(..., description='Level of importance assigned to having a luggage rack option on the transit service.')
class-attribute
instance-attribute
¶
Level of importance assigned to having a luggage rack option on the transit service.
sp_feature_no_delay = Field(..., description='Level of importance assigned to ensuring the transit service is not delayed by car traffic.')
class-attribute
instance-attribute
¶
Level of importance assigned to ensuring the transit service is not delayed by car traffic.
sp_feature_seats_transit = Field(..., description='Level of importance assigned to having available seating on the transit vehicle.')
class-attribute
instance-attribute
¶
Level of importance assigned to having available seating on the transit vehicle.
sp_feature_seats_transit_stop = Field(..., description='Level of importance assigned to the availability of seats at the transit stop.')
class-attribute
instance-attribute
¶
Level of importance assigned to the availability of seats at the transit stop.
sp_feature_short_wait = Field(..., description='Level of importance assigned to having a short wait time (less than 10 minutes) for transit service.')
class-attribute
instance-attribute
¶
Level of importance assigned to having a short wait time (less than 10 minutes) for transit service.
sp_feature_weekend_frequency = Field(..., description='Level of importance assigned to frequent transit service availability on weekends.')
class-attribute
instance-attribute
¶
Level of importance assigned to frequent transit service availability on weekends.
sp_invitation = Field(..., description='Whether the respondent chose to participate in the SP Survey')
class-attribute
instance-attribute
¶
Whether the respondent chose to participate in the SP Survey
sp_number_of_transfers = Field(..., description='Number of transfers the respondent is willing to make to reach the airport.')
class-attribute
instance-attribute
¶
Number of transfers the respondent is willing to make to reach the airport.
sp_other_airport_comfort = Field(..., description='True if the respondent found the transit service at another airport comfortable.')
class-attribute
instance-attribute
¶
True if the respondent found the transit service at another airport comfortable.
sp_other_airport_cost = Field(..., description='True if the cost of using transit at another airport was a positive factor.')
class-attribute
instance-attribute
¶
True if the cost of using transit at another airport was a positive factor.
sp_other_airport_did_not_like = Field(..., description='True if the respondent did not like the transit service at another airport.')
class-attribute
instance-attribute
¶
True if the respondent did not like the transit service at another airport.
sp_other_airport_ease_of_boarding = Field(..., description="True if the respondent found boarding easy at another airport's transit service.")
class-attribute
instance-attribute
¶
True if the respondent found boarding easy at another airport’s transit service.
sp_other_airport_ease_of_planning = Field(..., description="True if the respondent found trip planning easy at another airport's transit service.")
class-attribute
instance-attribute
¶
True if the respondent found trip planning easy at another airport’s transit service.
sp_other_airport_enough_capacity = Field(..., description='True if there was sufficient passenger capacity at another airport.')
class-attribute
instance-attribute
¶
True if there was sufficient passenger capacity at another airport.
sp_other_airport_enough_room_to_stand = Field(..., description="True if there was enough standing room at another airport's transit service.")
class-attribute
instance-attribute
¶
True if there was enough standing room at another airport’s transit service.
sp_other_airport_enough_seats = Field(..., description="True if there were enough available seats at another airport's transit service.")
class-attribute
instance-attribute
¶
True if there were enough available seats at another airport’s transit service.
sp_other_airport_frequency_of_service = Field(..., description='True if the frequency of service at another airport was a positive factor.')
class-attribute
instance-attribute
¶
True if the frequency of service at another airport was a positive factor.
sp_other_airport_list = Field(..., description='List of factors at other airports due to which the respondent used transit service.')
class-attribute
instance-attribute
¶
List of factors at other airports due to which the respondent used transit service.
sp_other_airport_longer_operating_hours = Field(..., description="True if another airport's transit service had longer operating hours.")
class-attribute
instance-attribute
¶
True if another airport’s transit service had longer operating hours.
sp_other_airport_luggage_rack = Field(..., description="True if a luggage rack was available at another airport's transit service.")
class-attribute
instance-attribute
¶
True if a luggage rack was available at another airport’s transit service.
sp_other_airport_no_delays = Field(..., description="True if the respondent experienced no delays using another airport's transit service.")
class-attribute
instance-attribute
¶
True if the respondent experienced no delays using another airport’s transit service.
sp_other_airport_no_transfers = Field(..., description="True if no transfers were required at another airport's transit service.")
class-attribute
instance-attribute
¶
True if no transfers were required at another airport’s transit service.
sp_other_airport_other = Field(..., description="Additional comments provided by the respondent regarding another airport's transit service.")
class-attribute
instance-attribute
¶
Additional comments provided by the respondent regarding another airport’s transit service.
sp_other_airport_other_specify = Field(..., description='True if the respondent liked something else about another airport’s transit service.')
class-attribute
instance-attribute
¶
True if the respondent liked something else about another airport’s transit service.
sp_other_airport_safety = Field(..., description="True if the respondent felt safe using another airport's transit service.")
class-attribute
instance-attribute
¶
True if the respondent felt safe using another airport’s transit service.
sp_other_airport_short_travel_time = Field(..., description='True if the respondent experienced a short total travel time at another airport.')
class-attribute
instance-attribute
¶
True if the respondent experienced a short total travel time at another airport.
sp_other_airport_walking_distance = Field(..., description='True if the transit station at another airport was within a comfortable walking distance.')
class-attribute
instance-attribute
¶
True if the transit station at another airport was within a comfortable walking distance.
sp_rental_choice_no_transit = Field(..., description='Likelihood of still renting a car if the new transit service were available.')
class-attribute
instance-attribute
¶
Likelihood of still renting a car if the new transit service were available.
sp_taxi_choice_dropoff_station = Field(..., description='Likelihood of opting for drop-off at the new transit station when using a taxi.')
class-attribute
instance-attribute
¶
Likelihood of opting for drop-off at the new transit station when using a taxi.
stay_informed = Field(..., description='Whether the respondent chose to Stay Informed about the project')
class-attribute
instance-attribute
¶
Whether the respondent chose to Stay Informed about the project
survey_language = Field(..., description='Language of the Survey')
class-attribute
instance-attribute
¶
Language of the Survey
survey_language_other = Field(..., description='Other (not listed) language of the survey')
class-attribute
instance-attribute
¶
Other (not listed) language of the survey
thanksgiving_week_flag
property
¶
True if the record was captured during Thanksgiving Week
time_completed = Field(..., description='Time when respondent completed the survey')
class-attribute
instance-attribute
¶
Time when respondent completed the survey
trip = Field(..., description='Details of the trip taken by the respondent')
class-attribute
instance-attribute
¶
Details of the trip taken by the respondent.
weight = Field(..., description='Default expansion Factor of the observation, used in expansion script downstream')
class-attribute
instance-attribute
¶
Default expansion Factor of the observation, used in the expansion script downstream
weight_departing_and_arriving = Field(..., description='Weights corresponding to arriving and departing passengers expansion (also includes synthetic records)')
class-attribute
instance-attribute
¶
Weights corresponding to arriving and departing expansion (also includes synthetic records)
weight_departing_only = Field(..., description='Weights corresponding to only departing passengers expansion (no synthetic/arriving passengers)')
class-attribute
instance-attribute
¶
Weights corresponding to only departing passengers expansion (no synthetic/arriving passengers)
weight_departing_only_with_time_of_day = Field(..., description='Weights corresponding to only departing passengers expansion including time-of-day controls (no synthetic/arriving passengers)')
class-attribute
instance-attribute
¶
Weights corresponding to only departing passengers expansion including time-of-day controls (no synthetic/arriving passengers)
weight_non_sas_departing_only = Field(..., description='Weights corresponding to only departing and intercept survey passengers expansion (no self-administered survey responses, or synthetic records)')
class-attribute
instance-attribute
¶
Weights corresponding to only departing and intercept survey passengers expansion (no self-administered survey responses or synthetic records)
SkipLogicValidator
¶
Source code in data_model/data_model.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | |
get_rules_for_class(class_name)
¶
Filter skip logic rules for a specific class.
Source code in data_model/data_model.py
44 45 46 | |
perform_check(data, check_type, check_variables, check_values)
¶
Perform the validation check based on the check_type.
Source code in data_model/data_model.py
99 100 101 102 103 104 105 106 107 | |
perform_critical_check(data, check_variables)
¶
Check if any of the critical fields are missing. Returns True if any field is missing, False otherwise.
Source code in data_model/data_model.py
87 88 89 90 91 92 93 94 95 96 97 | |
validate(class_name, data)
¶
Validate data using skip logic rules for a specific class.
Source code in data_model/data_model.py
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | |
Trip
¶
Bases: PydanticModel
Data model for a trip taken by a respondent.
Source code in data_model/data_model.py
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 | |
access_mode = Field(..., description='Access mode to first transit vehicle for inbound trip to the airport')
class-attribute
instance-attribute
¶
Access mode to first transit vehicle for inbound trip to the airport.
access_mode_grouped = Field(..., description='Grouped Access mode to first transit vehicle for inbound trip to the airport')
class-attribute
instance-attribute
¶
Grouped Access mode to first transit vehicle for inbound trip to the airport.
access_mode_other = Field(..., description='Other Access mode to first transit vehicle for inbound trip to the airport')
class-attribute
instance-attribute
¶
Other Access mode to first transit vehicle for inbound trip to the airport.
destination_activity_type = Field(..., description='Activity type at the destination of the trip from the airport')
class-attribute
instance-attribute
¶
Activity type at the destination of the trip from the airport.
destination_activity_type_other = Field(..., description='Activity type (other) at the destination of the trip from the airport')
class-attribute
instance-attribute
¶
Activity type (other) at the destination of the trip from the airport.
destination_latitude = Field(..., description='Latitude coordinate of the destination address from the airport')
class-attribute
instance-attribute
¶
Latitude coordinate of the destination address from the airport.
destination_longitude = Field(..., description='Longitude coordinate of the destination address from the airport')
class-attribute
instance-attribute
¶
Longitude coordinate of the destination address from the airport.
destination_municipal_zone = Field(..., description='Municipal zone of the destination address for the trip to the airport')
class-attribute
instance-attribute
¶
Municipal zone of the destination address for the trip to the airport
destination_name = Field(..., description='Place name of the destination from the airport')
class-attribute
instance-attribute
¶
Place name of the destination from the airport.
destination_place_name = Field(..., description='Postal City of the destination address from the airport')
class-attribute
instance-attribute
¶
Postal City of the destination address from the airport.
destination_pmsa = Field(..., description='Pseudo MSA of the destination address for the trip to the airport')
class-attribute
instance-attribute
¶
Pseudo MSA of the origin destination for the trip to the airport
destination_state = Field(..., description='State of the destination address from the airport')
class-attribute
instance-attribute
¶
State of the destination address from the airport.
destination_zip = Field(..., description='ZIP code of the destination address from the airport')
class-attribute
instance-attribute
¶
ZIP code of the destination address from the airport.
egress_mode = Field(..., description='Egress mode from last transit vehicle for outbound trip')
class-attribute
instance-attribute
¶
Egress mode from last transit vehicle for outbound trip.
egress_mode_grouped = Field(..., description='Grouped Egress mode from last transit vehicle for outbound trip')
class-attribute
instance-attribute
¶
Grouped Egress mode from last transit vehicle for outbound trip.
egress_mode_other = Field(..., description='Other Egress mode from last transit vehicle for outbound trip')
class-attribute
instance-attribute
¶
Other Egress mode from last transit vehicle for outbound trip.
from_airport_transit_route_1 = Field(..., description='Name of the First Transit Route from the airport')
class-attribute
instance-attribute
¶
Name of the First Transit Route from the airport
from_airport_transit_route_1_other = Field(..., description='Other First Transit Route from the airport')
class-attribute
instance-attribute
¶
Other First Transit Route from the airport
from_airport_transit_route_2 = Field(..., description='Name of the Second Transit Route from the airport')
class-attribute
instance-attribute
¶
Name of the Second Transit Route from the airport
from_airport_transit_route_2_other = Field(..., description='Other Second Transit Route from the airport')
class-attribute
instance-attribute
¶
Other Second Transit Route from the airport
from_airport_transit_route_3 = Field(..., description='Name of the Third Transit Route from the airport')
class-attribute
instance-attribute
¶
Name of the Third Transit Route from the airport
from_airport_transit_route_3_other = Field(..., description='Other Third Transit Route from the airport')
class-attribute
instance-attribute
¶
Other Third Transit Route from the airport
from_airport_transit_route_4 = Field(..., description='Name of the Fourth Transit Route from the airport')
class-attribute
instance-attribute
¶
Name of the Fourth Transit Route from the airport
from_airport_transit_route_4_other = Field(..., description='Other Fourth Transit Route from the airport')
class-attribute
instance-attribute
¶
Other Fourth Transit Route from the airport
inbound_or_outbound = Field(..., description='Whether the trip is inbound to the airport or outbound from the airport')
class-attribute
instance-attribute
¶
Whether the trip is inbound to the airport or outbound from the airport.
main_mode = Field(..., description='Main Mode to/from airport')
class-attribute
instance-attribute
¶
Main Mode to/from airport.
main_mode_grouped = Field(..., description='Grouped Main Mode to/from airport')
class-attribute
instance-attribute
¶
Grouped Main Mode to/from airport
main_mode_other = Field(..., description='Name of the other Main Mode to/from airport')
class-attribute
instance-attribute
¶
Name of the other Main Mode to/from airport.
main_transit_mode = Field(..., description='Main Transit mode to/from airport')
class-attribute
instance-attribute
¶
Main Transit mode to/from airport.
non_airport_activity_type
property
¶
Activity type prior to traveling to the airport (for inbound) or activity traveling to do next (for outbound).
num_transit_transfers = Field(..., description='Number of transit transfers made by the respondent')
class-attribute
instance-attribute
¶
Number of transit transfers made by the respondent.
number_transit_vehicles_from_airport = Field(..., description='Number of transit transfers for the inbound trip')
class-attribute
instance-attribute
¶
Number of transit transfers for the inbound trip.
number_transit_vehicles_to_airport = Field(..., description='Number of transit transfers for the inbound trip to the airport')
class-attribute
instance-attribute
¶
Number of transit transfers for the inbound trip to the airport
origin_activity_type = Field(..., description='Activity type at the origin of the trip to the airport')
class-attribute
instance-attribute
¶
Activity type at the origin of the trip to the airport.
origin_activity_type_other = Field(..., description='Activity type at the origin of the trip to the airport')
class-attribute
instance-attribute
¶
Activity type at the origin of the trip to the airport.
origin_latitude = Field(..., description='Latitude coordinate of the origin address for the trip to the airport')
class-attribute
instance-attribute
¶
Latitude coordinate of the origin address for the trip to the airport.
origin_longitude = Field(..., description='Longitude coordinate of the origin address for the trip to the airport')
class-attribute
instance-attribute
¶
Longitude coordinate of the origin address for the trip to the airport.
origin_municipal_zone = Field(..., description='Municipal zone of the origin address for the trip to the airport')
class-attribute
instance-attribute
¶
Municipal zone of the origin address for the trip to the airport
origin_name = Field(..., description='Place name of the origin of the trip to the airport')
class-attribute
instance-attribute
¶
Place name of the origin of the trip to the airport.
origin_place_name = Field(..., description='Postal City of the origin address for the trip to the airport')
class-attribute
instance-attribute
¶
Postal City of the origin address for the trip to the airport.
origin_pmsa = Field(..., description='Pseudo MSA of the origin address for the trip to the airport')
class-attribute
instance-attribute
¶
Pseudo MSA of the origin address for the trip to the airport
origin_state = Field(..., description='State of the origin address for the trip to the airport')
class-attribute
instance-attribute
¶
State of the origin address for the trip to the airport.
origin_zip = Field(..., description='ZIP code of the origin address for the trip to the airport')
class-attribute
instance-attribute
¶
ZIP code of the origin address for the trip to the airport.
parking_cost = Field(..., description='Amount respondent paid to park')
class-attribute
instance-attribute
¶
Amount respondent paid to park.
parking_cost_frequency = Field(..., description='Frequency of reported parking cost (e.g., one-time, per hour, per day, per month)')
class-attribute
instance-attribute
¶
Frequency of reported parking cost (e.g., one-time, per hour, per day, per month)
parking_cost_frequency_other = Field(..., description='Other frequency of reported parking cost')
class-attribute
instance-attribute
¶
Other frequency of reported parking cost
parking_cost_numeric
property
¶
Numeric Value of parking cost
parking_location = Field(..., description="Name of respondent's parking location. ")
class-attribute
instance-attribute
¶
Name of respondent’s parking location.
parking_location_other = Field(..., description="Name of respondent's (other) parking location. ")
class-attribute
instance-attribute
¶
Name of respondent’s (other) parking location.
reimbursement = Field(..., description='Whether or not ground access cost will be reimbursed by employer or other non-household member')
class-attribute
instance-attribute
¶
Whether or not ground access cost will be reimbursed by employer or other non-household member.
shared_van_other = Field(..., description='Name of the other shared van service used by respondent')
class-attribute
instance-attribute
¶
Name of the other shared van service used by respondent.
taxi_fhv_fare = Field(..., description='Taxi or for-hire vehicle fare')
class-attribute
instance-attribute
¶
Taxi or for-hire vehicle fare.
taxi_fhv_fare_numeric
property
¶
Numeric Value of Taxi Fare
taxi_fhv_wait = Field(..., description='Wait time for taxi or for-hire vehicle')
class-attribute
instance-attribute
¶
Wait time for taxi or for-hire vehicle.
taxi_fhv_wait_numeric
property
¶
Numeric Value of Taxi Wait Time
to_airport_transit_route_1 = Field(..., description='Name of the First Transit Route to the airport')
class-attribute
instance-attribute
¶
Name of the First Transit Route to the airport
to_airport_transit_route_1_other = Field(..., description='Other First Transit Route to the airport')
class-attribute
instance-attribute
¶
Other First Transit Route to the airport
to_airport_transit_route_2 = Field(..., description='Name of the Second Transit Route to the airport')
class-attribute
instance-attribute
¶
Name of the Second Transit Route to the airport
to_airport_transit_route_2_other = Field(..., description='Other Second Transit Route to the airport')
class-attribute
instance-attribute
¶
Other Second Transit Route to the airport
to_airport_transit_route_3 = Field(..., description='Name of the Third Transit Route to the airport')
class-attribute
instance-attribute
¶
Name of the Third Transit Route to the airport
to_airport_transit_route_3_other = Field(..., description='Other Third Transit Route to the airport')
class-attribute
instance-attribute
¶
Other Third Transit Route to the airport
to_airport_transit_route_4 = Field(..., description='Name of the Fourth Transit Route to the airport')
class-attribute
instance-attribute
¶
Name of the Fourth Transit Route to the airport
to_airport_transit_route_4_other = Field(..., description='Other Fourth Transit Route to the airport')
class-attribute
instance-attribute
¶
Other Fourth Transit Route to the airport
transit_alighting_latitude = Field(..., description='Latitude of the stop where respondent got off the main transit mode')
class-attribute
instance-attribute
¶
Latitude of the stop where respondent got off the main transit mode
transit_alighting_longitude = Field(..., description='Longitude of the stop where respondent got off the main transit mode')
class-attribute
instance-attribute
¶
Longitude of the stop where respondent boarded the main transit mode
transit_alighting_stop_name = Field(..., description='Name of the stop where respondent got off the main transit mode')
class-attribute
instance-attribute
¶
Name of the stop where respondent got off the main transit mode
transit_boarding_latitude = Field(..., description='Latitude of the stop where respondent boarded the main transit mode')
class-attribute
instance-attribute
¶
Latitude of the stop where respondent boarded the main transit mode
transit_boarding_longitude = Field(..., description='Longitude of the stop where respondent boarded the main transit mode')
class-attribute
instance-attribute
¶
Longitude of the stop where respondent boarded the main transit mode
transit_boarding_stop_name = Field(..., description='Name of the stop where respondent boarded the main transit mode')
class-attribute
instance-attribute
¶
Name of the stop where respondent boarded the main transit mode
transit_routes_list = Field(..., description='List of transit routes used by the respondent (comma separated)')
class-attribute
instance-attribute
¶
List of transit routes used by the respondent (comma separated)
Visitor
¶
Bases: Respondent
Data Model for a visitor of the San Deigo Region. It includes attributes specific to a Visitor.
Source code in data_model/data_model.py
2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 | |
convention_center = Field(..., description='Whether the visitor went/going to convention center')
class-attribute
instance-attribute
¶
Whether the visitor went/going to convention center.
convention_center_activity = Field(..., description='Type of activity that the respondent conducted at the convention center')
class-attribute
instance-attribute
¶
Type of activity that the respondent conducted at the convention center.
convention_center_activity_other = Field(..., description='Type of activity (not listed) that the respondent conducted at the convention center')
class-attribute
instance-attribute
¶
Type of activity (not listed) that the respondent conducted at the convention center.
general_use_transit_visitor_home = Field(..., description='General transit use frequency by visitors of San Diego region when home')
class-attribute
instance-attribute
¶
General transit use frequency by visitors of San Diego region when home.
nights_visited = Field(..., description='Number of nights the arriving air passengers will be in the San Diego Region')
class-attribute
instance-attribute
¶
Number of nights the arriving air passengers will be in the San Diego Region.
ENUMS ¶
This section includes the various response options for survey variables
ActivityType
¶
Bases: IntEnum
Integer mapping for activity types
Source code in data_model/enums.py
987 988 989 990 991 992 993 994 995 996 997 998 999 1000 | |
Age
¶
Bases: IntEnum
Integer mapping for age categories
Source code in data_model/enums.py
1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 | |
Airline
¶
Bases: IntEnum
Integer Mapping for airlines at SAN
Source code in data_model/enums.py
436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 | |
BusRoutes
¶
Bases: Enum
Enum Mappings for MTS Bus Routes
Source code in data_model/enums.py
948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 | |
CarAvailability
¶
Bases: IntEnum
Integer mapping for car availability
Source code in data_model/enums.py
1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 | |
CarryOns
¶
Bases: IntEnum
Integer mapping for number of carryon bags
Source code in data_model/enums.py
556 557 558 559 560 561 562 563 564 565 566 567 568 | |
CheckedBags
¶
Bases: IntEnum
Integer mapping for number of checked bags
Source code in data_model/enums.py
541 542 543 544 545 546 547 548 549 550 551 552 553 | |
CommuteDays
¶
Bases: IntEnum
Integer mapping for number of days employee commutes to SAN
Source code in data_model/enums.py
774 775 776 777 778 779 780 781 782 783 784 785 786 787 | |
ConventionCenterActivity
¶
Bases: IntEnum
Integer mapping for convention center activities
Source code in data_model/enums.py
529 530 531 532 533 534 535 536 537 538 | |
Country
¶
Bases: IntEnum
Integer Mapping for all the countries in the world
Source code in data_model/enums.py
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 | |
DepartTime
¶
Bases: IntEnum
Integer mapping for time categories
Source code in data_model/enums.py
460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 | |
Employers
¶
Bases: IntEnum
Integer mapping for employers
Source code in data_model/enums.py
628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 | |
FlightPurpose
¶
Bases: IntEnum
Integer Mapping for Flight Purposes
Source code in data_model/enums.py
516 517 518 519 520 521 522 523 524 525 526 | |
Gender
¶
Bases: IntEnum
Integer mapping for gender
Source code in data_model/enums.py
1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 | |
HoursWorked
¶
Bases: IntEnum
Integer mapping for number of hours employee works at SAN
Source code in data_model/enums.py
755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 | |
HouseholdIncome
¶
Bases: IntEnum
Integer mapping for household income ranges
Source code in data_model/enums.py
1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 | |
HouseholdSize
¶
Bases: IntEnum
Integer mapping for number of persons in household
Source code in data_model/enums.py
1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 | |
HouseholdVehicles
¶
Bases: IntEnum
Integer mapping for number of vehicles in household
Source code in data_model/enums.py
1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 | |
HouseholdWorkers
¶
Bases: IntEnum
Integer mapping for number of workers in household
Source code in data_model/enums.py
1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 | |
InboundOutbound
¶
Bases: IntEnum
Integer mapping for inbound and outbound flights
Source code in data_model/enums.py
19 20 21 22 23 24 25 | |
InterviewLocation
¶
Bases: IntEnum
Integer Mapping for interview locations
Source code in data_model/enums.py
5 6 7 8 9 10 11 12 13 14 15 16 | |
ModeDecision
¶
Bases: IntEnum
Integer mapping for decisions to choose a commute mode
Source code in data_model/enums.py
971 972 973 974 975 976 977 978 979 980 981 982 983 984 | |
NumTransfers
¶
Bases: IntEnum
Integer mapping for number of transfers
Source code in data_model/enums.py
1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 | |
OccupationDetail
¶
Bases: IntEnum
Integer mapping for the occupation details for an airport employee
Source code in data_model/enums.py
744 745 746 747 748 749 750 751 752 | |
Occupations
¶
Bases: IntEnum
Integer mapping for occupations
Source code in data_model/enums.py
714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 | |
OtherFlightAndTransitUseFrequency
¶
Bases: IntEnum
Integer Mapping for other aiport’s flight and transit use frequency
Source code in data_model/enums.py
1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 | |
PMSA
¶
Bases: IntEnum
Integer Mapping for Pseudo Metropolitan Statistical Areas
Source code in data_model/enums.py
100 101 102 103 104 105 106 107 108 109 110 111 112 | |
ParkingCostFrequency
¶
Bases: IntEnum
Integer mapping for parking cost frequencies
Source code in data_model/enums.py
1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 | |
ParkingLocation
¶
Bases: IntEnum
Integer Mapping for Airport parking locations
Source code in data_model/enums.py
1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 | |
ParkingReimbursement
¶
Bases: IntEnum
Integer mapping for Parking Reimbursement Status
Source code in data_model/enums.py
1028 1029 1030 1031 1032 1033 1034 1035 | |
PartySize
¶
Bases: IntEnum
Integer mapping for number of persons in travel party (apart from respondent)
Source code in data_model/enums.py
588 589 590 591 592 593 594 595 596 597 598 599 600 601 | |
PassengerSegment
¶
Bases: IntEnum
Integer Mapping for type of passenger segment
Source code in data_model/enums.py
50 51 52 53 54 55 56 57 | |
PassengerType
¶
Bases: IntEnum
Integer Mapping for type of passenger
Source code in data_model/enums.py
40 41 42 43 44 45 46 47 | |
ReasonsNoTransit
¶
Bases: IntEnum
Integer mapping for reasons of not choosing transit
Source code in data_model/enums.py
1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 | |
ResidentVisitor
¶
Bases: IntEnum
Integer Mapping for Residence Zones
Source code in data_model/enums.py
114 115 116 117 118 119 120 121 122 123 124 125 126 127 | |
ResidentVisitorFollowup
¶
Bases: IntEnum
Integer Mapping for the followup question to respondent if they are neither a visitor nor a resident - if they are visiting SAN Diego
Source code in data_model/enums.py
84 85 86 87 88 89 | |
ResidentVisitorGeneral
¶
Bases: IntEnum
Integer Mapping for the respondent if they are resident, visitor or neither. First option if departing, second if arriving
Source code in data_model/enums.py
71 72 73 74 75 76 77 78 79 80 81 | |
ResidentVisitorPurpose
¶
Bases: IntEnum
Integer Mapping for resident/visitor and flight purpose segmentation
Source code in data_model/enums.py
60 61 62 63 64 65 66 67 68 | |
SPDropoffType
¶
Bases: IntEnum
Represents the type of person who dropped off the respondent at the airport
Source code in data_model/enums.py
1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 | |
SPImportance
¶
Bases: IntEnum
Importance levels for Stated Preference Responses
Source code in data_model/enums.py
1262 1263 1264 1265 1266 1267 1268 1269 1270 | |
SPLikelihood
¶
Bases: IntEnum
Likelihood levels for Stated Preference Responses
Source code in data_model/enums.py
1292 1293 1294 1295 1296 1297 1298 1299 1300 | |
SPNumTransfers
¶
Bases: IntEnum
Number of transfers levels for Stated Preference Responses
Source code in data_model/enums.py
1282 1283 1284 1285 1286 1287 1288 1289 1290 | |
SPWillingToWalkTime
¶
Bases: IntEnum
Willingness to walk time levels for Stated Preference Responses
Source code in data_model/enums.py
1272 1273 1274 1275 1276 1277 1278 1279 1280 | |
SanBuildings
¶
Bases: IntEnum
Integer mapping for SAN Airport buildings
Source code in data_model/enums.py
604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 | |
SanFlightFrequency
¶
Bases: IntEnum
Integer mapping for flight frequency
Source code in data_model/enums.py
1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 | |
ShiftTime
¶
Bases: Enum
Source code in data_model/enums.py
790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 | |
TimeRange
¶
Make time ranges for categorization.
Source code in data_model/enums.py
791 792 793 794 795 796 797 798 799 800 801 | |
State
¶
Bases: IntEnum
Integer mapping for all US and Mexico States
Source code in data_model/enums.py
331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 | |
SurveyLanguage
¶
Bases: Enum
Mapping for Survey Language
Source code in data_model/enums.py
1244 1245 1246 1247 1248 1249 1250 1251 | |
Terminal
¶
Bases: IntEnum
Integer mapping for terminals
Source code in data_model/enums.py
426 427 428 429 430 431 432 433 | |
TransitUseFrequency
¶
Bases: IntEnum
Integer mapping for weekly transit use frequency
Source code in data_model/enums.py
1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 | |
TravelDuration
¶
Bases: IntEnum
Integer Mapping for travel duration (nights away or nights visited)
Source code in data_model/enums.py
571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 | |
TravelMode
¶
Bases: IntEnum
Mapping for all the modes used in the survey
Source code in data_model/enums.py
890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 | |
TravelModeGrouped
¶
Bases: IntEnum
Integer mapping for consolidated modes
Source code in data_model/enums.py
928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 | |
Type
¶
Bases: IntEnum
Integer mapping for market segmentation
Source code in data_model/enums.py
28 29 30 31 32 33 34 35 36 37 | |
YesNoType
¶
Bases: IntEnum
Enum for Yes or No Type Questions
Source code in data_model/enums.py
1253 1254 1255 1256 1257 1258 1259 1260 | |
Utils ¶
This section includes the Utility methods
Utility functions used with the data model.
add_enum_label_columns(df, model)
¶
After the datamodel output is converted into a dataframe, this method adds a column to the output dataframe for each Enum variable in the datamodel. This column shows the Enum label.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
The DataFrame to which the Enum label columns will be added. |
required |
model
|
BaseModel
|
A Pydantic model with fields annotated with types, potentially including Enums. |
required |
Returns:
| Type | Description |
|---|---|
DataFrame
|
pd.DataFrame: The modified DataFrame with additional Enum label columns. |
Source code in data_model/utils.py
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | |
add_list_objects(child_list, child_key, parent_list, parent_key, parent_variable)
¶
Maps a list of child objects to a list of parent objects. The child objects
are added to the parent objects as a list using the parent_variable as the
key. The child_key is used to match the child to the parent using the
parent_key.
Source code in data_model/utils.py
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | |
add_synthetic_records(df)
¶
Adds synthetic responses to the survey DataFrame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
The original DataFrame containing survey responses. |
required |
Returns:
| Type | Description |
|---|---|
DataFrame
|
pd.DataFrame: A DataFrame with synthetic responses added. |
Source code in data_model/utils.py
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 | |
extract_base_type(typ)
¶
Extracts base type from complex annotations. This is needed to identify whether a variable is an Enum. Without this step, the origin of all the variables in the model is Annotated, even the variable is an Enum
Source code in data_model/utils.py
73 74 75 76 77 78 79 80 81 82 83 84 | |
map_zones(df, lat_col, long_col, shapefile, zone_column, external_zone_value)
¶
Maps coordinates in a DataFrame to zones defined in a shapefile.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
Input DataFrame with latitude and longitude columns. |
required |
lat_col
|
str
|
Column name for latitude in the DataFrame. |
required |
long_col
|
str
|
Column name for longitude in the DataFrame. |
required |
shapefile
|
str
|
Path to the shapefile containing zone geometries. |
required |
zone_column
|
str
|
Column name in the shapefile that contains zone names. |
required |
external_zone_value
|
Any
|
Value to return if a point is not within any zone in the shapefile. |
required |
Returns:
| Type | Description |
|---|---|
GeoDataFrame
|
pd.GeoDataFrame: A GeoDataFrame with zone names mapped to each row. |
Source code in data_model/utils.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | |
military_to_clock(military_time)
¶
Converts a military time string (HHMM) to a 12-hour clock format string (hh:mm AM/PM).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
military_time
|
str
|
A string representing time in 24-hour format (e.g., “0600”). |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
A string representing time in 12-hour clock format (e.g., “6:00 AM”). |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the input string is not in the correct format (HHMM). |
Source code in data_model/utils.py
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | |
nan_to_none(cls, value)
¶
Convert nan to none to address that missing strings were being read as nan, which resulted in a value error when using using Optional[str]
Source code in data_model/utils.py
135 136 137 138 139 140 141 | |