-
Notifications
You must be signed in to change notification settings - Fork 2
/
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'}