solidus_br_common 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/.rspec +1 -0
  4. data/.ruby-gemset +1 -0
  5. data/.ruby-version +1 -0
  6. data/.travis.yml +14 -0
  7. data/Gemfile +19 -0
  8. data/LICENSE +26 -0
  9. data/README.md +55 -0
  10. data/Rakefile +21 -0
  11. data/app/assets/javascripts/spree/backend/solidus_br_common.js +2 -0
  12. data/app/assets/javascripts/spree/frontend/address.js +119 -0
  13. data/app/assets/javascripts/spree/frontend/mask.js +21 -0
  14. data/app/assets/javascripts/spree/frontend/plugins/jquery.mask.extension.js +4 -0
  15. data/app/assets/javascripts/spree/frontend/plugins/jquery.mask.js +395 -0
  16. data/app/assets/javascripts/spree/frontend/routes.js.erb +4 -0
  17. data/app/assets/javascripts/spree/frontend/solidus_br_common.js +1 -0
  18. data/app/assets/stylesheets/spree/backend/solidus_br_common.css +4 -0
  19. data/app/assets/stylesheets/spree/frontend/solidus_br_common.css +4 -0
  20. data/app/controllers/spree/addresses_controller.rb +24 -0
  21. data/app/controllers/spree/api/cities_controller.rb +33 -0
  22. data/app/controllers/spree/user_registrations_controller_decorator.rb +13 -0
  23. data/app/helpers/spree/api/api_helpers_decorator.rb +9 -0
  24. data/app/helpers/spree/base_helper_decorator.rb +5 -0
  25. data/app/models/spree/ability_decorator.rb +21 -0
  26. data/app/models/spree/address_decorator.rb +6 -0
  27. data/app/models/spree/city.rb +7 -0
  28. data/app/models/spree/permitted_attributes_decorator.rb +8 -0
  29. data/app/models/spree/state_decorator.rb +3 -0
  30. data/app/models/spree/user_decorator.rb +52 -0
  31. data/app/overrides/spree/address/_form/add_district.html.erb.deface +5 -0
  32. data/app/overrides/spree/address/_form/add_number.html.erb.deface +5 -0
  33. data/app/overrides/spree/address/_form/hide_country.html.erb.deface +4 -0
  34. data/app/overrides/spree/address/_form/move_city_to_after_state.deface +2 -0
  35. data/app/overrides/spree/address/_form/move_zipcode_after_last_name.deface +2 -0
  36. data/app/overrides/spree/address/_form/replace_city_input_text_by_select.html.erb.deface +18 -0
  37. data/app/overrides/spree/address/_form/set_data_uf_to_state.html.erb.deface +15 -0
  38. data/app/overrides/spree/admin/users/_form/add_extras_fields.html.erb.deface +39 -0
  39. data/app/overrides/spree/shared/_user_form/add_extra_fields.html.erb.deface +19 -0
  40. data/app/overrides/spree/users/show/add_details.html.erb.deface +13 -0
  41. data/app/views/spree/api/cities/index.v1.rabl +11 -0
  42. data/app/views/spree/api/cities/show.v1.rabl +2 -0
  43. data/bin/rails +7 -0
  44. data/config/locales/en.yml +11 -0
  45. data/config/locales/pt-BR.yml +14 -0
  46. data/config/routes.rb +7 -0
  47. data/db/default/country.rb +3 -0
  48. data/db/default/shipping_categories.rb +1 -0
  49. data/db/default/shipping_zones.rb +3 -0
  50. data/db/default/states.rb +31 -0
  51. data/db/default/states_cities_of_acre.rb +26 -0
  52. data/db/default/states_cities_of_alagoas.rb +107 -0
  53. data/db/default/states_cities_of_amapa.rb +20 -0
  54. data/db/default/states_cities_of_amazonas.rb +67 -0
  55. data/db/default/states_cities_of_bahia.rb +421 -0
  56. data/db/default/states_cities_of_ceara.rb +188 -0
  57. data/db/default/states_cities_of_distrito_federal.rb +5 -0
  58. data/db/default/states_cities_of_espirito_santo.rb +82 -0
  59. data/db/default/states_cities_of_goias.rb +250 -0
  60. data/db/default/states_cities_of_maranhao.rb +221 -0
  61. data/db/default/states_cities_of_mato_grosso.rb +145 -0
  62. data/db/default/states_cities_of_mato_grosso_do_sul.rb +82 -0
  63. data/db/default/states_cities_of_minas_gerais.rb +857 -0
  64. data/db/default/states_cities_of_para.rb +147 -0
  65. data/db/default/states_cities_of_paraiba.rb +227 -0
  66. data/db/default/states_cities_of_parana.rb +403 -0
  67. data/db/default/states_cities_of_pernambuco.rb +189 -0
  68. data/db/default/states_cities_of_piaui.rb +227 -0
  69. data/db/default/states_cities_of_rio_de_janeiro.rb +96 -0
  70. data/db/default/states_cities_of_rio_grande_do_norte.rb +171 -0
  71. data/db/default/states_cities_of_rio_grande_do_sul.rb +500 -0
  72. data/db/default/states_cities_of_rondonia.rb +56 -0
  73. data/db/default/states_cities_of_roraima.rb +19 -0
  74. data/db/default/states_cities_of_santa_catarina.rb +297 -0
  75. data/db/default/states_cities_of_sao_paulo.rb +649 -0
  76. data/db/default/states_cities_of_sergipe.rb +79 -0
  77. data/db/default/states_cities_of_tocantins.rb +144 -0
  78. data/db/default/stock.rb +1 -0
  79. data/db/default/tax_categories.rb +1 -0
  80. data/db/default/user.rb +100 -0
  81. data/db/migrate/20150503011715_create_spree_cities.rb +13 -0
  82. data/db/migrate/20150504004509_remove_city_from_spree_address.rb +5 -0
  83. data/db/migrate/20150504004648_add_city_to_spree_address.rb +5 -0
  84. data/db/migrate/20150505020218_add_number_and_district_to_spree_address.rb +6 -0
  85. data/db/migrate/20150505031019_add_details_to_spree_user.rb +10 -0
  86. data/db/seeds.rb +5 -0
  87. data/lib/generators/solidus_br_common/install/install_generator.rb +31 -0
  88. data/lib/solidus_br_common/engine.rb +20 -0
  89. data/lib/solidus_br_common/factories/address_factory.rb +7 -0
  90. data/lib/solidus_br_common/factories/city_factory.rb +8 -0
  91. data/lib/solidus_br_common/factories/user_factory.rb +12 -0
  92. data/lib/solidus_br_common/factories.rb +3 -0
  93. data/lib/solidus_br_common.rb +2 -0
  94. data/solidus_br_common.gemspec +33 -0
  95. data/spec/controllers/spree/addresses_controller_spec.rb +27 -0
  96. data/spec/controllers/spree/api/cities_controller_spec.rb +91 -0
  97. data/spec/features/address_checkout_spec.rb +89 -0
  98. data/spec/features/user_account_spec.rb +46 -0
  99. data/spec/features/user_signup_spec.rb +24 -0
  100. data/spec/fixtures/vcr_cassettes/Checkout/visitor_makes_checkout_as_guest_without_registration/full_checkout/does_not_break_the_per-item_shipping_method_calculator.yml +49 -0
  101. data/spec/fixtures/vcr_cassettes/Checkout/visitor_makes_checkout_as_guest_without_registration/full_checkout/in_Brazil/should_autocomplete_zipcode.yml +46 -0
  102. data/spec/fixtures/vcr_cassettes/Spree_AddressesController/_show/does_not_find_an_incorrect_cep.yml +38 -0
  103. data/spec/fixtures/vcr_cassettes/Spree_AddressesController/_show/shows_the_correct_address.yml +46 -0
  104. data/spec/models/spree/address_spec.rb +32 -0
  105. data/spec/models/spree/city_spec.rb +7 -0
  106. data/spec/models/spree/user_spec.rb +88 -0
  107. data/spec/spec_helper.rb +61 -0
  108. data/spec/support/controller_hacks.rb +33 -0
  109. data/spec/support/database_cleaner.rb +24 -0
  110. data/spec/support/shared_context/checkout_setup.rb +9 -0
  111. data/spec/support/shoulda_matchers.rb +6 -0
  112. data/spec/support/vcr.rb +8 -0
  113. metadata +385 -0
