-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocations.py
73 lines (68 loc) · 1.66 KB
/
locations.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
location_dict = {
# Continent to planet
'asia' : 'earth',
'africa' : 'earth',
'europe' : 'earth',
'south america' : 'earth',
'north america' : 'earth',
'diacria' : 'mars',
'tharsis' : 'mars',
# Countries to continent
'china' : 'asia',
'united states' : 'north america',
'pakistan' : 'asia',
'india' : 'asia',
'nigeria' : 'africa',
'japan' : 'asia',
'turkey' : 'europe',
'russia' : 'asia',
'brazil' : 'south america',
'indonesia' : 'asia',
'egypt' : 'africa',
'mexico' : 'north america',
# Cities to country
'shanghai' : 'china',
'beijing' : 'china',
'tianjin' : 'china',
'guangzhou' : 'china',
'karachi' : 'pakistan',
'delhi' : 'india',
'mumbai' : 'india',
'lagos' : 'nigeria',
'instanbul' : 'turkey',
'tokyo' : 'japan',
'moscow' : 'russia',
'sao paulo' : 'brazil',
'jakarta' : 'indonesia',
'cairo' : 'egypt',
'mexico city' : 'mexico',
# State to country
'illinois' : 'united states',
'texas' : 'united states',
'new york' : 'united states',
'california' : 'united states',
'pennsylvania' : 'united states',
'arizona' : 'united states',
'ohio' : 'united states',
'florida' : 'united states',
'north carolina' : 'united states',
'michigan' : 'united states',
# Cities to state
'chicago' : 'illinois',
'new york city' : 'new york',
'los angeles' : 'california',
'houston' : 'texas',
'philadelphia' : 'pennsylvania',
'phoenix' : 'arizona',
'san antonio' : 'texas',
'san diego' : 'california',
'san jose' : 'california',
'dallas' : 'texas',
'columbus' : 'ohio',
'jacksonville' : 'florida',
'austin' : 'texas',
'charlotte' : 'north carolina',
'detroit' : 'michigan',
#Borough to city
'brooklyn' : 'new york city'
}