-
Notifications
You must be signed in to change notification settings - Fork 3
/
expansions.py
82 lines (81 loc) · 1.74 KB
/
expansions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
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
70
71
72
73
74
75
76
77
78
79
80
81
82
"""
Data from observation and Appendix B (p271) of
http://www.census.gov/geo/www/tiger/tiger2006se/TGR06SE.pdf
"""
# tiger:name_type
road_types = {
'ALY': 'Alley',
'ARC': 'Arcade',
'AVE': 'Avenue',
'BLF': 'Bluff',
'BLVD': 'Boulevard',
'BR': 'Bridge',
'BRG': 'Bridge',
'BYP': 'Bypass',
'CIR': 'Circle',
'CRES': 'Crescent',
'CSWY': 'Causeway',
'CT': 'Court',
'CTR': 'Center',
'CV': 'Cove',
'DR': 'Drive',
'EXPY': 'Expressway',
'EXPWY': 'Expressway',
'FMRD': 'Farm to Market Road',
'FWY': 'Freeway',
'GRD': 'Grade',
'HBR': 'Harbor',
'HOLW': 'Hollow',
'HWY': 'Highway',
'LN': 'Lane',
'LNDG': 'Landing',
'MAL': 'Mall',
'MTWY': 'Motorway',
'OVPS': 'Overpass',
'PKY': 'Parkway',
'PKWY': 'Parkway',
'PL': 'Place',
'PLZ': 'Plaza',
'RD': 'Road',
'RDG': 'Ridge',
'RMRD': 'Ranch to Market Road',
'RTE': 'Route',
'SKWY': 'Skyway',
'SQ': 'Square',
'ST': 'Street',
'TER': 'Terrace',
'TFWY': 'Trafficway',
'THFR': 'Thoroughfare',
'THWY': 'Thruway',
'TPKE': 'Turnpike',
'TRCE': 'Trace',
'TRL' : 'Trail',
'TUNL': 'Tunnel',
'UNP': 'Underpass',
'WKWY': 'Walkway',
'XING': 'Crossing',
### NOT EXPANDED
'WAY': 'Way',
'WALK': 'Walk',
'LOOP': 'Loop',
'OVAL': 'Oval',
'RAMP': 'Ramp',
'ROW': 'Row',
'RUN': 'Run',
'PASS': 'Pass',
'SPUR': 'Spur',
'PATH': 'Path',
'PIKE': 'Pike',
'RUE': 'Rue',
'MALL': 'Mall',
}
# tiger:name_direction_prefix/tiger:name_direction_suffix
directions = {
'N': 'North',
'S': 'South',
'E': 'East',
'W': 'West',
'NE': 'Northeast',
'NW': 'Northwest',
'SE': 'Southeast',
'SW': 'Southwest'}