@@ -0,0 +1,500 @@
1
+ rio_grande_do_sul = Spree::State.find_by! abbr: 'RS'
2
+
3
+ Spree::City.create!([
4
+ {state: rio_grande_do_sul, ibge_code: 4300307, name: "Alecrim"},
5
+ {state: rio_grande_do_sul, ibge_code: 4304309, name: "Cândido Godói"},
6
+ {state: rio_grande_do_sul, ibge_code: 4310405, name: "Independência"},
7
+ {state: rio_grande_do_sul, ibge_code: 4315008, name: "Porto Lucena"},
8
+ {state: rio_grande_do_sul, ibge_code: 4315057, name: "Porto Mauá"},
9
+ {state: rio_grande_do_sul, ibge_code: 4315073, name: "Porto Vera Cruz"},
10
+ {state: rio_grande_do_sul, ibge_code: 4317905, name: "Santo Cristo"},
11
+ {state: rio_grande_do_sul, ibge_code: 4321808, name: "Três de Maio"},
12
+ {state: rio_grande_do_sul, ibge_code: 4322103, name: "Tucunduva"},
13
+ {state: rio_grande_do_sul, ibge_code: 4301859, name: "Barra do Guarita"},
14
+ {state: rio_grande_do_sul, ibge_code: 4302204, name: "Boa Vista do Buricá"},
15
+ {state: rio_grande_do_sul, ibge_code: 4302600, name: "Braga"},
16
+ {state: rio_grande_do_sul, ibge_code: 4304002, name: "Campo Novo"},
17
+ {state: rio_grande_do_sul, ibge_code: 4306007, name: "Crissiumal"},
18
+ {state: rio_grande_do_sul, ibge_code: 4306320, name: "Derrubadas"},
19
+ {state: rio_grande_do_sul, ibge_code: 4306734, name: "Doutor Maurício Cardoso"},
20
+ {state: rio_grande_do_sul, ibge_code: 4307450, name: "Esperança do Sul"},
21
+ {state: rio_grande_do_sul, ibge_code: 4309605, name: "Horizontina"},
22
+ {state: rio_grande_do_sul, ibge_code: 4309704, name: "Humaitá"},
23
+ {state: rio_grande_do_sul, ibge_code: 4312302, name: "Miraguaí"},
24
+ {state: rio_grande_do_sul, ibge_code: 4313011, name: "Nova Candelária"},
25
+ {state: rio_grande_do_sul, ibge_code: 4315404, name: "Redentora"},
26
+ {state: rio_grande_do_sul, ibge_code: 4319109, name: "São Martinho"},
27
+ {state: rio_grande_do_sul, ibge_code: 4320230, name: "Sede Nova"},
28
+ {state: rio_grande_do_sul, ibge_code: 4321402, name: "Tenente Portela"},
29
+ {state: rio_grande_do_sul, ibge_code: 4321477, name: "Tiradentes do Sul"},
30
+ {state: rio_grande_do_sul, ibge_code: 4323705, name: "Vista Gaúcha"},
31
+ {state: rio_grande_do_sul, ibge_code: 4300505, name: "Alpestre"},
32
+ {state: rio_grande_do_sul, ibge_code: 4300646, name: "Ametista do Sul"},
33
+ {state: rio_grande_do_sul, ibge_code: 4303400, name: "Caiçara"},
34
+ {state: rio_grande_do_sul, ibge_code: 4305801, name: "Constantina"},
35
+ {state: rio_grande_do_sul, ibge_code: 4306072, name: "Cristal do Sul"},
36
+ {state: rio_grande_do_sul, ibge_code: 4306429, name: "Dois Irmãos das Missões"},
37
+ {state: rio_grande_do_sul, ibge_code: 4306924, name: "Engenho Velho"},
38
+ {state: rio_grande_do_sul, ibge_code: 4307302, name: "Erval Seco"},
39
+ {state: rio_grande_do_sul, ibge_code: 4309126, name: "Gramado dos Loureiros"},
40
+ {state: rio_grande_do_sul, ibge_code: 4310504, name: "Iraí"},
41
+ {state: rio_grande_do_sul, ibge_code: 4311601, name: "Liberato Salzano"},
42
+ {state: rio_grande_do_sul, ibge_code: 4313441, name: "Novo Tiradentes"},
43
+ {state: rio_grande_do_sul, ibge_code: 4313466, name: "Novo Xingu"},
44
+ {state: rio_grande_do_sul, ibge_code: 4313805, name: "Palmitinho"},
45
+ {state: rio_grande_do_sul, ibge_code: 4314498, name: "Pinheirinho do Vale"},
46
+ {state: rio_grande_do_sul, ibge_code: 4314704, name: "Planalto"},
47
+ {state: rio_grande_do_sul, ibge_code: 4315552, name: "Rio dos Índios"},
48
+ {state: rio_grande_do_sul, ibge_code: 4315909, name: "Rodeio Bonito"},
49
+ {state: rio_grande_do_sul, ibge_code: 4316204, name: "Rondinha"},
50
+ {state: rio_grande_do_sul, ibge_code: 4320206, name: "Seberi"},
51
+ {state: rio_grande_do_sul, ibge_code: 4321329, name: "Taquaruçu do Sul"},
52
+ {state: rio_grande_do_sul, ibge_code: 4321857, name: "Três Palmeiras"},
53
+ {state: rio_grande_do_sul, ibge_code: 4323101, name: "Vicente Dutra"},
54
+ {state: rio_grande_do_sul, ibge_code: 4323507, name: "Vista Alegre"},
55
+ {state: rio_grande_do_sul, ibge_code: 4300901, name: "Aratiba"},
56
+ {state: rio_grande_do_sul, ibge_code: 4301552, name: "Áurea"},
57
+ {state: rio_grande_do_sul, ibge_code: 4301701, name: "Barão de Cotegipe"},
58
+ {state: rio_grande_do_sul, ibge_code: 4301925, name: "Barra do Rio Azul"},
59
+ {state: rio_grande_do_sul, ibge_code: 4302055, name: "Benjamin Constant do Sul"},
60
+ {state: rio_grande_do_sul, ibge_code: 4303806, name: "Campinas do Sul"},
61
+ {state: rio_grande_do_sul, ibge_code: 4304853, name: "Carlos Gomes"},
62
+ {state: rio_grande_do_sul, ibge_code: 4305116, name: "Centenário"},
63
+ {state: rio_grande_do_sul, ibge_code: 4306130, name: "Cruzaltense"},
64
+ {state: rio_grande_do_sul, ibge_code: 4306957, name: "Entre Rios do Sul"},
65
+ {state: rio_grande_do_sul, ibge_code: 4306973, name: "Erebango"},
66
+ {state: rio_grande_do_sul, ibge_code: 4307203, name: "Erval Grande"},
67
+ {state: rio_grande_do_sul, ibge_code: 4307559, name: "Estação"},
68
+ {state: rio_grande_do_sul, ibge_code: 4308250, name: "Floriano Peixoto"},
69
+ {state: rio_grande_do_sul, ibge_code: 4308904, name: "Getúlio Vargas"},
70
+ {state: rio_grande_do_sul, ibge_code: 4310462, name: "Ipiranga do Sul"},
71
+ {state: rio_grande_do_sul, ibge_code: 4310900, name: "Jacutinga"},
72
+ {state: rio_grande_do_sul, ibge_code: 4311908, name: "Marcelino Ramos"},
73
+ {state: rio_grande_do_sul, ibge_code: 4312005, name: "Mariano Moro"},
74
+ {state: rio_grande_do_sul, ibge_code: 4314134, name: "Paulo Bento"},
75
+ {state: rio_grande_do_sul, ibge_code: 4315313, name: "Quatro Irmãos"},
76
+ {state: rio_grande_do_sul, ibge_code: 4319703, name: "São Valentim"},
77
+ {state: rio_grande_do_sul, ibge_code: 4321634, name: "Três Arroios"},
78
+ {state: rio_grande_do_sul, ibge_code: 4301800, name: "Barracão"},
79
+ {state: rio_grande_do_sul, ibge_code: 4309803, name: "Ibiaçá"},
80
+ {state: rio_grande_do_sul, ibge_code: 4312203, name: "Maximiliano de Almeida"},
81
+ {state: rio_grande_do_sul, ibge_code: 4313607, name: "Paim Filho"},
82
+ {state: rio_grande_do_sul, ibge_code: 4316600, name: "Sananduva"},
83
+ {state: rio_grande_do_sul, ibge_code: 4318424, name: "São João da Urtiga"},
84
+ {state: rio_grande_do_sul, ibge_code: 4318606, name: "São José do Ouro"},
85
+ {state: rio_grande_do_sul, ibge_code: 4322186, name: "Tupanci do Sul"},
86
+ {state: rio_grande_do_sul, ibge_code: 4303301, name: "Caibaté"},
87
+ {state: rio_grande_do_sul, ibge_code: 4303707, name: "Campina das Missões"},
88
+ {state: rio_grande_do_sul, ibge_code: 4305207, name: "Cerro Largo"},
89
+ {state: rio_grande_do_sul, ibge_code: 4312179, name: "Mato Queimado"},
90
+ {state: rio_grande_do_sul, ibge_code: 4315107, name: "Porto Xavier"},
91
+ {state: rio_grande_do_sul, ibge_code: 4316303, name: "Roque Gonzales"},
92
+ {state: rio_grande_do_sul, ibge_code: 4316477, name: "Salvador das Missões"},
93
+ {state: rio_grande_do_sul, ibge_code: 4319372, name: "São Pedro do Butiá"},
94
+ {state: rio_grande_do_sul, ibge_code: 4302501, name: "Bossoroca"},
95
+ {state: rio_grande_do_sul, ibge_code: 4305009, name: "Catuípe"},
96
+ {state: rio_grande_do_sul, ibge_code: 4306353, name: "Dezesseis de Novembro"},
97
+ {state: rio_grande_do_sul, ibge_code: 4306932, name: "Entre-Ijuís"},
98
+ {state: rio_grande_do_sul, ibge_code: 4309001, name: "Giruá"},
99
+ {state: rio_grande_do_sul, ibge_code: 4314555, name: "Pirapó"},
100
+ {state: rio_grande_do_sul, ibge_code: 4315958, name: "Rolador"},
101
+ {state: rio_grande_do_sul, ibge_code: 4317509, name: "Santo Ângelo"},
102
+ {state: rio_grande_do_sul, ibge_code: 4318903, name: "São Luiz Gonzaga"},
103
+ {state: rio_grande_do_sul, ibge_code: 4319158, name: "São Miguel das Missões"},
104
+ {state: rio_grande_do_sul, ibge_code: 4319208, name: "São Nicolau"},
105
+ {state: rio_grande_do_sul, ibge_code: 4320321, name: "Senador Salgado Filho"},
106
+ {state: rio_grande_do_sul, ibge_code: 4322343, name: "Ubiretama"},
107
+ {state: rio_grande_do_sul, ibge_code: 4323754, name: "Vitória das Missões"},
108
+ {state: rio_grande_do_sul, ibge_code: 4300455, name: "Alegria"},
109
+ {state: rio_grande_do_sul, ibge_code: 4301503, name: "Augusto Pestana"},
110
+ {state: rio_grande_do_sul, ibge_code: 4305702, name: "Condor"},
111
+ {state: rio_grande_do_sul, ibge_code: 4305871, name: "Coronel Barros"},
112
+ {state: rio_grande_do_sul, ibge_code: 4305900, name: "Coronel Bicaco"},
113
+ {state: rio_grande_do_sul, ibge_code: 4310413, name: "Inhacorá"},
114
+ {state: rio_grande_do_sul, ibge_code: 4313334, name: "Nova Ramada"},
115
+ {state: rio_grande_do_sul, ibge_code: 4313904, name: "Panambi"},
116
+ {state: rio_grande_do_sul, ibge_code: 4319737, name: "São Valério do Sul"},
117
+ {state: rio_grande_do_sul, ibge_code: 4300471, name: "Almirante Tamandaré do Sul"},
118
+ {state: rio_grande_do_sul, ibge_code: 4302154, name: "Boa Vista das Missões"},
119
+ {state: rio_grande_do_sul, ibge_code: 4304705, name: "Carazinho"},
120
+ {state: rio_grande_do_sul, ibge_code: 4305850, name: "Coqueiros do Sul"},
121
+ {state: rio_grande_do_sul, ibge_code: 4310850, name: "Jaboticaba"},
122
+ {state: rio_grande_do_sul, ibge_code: 4311429, name: "Lajeado do Bugre"},
123
+ {state: rio_grande_do_sul, ibge_code: 4313490, name: "Novo Barreiro"},
124
+ {state: rio_grande_do_sul, ibge_code: 4313706, name: "Palmeira das Missões"},
125
+ {state: rio_grande_do_sul, ibge_code: 4314456, name: "Pinhal"},
126
+ {state: rio_grande_do_sul, ibge_code: 4316428, name: "Sagrada Família"},
127
+ {state: rio_grande_do_sul, ibge_code: 4318457, name: "São José das Missões"},
128
+ {state: rio_grande_do_sul, ibge_code: 4319364, name: "São Pedro das Missões"},
129
+ {state: rio_grande_do_sul, ibge_code: 4320107, name: "Sarandi"},
130
+ {state: rio_grande_do_sul, ibge_code: 4300059, name: "Água Santa"},
131
+ {state: rio_grande_do_sul, ibge_code: 4303558, name: "Camargo"},
132
+ {state: rio_grande_do_sul, ibge_code: 4304903, name: "Casca"},
133
+ {state: rio_grande_do_sul, ibge_code: 4305371, name: "Charrua"},
134
+ {state: rio_grande_do_sul, ibge_code: 4305975, name: "Coxilha"},
135
+ {state: rio_grande_do_sul, ibge_code: 4307054, name: "Ernestina"},
136
+ {state: rio_grande_do_sul, ibge_code: 4308854, name: "Gentil"},
137
+ {state: rio_grande_do_sul, ibge_code: 4309902, name: "Ibiraiaras"},
138
+ {state: rio_grande_do_sul, ibge_code: 4311809, name: "Marau"},
139
+ {state: rio_grande_do_sul, ibge_code: 4312625, name: "Muliterno"},
140
+ {state: rio_grande_do_sul, ibge_code: 4312674, name: "Nicolau Vergueiro"},
141
+ {state: rio_grande_do_sul, ibge_code: 4314100, name: "Passo Fundo"},
142
+ {state: rio_grande_do_sul, ibge_code: 4314779, name: "Pontão"},
143
+ {state: rio_grande_do_sul, ibge_code: 4316733, name: "Santa Cecília do Sul"},
144
+ {state: rio_grande_do_sul, ibge_code: 4317558, name: "Santo Antônio do Palma"},
145
+ {state: rio_grande_do_sul, ibge_code: 4320503, name: "Sertão"},
146
+ {state: rio_grande_do_sul, ibge_code: 4322558, name: "Vanini"},
147
+ {state: rio_grande_do_sul, ibge_code: 4323408, name: "Vila Maria"},
148
+ {state: rio_grande_do_sul, ibge_code: 4302220, name: "Boa Vista do Cadeado"},
149
+ {state: rio_grande_do_sul, ibge_code: 4302238, name: "Boa Vista do Incra"},
150
+ {state: rio_grande_do_sul, ibge_code: 4304101, name: "Campos Borges"},
151
+ {state: rio_grande_do_sul, ibge_code: 4307500, name: "Espumoso"},
152
+ {state: rio_grande_do_sul, ibge_code: 4308458, name: "Fortaleza dos Valos"},
153
+ {state: rio_grande_do_sul, ibge_code: 4310009, name: "Ibirubá"},
154
+ {state: rio_grande_do_sul, ibge_code: 4310876, name: "Jacuizinho"},
155
+ {state: rio_grande_do_sul, ibge_code: 4315354, name: "Quinze de Novembro"},
156
+ {state: rio_grande_do_sul, ibge_code: 4316436, name: "Saldanha Marinho"},
157
+ {state: rio_grande_do_sul, ibge_code: 4316709, name: "Santa Bárbara do Sul"},
158
+ {state: rio_grande_do_sul, ibge_code: 4305603, name: "Colorado"},
159
+ {state: rio_grande_do_sul, ibge_code: 4311270, name: "Lagoa dos Três Cantos"},
160
+ {state: rio_grande_do_sul, ibge_code: 4312658, name: "Não-Me-Toque"},
161
+ {state: rio_grande_do_sul, ibge_code: 4321006, name: "Tapera"},
162
+ {state: rio_grande_do_sul, ibge_code: 4323200, name: "Victor Graeff"},
163
+ {state: rio_grande_do_sul, ibge_code: 4308300, name: "Fontoura Xavier"},
164
+ {state: rio_grande_do_sul, ibge_code: 4309951, name: "Ibirapuitã"},
165
+ {state: rio_grande_do_sul, ibge_code: 4311254, name: "Lagoão"},
166
+ {state: rio_grande_do_sul, ibge_code: 4312427, name: "Mormaço"},
167
+ {state: rio_grande_do_sul, ibge_code: 4320800, name: "Soledade"},
168
+ {state: rio_grande_do_sul, ibge_code: 4322152, name: "Tunas"},
169
+ {state: rio_grande_do_sul, ibge_code: 4300661, name: "André da Rocha"},
170
+ {state: rio_grande_do_sul, ibge_code: 4300703, name: "Anta Gorda"},
171
+ {state: rio_grande_do_sul, ibge_code: 4301404, name: "Arvorezinha"},
172
+ {state: rio_grande_do_sul, ibge_code: 4309258, name: "Guabiju"},
173
+ {state: rio_grande_do_sul, ibge_code: 4309407, name: "Guaporé"},
174
+ {state: rio_grande_do_sul, ibge_code: 4310579, name: "Itapuca"},
175
+ {state: rio_grande_do_sul, ibge_code: 4312757, name: "Nova Alvorada"},
176
+ {state: rio_grande_do_sul, ibge_code: 4312807, name: "Nova Araçá"},
177
+ {state: rio_grande_do_sul, ibge_code: 4314001, name: "Paraí"},
178
+ {state: rio_grande_do_sul, ibge_code: 4315172, name: "Protásio Alves"},
179
+ {state: rio_grande_do_sul, ibge_code: 4315206, name: "Putinga"},
180
+ {state: rio_grande_do_sul, ibge_code: 4319711, name: "São Valentim do Sul"},
181
+ {state: rio_grande_do_sul, ibge_code: 4320404, name: "Serafina Corrêa"},
182
+ {state: rio_grande_do_sul, ibge_code: 4322350, name: "União da Serra"},
183
+ {state: rio_grande_do_sul, ibge_code: 4302303, name: "Bom Jesus"},
184
+ {state: rio_grande_do_sul, ibge_code: 4303608, name: "Cambará do Sul"},
185
+ {state: rio_grande_do_sul, ibge_code: 4304622, name: "Capão Bonito do Sul"},
186
+ {state: rio_grande_do_sul, ibge_code: 4307401, name: "Esmeralda"},
187
+ {state: rio_grande_do_sul, ibge_code: 4311122, name: "Jaquirana"},
188
+ {state: rio_grande_do_sul, ibge_code: 4311304, name: "Lagoa Vermelha"},
189
+ {state: rio_grande_do_sul, ibge_code: 4312377, name: "Monte Alegre dos Campos"},
190
+ {state: rio_grande_do_sul, ibge_code: 4312617, name: "Muitos Capões"},
191
+ {state: rio_grande_do_sul, ibge_code: 4314464, name: "Pinhal da Serra"},
192
+ {state: rio_grande_do_sul, ibge_code: 4318200, name: "São Francisco de Paula"},
193
+ {state: rio_grande_do_sul, ibge_code: 4318622, name: "São José dos Ausentes"},
194
+ {state: rio_grande_do_sul, ibge_code: 4322509, name: "Vacaria"},
195
+ {state: rio_grande_do_sul, ibge_code: 4300802, name: "Antônio Prado"},
196
+ {state: rio_grande_do_sul, ibge_code: 4302105, name: "Bento Gonçalves"},
197
+ {state: rio_grande_do_sul, ibge_code: 4302253, name: "Boa Vista do Sul"},
198
+ {state: rio_grande_do_sul, ibge_code: 4305108, name: "Caxias do Sul"},
199
+ {state: rio_grande_do_sul, ibge_code: 4305934, name: "Coronel Pilar"},
200
+ {state: rio_grande_do_sul, ibge_code: 4305959, name: "Cotiporã"},
201
+ {state: rio_grande_do_sul, ibge_code: 4307864, name: "Fagundes Varela"},
202
+ {state: rio_grande_do_sul, ibge_code: 4307906, name: "Farroupilha"},
203
+ {state: rio_grande_do_sul, ibge_code: 4308201, name: "Flores da Cunha"},
204
+ {state: rio_grande_do_sul, ibge_code: 4312385, name: "Monte Belo do Sul"},
205
+ {state: rio_grande_do_sul, ibge_code: 4313086, name: "Nova Pádua"},
206
+ {state: rio_grande_do_sul, ibge_code: 4313359, name: "Nova Roma do Sul"},
207
+ {state: rio_grande_do_sul, ibge_code: 4317251, name: "Santa Tereza"},
208
+ {state: rio_grande_do_sul, ibge_code: 4319000, name: "São Marcos"},
209
+ {state: rio_grande_do_sul, ibge_code: 4322806, name: "Veranópolis"},
210
+ {state: rio_grande_do_sul, ibge_code: 4323309, name: "Vila Flores"},
211
+ {state: rio_grande_do_sul, ibge_code: 4304655, name: "Capão do Cipó"},
212
+ {state: rio_grande_do_sul, ibge_code: 4311130, name: "Jari"},
213
+ {state: rio_grande_do_sul, ibge_code: 4311205, name: "Júlio de Castilhos"},
214
+ {state: rio_grande_do_sul, ibge_code: 4314472, name: "Pinhal Grande"},
215
+ {state: rio_grande_do_sul, ibge_code: 4315321, name: "Quevedos"},
216
+ {state: rio_grande_do_sul, ibge_code: 4317400, name: "Santiago"},
217
+ {state: rio_grande_do_sul, ibge_code: 4322202, name: "Tupanciretã"},
218
+ {state: rio_grande_do_sul, ibge_code: 4322376, name: "Unistalda"},
219
+ {state: rio_grande_do_sul, ibge_code: 4302907, name: "Cacequi"},
220
+ {state: rio_grande_do_sul, ibge_code: 4306379, name: "Dilermando de Aguiar"},
221
+ {state: rio_grande_do_sul, ibge_code: 4310538, name: "Itaara"},
222
+ {state: rio_grande_do_sul, ibge_code: 4311106, name: "Jaguari"},
223
+ {state: rio_grande_do_sul, ibge_code: 4312104, name: "Mata"},
224
+ {state: rio_grande_do_sul, ibge_code: 4316907, name: "Santa Maria"},
225
+ {state: rio_grande_do_sul, ibge_code: 4319125, name: "São Martinho da Serra"},
226
+ {state: rio_grande_do_sul, ibge_code: 4319406, name: "São Pedro do Sul"},
227
+ {state: rio_grande_do_sul, ibge_code: 4319604, name: "São Sepé"},
228
+ {state: rio_grande_do_sul, ibge_code: 4319802, name: "São Vicente do Sul"},
229
+ {state: rio_grande_do_sul, ibge_code: 4321493, name: "Toropi"},
230
+ {state: rio_grande_do_sul, ibge_code: 4323457, name: "Vila Nova do Sul"},
231
+ {state: rio_grande_do_sul, ibge_code: 4306700, name: "Dona Francisca"},
232
+ {state: rio_grande_do_sul, ibge_code: 4308003, name: "Faxinal do Soturno"},
233
+ {state: rio_grande_do_sul, ibge_code: 4308409, name: "Formigueiro"},
234
+ {state: rio_grande_do_sul, ibge_code: 4310751, name: "Ivorá"},
235
+ {state: rio_grande_do_sul, ibge_code: 4313102, name: "Nova Palma"},
236
+ {state: rio_grande_do_sul, ibge_code: 4315503, name: "Restinga Seca"},
237
+ {state: rio_grande_do_sul, ibge_code: 4318432, name: "São João do Polêsine"},
238
+ {state: rio_grande_do_sul, ibge_code: 4320651, name: "Silveira Martins"},
239
+ {state: rio_grande_do_sul, ibge_code: 4301206, name: "Arroio do Tigre"},
240
+ {state: rio_grande_do_sul, ibge_code: 4304200, name: "Candelária"},
241
+ {state: rio_grande_do_sul, ibge_code: 4307815, name: "Estrela Velha"},
242
+ {state: rio_grande_do_sul, ibge_code: 4309571, name: "Herveiras"},
243
+ {state: rio_grande_do_sul, ibge_code: 4309753, name: "Ibarama"},
244
+ {state: rio_grande_do_sul, ibge_code: 4312153, name: "Mato Leitão"},
245
+ {state: rio_grande_do_sul, ibge_code: 4314068, name: "Passa Sete"},
246
+ {state: rio_grande_do_sul, ibge_code: 4316808, name: "Santa Cruz do Sul"},
247
+ {state: rio_grande_do_sul, ibge_code: 4320263, name: "Segredo"},
248
+ {state: rio_grande_do_sul, ibge_code: 4320677, name: "Sinimbu"},
249
+ {state: rio_grande_do_sul, ibge_code: 4322533, name: "Vale do Sol"},
250
+ {state: rio_grande_do_sul, ibge_code: 4322608, name: "Venâncio Aires"},
251
+ {state: rio_grande_do_sul, ibge_code: 4322707, name: "Vera Cruz"},
252
+ {state: rio_grande_do_sul, ibge_code: 4302402, name: "Bom Retiro do Sul"},
253
+ {state: rio_grande_do_sul, ibge_code: 4302451, name: "Boqueirão do Leão"},
254
+ {state: rio_grande_do_sul, ibge_code: 4304697, name: "Capitão"},
255
+ {state: rio_grande_do_sul, ibge_code: 4305835, name: "Coqueiro Baixo"},
256
+ {state: rio_grande_do_sul, ibge_code: 4306759, name: "Doutor Ricardo"},
257
+ {state: rio_grande_do_sul, ibge_code: 4307807, name: "Estrela"},
258
+ {state: rio_grande_do_sul, ibge_code: 4308078, name: "Fazenda Vilanova"},
259
+ {state: rio_grande_do_sul, ibge_code: 4308433, name: "Forquetinha"},
260
+ {state: rio_grande_do_sul, ibge_code: 4311403, name: "Lajeado"},
261
+ {state: rio_grande_do_sul, ibge_code: 4312054, name: "Marques de Souza"},
262
+ {state: rio_grande_do_sul, ibge_code: 4312609, name: "Muçum"},
263
+ {state: rio_grande_do_sul, ibge_code: 4314159, name: "Paverama"},
264
+ {state: rio_grande_do_sul, ibge_code: 4315131, name: "Pouso Novo"},
265
+ {state: rio_grande_do_sul, ibge_code: 4315156, name: "Progresso"},
266
+ {state: rio_grande_do_sul, ibge_code: 4315453, name: "Relvado"},
267
+ {state: rio_grande_do_sul, ibge_code: 4316758, name: "Santa Clara do Sul"},
268
+ {state: rio_grande_do_sul, ibge_code: 4320453, name: "Sério"},
269
+ {state: rio_grande_do_sul, ibge_code: 4320859, name: "Tabaí"},
270
+ {state: rio_grande_do_sul, ibge_code: 4321451, name: "Teutônia"},
271
+ {state: rio_grande_do_sul, ibge_code: 4322855, name: "Vespasiano Correa"},
272
+ {state: rio_grande_do_sul, ibge_code: 4303004, name: "Cachoeira do Sul"},
273
+ {state: rio_grande_do_sul, ibge_code: 4305132, name: "Cerro Branco"},
274
+ {state: rio_grande_do_sul, ibge_code: 4313391, name: "Novo Cabrais"},
275
+ {state: rio_grande_do_sul, ibge_code: 4314027, name: "Paraíso do Sul"},
276
+ {state: rio_grande_do_sul, ibge_code: 4314076, name: "Passo do Sobrado"},
277
+ {state: rio_grande_do_sul, ibge_code: 4315701, name: "Rio Pardo"},
278
+ {state: rio_grande_do_sul, ibge_code: 4300570, name: "Alto Feliz"},
279
+ {state: rio_grande_do_sul, ibge_code: 4302352, name: "Bom Princípio"},
280
+ {state: rio_grande_do_sul, ibge_code: 4302659, name: "Brochier"},
281
+ {state: rio_grande_do_sul, ibge_code: 4304689, name: "Capela de Santana"},
282
+ {state: rio_grande_do_sul, ibge_code: 4309555, name: "Harmonia"},
283
+ {state: rio_grande_do_sul, ibge_code: 4311643, name: "Linha Nova"},
284
+ {state: rio_grande_do_sul, ibge_code: 4312401, name: "Montenegro"},
285
+ {state: rio_grande_do_sul, ibge_code: 4314753, name: "Poço das Antas"},
286
+ {state: rio_grande_do_sul, ibge_code: 4316501, name: "Salvador do Sul"},
287
+ {state: rio_grande_do_sul, ibge_code: 4318481, name: "São José do Hortêncio"},
288
+ {state: rio_grande_do_sul, ibge_code: 4319505, name: "São Sebastião do Caí"},
289
+ {state: rio_grande_do_sul, ibge_code: 4319752, name: "São Vendelino"},
290
+ {state: rio_grande_do_sul, ibge_code: 4322251, name: "Tupandi"},
291
+ {state: rio_grande_do_sul, ibge_code: 4322541, name: "Vale Real"},
292
+ {state: rio_grande_do_sul, ibge_code: 4306403, name: "Dois Irmãos"},
293
+ {state: rio_grande_do_sul, ibge_code: 4309100, name: "Gramado"},
294
+ {state: rio_grande_do_sul, ibge_code: 4310801, name: "Ivoti"},
295
+ {state: rio_grande_do_sul, ibge_code: 4311627, name: "Lindolfo Collor"},
296
+ {state: rio_grande_do_sul, ibge_code: 4312476, name: "Morro Reuter"},
297
+ {state: rio_grande_do_sul, ibge_code: 4315149, name: "Presidente Lucena"},
298
+ {state: rio_grande_do_sul, ibge_code: 4315750, name: "Riozinho"},
299
+ {state: rio_grande_do_sul, ibge_code: 4316006, name: "Rolante"},
300
+ {state: rio_grande_do_sul, ibge_code: 4321204, name: "Taquara"},
301
+ {state: rio_grande_do_sul, ibge_code: 4321709, name: "Três Coroas"},
302
+ {state: rio_grande_do_sul, ibge_code: 4301107, name: "Arroio dos Ratos"},
303
+ {state: rio_grande_do_sul, ibge_code: 4301750, name: "Barão do Triunfo"},
304
+ {state: rio_grande_do_sul, ibge_code: 4302709, name: "Butiá"},
305
+ {state: rio_grande_do_sul, ibge_code: 4308805, name: "General Câmara"},
306
+ {state: rio_grande_do_sul, ibge_code: 4312252, name: "Minas do Leão"},
307
+ {state: rio_grande_do_sul, ibge_code: 4318408, name: "São Jerônimo"},
308
+ {state: rio_grande_do_sul, ibge_code: 4322004, name: "Triunfo"},
309
+ {state: rio_grande_do_sul, ibge_code: 4300604, name: "Alvorada"},
310
+ {state: rio_grande_do_sul, ibge_code: 4300877, name: "Araricá"},
311
+ {state: rio_grande_do_sul, ibge_code: 4303103, name: "Cachoeirinha"},
312
+ {state: rio_grande_do_sul, ibge_code: 4304606, name: "Canoas"},
313
+ {state: rio_grande_do_sul, ibge_code: 4307609, name: "Estância Velha"},
314
+ {state: rio_grande_do_sul, ibge_code: 4309050, name: "Glorinha"},
315
+ {state: rio_grande_do_sul, ibge_code: 4309209, name: "Gravataí"},
316
+ {state: rio_grande_do_sul, ibge_code: 4309308, name: "Guaíba"},
317
+ {state: rio_grande_do_sul, ibge_code: 4313060, name: "Nova Hartz"},
318
+ {state: rio_grande_do_sul, ibge_code: 4313375, name: "Nova Santa Rita"},
319
+ {state: rio_grande_do_sul, ibge_code: 4313409, name: "Novo Hamburgo"},
320
+ {state: rio_grande_do_sul, ibge_code: 4314050, name: "Parobé"},
321
+ {state: rio_grande_do_sul, ibge_code: 4318705, name: "São Leopoldo"},
322
+ {state: rio_grande_do_sul, ibge_code: 4319901, name: "Sapiranga"},
323
+ {state: rio_grande_do_sul, ibge_code: 4320008, name: "Sapucaia do Sul"},
324
+ {state: rio_grande_do_sul, ibge_code: 4301057, name: "Arroio do Sal"},
325
+ {state: rio_grande_do_sul, ibge_code: 4301636, name: "Balneário Pinhal"},
326
+ {state: rio_grande_do_sul, ibge_code: 4304630, name: "Capão da Canoa"},
327
+ {state: rio_grande_do_sul, ibge_code: 4305454, name: "Cidreira"},
328
+ {state: rio_grande_do_sul, ibge_code: 4306551, name: "Dom Pedro de Alcântara"},
329
+ {state: rio_grande_do_sul, ibge_code: 4310330, name: "Imbé"},
330
+ {state: rio_grande_do_sul, ibge_code: 4311734, name: "Mampituba"},
331
+ {state: rio_grande_do_sul, ibge_code: 4311775, name: "Maquiné"},
332
+ {state: rio_grande_do_sul, ibge_code: 4312500, name: "Mostardas"},
333
+ {state: rio_grande_do_sul, ibge_code: 4313508, name: "Osório"},
334
+ {state: rio_grande_do_sul, ibge_code: 4313656, name: "Palmares do Sul"},
335
+ {state: rio_grande_do_sul, ibge_code: 4317608, name: "Santo Antônio da Patrulha"},
336
+ {state: rio_grande_do_sul, ibge_code: 4321352, name: "Tavares"},
337
+ {state: rio_grande_do_sul, ibge_code: 4321501, name: "Torres"},
338
+ {state: rio_grande_do_sul, ibge_code: 4321667, name: "Três Cachoeiras"},
339
+ {state: rio_grande_do_sul, ibge_code: 4321832, name: "Três Forquilhas"},
340
+ {state: rio_grande_do_sul, ibge_code: 4300851, name: "Arambaré"},
341
+ {state: rio_grande_do_sul, ibge_code: 4301909, name: "Barra do Ribeiro"},
342
+ {state: rio_grande_do_sul, ibge_code: 4303509, name: "Camaquã"},
343
+ {state: rio_grande_do_sul, ibge_code: 4305447, name: "Chuvisca"},
344
+ {state: rio_grande_do_sul, ibge_code: 4306502, name: "Dom Feliciano"},
345
+ {state: rio_grande_do_sul, ibge_code: 4320354, name: "Sentinela do Sul"},
346
+ {state: rio_grande_do_sul, ibge_code: 4321105, name: "Tapes"},
347
+ {state: rio_grande_do_sul, ibge_code: 4300406, name: "Alegrete"},
348
+ {state: rio_grande_do_sul, ibge_code: 4308656, name: "Garruchos"},
349
+ {state: rio_grande_do_sul, ibge_code: 4310603, name: "Itaqui"},
350
+ {state: rio_grande_do_sul, ibge_code: 4311759, name: "Manoel Viana"},
351
+ {state: rio_grande_do_sul, ibge_code: 4318002, name: "São Borja"},
352
+ {state: rio_grande_do_sul, ibge_code: 4318101, name: "São Francisco de Assis"},
353
+ {state: rio_grande_do_sul, ibge_code: 4322400, name: "Uruguaiana"},
354
+ {state: rio_grande_do_sul, ibge_code: 4316972, name: "Santa Margarida do Sul"},
355
+ {state: rio_grande_do_sul, ibge_code: 4317103, name: "Santana do Livramento"},
356
+ {state: rio_grande_do_sul, ibge_code: 4300034, name: "Aceguá"},
357
+ {state: rio_grande_do_sul, ibge_code: 4306601, name: "Dom Pedrito"},
358
+ {state: rio_grande_do_sul, ibge_code: 4309654, name: "Hulha Negra"},
359
+ {state: rio_grande_do_sul, ibge_code: 4300638, name: "Amaral Ferrador"},
360
+ {state: rio_grande_do_sul, ibge_code: 4302808, name: "Caçapava do Sul"},
361
+ {state: rio_grande_do_sul, ibge_code: 4306908, name: "Encruzilhada do Sul"},
362
+ {state: rio_grande_do_sul, ibge_code: 4314506, name: "Pinheiro Machado"},
363
+ {state: rio_grande_do_sul, ibge_code: 4314605, name: "Piratini"},
364
+ {state: rio_grande_do_sul, ibge_code: 4317004, name: "Santana da Boa Vista"},
365
+ {state: rio_grande_do_sul, ibge_code: 4301073, name: "Arroio do Padre"},
366
+ {state: rio_grande_do_sul, ibge_code: 4304663, name: "Capão do Leão"},
367
+ {state: rio_grande_do_sul, ibge_code: 4305124, name: "Cerrito"},
368
+ {state: rio_grande_do_sul, ibge_code: 4306056, name: "Cristal"},
369
+ {state: rio_grande_do_sul, ibge_code: 4312450, name: "Morro Redondo"},
370
+ {state: rio_grande_do_sul, ibge_code: 4314209, name: "Pedro Osório"},
371
+ {state: rio_grande_do_sul, ibge_code: 4314407, name: "Pelotas"},
372
+ {state: rio_grande_do_sul, ibge_code: 4318804, name: "São Lourenço do Sul"},
373
+ {state: rio_grande_do_sul, ibge_code: 4322327, name: "Turuçu"},
374
+ {state: rio_grande_do_sul, ibge_code: 4301305, name: "Arroio Grande"},
375
+ {state: rio_grande_do_sul, ibge_code: 4311007, name: "Jaguarão"},
376
+ {state: rio_grande_do_sul, ibge_code: 4305439, name: "Chuí"},
377
+ {state: rio_grande_do_sul, ibge_code: 4315602, name: "Rio Grande"},
378
+ {state: rio_grande_do_sul, ibge_code: 4317301, name: "Santa Vitória do Palmar"},
379
+ {state: rio_grande_do_sul, ibge_code: 4318507, name: "São José do Norte"},
380
+ {state: rio_grande_do_sul, ibge_code: 4307005, name: "Erechim"},
381
+ {state: rio_grande_do_sul, ibge_code: 4308052, name: "Faxinalzinho"},
382
+ {state: rio_grande_do_sul, ibge_code: 4310702, name: "Itatiba do Sul"},
383
+ {state: rio_grande_do_sul, ibge_code: 4314787, name: "Ponte Preta"},
384
+ {state: rio_grande_do_sul, ibge_code: 4322905, name: "Viadutos"},
385
+ {state: rio_grande_do_sul, ibge_code: 4311700, name: "Machadinho"},
386
+ {state: rio_grande_do_sul, ibge_code: 4317954, name: "Santo Expedito do Sul"},
387
+ {state: rio_grande_do_sul, ibge_code: 4309506, name: "Guarani das Missões"},
388
+ {state: rio_grande_do_sul, ibge_code: 4319307, name: "São Paulo das Missões"},
389
+ {state: rio_grande_do_sul, ibge_code: 4307831, name: "Eugênio de Castro"},
390
+ {state: rio_grande_do_sul, ibge_code: 4317707, name: "Santo Antônio das Missões"},
391
+ {state: rio_grande_do_sul, ibge_code: 4300208, name: "Ajuricaba"},
392
+ {state: rio_grande_do_sul, ibge_code: 4305405, name: "Chiapetta"},
393
+ {state: rio_grande_do_sul, ibge_code: 4310207, name: "Ijuí"},
394
+ {state: rio_grande_do_sul, ibge_code: 4314308, name: "Pejuçara"},
395
+ {state: rio_grande_do_sul, ibge_code: 4301958, name: "Barra Funda"},
396
+ {state: rio_grande_do_sul, ibge_code: 4305306, name: "Chapada"},
397
+ {state: rio_grande_do_sul, ibge_code: 4312955, name: "Nova Boa Vista"},
398
+ {state: rio_grande_do_sul, ibge_code: 4317756, name: "Santo Antônio do Planalto"},
399
+ {state: rio_grande_do_sul, ibge_code: 4304952, name: "Caseiros"},
400
+ {state: rio_grande_do_sul, ibge_code: 4306304, name: "David Canabarro"},
401
+ {state: rio_grande_do_sul, ibge_code: 4312138, name: "Mato Castelhano"},
402
+ {state: rio_grande_do_sul, ibge_code: 4316105, name: "Ronda Alta"},
403
+ {state: rio_grande_do_sul, ibge_code: 4320909, name: "Tapejara"},
404
+ {state: rio_grande_do_sul, ibge_code: 4300554, name: "Alto Alegre"},
405
+ {state: rio_grande_do_sul, ibge_code: 4306106, name: "Cruz Alta"},
406
+ {state: rio_grande_do_sul, ibge_code: 4311155, name: "Jóia"},
407
+ {state: rio_grande_do_sul, ibge_code: 4316451, name: "Salto do Jacuí"},
408
+ {state: rio_grande_do_sul, ibge_code: 4320305, name: "Selbach"},
409
+ {state: rio_grande_do_sul, ibge_code: 4302006, name: "Barros Cassal"},
410
+ {state: rio_grande_do_sul, ibge_code: 4318465, name: "São José do Herval"},
411
+ {state: rio_grande_do_sul, ibge_code: 4306452, name: "Dois Lajeados"},
412
+ {state: rio_grande_do_sul, ibge_code: 4312351, name: "Montauri"},
413
+ {state: rio_grande_do_sul, ibge_code: 4313300, name: "Nova Prata"},
414
+ {state: rio_grande_do_sul, ibge_code: 4318440, name: "São Jorge"},
415
+ {state: rio_grande_do_sul, ibge_code: 4323606, name: "Vista Alegre do Prata"},
416
+ {state: rio_grande_do_sul, ibge_code: 4310439, name: "Ipê"},
417
+ {state: rio_grande_do_sul, ibge_code: 4311239, name: "Lagoa Bonita do Sul"},
418
+ {state: rio_grande_do_sul, ibge_code: 4320701, name: "Sobradinho"},
419
+ {state: rio_grande_do_sul, ibge_code: 4301008, name: "Arroio do Meio"},
420
+ {state: rio_grande_do_sul, ibge_code: 4305587, name: "Colinas"},
421
+ {state: rio_grande_do_sul, ibge_code: 4306809, name: "Encantado"},
422
+ {state: rio_grande_do_sul, ibge_code: 4310363, name: "Imigrante"},
423
+ {state: rio_grande_do_sul, ibge_code: 4313003, name: "Nova Bréscia"},
424
+ {state: rio_grande_do_sul, ibge_code: 4315800, name: "Roca Sales"},
425
+ {state: rio_grande_do_sul, ibge_code: 4321303, name: "Taquari"},
426
+ {state: rio_grande_do_sul, ibge_code: 4323770, name: "Westfalia"},
427
+ {state: rio_grande_do_sul, ibge_code: 4313953, name: "Pantano Grande"},
428
+ {state: rio_grande_do_sul, ibge_code: 4301651, name: "Barão"},
429
+ {state: rio_grande_do_sul, ibge_code: 4308102, name: "Feliz"},
430
+ {state: rio_grande_do_sul, ibge_code: 4302378, name: "Bom Progresso"},
431
+ {state: rio_grande_do_sul, ibge_code: 4321907, name: "Três Passos"},
432
+ {state: rio_grande_do_sul, ibge_code: 4312708, name: "Nonoai"},
433
+ {state: rio_grande_do_sul, ibge_code: 4321956, name: "Trindade do Sul"},
434
+ {state: rio_grande_do_sul, ibge_code: 4308706, name: "Gaurama"},
435
+ {state: rio_grande_do_sul, ibge_code: 4303202, name: "Cacique Doble"},
436
+ {state: rio_grande_do_sul, ibge_code: 4320578, name: "Sete de Setembro"},
437
+ {state: rio_grande_do_sul, ibge_code: 4302584, name: "Bozano"},
438
+ {state: rio_grande_do_sul, ibge_code: 4305157, name: "Cerro Grande"},
439
+ {state: rio_grande_do_sul, ibge_code: 4305504, name: "Ciríaco"},
440
+ {state: rio_grande_do_sul, ibge_code: 4318051, name: "São Domingos do Sul"},
441
+ {state: rio_grande_do_sul, ibge_code: 4321469, name: "Tio Hugo"},
442
+ {state: rio_grande_do_sul, ibge_code: 4310306, name: "Ilópolis"},
443
+ {state: rio_grande_do_sul, ibge_code: 4303673, name: "Campestre da Serra"},
444
+ {state: rio_grande_do_sul, ibge_code: 4304804, name: "Carlos Barbosa"},
445
+ {state: rio_grande_do_sul, ibge_code: 4310553, name: "Itacurubi"},
446
+ {state: rio_grande_do_sul, ibge_code: 4313037, name: "Nova Esperança do Sul"},
447
+ {state: rio_grande_do_sul, ibge_code: 4309159, name: "Gramado Xavier"},
448
+ {state: rio_grande_do_sul, ibge_code: 4306205, name: "Cruzeiro do Sul"},
449
+ {state: rio_grande_do_sul, ibge_code: 4321626, name: "Travesseiro"},
450
+ {state: rio_grande_do_sul, ibge_code: 4314035, name: "Pareci Novo"},
451
+ {state: rio_grande_do_sul, ibge_code: 4313201, name: "Nova Petrópolis"},
452
+ {state: rio_grande_do_sul, ibge_code: 4306767, name: "Eldorado do Sul"},
453
+ {state: rio_grande_do_sul, ibge_code: 4304713, name: "Caraá"},
454
+ {state: rio_grande_do_sul, ibge_code: 4321600, name: "Tramandaí"},
455
+ {state: rio_grande_do_sul, ibge_code: 4311718, name: "Maçambara"},
456
+ {state: rio_grande_do_sul, ibge_code: 4304358, name: "Candiota"},
457
+ {state: rio_grande_do_sul, ibge_code: 4307104, name: "Herval"},
458
+ {state: rio_grande_do_sul, ibge_code: 4318499, name: "São José do Inhacorá"},
459
+ {state: rio_grande_do_sul, ibge_code: 4308508, name: "Frederico Westphalen"},
460
+ {state: rio_grande_do_sul, ibge_code: 4320602, name: "Severiano de Almeida"},
461
+ {state: rio_grande_do_sul, ibge_code: 4317806, name: "Santo Augusto"},
462
+ {state: rio_grande_do_sul, ibge_code: 4323358, name: "Vila Lângaro"},
463
+ {state: rio_grande_do_sul, ibge_code: 4312906, name: "Nova Bassano"},
464
+ {state: rio_grande_do_sul, ibge_code: 4308607, name: "Garibaldi"},
465
+ {state: rio_grande_do_sul, ibge_code: 4300109, name: "Agudo"},
466
+ {state: rio_grande_do_sul, ibge_code: 4304614, name: "Canudos do Vale"},
467
+ {state: rio_grande_do_sul, ibge_code: 4319356, name: "São Pedro da Serra"},
468
+ {state: rio_grande_do_sul, ibge_code: 4320552, name: "Sertão Santana"},
469
+ {state: rio_grande_do_sul, ibge_code: 4318309, name: "São Gabriel"},
470
+ {state: rio_grande_do_sul, ibge_code: 4311791, name: "Maratá"},
471
+ {state: rio_grande_do_sul, ibge_code: 4314803, name: "Portão"},
472
+ {state: rio_grande_do_sul, ibge_code: 4318614, name: "São José do Sul"},
473
+ {state: rio_grande_do_sul, ibge_code: 4304408, name: "Canela"},
474
+ {state: rio_grande_do_sul, ibge_code: 4310108, name: "Igrejinha"},
475
+ {state: rio_grande_do_sul, ibge_code: 4314423, name: "Picada Café"},
476
+ {state: rio_grande_do_sul, ibge_code: 4316956, name: "Santa Maria do Herval"},
477
+ {state: rio_grande_do_sul, ibge_code: 4305355, name: "Charqueadas"},
478
+ {state: rio_grande_do_sul, ibge_code: 4322525, name: "Vale Verde"},
479
+ {state: rio_grande_do_sul, ibge_code: 4303905, name: "Campo Bom"},
480
+ {state: rio_grande_do_sul, ibge_code: 4307708, name: "Esteio"},
481
+ {state: rio_grande_do_sul, ibge_code: 4311981, name: "Mariana Pimentel"},
482
+ {state: rio_grande_do_sul, ibge_code: 4314902, name: "Porto Alegre"},
483
+ {state: rio_grande_do_sul, ibge_code: 4323002, name: "Viamão"},
484
+ {state: rio_grande_do_sul, ibge_code: 4304671, name: "Capivari do Sul"},
485
+ {state: rio_grande_do_sul, ibge_code: 4310652, name: "Itati"},
486
+ {state: rio_grande_do_sul, ibge_code: 4312443, name: "Morrinhos do Sul"},
487
+ {state: rio_grande_do_sul, ibge_code: 4321436, name: "Terra de Areia"},
488
+ {state: rio_grande_do_sul, ibge_code: 4323804, name: "Xangri-lá"},
489
+ {state: rio_grande_do_sul, ibge_code: 4305173, name: "Cerro Grande do Sul"},
490
+ {state: rio_grande_do_sul, ibge_code: 4301875, name: "Barra do Quaraí"},
491
+ {state: rio_grande_do_sul, ibge_code: 4315305, name: "Quaraí"},
492
+ {state: rio_grande_do_sul, ibge_code: 4316402, name: "Rosário do Sul"},
493
+ {state: rio_grande_do_sul, ibge_code: 4301602, name: "Bagé"},
494
+ {state: rio_grande_do_sul, ibge_code: 4311502, name: "Lavras do Sul"},
495
+ {state: rio_grande_do_sul, ibge_code: 4314175, name: "Pedras Altas"},
496
+ {state: rio_grande_do_sul, ibge_code: 4304507, name: "Canguçu"},
497
+ {state: rio_grande_do_sul, ibge_code: 4313425, name: "Novo Machado"},
498
+ {state: rio_grande_do_sul, ibge_code: 4317202, name: "Santa Rosa"},
499
+ {state: rio_grande_do_sul, ibge_code: 4322301, name: "Tuparendi"}
500
+ ])
@@ -0,0 +1,56 @@
1
+ rondonia = Spree::State.find_by! abbr: 'RO'
2
+
3
+ Spree::City.create!([
4
+ {state: rondonia, ibge_code: 1100031, name: "Cabixi"},
5
+ {state: rondonia, ibge_code: 1101807, name: "Vale do Paraíso"},
6
+ {state: rondonia, ibge_code: 1100338, name: "Nova Mamoré"},
7
+ {state: rondonia, ibge_code: 1101104, name: "Itapuã do Oeste"},
8
+ {state: rondonia, ibge_code: 1100130, name: "Machadinho D'Oeste"},
9
+ {state: rondonia, ibge_code: 1100114, name: "Jaru"},
10
+ {state: rondonia, ibge_code: 1100254, name: "Presidente Médici"},
11
+ {state: rondonia, ibge_code: 1101609, name: "Theobroma"},
12
+ {state: rondonia, ibge_code: 1100924, name: "Chupinguaia"},
13
+ {state: rondonia, ibge_code: 1100106, name: "Guajará-Mirim"},
14
+ {state: rondonia, ibge_code: 1100049, name: "Cacoal"},
15
+ {state: rondonia, ibge_code: 1101476, name: "Primavera de Rondônia"},
16
+ {state: rondonia, ibge_code: 1100403, name: "Alto Paraíso"},
17
+ {state: rondonia, ibge_code: 1100148, name: "Nova Brasilândia D'Oeste"},
18
+ {state: rondonia, ibge_code: 1100320, name: "São Miguel do Guaporé"},
19
+ {state: rondonia, ibge_code: 1100346, name: "Alvorada D'Oeste"},
20
+ {state: rondonia, ibge_code: 1101500, name: "Seringueiras"},
21
+ {state: rondonia, ibge_code: 1100015, name: "Alta Floresta D'Oeste"},
22
+ {state: rondonia, ibge_code: 1100098, name: "Espigão D'Oeste"},
23
+ {state: rondonia, ibge_code: 1100288, name: "Rolim de Moura"},
24
+ {state: rondonia, ibge_code: 1100296, name: "Santa Luzia D'Oeste"},
25
+ {state: rondonia, ibge_code: 1100379, name: "Alto Alegre dos Parecis"},
26
+ {state: rondonia, ibge_code: 1100502, name: "Novo Horizonte do Oeste"},
27
+ {state: rondonia, ibge_code: 1100908, name: "Castanheiras"},
28
+ {state: rondonia, ibge_code: 1101203, name: "Ministro Andreazza"},
29
+ {state: rondonia, ibge_code: 1100189, name: "Pimenta Bueno"},
30
+ {state: rondonia, ibge_code: 1100304, name: "Vilhena"},
31
+ {state: rondonia, ibge_code: 1101450, name: "Parecis"},
32
+ {state: rondonia, ibge_code: 1101484, name: "São Felipe D'Oeste"},
33
+ {state: rondonia, ibge_code: 1100056, name: "Cerejeiras"},
34
+ {state: rondonia, ibge_code: 1100064, name: "Colorado do Oeste"},
35
+ {state: rondonia, ibge_code: 1100072, name: "Corumbiara"},
36
+ {state: rondonia, ibge_code: 1100205, name: "Porto Velho"},
37
+ {state: rondonia, ibge_code: 1100452, name: "Buritis"},
38
+ {state: rondonia, ibge_code: 1100700, name: "Campo Novo de Rondônia"},
39
+ {state: rondonia, ibge_code: 1100809, name: "Candeias do Jamari"},
40
+ {state: rondonia, ibge_code: 1100940, name: "Cujubim"},
41
+ {state: rondonia, ibge_code: 1100080, name: "Costa Marques"},
42
+ {state: rondonia, ibge_code: 1101492, name: "São Francisco do Guaporé"},
43
+ {state: rondonia, ibge_code: 1100023, name: "Ariquemes"},
44
+ {state: rondonia, ibge_code: 1100262, name: "Rio Crespo"},
45
+ {state: rondonia, ibge_code: 1100601, name: "Cacaulândia"},
46
+ {state: rondonia, ibge_code: 1101401, name: "Monte Negro"},
47
+ {state: rondonia, ibge_code: 1101757, name: "Vale do Anari"},
48
+ {state: rondonia, ibge_code: 1100122, name: "Ji-Paraná"},
49
+ {state: rondonia, ibge_code: 1100155, name: "Ouro Preto do Oeste"},
50
+ {state: rondonia, ibge_code: 1101005, name: "Governador Jorge Teixeira"},
51
+ {state: rondonia, ibge_code: 1101302, name: "Mirante da Serra"},
52
+ {state: rondonia, ibge_code: 1101435, name: "Nova União"},
53
+ {state: rondonia, ibge_code: 1101559, name: "Teixeirópolis"},
54
+ {state: rondonia, ibge_code: 1101708, name: "Urupá"},
55
+ {state: rondonia, ibge_code: 1101468, name: "Pimenteiras do Oeste"}
56
+ ])
@@ -0,0 +1,19 @@
1
+ roraima = Spree::State.find_by! abbr: 'RR'
2
+
3
+ Spree::City.create!([
4
+ {state: roraima, ibge_code: 1400159, name: "Bonfim"},
5
+ {state: roraima, ibge_code: 1400605, name: "São Luiz"},
6
+ {state: roraima, ibge_code: 1400472, name: "Rorainópolis"},
7
+ {state: roraima, ibge_code: 1400100, name: "Boa Vista"},
8
+ {state: roraima, ibge_code: 1400050, name: "Alto Alegre"},
9
+ {state: roraima, ibge_code: 1400027, name: "Amajari"},
10
+ {state: roraima, ibge_code: 1400456, name: "Pacaraima"},
11
+ {state: roraima, ibge_code: 1400175, name: "Cantá"},
12
+ {state: roraima, ibge_code: 1400407, name: "Normandia"},
13
+ {state: roraima, ibge_code: 1400704, name: "Uiramutã"},
14
+ {state: roraima, ibge_code: 1400282, name: "Iracema"},
15
+ {state: roraima, ibge_code: 1400308, name: "Mucajaí"},
16
+ {state: roraima, ibge_code: 1400233, name: "Caroebe"},
17
+ {state: roraima, ibge_code: 1400506, name: "São João da Baliza"},
18
+ {state: roraima, ibge_code: 1400209, name: "Caracaraí"}
19
+ ])