Bridges-C++ 3.5.0-dev2-1-ge3e57bf
Bridges(C++ API)
MapConstants.h
Go to the documentation of this file.
1#ifndef MAP_CONSTANTS_H
2
3#define MAP_CONSTANTS_H
4
5// These constants are used in the Map API to specify all US states or all countries
6// Their names have been synced with the world.json (on the BRIDGES client) and
7// also match the countries data file - world-countries-iso-3166.json. Both are
8// unfortunately needed as the country codes are in the latter file, while the
9// geometry of the country boundaries are in the former. Names in these 3 places
10// need to match, else the rendering code will fail for mismatched country names.
11//
12// The US state file reading and rendering is more stable.
13
14const vector<string> all_us_states = {
15 "Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado",
16 "Connecticut", "Delaware", "Florida", "Georgia", "Hawaii", "Idaho",
17 "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine",
18 "Maryland", "Massachusetts", "Michigan", "Minnesota", "Mississippi",
19 "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire",
20 "New Jersey", "New Mexico", "New York", "North Carolina", "North Dakota",
21 "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhode Island",
22 "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Vermont",
23 "Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming"
24};
25
26
27const vector<string> all_countries = {
28 "Andorra", "United Arab Emirates", "Afghanistan", "Antigua and Barbuda",
29 "Anguilla", "Albania", "Armenia", "Angola", "Antarctica", "Argentina",
30 "American Samoa", "Austria", "Australia", "Aruba", "Aland Islands"
31 "Azerbaijan", "Barbados", "Bangladesh", "Belgium", "Burkina Faso", "Bulgaria",
32 "Bahrain", "Burundi", "Benin", "Saint Barthelemy", "Bermuda",
33 "Brunei Darussalam", "Bolivia",
34 "Bonaire, Sint Eustatius and Saba", "Brazil", "Bahamas", "Bhutan",
35 "Bouvet Island", "Botswana", "Belarus", "Belize", "Canada",
36 "Cocos (Keeling) Islands", "Democratic Republic of the Congo",
37 "Central African Republic", "Congo", "Switzerland", "Cote d'Ivoire",
38 "Cook Islands", "Chile", "Cameroon", "China", "Colombia", "Costa Rica",
39 "Cuba", "Cabo Verde", "Curacao", "Christmas Island", "Cyprus", "Czechia",
40 "Germany", "Djibouti", "Denmark", "Dominica", "Dominican Republic", "Algeria",
41 "Ecuador", "Estonia", "Egypt", "Western Sahara", "Eritrea", "Spain", "Ethiopia",
42 "Finland", "Fiji", "Falkland Islands", "Micronesia",
43 "Faroe Islands", "France", "Gabon", "United Kingdom",
44 "Grenada", "Georgia", "French Guiana", "Guernsey", "Ghana", "Gibraltar", "Greenland",
45 "Gambia", "Guinea", "Guadeloupe", "Equatorial Guinea", "Greece",
46 "South Georgia and the South Sandwich Islands", "Guatemala", "Guam", "Guinea-Bissau",
47 "Guyana", "Hong Kong", "Heard Island and McDonald Islands", "Honduras", "Croatia",
48 "Haiti", "Hungary", "Indonesia", "Ireland", "Israel", "Isle of Man", "India",
49 "British Indian Ocean Territory", "Iraq", "Iran", "Iceland",
50 "Italy", "Jersey", "Jamaica", "Jordan", "Japan", "Kenya", "Kyrgyzstan", "Cambodia",
51 "Kiribati", "Comoros", "Saint Kitts and Nevis", "Korea", "North Korea",
52 "Kuwait", "Cayman Islands", "Kazakhstan",
53 "Lao People's Democratic Republic", "Lebanon", "Saint Lucia", "Liechtenstein",
54 "Sri Lanka", "Liberia", "Lesotho", "Lithuania", "Luxembourg", "Latvia", "Libya",
55 "Morocco", "Monaco", "Moldova", "Montenegro", "Saint Martin (French Part)",
56 "Madagascar", "Marshall Islands", "North Macedonia", "Mali", "Myanmar", "Mongolia",
57 "Macao", "Northern Mariana Islands", "Martinique", "Mauritania", "Montserrat", "Malta",
58 "Mauritius", "Maldives", "Malawi", "Mexico", "Malaysia", "Mozambique", "Namibia",
59 "New Caledonia", "Niger", "Norfolk Island", "Nigeria", "Nicaragua", "Netherlands",
60 "Norway", "Nepal", "Nauru", "Niue", "New Zealand", "Oman", "Panama", "Peru",
61 "French Polynesia", "Papua New Guinea", "Philippines", "Pakistan", "Poland",
62 "Saint Pierre and Miquelon", "Pitcairn", "Puerto Rico", "Palestine, State of",
63 "Portugal", "Palau", "Paraguay", "Qatar", "Reunion", "Romania", "Serbia",
64 "Russian Federation", "Rwanda", "Saudi Arabia", "Solomon Islands", "Seychelles",
65 "Sudan", "Sweden", "Singapore", "Saint Helena, Ascension and Tristan da Cunha",
66 "Slovenia", "Svalbard and Jan Mayen", "Slovakia", "Sierra Leone", "San Marino",
67 "Senegal", "Somalia", "Suriname", "South Sudan", "Sao Tome and Principe", "El Salvador",
68 "Sint Maarten (Dutch Part)", "Syrian Arab Republic", "Eswatini",
69 "Turks and Caicos Islands", "Chad", "French Southern Territories", "Togo",
70 "Thailand", "Tajikistan", "Tokelau", "Timor-Leste", "Turkmenistan", "Tunisia",
71 "Tonga", "Turkey", "Trinidad and Tobago", "Tuvalu", "Taiwan",
72 "Tanzania, United Republic of", "Ukraine", "Uganda",
73 "United States Minor Outlying Islands", "United States of America", "Uruguay",
74 "Uzbekistan", "Holy See", "Saint Vincent and the Grenadines",
75 "Venezuela", "Virgin Islands (British)",
76 "Virgin Islands (U.S.)", "Viet Nam", "Vanuatu", "Wallis and Futuna", "Samoa",
77 "Yemen", "Mayotte", "South Africa", "Zambia", "Zimbabwe"
78};
79
80#endif
const vector< string > all_us_states
Definition: MapConstants.h:14
const vector< string > all_countries
Definition: MapConstants.h:27