Skip to content

Instantly share code, notes, and snippets.

@michalskop
Last active August 29, 2015 14:06
Show Gist options
  • Save michalskop/ecbccbcae05332a582a5 to your computer and use it in GitHub Desktop.
Save michalskop/ecbccbcae05332a582a5 to your computer and use it in GitHub Desktop.
BA: Elections 2010
{"candidates": ["BOSS - BOSANSKA STRANKA - MIRNES AJANOVI\u0106", "BPS - SEFER HALILOVI\u0106", "DEMOKRATSKA NARODNA ZAJEDNICA - DNZ BIH", "DEMOKRATSKA STRANKA INVALIDA BIH", "HDZ BIH - HRVATSKA DEMOKRATSKA ZAJEDNICA BOSNE I HERCEGOVINE", "HRVATSKA KOALICIJA HDZ 1990 - HSP BIH", "HSS - NHI", "KOALICIJA PREOKRET: GDS BIH I NEP BIH", "LIBERALNO DEMOKRATSKA STRANKA - EVROPSKA EKOLO\u0160KA STRANKA E-5", "NARODNA STRANKA RADOM ZA BOLJITAK", "NA\u0160A STRANKA - NOVA SOCIJALISTI\u010cKA PARTIJA ZDRAVKO KRSMANOVI\u0106", "SAVEZ ZA BOLJU BUDU\u0106NOST BIH - SBB BIH FAHRUDIN RADON\u010cI\u0106", "SDA - STRANKA DEMOKRATSKE AKCIJE", "SDP - SOCIJALDEMOKRATSKA PARTIJA BIH", "SDU BIH - SOCIJALDEMOKRATSKA UNIJA BOSNE I HERCEGOVINE", "STRANKA DEMOKRATSKE AKTIVNOSTI A-sda", "STRANKA KOKUZA - SKOK", "STRANKA PENZIONERA - UMIROVLJENIKA BOSNE I HERCEGOVINE", "STRANKA ZA BOSNU I HERCEGOVINU", "STRANKA ZA NAROD BOSNE I HERCEGOVINE", "\u0414\u0415\u041c\u041e\u041a\u0420\u0410\u0422\u0421\u041a\u0410 \u041f\u0410\u0420\u0422\u0418\u0408\u0410 - \u0414\u0420\u0410\u0413\u0410\u041d \u0427\u0410\u0412\u0418\u040b", "\u0414\u041d\u0421 - \u0414\u0415\u041c\u041e\u041a\u0420\u0410\u0422\u0421\u041a\u0418 \u041d\u0410\u0420\u041e\u0414\u041d\u0418 \u0421\u0410\u0412\u0415\u0417", "\u041d\u0410\u0420\u041e\u0414\u041d\u0410 \u0414\u0415\u041c\u041e\u041a\u0420\u0410\u0422\u0421\u041a\u0410 \u0421\u0422\u0420\u0410\u041d\u041a\u0410", "\u041f\u0414\u041f - \u041f\u0410\u0420\u0422\u0418\u0408\u0410 \u0414\u0415\u041c\u041e\u041a\u0420\u0410\u0422\u0421\u041a\u041e\u0413 \u041f\u0420\u041e\u0413\u0420\u0415\u0421\u0410", "\u0421\u0410\u0412\u0415\u0417 \u0417\u0410 \u0414\u0415\u041c\u041e\u041a\u0420\u0410\u0422\u0421\u041a\u0423 \u0421\u0420\u041f\u0421\u041a\u0423", "\u0421\u0410\u0412\u0415\u0417 \u041d\u0415\u0417\u0410\u0412\u0418\u0421\u041d\u0418\u0425 \u0421\u041e\u0426\u0418\u0408\u0410\u041b\u0414\u0415\u041c\u041e\u041a\u0420\u0410\u0422\u0410 - \u0421\u041d\u0421\u0414 - \u041c\u0418\u041b\u041e\u0420\u0410\u0414 \u0414\u041e\u0414\u0418\u041a", "\u0421\u0414\u0421 - \u0421\u0420\u041f\u0421\u041a\u0410 \u0414\u0415\u041c\u041e\u041a\u0420\u0410\u0422\u0421\u041a\u0410 \u0421\u0422\u0420\u0410\u041d\u041a\u0410", "\u0421\u041e\u0426\u0418\u0408\u0410\u041b\u0418\u0421\u0422\u0418\u0427\u041a\u0410 \u041f\u0410\u0420\u0422\u0418\u0408\u0410", "\u0421\u0420\u041f\u0421\u041a\u0410 \u041d\u0410\u041f\u0420\u0415\u0414\u041d\u0410 \u0421\u0422\u0420\u0410\u041d\u041a\u0410", "\u0421\u0420\u041f\u0421\u041a\u0410 \u0420\u0410\u0414\u0418\u041a\u0410\u041b\u041d\u0410 \u0421\u0422\u0420\u0410\u041d\u041a\u0410 \u0414\u0420 \u0412\u041e\u0408\u0418\u0421\u041b\u0410\u0412 \u0428\u0415\u0428\u0415\u0409", "\u0421\u0420\u041f\u0421\u041a\u0410 \u0420\u0410\u0414\u0418\u041a\u0410\u041b\u041d\u0410 \u0421\u0422\u0420\u0410\u041d\u041a\u0410 \u0420\u0415\u041f\u0423\u0411\u041b\u0418\u041a\u0415 \u0421\u0420\u041f\u0421\u041a\u0415", "\u0422\u041e\u041c\u0418\u040b \u041c\u0418\u041b\u041e\u0428 - \u041d\u0415\u0417\u0410\u0412\u0418\u0421\u041d\u0418 \u041a\u0410\u041d\u0414\u0418\u0414\u0410\u0422"], "votes": [{"place": "Sarajevo", "population": 142835, "id": "133-x", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 43.896586, "lng": 18.4185617, "votes": [3802, 7015, 193, 319, 1574, 631, 258, 488, 621, 4868, 5294, 26561, 18595, 44076, 4551, 885, 4722, 2614, 13836, 230, 0, 0, 0, 0, 0, 1702, 0, 0, 0, 0, 0, 0]}, {"place": "Banja Luka", "population": 86516, "id": "34", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.7721811, "lng": 17.191, "votes": [0, 0, 106, 0, 327, 301, 123, 96, 0, 0, 1783, 552, 298, 837, 0, 0, 0, 0, 835, 0, 4166, 5012, 1768, 7804, 665, 47410, 8102, 2273, 1351, 1456, 1251, 0]}, {"place": "Zenica", "population": 52392, "id": "93", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 44.2034392, "lng": 17.9077432, "votes": [883, 1310, 93, 239, 1194, 524, 60, 85, 265, 3220, 727, 9901, 11810, 15061, 111, 770, 0, 1362, 3108, 1478, 0, 0, 0, 0, 0, 191, 0, 0, 0, 0, 0, 0]}, {"place": "Tuzla", "population": 52222, "id": "50", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 44.5374611, "lng": 18.6734688, "votes": [3493, 821, 0, 335, 2730, 404, 0, 198, 110, 2527, 896, 8488, 4294, 23321, 89, 155, 1597, 447, 2118, 0, 0, 0, 0, 0, 0, 199, 0, 0, 0, 0, 0, 0]}, {"place": "Bijeljina", "population": 48618, "id": "29", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.75, "lng": 19.216667, "votes": [23, 41, 20, 0, 30, 0, 6, 12, 0, 0, 228, 503, 936, 741, 23, 25, 0, 0, 206, 0, 729, 1357, 91, 2198, 425, 19411, 15442, 2575, 1364, 1913, 319, 0]}, {"place": "Doboj", "population": 37725, "id": "38", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.7348727, "lng": 18.0842548, "votes": [21, 58, 13, 0, 263, 0, 224, 20, 0, 0, 451, 605, 1025, 2571, 33, 58, 0, 0, 655, 0, 894, 2147, 256, 1119, 698, 14644, 10430, 519, 126, 663, 232, 0]}, {"place": "Prijedor", "population": 35974, "id": "9", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.9778368, "lng": 16.7060617, "votes": [0, 0, 31, 0, 67, 52, 7, 5, 0, 0, 484, 529, 1106, 2442, 0, 0, 0, 0, 1416, 0, 767, 7451, 549, 1327, 100, 12192, 4972, 320, 640, 785, 732, 0]}, {"place": "Mostar", "population": 33415, "id": "151-7", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 43.333333, "lng": 17.8, "votes": [9, 20, 0, 91, 6318, 4338, 0, 8, 1, 1242, 346, 90, 379, 243, 8, 11, 62, 2, 75, 0, 493, 423, 61, 2051, 192, 8356, 7097, 220, 238, 791, 235, 15]}, {"place": "Br\u010dko", "population": 31893, "id": "200", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 44.8726563, "lng": 18.8106276, "votes": [105, 175, 9, 14, 2854, 668, 75, 37, 4, 32, 148, 1369, 2486, 7675, 41, 260, 56, 62, 1086, 0, 352, 305, 30, 701, 44, 5677, 5917, 930, 281, 342, 158, 0]}, {"place": "Zvornik", "population": 28928, "id": "83", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.3868886, "lng": 19.103209, "votes": [12, 157, 0, 9, 0, 0, 0, 9, 1, 0, 151, 317, 1531, 1007, 6, 22, 20, 0, 1620, 0, 206, 2911, 156, 752, 553, 12061, 5207, 634, 1123, 312, 148, 3]}, {"place": "Ilid\u017ea", "population": 27886, "id": "131", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 43.8314063, "lng": 18.3002114, "votes": [784, 1844, 26, 52, 364, 128, 78, 59, 98, 1378, 452, 5496, 4154, 6351, 887, 145, 623, 370, 4290, 56, 0, 0, 0, 0, 0, 251, 0, 0, 0, 0, 0, 0]}, {"place": "\u017divinice", "population": 25899, "id": "79", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 44.45, "lng": 18.65, "votes": [1684, 723, 0, 218, 781, 36, 0, 37, 31, 1036, 109, 2341, 4720, 8767, 142, 1561, 511, 437, 2753, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0]}, {"place": "Biha\u0107", "population": 25528, "id": "3", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 44.816667, "lng": 15.866667, "votes": [121, 336, 164, 52, 538, 315, 0, 0, 0, 1448, 301, 2206, 5131, 11940, 169, 965, 0, 0, 1710, 75, 0, 7, 0, 0, 0, 50, 0, 0, 0, 0, 0, 0]}, {"place": "Cazin", "population": 24589, "id": "2", "winner_class": "sda-stranka-demokratske-akcije", "lat": 44.9690446, "lng": 15.9431582, "votes": [60, 133, 2451, 39, 46, 17, 0, 0, 0, 910, 248, 948, 6906, 5570, 29, 6505, 0, 0, 671, 48, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0]}, {"place": "Travnik", "population": 23914, "id": "91", "winner_class": "sda-stranka-demokratske-akcije", "lat": 44.2253642, "lng": 17.6429463, "votes": [159, 388, 20, 100, 3539, 844, 524, 23, 25, 1676, 153, 4434, 5345, 4138, 47, 117, 0, 345, 1916, 68, 0, 0, 0, 0, 0, 53, 0, 0, 0, 0, 0, 0]}, {"place": "Gradi\u0161ka", "population": 23332, "id": "10", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 45.1465976, "lng": 17.2544232, "votes": [0, 0, 31, 0, 32, 46, 9, 7, 0, 0, 281, 251, 260, 782, 0, 0, 0, 0, 512, 0, 397, 575, 257, 2120, 45, 12074, 3657, 181, 1221, 241, 353, 0]}, {"place": "Gra\u010danica", "population": 21814, "id": "44", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 44.7051702, "lng": 18.3104025, "votes": [745, 622, 0, 108, 36, 12, 0, 54, 162, 562, 362, 2122, 5479, 9688, 141, 125, 485, 243, 860, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0]}, {"place": "Lukavac", "population": 21638, "id": "47", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 44.5336231, "lng": 18.5316719, "votes": [836, 365, 0, 272, 334, 64, 0, 75, 76, 462, 156, 2561, 5055, 8679, 98, 86, 507, 209, 1610, 0, 0, 0, 0, 0, 0, 193, 0, 0, 0, 0, 0, 0]}, {"place": "Visoko", "population": 20198, "id": "116", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 43.9887651, "lng": 18.1798837, "votes": [289, 1037, 17, 68, 101, 51, 3, 18, 149, 2577, 101, 3522, 4670, 4680, 28, 165, 0, 494, 2100, 102, 0, 0, 0, 0, 0, 26, 0, 0, 0, 0, 0, 0]}, {"place": "Te\u0161anj", "population": 19480, "id": "39", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 44.6166027, "lng": 17.9914718, "votes": [81, 1084, 14, 28, 107, 88, 3, 9, 20, 436, 90, 1197, 6405, 6967, 17, 69, 0, 283, 2441, 135, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0]}, {"place": "Srebrenik", "population": 19150, "id": "49", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 44.7, "lng": 18.483333, "votes": [737, 771, 0, 114, 793, 30, 0, 47, 162, 481, 90, 2048, 4446, 8334, 43, 51, 159, 173, 661, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0]}, {"place": "Kakanj", "population": 18779, "id": "94", "winner_class": "sda-stranka-demokratske-akcije", "lat": 44.128014, "lng": 18.1178262, "votes": [243, 410, 16, 30, 1469, 69, 21, 14, 47, 1238, 69, 2648, 6365, 4321, 19, 138, 0, 215, 1317, 111, 0, 0, 0, 0, 0, 19, 0, 0, 0, 0, 0, 0]}, {"place": "Tesli\u0107", "population": 18499, "id": "74", "winner_class": "sds-srpska-demokratska-stranka", "lat": 44.6063199, "lng": 17.8595342, "votes": [8, 4, 3, 0, 78, 0, 80, 11, 0, 0, 157, 113, 851, 791, 14, 7, 0, 0, 1111, 0, 312, 129, 1462, 655, 43, 5668, 5672, 512, 71, 648, 99, 0]}, {"place": "Grada\u010dac", "population": 17344, "id": "25", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 44.8775521, "lng": 18.425887, "votes": [293, 703, 0, 78, 615, 29, 0, 29, 9, 670, 106, 3110, 5076, 5792, 26, 188, 160, 154, 278, 0, 0, 0, 0, 0, 0, 28, 0, 0, 0, 0, 0, 0]}, {"place": "Velika Kladu\u0161a", "population": 17017, "id": "1", "winner_class": "demokratska-narodna-zajednica-dnz-bih", "lat": 45.1838373, "lng": 15.8065454, "votes": [45, 32, 10870, 31, 107, 12, 0, 0, 0, 1619, 42, 426, 2088, 1104, 8, 272, 0, 0, 334, 9, 0, 10, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0]}, {"place": "Zavidovi\u0107i", "population": 16977, "id": "77", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 44.4437217, "lng": 18.1451051, "votes": [280, 553, 28, 53, 203, 59, 4, 36, 19, 1065, 99, 2856, 3871, 5837, 21, 197, 0, 447, 1175, 123, 0, 0, 0, 0, 0, 51, 0, 0, 0, 0, 0, 0]}, {"place": "Prnjavor", "population": 16699, "id": "13", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.8678652, "lng": 17.6618242, "votes": [0, 0, 4, 0, 20, 10, 7, 6, 0, 0, 144, 115, 229, 350, 0, 0, 0, 0, 205, 0, 659, 348, 205, 598, 26, 7242, 6021, 112, 71, 179, 148, 0]}, {"place": "Novi Grad", "population": 16547, "id": "7", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 45.0486976, "lng": 16.3746171, "votes": [0, 0, 6, 0, 10, 3, 0, 3, 0, 0, 58, 165, 1214, 665, 0, 0, 0, 0, 269, 0, 40, 991, 40, 1278, 34, 6752, 3707, 142, 60, 119, 991, 0]}, {"place": "Lakta\u0161i", "population": 15518, "id": "11", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.9064386, "lng": 17.3014638, "votes": [0, 0, 6, 0, 15, 7, 8, 1, 0, 0, 114, 13, 4, 24, 0, 0, 0, 0, 4, 0, 431, 170, 51, 530, 46, 10995, 2255, 349, 104, 177, 214, 0]}, {"place": "Kalesija", "population": 15426, "id": "80", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 44.4601779, "lng": 18.8391098, "votes": [577, 1006, 0, 80, 12, 9, 0, 166, 3, 277, 39, 1606, 4104, 6081, 209, 251, 157, 190, 654, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0]}, {"place": "Banovi\u0107i", "population": 14683, "id": "78", "winner_class": "sda-stranka-demokratske-akcije", "lat": 44.4094788, "lng": 18.5248551, "votes": [157, 121, 0, 55, 36, 11, 0, 26, 3, 36, 16, 695, 8348, 4658, 9, 66, 77, 64, 291, 0, 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0]}, {"place": "Trebinje", "population": 14340, "id": "182", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 42.712, "lng": 18.346, "votes": [0, 5, 0, 4, 0, 0, 0, 1, 1, 0, 156, 20, 9, 43, 4, 3, 24, 0, 10, 0, 986, 182, 25, 1675, 308, 6118, 3103, 533, 50, 387, 683, 10]}, {"place": "Bugojno", "population": 14077, "id": "109", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 44.05, "lng": 17.45, "votes": [175, 453, 9, 45, 1133, 556, 194, 30, 32, 617, 60, 2733, 2445, 4348, 24, 70, 0, 347, 677, 98, 0, 0, 0, 0, 0, 31, 0, 0, 0, 0, 0, 0]}, {"place": "Konjic", "population": 13602, "id": "127", "winner_class": "sda-stranka-demokratske-akcije", "lat": 43.6536202, "lng": 17.9590172, "votes": [122, 471, 0, 13, 430, 129, 0, 0, 0, 1070, 61, 2114, 4130, 3465, 0, 0, 100, 0, 1497, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, {"place": "Livno", "population": 13152, "id": "106", "winner_class": "hdz-bih-hrvatska-demokratska-zajednica-bosne-i-hercegovine", "lat": 43.8249858, "lng": 17.0076892, "votes": [9, 22, 22, 18, 5761, 2635, 0, 0, 0, 2606, 57, 310, 794, 700, 5, 12, 0, 0, 121, 5, 0, 32, 0, 0, 0, 43, 0, 0, 0, 0, 0, 0]}, {"place": "\u0160iroki Brijeg", "population": 13045, "id": "150", "winner_class": "hdz-bih-hrvatska-demokratska-zajednica-bosne-i-hercegovine", "lat": 43.383333, "lng": 17.592778, "votes": [4, 1, 0, 200, 8538, 2163, 0, 0, 0, 2045, 1, 10, 3, 49, 0, 0, 25, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, {"place": "Sanski Most", "population": 12411, "id": "32", "winner_class": "sda-stranka-demokratske-akcije", "lat": 44.7639581, "lng": 16.664612, "votes": [42, 66, 44, 26, 56, 16, 0, 0, 0, 39, 106, 2007, 3994, 3566, 50, 103, 0, 0, 2002, 31, 0, 68, 0, 0, 0, 195, 0, 0, 0, 0, 0, 0]}, {"place": "Vitez", "population": 12282, "id": "112", "winner_class": "hdz-bih-hrvatska-demokratska-zajednica-bosne-i-hercegovine", "lat": 44.150897, "lng": 17.7905271, "votes": [51, 136, 12, 15, 3858, 1814, 342, 5, 11, 586, 45, 1497, 1717, 1661, 9, 59, 0, 69, 355, 14, 0, 0, 0, 0, 0, 26, 0, 0, 0, 0, 0, 0]}, {"place": "Vogo\u0161\u0107a", "population": 12234, "id": "135", "winner_class": "sda-stranka-demokratske-akcije", "lat": 43.9022283, "lng": 18.3425874, "votes": [263, 757, 12, 19, 36, 16, 11, 20, 47, 390, 130, 2088, 3623, 2460, 380, 72, 401, 97, 1276, 17, 0, 0, 0, 0, 0, 119, 0, 0, 0, 0, 0, 0]}, {"place": "Had\u017ei\u0107i", "population": 11623, "id": "130", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 43.8218843, "lng": 18.1988004, "votes": [409, 763, 16, 19, 44, 13, 5, 69, 15, 239, 42, 1567, 2787, 2854, 335, 72, 299, 119, 1918, 18, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0]}, {"place": "\u010capljina", "population": 11567, "id": "173", "winner_class": "hdz-bih-hrvatska-demokratska-zajednica-bosne-i-hercegovine", "lat": 43.1118267, "lng": 17.7054838, "votes": [8, 58, 0, 19, 6551, 2266, 0, 0, 0, 189, 28, 451, 896, 842, 0, 0, 38, 0, 221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, {"place": "Modri\u010da", "population": 11425, "id": "24", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.9569258, "lng": 18.3015919, "votes": [8, 7, 2, 0, 95, 0, 30, 6, 0, 0, 96, 145, 148, 428, 5, 2, 0, 0, 133, 0, 230, 399, 37, 252, 202, 5306, 3385, 138, 56, 257, 58, 0]}, {"place": "\u017dep\u010de", "population": 11357, "id": "75", "winner_class": "hdz-bih-hrvatska-demokratska-zajednica-bosne-i-hercegovine", "lat": 44.4264287, "lng": 18.0374164, "votes": [17, 179, 7, 14, 4239, 926, 19, 4, 8, 843, 168, 544, 2107, 1276, 9, 76, 0, 160, 689, 32, 0, 0, 0, 0, 0, 40, 0, 0, 0, 0, 0, 0]}, {"place": "Jajce", "population": 11081, "id": "65", "winner_class": "hdz-bih-hrvatska-demokratska-zajednica-bosne-i-hercegovine", "lat": 44.3398061, "lng": 17.2712934, "votes": [61, 91, 10, 24, 2568, 1185, 368, 11, 11, 150, 29, 1350, 2236, 2245, 14, 54, 0, 85, 480, 25, 0, 0, 0, 0, 0, 84, 0, 0, 0, 0, 0, 0]}, {"place": "Derventa", "population": 10881, "id": "14", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.9764185, "lng": 17.9070412, "votes": [8, 7, 10, 0, 144, 0, 171, 15, 0, 0, 107, 98, 81, 226, 5, 0, 0, 0, 82, 0, 175, 51, 88, 643, 39, 5233, 3175, 113, 179, 184, 47, 0]}, {"place": "Bosanska Krupa", "population": 10871, "id": "4", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 44.889004, "lng": 16.1485765, "votes": [80, 87, 44, 27, 22, 4, 0, 0, 0, 98, 68, 1105, 2741, 4561, 17, 1227, 0, 0, 685, 18, 0, 15, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0]}, {"place": "Gora\u017ede", "population": 10812, "id": "167", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 43.6685443, "lng": 18.9748537, "votes": [161, 639, 13, 13, 17, 20, 3, 44, 12, 798, 52, 1438, 1861, 3203, 108, 125, 159, 137, 1874, 8, 0, 0, 0, 0, 0, 127, 0, 0, 0, 0, 0, 0]}, {"place": "Bosanska Dubica", "population": 10754, "id": "8", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 45.183333, "lng": 16.8, "votes": [0, 0, 6, 0, 10, 5, 1, 3, 0, 0, 227, 36, 176, 195, 0, 0, 0, 0, 164, 0, 155, 295, 40, 1547, 47, 5061, 2265, 169, 83, 78, 191, 0]}, {"place": "Srbac", "population": 10462, "id": "12", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 45.0988684, "lng": 17.5217027, "votes": [0, 0, 4, 0, 5, 1, 1, 3, 0, 0, 363, 11, 28, 24, 0, 0, 0, 0, 27, 0, 768, 72, 239, 553, 15, 6525, 1523, 54, 113, 73, 60, 0]}, {"place": "Novi Travnik", "population": 10343, "id": "111", "winner_class": "hdz-bih-hrvatska-demokratska-zajednica-bosne-i-hercegovine", "lat": 44.1731869, "lng": 17.6593749, "votes": [60, 178, 9, 38, 2610, 550, 591, 8, 12, 1132, 33, 945, 1365, 2112, 24, 52, 0, 108, 449, 39, 0, 0, 0, 0, 0, 28, 0, 0, 0, 0, 0, 0]}, {"place": "Fo\u010da", "population": 10106, "id": "166", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 43.505478, "lng": 18.7772645, "votes": [4, 4, 0, 2, 0, 0, 0, 3, 1, 0, 771, 11, 71, 10, 1, 1, 13, 0, 12, 0, 59, 907, 40, 872, 25, 4283, 2608, 61, 18, 211, 115, 3]}, {"place": "Pale", "population": 9660, "id": "144", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 43.816667, "lng": 18.569444, "votes": [1, 2, 0, 0, 0, 0, 0, 2, 1, 0, 110, 5, 4, 2, 1, 0, 28, 0, 2, 0, 39, 225, 42, 1373, 158, 3945, 3026, 37, 136, 418, 95, 8]}, {"place": "Ljubu\u0161ki", "population": 9654, "id": "171", "winner_class": "hdz-bih-hrvatska-demokratska-zajednica-bosne-i-hercegovine", "lat": 43.1989428, "lng": 17.5466671, "votes": [5, 5, 0, 18, 4970, 3486, 0, 0, 0, 941, 6, 38, 16, 136, 0, 0, 20, 0, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, {"place": "Maglaj", "population": 9569, "id": "42", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 44.5454847, "lng": 18.1033619, "votes": [60, 243, 37, 26, 434, 31, 5, 8, 7, 178, 78, 982, 3068, 3164, 9, 97, 0, 233, 770, 50, 0, 0, 0, 0, 0, 89, 0, 0, 0, 0, 0, 0]}, {"place": "Gornji Vakuf", "population": 9376, "id": "110", "winner_class": "sda-stranka-demokratske-akcije", "lat": 43.9375436, "lng": 17.5880463, "votes": [74, 113, 2, 20, 1507, 1233, 99, 5, 5, 308, 23, 625, 3255, 1357, 6, 46, 0, 39, 640, 16, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0]}, {"place": "Ugljevik", "population": 9284, "id": "56", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.694444, "lng": 18.997778, "votes": [0, 6, 2, 0, 4, 0, 0, 1, 0, 0, 14, 6, 502, 10, 1, 3, 0, 0, 6, 0, 135, 76, 7, 847, 78, 3484, 2806, 192, 123, 329, 652, 0]}, {"place": "Ilija\u0161", "population": 8920, "id": "118", "winner_class": "sda-stranka-demokratske-akcije", "lat": 43.9486183, "lng": 18.2648525, "votes": [298, 529, 13, 11, 69, 13, 31, 8, 157, 336, 52, 1485, 2245, 2153, 119, 89, 190, 58, 1001, 10, 0, 0, 0, 0, 0, 53, 0, 0, 0, 0, 0, 0]}, {"place": "Mrkonji\u0107 Grad", "population": 8762, "id": "64", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.416667, "lng": 17.083333, "votes": [0, 0, 9, 0, 7, 4, 7, 1, 0, 0, 107, 15, 56, 31, 0, 0, 0, 0, 7, 0, 185, 276, 39, 598, 150, 4847, 1225, 622, 30, 147, 399, 0]}, {"place": "Kiseljak", "population": 8635, "id": "115", "winner_class": "hdz-bih-hrvatska-demokratska-zajednica-bosne-i-hercegovine", "lat": 43.9399783, "lng": 18.0786274, "votes": [38, 186, 7, 15, 3580, 526, 163, 3, 5, 891, 52, 554, 968, 1037, 15, 31, 0, 94, 430, 17, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0]}, {"place": "Kotor-Varo\u0161", "population": 8614, "id": "70", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.622222, "lng": 17.370278, "votes": [0, 0, 3, 0, 62, 30, 149, 3, 0, 0, 48, 209, 445, 141, 0, 0, 0, 0, 217, 0, 66, 228, 34, 1787, 12, 2936, 1885, 29, 28, 99, 203, 0]}, {"place": "Isto\u010dna Ilid\u017ea", "population": 8033, "id": "132", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 43.7911638, "lng": 18.3749814, "votes": [2, 2, 0, 0, 0, 0, 0, 5, 0, 0, 58, 20, 3, 10, 2, 0, 24, 0, 3, 0, 105, 96, 4, 673, 55, 3950, 2828, 22, 23, 124, 23, 1]}, {"place": "Bratunac", "population": 7928, "id": "104", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.1858792, "lng": 19.3326154, "votes": [3, 13, 0, 2, 0, 0, 0, 0, 0, 0, 28, 23, 878, 242, 3, 8, 6, 0, 150, 0, 52, 436, 18, 257, 299, 2434, 1060, 35, 94, 1727, 155, 5]}, {"place": "\u010celinac", "population": 7905, "id": "35", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.724837, "lng": 17.3220709, "votes": [0, 0, 7, 0, 2, 1, 6, 0, 0, 0, 38, 15, 27, 61, 0, 0, 0, 0, 14, 0, 180, 693, 116, 474, 36, 4018, 1867, 169, 24, 89, 68, 0]}, {"place": "Ora\u0161je", "population": 7668, "id": "22", "winner_class": "hdz-bih-hrvatska-demokratska-zajednica-bosne-i-hercegovine", "lat": 45.0361554, "lng": 18.6937329, "votes": [29, 18, 0, 61, 4104, 2176, 0, 4, 0, 67, 21, 353, 298, 323, 7, 16, 31, 79, 77, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0]}, {"place": "Busova\u010da", "population": 7570, "id": "113", "winner_class": "hdz-bih-hrvatska-demokratska-zajednica-bosne-i-hercegovine", "lat": 44.097527, "lng": 17.8802154, "votes": [54, 130, 7, 19, 2360, 980, 117, 4, 9, 316, 22, 612, 1175, 1233, 10, 39, 0, 70, 279, 120, 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0]}, {"place": "Bu\u017eim", "population": 7353, "id": "5", "winner_class": "sda-stranka-demokratske-akcije", "lat": 45.0510883, "lng": 16.0518078, "votes": [20, 40, 78, 9, 9, 2, 0, 0, 0, 61, 0, 661, 3252, 796, 11, 1058, 0, 0, 1344, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, {"place": "Lopare", "population": 7348, "id": "54", "winner_class": "sds-srpska-demokratska-stranka", "lat": 44.6323265, "lng": 18.8432361, "votes": [0, 3, 0, 0, 1, 0, 0, 0, 0, 0, 27, 7, 88, 50, 0, 0, 0, 0, 4, 0, 26, 78, 47, 878, 12, 2235, 3182, 441, 89, 120, 60, 0]}, {"place": "Tomislavgrad", "population": 7314, "id": "124", "winner_class": "hrvatska-koalicija-hdz-1990-hsp-bih", "lat": 43.7187433, "lng": 17.2236492, "votes": [2, 13, 9, 7, 2946, 3155, 0, 0, 0, 110, 7, 172, 369, 402, 2, 6, 0, 0, 104, 3, 0, 2, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0]}, {"place": "Sokolac", "population": 7132, "id": "121", "winner_class": "sds-srpska-demokratska-stranka", "lat": 43.9340953, "lng": 18.8019069, "votes": [0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 86, 5, 6, 10, 2, 0, 13, 0, 8, 0, 19, 15, 19, 550, 17, 2469, 3498, 29, 98, 250, 34, 2]}, {"place": "\u0160amac", "population": 7074, "id": "21", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 45.0610659, "lng": 18.4690346, "votes": [0, 1, 3, 0, 83, 0, 91, 3, 0, 0, 79, 28, 148, 121, 2, 2, 0, 0, 15, 0, 457, 620, 17, 693, 41, 2370, 1753, 183, 86, 201, 77, 0]}, {"place": "Breza", "population": 7024, "id": "117", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 44.0181484, "lng": 18.2612953, "votes": [121, 332, 7, 28, 39, 14, 9, 26, 10, 840, 50, 1192, 1467, 1499, 15, 78, 0, 314, 938, 35, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0]}, {"place": "Stolac", "population": 6786, "id": "176", "winner_class": "hdz-bih-hrvatska-demokratska-zajednica-bosne-i-hercegovine", "lat": 43.0851515, "lng": 17.9592754, "votes": [11, 71, 0, 5, 3093, 886, 0, 0, 0, 119, 13, 447, 1370, 523, 0, 0, 25, 0, 223, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, {"place": "Posu\u0161je", "population": 6564, "id": "148", "winner_class": "hdz-bih-hrvatska-demokratska-zajednica-bosne-i-hercegovine", "lat": 43.4719941, "lng": 17.3296617, "votes": [0, 1, 0, 48, 3211, 2956, 0, 0, 0, 285, 1, 3, 0, 43, 0, 0, 10, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, {"place": "Donji Vakuf", "population": 6431, "id": "89", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 44.1440673, "lng": 17.398111, "votes": [125, 310, 11, 22, 15, 11, 4, 16, 41, 331, 72, 1620, 925, 2087, 14, 37, 0, 86, 645, 49, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0]}, {"place": "Klju\u010d", "population": 6391, "id": "59", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 44.5339817, "lng": 16.7747156, "votes": [16, 98, 17, 13, 21, 7, 0, 0, 0, 16, 57, 469, 1686, 3131, 6, 408, 0, 0, 385, 8, 0, 5, 0, 0, 0, 48, 0, 0, 0, 0, 0, 0]}, {"place": "Od\u017eak", "population": 6358, "id": "17", "winner_class": "hdz-bih-hrvatska-demokratska-zajednica-bosne-i-hercegovine", "lat": 45.0101422, "lng": 18.3262539, "votes": [58, 22, 0, 11, 1927, 1230, 0, 12, 5, 263, 18, 347, 972, 1055, 4, 17, 67, 46, 294, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0]}, {"place": "Nevesinje", "population": 6274, "id": "161", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 43.2574658, "lng": 18.1123652, "votes": [1, 0, 0, 2, 0, 0, 0, 0, 1, 0, 98, 5, 18, 5, 0, 1, 9, 0, 4, 0, 477, 60, 13, 535, 13, 2550, 1136, 347, 99, 295, 604, 1]}, {"place": "Prozor", "population": 6251, "id": "125", "winner_class": "hrvatska-koalicija-hdz-1990-hsp-bih", "lat": 43.8212183, "lng": 17.6092972, "votes": [22, 150, 0, 5, 1838, 2621, 0, 0, 0, 102, 9, 179, 762, 298, 0, 0, 18, 0, 247, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, {"place": "Kladanj", "population": 6171, "id": "98", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 44.2246967, "lng": 18.6918556, "votes": [361, 263, 0, 51, 9, 3, 0, 12, 6, 188, 65, 581, 1292, 1470, 411, 29, 110, 210, 1100, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0]}, {"place": "Bile\u0107a", "population": 5978, "id": "180", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 42.8756616, "lng": 18.4292187, "votes": [0, 1, 0, 4, 0, 0, 0, 0, 0, 0, 113, 2, 2, 4, 0, 0, 2, 0, 1, 0, 66, 92, 4, 201, 23, 2236, 1809, 158, 13, 269, 974, 4]}, {"place": "Brody", "population": 5805, "id": "16", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 45.133333, "lng": 17.983333, "votes": [1, 7, 0, 0, 77, 0, 39, 36, 0, 0, 50, 16, 97, 140, 4, 1, 0, 0, 101, 0, 320, 108, 40, 460, 36, 2504, 756, 795, 39, 138, 40, 0]}, {"place": "\u0160ipovo", "population": 5804, "id": "88", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.2837305, "lng": 17.0877754, "votes": [0, 0, 2, 0, 3, 0, 1, 1, 0, 0, 22, 16, 15, 20, 0, 0, 0, 0, 61, 0, 87, 80, 509, 440, 8, 3621, 798, 20, 26, 55, 19, 0]}, {"place": "Vlasenica", "population": 5748, "id": "103", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.1799774, "lng": 18.9418196, "votes": [4, 10, 0, 0, 0, 0, 0, 0, 0, 0, 23, 17, 246, 31, 1, 13, 4, 0, 53, 0, 10, 18, 32, 309, 13, 2500, 2230, 51, 89, 74, 17, 3]}, {"place": "Fojnica", "population": 5658, "id": "114", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 43.9638288, "lng": 17.8966344, "votes": [47, 124, 9, 7, 870, 261, 115, 3, 10, 436, 20, 820, 760, 1218, 10, 40, 0, 87, 794, 17, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0]}, {"place": "Grude", "population": 5578, "id": "149", "winner_class": "hdz-bih-hrvatska-demokratska-zajednica-bosne-i-hercegovine", "lat": 43.3746502, "lng": 17.4096253, "votes": [0, 2, 0, 37, 3105, 1381, 0, 0, 0, 948, 3, 8, 1, 80, 0, 0, 4, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, {"place": "Sapna", "population": 5573, "id": "82", "winner_class": "sda-stranka-demokratske-akcije", "lat": 44.4902356, "lng": 19.0048278, "votes": [41, 97, 0, 14, 4, 1, 0, 36, 0, 15, 5, 376, 3443, 644, 19, 34, 15, 13, 794, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0]}, {"place": "Vi\u0161egrad", "population": 5513, "id": "147", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 43.783333, "lng": 19.283333, "votes": [3, 4, 0, 1, 0, 0, 0, 0, 0, 0, 63, 10, 76, 34, 1, 7, 8, 0, 18, 0, 200, 122, 12, 209, 9, 2219, 2151, 59, 8, 177, 117, 5]}, {"place": "Jablanica", "population": 5426, "id": "126", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 43.6577331, "lng": 17.760399, "votes": [52, 248, 0, 18, 188, 79, 0, 0, 0, 241, 15, 1147, 1134, 1805, 0, 0, 68, 0, 431, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, {"place": "Olovo", "population": 5400, "id": "96", "winner_class": "sda-stranka-demokratske-akcije", "lat": 44.1265438, "lng": 18.5826846, "votes": [83, 145, 7, 17, 39, 5, 2, 2, 8, 167, 32, 691, 2141, 1167, 9, 35, 0, 61, 753, 30, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0]}, {"place": "\u010citluk", "population": 5310, "id": "172", "winner_class": "hdz-bih-hrvatska-demokratska-zajednica-bosne-i-hercegovine", "lat": 43.2196802, "lng": 17.6925674, "votes": [1, 1, 0, 7, 3365, 1785, 0, 0, 0, 83, 3, 6, 1, 44, 0, 0, 10, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, {"place": "Kne\u017eevo", "population": 5129, "id": "68", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.4869469, "lng": 17.3804348, "votes": [0, 0, 1, 0, 3, 1, 2, 2, 0, 0, 52, 38, 12, 32, 0, 0, 0, 0, 43, 0, 53, 165, 214, 1106, 53, 2292, 694, 140, 124, 53, 49, 0]}, {"place": "Doboj-Istok", "population": 5060, "id": "36", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 44.7311051, "lng": 18.1911809, "votes": [155, 97, 0, 36, 10, 1, 0, 305, 19, 35, 55, 630, 911, 2029, 23, 364, 80, 60, 250, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, {"place": "Isto\u010dno Novo Sarajevo", "population": 5026, "id": "140", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 43.7968721, "lng": 18.4252786, "votes": [0, 0, 0, 2, 0, 0, 0, 1, 1, 0, 49, 7, 3, 4, 3, 0, 24, 0, 1, 0, 29, 52, 4, 597, 51, 2679, 1317, 10, 24, 152, 15, 1]}, {"place": "Gacko", "population": 4996, "id": "164", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 43.1672447, "lng": 18.5360484, "votes": [1, 1, 0, 2, 0, 0, 0, 0, 0, 0, 7, 2, 10, 5, 0, 0, 0, 0, 5, 0, 33, 25, 1, 267, 74, 1916, 1702, 532, 15, 133, 262, 3]}, {"place": "Srebrenica", "population": 4929, "id": "105", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.1039762, "lng": 19.2997218, "votes": [2, 13, 0, 2, 0, 0, 0, 1, 1, 0, 35, 107, 622, 73, 2, 5, 4, 0, 350, 0, 42, 303, 6, 98, 111, 2127, 774, 33, 32, 156, 30, 0]}, {"place": "Rogatica", "population": 4884, "id": "146", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 43.7988425, "lng": 19.0021097, "votes": [1, 3, 0, 3, 0, 0, 0, 3, 0, 0, 165, 21, 22, 19, 1, 2, 7, 0, 8, 0, 244, 61, 7, 397, 16, 1775, 1716, 122, 91, 179, 19, 2]}, {"place": "\u0160ekovi\u0107i", "population": 4875, "id": "101", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.3070961, "lng": 18.8434434, "votes": [0, 3, 0, 1, 0, 0, 0, 0, 0, 0, 26, 13, 0, 5, 0, 0, 6, 0, 1, 0, 38, 8, 10, 550, 28, 2484, 1468, 167, 16, 44, 7, 0]}, {"place": "Vare\u0161", "population": 4729, "id": "95", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 44.1618902, "lng": 18.3268323, "votes": [66, 182, 2, 5, 805, 114, 96, 4, 5, 224, 65, 795, 950, 1150, 7, 23, 0, 72, 134, 16, 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0]}, {"place": "\u010celi\u0107", "population": 4421, "id": "52", "winner_class": "sda-stranka-demokratske-akcije", "lat": 44.716667, "lng": 18.816667, "votes": [103, 93, 0, 31, 113, 15, 0, 4, 1, 149, 9, 317, 1968, 768, 19, 29, 34, 107, 660, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]}, {"place": "Mili\u0107i", "population": 4251, "id": "185", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.1129313, "lng": 19.0900007, "votes": [0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 15, 8, 261, 12, 0, 1, 1, 0, 136, 0, 13, 17, 6, 147, 47, 2677, 747, 8, 28, 101, 21, 2]}, {"place": "Ribnik", "population": 3463, "id": "61", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.4671072, "lng": 16.7843428, "votes": [0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 6, 2, 1, 11, 0, 0, 0, 0, 0, 0, 248, 45, 24, 204, 3, 2367, 385, 77, 7, 40, 40, 0]}, {"place": "Petrovo", "population": 3380, "id": "45", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.6778754, "lng": 18.223951, "votes": [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 2, 0, 1, 1, 1, 0, 0, 1, 0, 107, 153, 3, 40, 14, 1812, 1011, 56, 22, 129, 11, 0]}, {"place": "Rudo", "population": 3334, "id": "170", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 43.616667, "lng": 19.366667, "votes": [0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 37, 8, 16, 9, 0, 3, 1, 0, 5, 0, 78, 45, 9, 95, 10, 2060, 570, 11, 11, 75, 286, 3]}, {"place": "Drvar", "population": 3270, "id": "57", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.366667, "lng": 16.383333, "votes": [2, 4, 13, 7, 82, 264, 0, 0, 0, 26, 60, 24, 1, 66, 2, 4, 0, 0, 6, 1, 0, 566, 0, 0, 0, 2142, 0, 0, 0, 0, 0, 0]}, {"place": "Teo\u010dak", "population": 3121, "id": "55", "winner_class": "sda-stranka-demokratske-akcije", "lat": 44.6025007, "lng": 18.9845053, "votes": [56, 45, 0, 16, 4, 0, 0, 8, 1, 86, 2, 341, 1453, 593, 8, 34, 25, 14, 434, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]}, {"place": "Bosanski Petrovac", "population": 2722, "id": "30", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.550306, "lng": 16.364376, "votes": [7, 12, 187, 9, 10, 3, 0, 0, 0, 14, 79, 323, 290, 417, 8, 109, 0, 0, 258, 4, 0, 38, 0, 0, 0, 954, 0, 0, 0, 0, 0, 0]}, {"place": "Kre\u0161evo", "population": 2481, "id": "129", "winner_class": "hdz-bih-hrvatska-demokratska-zajednica-bosne-i-hercegovine", "lat": 43.8656167, "lng": 18.034588, "votes": [5, 10, 1, 1, 1255, 243, 59, 1, 2, 411, 5, 95, 171, 179, 1, 6, 0, 23, 9, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0]}, {"place": "\u010cajni\u010de", "population": 2475, "id": "169", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 43.5571062, "lng": 19.0735581, "votes": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 16, 4, 6, 2, 0, 0, 0, 0, 17, 0, 4, 32, 0, 49, 7, 1340, 937, 5, 5, 35, 15, 0]}, {"place": "Hrvatska Kostajnica", "population": 2333, "id": "184", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 45.2280258, "lng": 16.5396362, "votes": [0, 0, 14, 0, 4, 3, 0, 0, 0, 0, 12, 18, 62, 130, 0, 0, 0, 0, 102, 0, 7, 89, 8, 198, 3, 872, 594, 105, 38, 21, 53, 0]}, {"place": "Han-Pijesak", "population": 2232, "id": "123", "winner_class": "sds-srpska-demokratska-stranka", "lat": 44.083333, "lng": 18.95, "votes": [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 11, 4, 0, 0, 4, 0, 0, 0, 2, 2, 12, 36, 5, 944, 1071, 12, 39, 50, 30, 0]}, {"place": "Doboj-Jug", "population": 2230, "id": "37", "winner_class": "sdp-socijaldemokratska-partija-bih", "lat": 44.6706838, "lng": 18.0636308, "votes": [6, 38, 0, 6, 5, 4, 1, 2, 2, 110, 25, 125, 592, 996, 0, 6, 0, 53, 246, 11, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0]}, {"place": "Pelagi\u0107evo", "population": 2041, "id": "26", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.9, "lng": 18.61, "votes": [0, 0, 1, 0, 94, 0, 132, 2, 0, 0, 3, 0, 2, 9, 0, 0, 0, 0, 0, 0, 23, 112, 1, 244, 5, 671, 487, 174, 4, 73, 4, 0]}, {"place": "Ljubinje", "population": 1993, "id": "179", "winner_class": "sds-srpska-demokratska-stranka", "lat": 42.941505, "lng": 18.083766, "votes": [0, 0, 0, 4, 0, 0, 0, 1, 0, 0, 5, 1, 0, 3, 0, 0, 1, 0, 0, 0, 60, 11, 0, 77, 3, 762, 959, 12, 6, 76, 11, 1]}, {"place": "Osmaci", "population": 1910, "id": "81", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.4009766, "lng": 18.9621905, "votes": [0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 28, 14, 121, 23, 0, 0, 1, 0, 2, 0, 21, 22, 1, 172, 111, 751, 402, 35, 155, 41, 6, 0]}, {"place": "O\u0161tra Luka", "population": 1759, "id": "33", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.8562873, "lng": 16.6625953, "votes": [0, 0, 1, 0, 3, 1, 2, 0, 0, 0, 14, 6, 1, 4, 0, 0, 0, 0, 1, 0, 74, 114, 28, 106, 9, 980, 206, 73, 34, 40, 62, 0]}, {"place": "Usora", "population": 1638, "id": "183", "winner_class": "hdz-bih-hrvatska-demokratska-zajednica-bosne-i-hercegovine", "lat": 44.6898979, "lng": 17.9748688, "votes": [1, 3, 0, 1, 556, 482, 203, 1, 1, 185, 8, 8, 24, 114, 2, 0, 0, 32, 14, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]}, {"place": "Domaljevac-\u0160amac", "population": 1620, "id": "20", "winner_class": "hdz-bih-hrvatska-demokratska-zajednica-bosne-i-hercegovine", "lat": 45.0528897, "lng": 18.5690443, "votes": [0, 1, 0, 1, 1115, 417, 0, 2, 0, 42, 11, 1, 1, 16, 1, 1, 1, 5, 3, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0]}, {"place": "Glamo\u010d", "population": 1604, "id": "85", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.0461726, "lng": 16.8557453, "votes": [4, 4, 2, 3, 248, 157, 0, 0, 0, 121, 5, 33, 243, 81, 46, 8, 0, 0, 14, 0, 0, 186, 0, 0, 0, 449, 0, 0, 0, 0, 0, 0]}, {"place": "Trnovo", "population": 1548, "id": "141", "winner_class": "stranka-za-bosnu-i-hercegovinu", "lat": 43.7003215, "lng": 18.3014505, "votes": [9, 8, 1, 1, 2, 1, 1, 1, 2, 27, 10, 62, 403, 123, 29, 5, 8, 15, 823, 3, 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0]}, {"place": "Vukosavlje", "population": 1493, "id": "18", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 45.0286713, "lng": 18.2508514, "votes": [1, 7, 0, 0, 25, 0, 30, 6, 0, 0, 4, 60, 262, 241, 7, 3, 0, 0, 104, 0, 4, 50, 4, 78, 28, 374, 152, 22, 5, 20, 6, 0]}, {"place": "Kalinovik", "population": 1478, "id": "163", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 43.5, "lng": 18.45, "votes": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 4, 0, 0, 0, 0, 0, 0, 27, 9, 0, 30, 3, 877, 358, 21, 7, 74, 61, 0]}, {"place": "Kupres", "population": 1421, "id": "107", "winner_class": "hdz-bih-hrvatska-demokratska-zajednica-bosne-i-hercegovine", "lat": 43.9916896, "lng": 17.2803166, "votes": [5, 2, 3, 4, 768, 438, 0, 0, 0, 11, 2, 10, 17, 45, 0, 4, 0, 0, 37, 2, 0, 11, 0, 0, 0, 62, 0, 0, 0, 0, 0, 0]}, {"place": "Neum", "population": 1394, "id": "174", "winner_class": "hdz-bih-hrvatska-demokratska-zajednica-bosne-i-hercegovine", "lat": 42.9233, "lng": 17.6156, "votes": [0, 0, 0, 2, 781, 508, 0, 0, 0, 25, 2, 5, 1, 63, 0, 0, 6, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, {"place": "Donji \u017dabar", "population": 1201, "id": "23", "winner_class": "sds-srpska-demokratska-stranka", "lat": 44.9414, "lng": 18.6461, "votes": [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 18, 28, 1, 12, 5, 435, 585, 25, 11, 78, 1, 0]}, {"place": "Berkovi\u0107i", "population": 1003, "id": "177", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 43.1210756, "lng": 18.0717219, "votes": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 2, 0, 0, 0, 0, 0, 18, 148, 1, 43, 2, 387, 332, 24, 4, 23, 15, 0]}, {"place": "Fo\u010da", "population": 951, "id": "165", "winner_class": "sda-stranka-demokratske-akcije", "lat": 43.6157401, "lng": 18.6956948, "votes": [58, 103, 2, 0, 1, 0, 0, 0, 1, 34, 5, 97, 311, 197, 1, 16, 7, 5, 90, 1, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0]}, {"place": "Krupa na Uni", "population": 863, "id": "6", "winner_class": "dns-demokratski-narodni-savez", "lat": 44.8889748, "lng": 16.3126863, "votes": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 272, 9, 45, 0, 222, 262, 4, 3, 17, 22, 0]}, {"place": "Ustipra\u010da", "population": 854, "id": "168", "winner_class": "sds-srpska-demokratska-stranka", "lat": 43.6906477, "lng": 19.0889003, "votes": [4, 5, 0, 1, 0, 0, 0, 0, 1, 0, 18, 19, 81, 37, 1, 0, 3, 0, 40, 0, 68, 8, 1, 53, 0, 182, 257, 4, 1, 43, 27, 0]}, {"place": "Bosansko Grahovo", "population": 831, "id": "84", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.1790899, "lng": 16.362569, "votes": [0, 1, 4, 1, 144, 20, 0, 0, 0, 75, 2, 4, 1, 8, 0, 1, 0, 0, 6, 2, 0, 124, 0, 0, 0, 438, 0, 0, 0, 0, 0, 0]}, {"place": "Trnovo", "population": 780, "id": "142", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 43.6650404, "lng": 18.4469906, "votes": [0, 1, 0, 1, 0, 0, 0, 2, 0, 0, 4, 3, 3, 6, 0, 0, 3, 0, 4, 0, 10, 15, 0, 72, 9, 417, 204, 2, 3, 17, 4, 0]}, {"place": "Isto\u010dni Stari Grad", "population": 723, "id": "138", "winner_class": "sds-srpska-demokratska-stranka", "lat": 43.8805734, "lng": 18.5145331, "votes": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 4, 0, 0, 0, 1, 7, 1, 59, 0, 226, 376, 0, 4, 33, 10, 0]}, {"place": "Ravno", "population": 688, "id": "181", "winner_class": "hrvatska-koalicija-hdz-1990-hsp-bih", "lat": 42.877476, "lng": 17.961381, "votes": [2, 0, 0, 6, 267, 353, 0, 0, 0, 14, 6, 9, 13, 12, 0, 0, 1, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, {"place": "Dobreti\u0107i", "population": 612, "id": "67", "winner_class": "hrvatska-koalicija-hdz-1990-hsp-bih", "lat": 44.3776703, "lng": 17.4118984, "votes": [0, 0, 0, 2, 200, 324, 78, 0, 0, 0, 0, 1, 0, 1, 5, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, {"place": "Jezero", "population": 470, "id": "66", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.091396, "lng": 18.1878872, "votes": [0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 9, 5, 23, 0, 0, 0, 0, 28, 0, 4, 16, 1, 24, 25, 149, 124, 19, 1, 3, 38, 0]}, {"place": "Pale", "population": 436, "id": "143", "winner_class": "sda-stranka-demokratske-akcije", "lat": 43.7501148, "lng": 18.786974, "votes": [4, 7, 0, 1, 2, 1, 0, 1, 0, 9, 0, 40, 273, 59, 5, 2, 2, 2, 28, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, {"place": "Petrovac", "population": 376, "id": "31", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.5, "lng": 16.466667, "votes": [0, 0, 6, 0, 0, 0, 0, 1, 0, 0, 4, 0, 0, 4, 0, 0, 0, 0, 1, 0, 5, 98, 0, 14, 1, 217, 10, 9, 1, 4, 1, 0]}, {"place": "Kupres", "population": 196, "id": "108", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.0791189, "lng": 17.1629795, "votes": [0, 0, 2, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 11, 1, 13, 0, 120, 38, 0, 1, 5, 1, 0]}, {"place": "Isto\u010dni Drvar", "population": 81, "id": "58", "winner_class": "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik", "lat": 44.4052042, "lng": 16.6293814, "votes": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 12, 0, 51, 2, 11, 0, 0, 0, 0]}, {"place": "Isto\u010dni Mostar", "population": 57, "id": "158", "winner_class": "sds-srpska-demokratska-stranka", "lat": 43.4023954, "lng": 18.0124469, "votes": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 8, 0, 0, 1, 0, 1, 44, 0, 1, 0, 0, 0]}], "colors": {"stranka-za-narod-bosne-i-hercegovine": "#888", "sds-srpska-demokratska-stranka": "#2e3293", "stranka-za-bosnu-i-hercegovinu": "#888", "sotsijalistichka-partija": "#888", "bps-sefer-halilovic": "#888", "stranka-penzionera-umirovljenika-bosne-i-hercegovine": "#888", "narodna-demokratska-stranka": "#888", "srpska-radikalna-stranka-republike-srpske": "#888", "stranka-kokuza-skok": "#888", "koalicija-preokret-gds-bih-i-nep-bih": "#888", "tomitsh-milosh-nezavisni-kandidat": "#888", "nasa-stranka-nova-socijalisticka-partija-zdravko-krsmanovic": "#888", "liberalno-demokratska-stranka-evropska-ekoloska-stranka-e-5": "#888", "demokratska-partija-dragan-chavitsh": "#888", "srpska-radikalna-stranka-dr-vojislav-sheshelj": "#888", "savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik": "#af251b", "sdp-socijaldemokratska-partija-bih": "#de0023", "stranka-demokratske-aktivnosti-a-sda": "#888", "hss-nhi": "#888", "hrvatska-koalicija-hdz-1990-hsp-bih": "#0076c0", "narodna-stranka-radom-za-boljitak": "#888", "sda-stranka-demokratske-akcije": "#009900", "dns-demokratski-narodni-savez": "#888", "demokratska-stranka-invalida-bih": "#888", "savez-za-demokratsku-srpsku": "#888", "savez-za-bolju-buducnost-bih-sbb-bih-fahrudin-radoncic": "#888", "demokratska-narodna-zajednica-dnz-bih": "#396ccc", "pdp-partija-demokratskog-progresa": "#888", "hdz-bih-hrvatska-demokratska-zajednica-bosne-i-hercegovine": "#013971", "sdu-bih-socijaldemokratska-unija-bosne-i-hercegovine": "#888", "boss-bosanska-stranka-mirnes-ajanovic": "#888", "srpska-napredna-stranka": "#888"}}
# convert into json
import csv
import json
import slugify
cands = [4,35] #first and last candidates column
idc = 0
latc = 1
lngc = 2
namec = 3
populationc = 36
jsono = {'votes':[], 'colors': {
'boss-bosanska-stranka-mirnes-ajanovic': "#888",
'bps-sefer-halilovic': "#888",
'demokratska-narodna-zajednica-dnz-bih': "#396ccc",
'demokratska-stranka-invalida-bih': "#888",
'hdz-bih-hrvatska-demokratska-zajednica-bosne-i-hercegovine': "#013971",
'hrvatska-koalicija-hdz-1990-hsp-bih': "#0076c0",
'hss-nhi': "#888",
'koalicija-preokret-gds-bih-i-nep-bih': "#888",
'liberalno-demokratska-stranka-evropska-ekoloska-stranka-e-5': "#888",
'narodna-stranka-radom-za-boljitak': "#888",
'nasa-stranka-nova-socijalisticka-partija-zdravko-krsmanovic': "#888",
'savez-za-bolju-buducnost-bih-sbb-bih-fahrudin-radoncic': "#888",
'sda-stranka-demokratske-akcije': "#009900",
'sdp-socijaldemokratska-partija-bih': "#de0023",
'sdu-bih-socijaldemokratska-unija-bosne-i-hercegovine': "#888",
'stranka-demokratske-aktivnosti-a-sda': "#888",
'stranka-kokuza-skok': "#888",
'stranka-penzionera-umirovljenika-bosne-i-hercegovine': "#888",
'stranka-za-bosnu-i-hercegovinu': "#888",
'stranka-za-narod-bosne-i-hercegovine': "#888",
'demokratska-partija-dragan-chavitsh': "#888",
'dns-demokratski-narodni-savez': "#888",
'narodna-demokratska-stranka': "#888",
'pdp-partija-demokratskog-progresa': "#888",
'savez-za-demokratsku-srpsku': "#888",
'savez-nezavisnikh-sotsijaldemokrata-snsd-milorad-dodik': "#af251b",
'sds-srpska-demokratska-stranka': "#2e3293",
'sotsijalistichka-partija': "#888",
'srpska-napredna-stranka': "#888",
'srpska-radikalna-stranka-dr-vojislav-sheshelj': "#888",
'srpska-radikalna-stranka-republike-srpske': "#888",
'tomitsh-milosh-nezavisni-kandidat': "#888"
}
}
def winner(row):
mx = 0
for j in range(cands[0],cands[1]+1):
if row[j].strip() != '':
if int(row[j]) > mx:
mx = int(row[j])
out = candidates[j-cands[0]]
return slugify.slugify(out)
i = 0
dReader = csv.reader(open('forjson.csv'),delimiter=",")
for row in dReader:
if i == 0:
candidates = []
for j in range(cands[0],cands[1]+1):
candidates.append(row[j].strip())
jsono['candidates'] = candidates
else:
votes = []
for j in range(cands[0],cands[1]+1):
if row[j].strip() == '':
votes.append(0)
else:
votes.append(int(row[j].strip()))
t = {
'votes': votes,
'lat': float(row[latc].strip()),
'lng': float(row[lngc].strip()),
'place': row[namec].strip(),
'id': row[idc].strip(),
'population': int(row[populationc].strip()),
'winner_class': winner(row)
}
jsono['votes'].append(t)
#raise(Exception,'')
i = i + 1
with open('ba2010.json', 'w') as outfile:
json.dump(jsono, outfile)
id lat lng name BOSS - BOSANSKA STRANKA - MIRNES AJANOVIĆ BPS - SEFER HALILOVIĆ DEMOKRATSKA NARODNA ZAJEDNICA - DNZ BIH DEMOKRATSKA STRANKA INVALIDA BIH HDZ BIH - HRVATSKA DEMOKRATSKA ZAJEDNICA BOSNE I HERCEGOVINE HRVATSKA KOALICIJA HDZ 1990 - HSP BIH HSS - NHI KOALICIJA PREOKRET: GDS BIH I NEP BIH LIBERALNO DEMOKRATSKA STRANKA - EVROPSKA EKOLOŠKA STRANKA E-5 NARODNA STRANKA RADOM ZA BOLJITAK NAŠA STRANKA - NOVA SOCIJALISTIČKA PARTIJA ZDRAVKO KRSMANOVIĆ SAVEZ ZA BOLJU BUDUĆNOST BIH - SBB BIH FAHRUDIN RADONČIĆ SDA - STRANKA DEMOKRATSKE AKCIJE SDP - SOCIJALDEMOKRATSKA PARTIJA BIH SDU BIH - SOCIJALDEMOKRATSKA UNIJA BOSNE I HERCEGOVINE STRANKA DEMOKRATSKE AKTIVNOSTI A-sda STRANKA KOKUZA - SKOK STRANKA PENZIONERA - UMIROVLJENIKA BOSNE I HERCEGOVINE STRANKA ZA BOSNU I HERCEGOVINU STRANKA ZA NAROD BOSNE I HERCEGOVINE ДЕМОКРАТСКА ПАРТИЈА - ДРАГАН ЧАВИЋ ДНС - ДЕМОКРАТСКИ НАРОДНИ САВЕЗ НАРОДНА ДЕМОКРАТСКА СТРАНКА ПДП - ПАРТИЈА ДЕМОКРАТСКОГ ПРОГРЕСА САВЕЗ ЗА ДЕМОКРАТСКУ СРПСКУ САВЕЗ НЕЗАВИСНИХ СОЦИЈАЛДЕМОКРАТА - СНСД - МИЛОРАД ДОДИК СДС - СРПСКА ДЕМОКРАТСКА СТРАНКА СОЦИЈАЛИСТИЧКА ПАРТИЈА СРПСКА НАПРЕДНА СТРАНКА СРПСКА РАДИКАЛНА СТРАНКА ДР ВОЈИСЛАВ ШЕШЕЉ СРПСКА РАДИКАЛНА СТРАНКА РЕПУБЛИКЕ СРПСКЕ ТОМИЋ МИЛОШ - НЕЗАВИСНИ КАНДИДАТ Total
34 44.7721811 17.191 Banja Luka 106 327 301 123 96 1783 552 298 837 835 4166 5012 1768 7804 665 47410 8102 2273 1351 1456 1251 86516
133 43.8786277 18.3001767 Novi Grad Sarajevo 2110 3120 66 129 635 206 116 142 181 1847 1403 10866 7959 16150 1580 313 1788 857 5596 97 678 55839
93 44.2034392 17.9077432 Zenica 883 1310 93 239 1194 524 60 85 265 3220 727 9901 11810 15061 111 770 1362 3108 1478 191 52392
50 44.5374611 18.6734688 Tuzla 3493 821 335 2730 404 198 110 2527 896 8488 4294 23321 89 155 1597 447 2118 199 52222
29 44.75 19.216667 Bijeljina 23 41 20 30 6 12 228 503 936 741 23 25 206 729 1357 91 2198 425 19411 15442 2575 1364 1913 319 48618
38 44.7348727 18.0842548 Doboj 21 58 13 263 224 20 451 605 1025 2571 33 58 655 894 2147 256 1119 698 14644 10430 519 126 663 232 37725
9 44.9778368 16.7060617 Prijedor 31 67 52 7 5 484 529 1106 2442 1416 767 7451 549 1327 100 12192 4972 320 640 785 732 35974
139 43.8627466 18.3960211 Novo Sarajevo 718 1510 41 72 554 230 71 124 168 1146 1527 6196 4037 11228 1108 209 1247 786 3079 56 541 34648
151-7 43.333333 17.8 Mostar 9 20 0 91 6318 4338 0 8 1 1242 346 90 379 243 8 11 62 2 75 0 493 423 61 2051 192 8356 7097 220 238 791 235 15 33415
200 44.8726563 18.8106276 Brčko 105 175 9 14 2854 668 75 37 4 32 148 1369 2486 7675 41 260 56 62 1086 352 305 30 701 44 5677 5917 930 281 342 158 31893
136 43.896586 18.4185617 Centar Sarajevo 488 1269 54 60 327 163 56 150 173 1219 1761 4988 3853 10851 1149 199 959 606 2973 37 414 31749
83 44.3868886 19.103209 Zvornik 12 157 9 9 1 151 317 1531 1007 6 22 20 1620 206 2911 156 752 553 12061 5207 634 1123 312 148 3 28928
131 43.8314063 18.3002114 Ilidža 784 1844 26 52 364 128 78 59 98 1378 452 5496 4154 6351 887 145 623 370 4290 56 251 27886
79 44.45 18.65 Živinice 1684 723 218 781 36 37 31 1036 109 2341 4720 8767 142 1561 511 437 2753 12 25899
3 44.816667 15.866667 Bihać 121 336 164 52 538 315 1448 301 2206 5131 11940 169 965 1710 75 7 50 25528
2 44.9690446 15.9431582 Cazin 60 133 2451 39 46 17 910 248 948 6906 5570 29 6505 671 48 4 4 24589
91 44.2253642 17.6429463 Travnik 159 388 20 100 3539 844 524 23 25 1676 153 4434 5345 4138 47 117 345 1916 68 53 23914
10 45.1465976 17.2544232 Gradiška 31 32 46 9 7 281 251 260 782 512 397 575 257 2120 45 12074 3657 181 1221 241 353 23332
44 44.7051702 18.3104025 Gračanica 745 622 108 36 12 54 162 562 362 2122 5479 9688 141 125 485 243 860 8 21814
47 44.5336231 18.5316719 Lukavac 836 365 272 334 64 75 76 462 156 2561 5055 8679 98 86 507 209 1610 193 21638
137 43.8885914 18.4665442 Stari Grad Sarajevo 486 1116 32 58 58 32 15 72 99 656 603 4511 2746 5847 714 164 728 365 2188 40 69 20599
116 43.9887651 18.1798837 Visoko 289 1037 17 68 101 51 3 18 149 2577 101 3522 4670 4680 28 165 494 2100 102 26 20198
39 44.6166027 17.9914718 Tešanj 81 1084 14 28 107 88 3 9 20 436 90 1197 6405 6967 17 69 283 2441 135 6 19480
49 44.7 18.483333 Srebrenik 737 771 114 793 30 47 162 481 90 2048 4446 8334 43 51 159 173 661 10 19150
94 44.128014 18.1178262 Kakanj 243 410 16 30 1469 69 21 14 47 1238 69 2648 6365 4321 19 138 215 1317 111 19 18779
74 44.6063199 17.8595342 Teslić 8 4 3 78 80 11 157 113 851 791 14 7 1111 312 129 1462 655 43 5668 5672 512 71 648 99 18499
25 44.8775521 18.425887 Gradačac 293 703 78 615 29 29 9 670 106 3110 5076 5792 26 188 160 154 278 28 17344
1 45.1838373 15.8065454 Velika Kladuša 45 32 10870 31 107 12 1619 42 426 2088 1104 8 272 334 9 10 8 17017
77 44.4437217 18.1451051 Zavidovići 280 553 28 53 203 59 4 36 19 1065 99 2856 3871 5837 21 197 447 1175 123 51 16977
13 44.8678652 17.6618242 Prnjavor 4 20 10 7 6 144 115 229 350 205 659 348 205 598 26 7242 6021 112 71 179 148 16699
7 45.0486976 16.3746171 Novi Grad 6 10 3 0 3 58 165 1214 665 269 40 991 40 1278 34 6752 3707 142 60 119 991 16547
11 44.9064386 17.3014638 Laktaši 6 15 7 8 1 114 13 4 24 4 431 170 51 530 46 10995 2255 349 104 177 214 15518
80 44.4601779 18.8391098 Kalesija 577 1006 80 12 9 166 3 277 39 1606 4104 6081 209 251 157 190 654 5 15426
78 44.4094788 18.5248551 Banovići 157 121 55 36 11 26 3 36 16 695 8348 4658 9 66 77 64 291 14 14683
182 42.712 18.346 Trebinje 0 5 4 1 1 156 20 9 43 4 3 24 10 986 182 25 1675 308 6118 3103 533 50 387 683 10 14340
109 44.05 17.45 Bugojno 175 453 9 45 1133 556 194 30 32 617 60 2733 2445 4348 24 70 347 677 98 31 14077
127 43.6536202 17.9590172 Konjic 122 471 13 430 129 1070 61 2114 4130 3465 100 1497 13602
106 43.8249858 17.0076892 Livno 9 22 22 18 5761 2635 2606 57 310 794 700 5 12 121 5 32 43 13152
150 43.383333 17.592778 Široki Brijeg 4 1 200 8538 2163 2045 1 10 3 49 25 6 13045
32 44.7639581 16.664612 Sanski Most 42 66 44 26 56 16 39 106 2007 3994 3566 50 103 2002 31 68 195 12411
112 44.150897 17.7905271 Vitez 51 136 12 15 3858 1814 342 5 11 586 45 1497 1717 1661 9 59 69 355 14 26 12282
135 43.9022283 18.3425874 Vogošća 263 757 12 19 36 16 11 20 47 390 130 2088 3623 2460 380 72 401 97 1276 17 119 12234
130 43.8218843 18.1988004 Hadžići 409 763 16 19 44 13 5 69 15 239 42 1567 2787 2854 335 72 299 119 1918 18 20 11623
173 43.1118267 17.7054838 Čapljina 8 58 19 6551 2266 189 28 451 896 842 38 221 11567
24 44.9569258 18.3015919 Modriča 8 7 2 95 30 6 96 145 148 428 5 2 133 230 399 37 252 202 5306 3385 138 56 257 58 11425
75 44.4264287 18.0374164 Žepče 17 179 7 14 4239 926 19 4 8 843 168 544 2107 1276 9 76 160 689 32 40 11357
65 44.3398061 17.2712934 Jajce 61 91 10 24 2568 1185 368 11 11 150 29 1350 2236 2245 14 54 85 480 25 84 11081
14 44.9764185 17.9070412 Derventa 8 7 10 144 171 15 107 98 81 226 5 0 82 175 51 88 643 39 5233 3175 113 179 184 47 10881
4 44.889004 16.1485765 Bosanska Krupa 80 87 44 27 22 4 98 68 1105 2741 4561 17 1227 685 18 15 72 10871
167 43.6685443 18.9748537 Goražde 161 639 13 13 17 20 3 44 12 798 52 1438 1861 3203 108 125 159 137 1874 8 127 10812
8 45.183333 16.8 Bosanska Dubica 6 10 5 1 3 227 36 176 195 164 155 295 40 1547 47 5061 2265 169 83 78 191 10754
12 45.0988684 17.5217027 Srbac 4 5 1 1 3 363 11 28 24 27 768 72 239 553 15 6525 1523 54 113 73 60 10462
111 44.1731869 17.6593749 Novi Travnik 60 178 9 38 2610 550 591 8 12 1132 33 945 1365 2112 24 52 108 449 39 28 10343
166 43.505478 18.7772645 Foča 4 4 2 3 1 771 11 71 10 1 1 13 12 59 907 40 872 25 4283 2608 61 18 211 115 3 10106
144 43.816667 18.569444 Pale 1 2 0 2 1 110 5 4 2 1 0 28 2 39 225 42 1373 158 3945 3026 37 136 418 95 8 9660
171 43.1989428 17.5466671 Ljubuški 5 5 18 4970 3486 941 6 38 16 136 20 13 9654
42 44.5454847 18.1033619 Maglaj 60 243 37 26 434 31 5 8 7 178 78 982 3068 3164 9 97 233 770 50 89 9569
110 43.9375436 17.5880463 Gornji Vakuf 74 113 2 20 1507 1233 99 5 5 308 23 625 3255 1357 6 46 39 640 16 3 9376
56 44.694444 18.997778 Ugljevik 0 6 2 4 0 1 14 6 502 10 1 3 6 135 76 7 847 78 3484 2806 192 123 329 652 9284
118 43.9486183 18.2648525 Ilijaš 298 529 13 11 69 13 31 8 157 336 52 1485 2245 2153 119 89 190 58 1001 10 53 8920
64 44.416667 17.083333 Mrkonjić Grad 9 7 4 7 1 107 15 56 31 7 185 276 39 598 150 4847 1225 622 30 147 399 8762
115 43.9399783 18.0786274 Kiseljak 38 186 7 15 3580 526 163 3 5 891 52 554 968 1037 15 31 94 430 17 23 8635
70 44.622222 17.370278 Kotor-Varoš 3 62 30 149 3 48 209 445 141 217 66 228 34 1787 12 2936 1885 29 28 99 203 8614
132 43.7911638 18.3749814 Istočna Ilidža 2 2 0 5 0 58 20 3 10 2 0 24 3 105 96 4 673 55 3950 2828 22 23 124 23 1 8033
104 44.1858792 19.3326154 Bratunac 3 13 2 0 0 28 23 878 242 3 8 6 150 52 436 18 257 299 2434 1060 35 94 1727 155 5 7928
35 44.724837 17.3220709 Čelinac 7 2 1 6 0 38 15 27 61 14 180 693 116 474 36 4018 1867 169 24 89 68 7905
22 45.0361554 18.6937329 Orašje 29 18 61 4104 2176 4 0 67 21 353 298 323 7 16 31 79 77 4 7668
113 44.097527 17.8802154 Busovača 54 130 7 19 2360 980 117 4 9 316 22 612 1175 1233 10 39 70 279 120 14 7570
5 45.0510883 16.0518078 Bužim 20 40 78 9 9 2 61 0 661 3252 796 11 1058 1344 12 0 0 7353
54 44.6323265 18.8432361 Lopare 0 3 0 1 0 0 27 7 88 50 0 0 4 26 78 47 878 12 2235 3182 441 89 120 60 7348
124 43.7187433 17.2236492 Tomislavgrad 2 13 9 7 2946 3155 110 7 172 369 402 2 6 104 3 2 5 7314
121 43.9340953 18.8019069 Sokolac 0 2 0 0 0 86 5 6 10 2 0 13 8 19 15 19 550 17 2469 3498 29 98 250 34 2 7132
21 45.0610659 18.4690346 Šamac 0 1 3 83 91 3 79 28 148 121 2 2 15 457 620 17 693 41 2370 1753 183 86 201 77 7074
117 44.0181484 18.2612953 Breza 121 332 7 28 39 14 9 26 10 840 50 1192 1467 1499 15 78 314 938 35 10 7024
176 43.0851515 17.9592754 Stolac 11 71 5 3093 886 119 13 447 1370 523 25 223 6786
148 43.4719941 17.3296617 Posušje 0 1 48 3211 2956 285 1 3 0 43 10 6 6564
89 44.1440673 17.398111 Donji Vakuf 125 310 11 22 15 11 4 16 41 331 72 1620 925 2087 14 37 86 645 49 10 6431
59 44.5339817 16.7747156 Ključ 16 98 17 13 21 7 16 57 469 1686 3131 6 408 385 8 5 48 6391
17 45.0101422 18.3262539 Odžak 58 22 11 1927 1230 12 5 263 18 347 972 1055 4 17 67 46 294 10 6358
161 43.2574658 18.1123652 Nevesinje 1 0 2 0 1 98 5 18 5 0 1 9 4 477 60 13 535 13 2550 1136 347 99 295 604 1 6274
125 43.8212183 17.6092972 Prozor 22 150 5 1838 2621 102 9 179 762 298 18 247 6251
98 44.2246967 18.6918556 Kladanj 361 263 51 9 3 12 6 188 65 581 1292 1470 411 29 110 210 1100 10 6171
180 42.8756616 18.4292187 Bileća 0 1 4 0 0 113 2 2 4 0 0 2 1 66 92 4 201 23 2236 1809 158 13 269 974 4 5978
16 45.133333 17.983333 Brody 1 7 0 77 39 36 50 16 97 140 4 1 101 320 108 40 460 36 2504 756 795 39 138 40 5805
88 44.2837305 17.0877754 Šipovo 2 3 0 1 1 22 16 15 20 61 87 80 509 440 8 3621 798 20 26 55 19 5804
103 44.1799774 18.9418196 Vlasenica 4 10 0 0 0 23 17 246 31 1 13 4 53 10 18 32 309 13 2500 2230 51 89 74 17 3 5748
114 43.9638288 17.8966344 Fojnica 47 124 9 7 870 261 115 3 10 436 20 820 760 1218 10 40 87 794 17 10 5658
149 43.3746502 17.4096253 Grude 0 2 37 3105 1381 948 3 8 1 80 4 9 5578
82 44.4902356 19.0048278 Sapna 41 97 14 4 1 36 0 15 5 376 3443 644 19 34 15 13 794 22 5573
147 43.783333 19.283333 Višegrad 3 4 1 0 0 63 10 76 34 1 7 8 18 200 122 12 209 9 2219 2151 59 8 177 117 5 5513
126 43.6577331 17.760399 Jablanica 52 248 18 188 79 241 15 1147 1134 1805 68 431 5426
96 44.1265438 18.5826846 Olovo 83 145 7 17 39 5 2 2 8 167 32 691 2141 1167 9 35 61 753 30 6 5400
172 43.2196802 17.6925674 Čitluk 1 1 7 3365 1785 83 3 6 1 44 10 4 5310
68 44.4869469 17.3804348 Kneževo 1 3 1 2 2 52 38 12 32 43 53 165 214 1106 53 2292 694 140 124 53 49 5129
36 44.7311051 18.1911809 Doboj-Istok 155 97 36 10 1 305 19 35 55 630 911 2029 23 364 80 60 250 0 5060
140 43.7968721 18.4252786 Istočno Novo Sarajevo 0 0 2 1 1 49 7 3 4 3 0 24 1 29 52 4 597 51 2679 1317 10 24 152 15 1 5026
164 43.1672447 18.5360484 Gacko 1 1 2 0 0 7 2 10 5 0 0 0 5 33 25 1 267 74 1916 1702 532 15 133 262 3 4996
105 44.1039762 19.2997218 Srebrenica 2 13 2 1 1 35 107 622 73 2 5 4 350 42 303 6 98 111 2127 774 33 32 156 30 0 4929
146 43.7988425 19.0021097 Rogatica 1 3 3 3 0 165 21 22 19 1 2 7 8 244 61 7 397 16 1775 1716 122 91 179 19 2 4884
101 44.3070961 18.8434434 Šekovići 0 3 1 0 0 26 13 0 5 0 0 6 1 38 8 10 550 28 2484 1468 167 16 44 7 0 4875
95 44.1618902 18.3268323 Vareš 66 182 2 5 805 114 96 4 5 224 65 795 950 1150 7 23 72 134 16 14 4729
52 44.716667 18.816667 Čelić 103 93 31 113 15 4 1 149 9 317 1968 768 19 29 34 107 660 1 4421
185 44.1129313 19.0900007 Milići 0 1 1 1 0 15 8 261 12 0 1 1 136 13 17 6 147 47 2677 747 8 28 101 21 2 4251
61 44.4671072 16.7843428 Ribnik 1 1 0 1 0 6 2 1 11 0 248 45 24 204 3 2367 385 77 7 40 40 3463
45 44.6778754 18.223951 Petrovo 1 0 0 0 0 0 15 2 0 1 1 1 1 107 153 3 40 14 1812 1011 56 22 129 11 3380
170 43.616667 19.366667 Rudo 0 2 0 0 0 37 8 16 9 0 3 1 5 78 45 9 95 10 2060 570 11 11 75 286 3 3334
57 44.366667 16.383333 Drvar 2 4 13 7 82 264 26 60 24 1 66 2 4 6 1 566 2142 3270
55 44.6025007 18.9845053 Teočak 56 45 16 4 0 8 1 86 2 341 1453 593 8 34 25 14 434 1 3121
30 44.550306 16.364376 Bosanski Petrovac 7 12 187 9 10 3 14 79 323 290 417 8 109 258 4 38 954 2722
129 43.8656167 18.034588 Kreševo 5 10 1 1 1255 243 59 1 2 411 5 95 171 179 1 6 23 9 2 2 2481
169 43.5571062 19.0735581 Čajniče 0 1 0 0 0 16 4 6 2 0 0 0 17 4 32 0 49 7 1340 937 5 5 35 15 0 2475
184 45.2280258 16.5396362 Hrvatska Kostajnica 14 4 3 0 0 12 18 62 130 102 7 89 8 198 3 872 594 105 38 21 53 2333
123 44.083333 18.95 Han-Pijesak 1 1 0 0 0 4 4 11 4 0 0 4 0 2 2 12 36 5 944 1071 12 39 50 30 0 2232
37 44.6706838 18.0636308 Doboj-Jug 6 38 0 6 5 4 1 2 2 110 25 125 592 996 0 6 53 246 11 2 2230
26 44.9 18.61 Pelagićevo 0 0 1 94 132 2 3 0 2 9 0 0 0 23 112 1 244 5 671 487 174 4 73 4 2041
179 42.941505 18.083766 Ljubinje 0 0 4 1 0 5 1 0 3 0 0 1 0 60 11 0 77 3 762 959 12 6 76 11 1 1993
81 44.4009766 18.9621905 Osmaci 0 4 0 0 0 28 14 121 23 0 0 1 2 21 22 1 172 111 751 402 35 155 41 6 0 1910
33 44.8562873 16.6625953 Oštra Luka 1 3 1 2 0 14 6 1 4 1 74 114 28 106 9 980 206 73 34 40 62 1759
183 44.6898979 17.9748688 Usora 1 3 0 1 556 482 203 1 1 185 8 8 24 114 2 0 32 14 2 1 1638
20 45.0528897 18.5690443 Domaljevac-Šamac 0 1 1 1115 417 2 0 42 11 1 1 16 1 1 1 5 3 2 1620
85 44.0461726 16.8557453 Glamoč 4 4 2 3 248 157 121 5 33 243 81 46 8 14 0 186 449 1604
141 43.7003215 18.3014505 Trnovo 9 8 1 1 2 1 1 1 2 27 10 62 403 123 29 5 8 15 823 3 14 1548
18 45.0286713 18.2508514 Vukosavlje 1 7 0 25 30 6 4 60 262 241 7 3 104 4 50 4 78 28 374 152 22 5 20 6 1493
163 43.5 18.45 Kalinovik 0 0 0 0 0 7 0 0 4 0 0 0 0 27 9 0 30 3 877 358 21 7 74 61 0 1478
107 43.9916896 17.2803166 Kupres 5 2 3 4 768 438 11 2 10 17 45 0 4 37 2 11 62 1421
174 42.9233 17.6156 Neum 0 0 2 781 508 25 2 5 1 63 6 1 1394
23 44.9414 18.6461 Donji Žabar 0 0 1 0 0 0 0 0 0 1 0 0 0 18 28 1 12 5 435 585 25 11 78 1 1201
177 43.1210756 18.0717219 Berkovići 0 0 0 0 1 1 1 1 0 2 0 0 0 18 148 1 43 2 387 332 24 4 23 15 0 1003
165 43.6157401 18.6956948 Foča 58 103 2 0 1 0 0 0 1 34 5 97 311 197 1 16 7 5 90 1 22 951
6 44.8889748 16.3126863 Krupa na Uni 0 0 0 0 0 1 0 0 0 0 6 272 9 45 0 222 262 4 3 17 22 863
168 43.6906477 19.0889003 Ustiprača 4 5 1 0 1 18 19 81 37 1 0 3 40 68 8 1 53 0 182 257 4 1 43 27 0 854
84 44.1790899 16.362569 Bosansko Grahovo 0 1 4 1 144 20 75 2 4 1 8 0 1 6 2 124 438 831
142 43.6650404 18.4469906 Trnovo 0 1 1 2 0 4 3 3 6 0 0 3 4 10 15 0 72 9 417 204 2 3 17 4 0 780
138 43.8805734 18.5145331 Istočni Stari Grad 0 0 0 0 0 2 0 0 0 0 0 4 0 1 7 1 59 0 226 376 0 4 33 10 0 723
181 42.877476 17.961381 Ravno 2 0 6 267 353 14 6 9 13 12 1 5 688
67 44.3776703 17.4118984 Dobretići 0 0 0 2 200 324 78 0 0 0 0 1 0 1 5 0 1 0 0 0 612
66 44.091396 18.1878872 Jezero 0 0 0 1 0 0 9 5 23 28 4 16 1 24 25 149 124 19 1 3 38 470
143 43.7501148 18.786974 Pale 4 7 0 1 2 1 0 1 0 9 0 40 273 59 5 2 2 2 28 0 0 436
31 44.5 16.466667 Petrovac 6 0 0 0 1 4 0 0 4 1 5 98 0 14 1 217 10 9 1 4 1 376
108 44.0791189 17.1629795 Kupres 2 1 0 0 0 1 0 0 1 0 1 11 1 13 0 120 38 0 1 5 1 196
58 44.4052042 16.6293814 Istočni Drvar 0 0 0 0 0 0 0 0 0 0 0 5 0 12 0 51 2 11 0 0 0 81
158 43.4023954 18.0124469 Istočni Mostar 0 0 0 0 0 0 0 1 1 0 0 0 0 8 0 0 1 0 1 44 0 1 0 0 0 57
# -*- coding: utf-8 -*-
# geocoding using open street map (centers)
# http://wiki.openstreetmap.org/wiki/Nominatim
import csv
import requests
import json
outfile = open('geocodedg.csv', 'wt')
outwriter = csv.writer(outfile, quoting=csv.QUOTE_NONNUMERIC)
i = 0
dReader = csv.reader(open('municipality_ids.csv'),delimiter=",")
for row in dReader:
if i > 0:
#url = "http://nominatim.openstreetmap.org/search?country=Bosnia%20i%20Herzegovina&format=json&accept-language=bs&city=" + row[1].strip()
url = "http://maps.googleapis.com/maps/api/geocode/json?address="+row[1]+"&sensor=false&region=ba&language=bs";
r = requests.get(url)
djson = json.loads(r.text)
#raise(Exception,'')
#OSM
# if len(djson) > 0:
# lat = djson[0]['lat']
# lon = djson[0]['lon']
# dname = djson[0]['display_name']
#google
if len(djson['results']) > 0:
lat = djson['results'][0]['geometry']['location']['lat']
lon = djson['results'][0]['geometry']['location']['lng']
dname = djson['results'][0]['address_components'][0]['long_name']
else:
lat = ''
lon = ''
dname = ''
orow = row
orow = orow + [lat,lon,dname]
outwriter.writerow(orow)
#raise(Exception,'')
i = i + 1
print(i)
outfile.close()
001 Velika Kladusa 45.1854105 15.8070634 Velika Kladuša, Općina Velika Kladuša, Unsko-sanski kanton, Entitet Federacija Bosne i Hercegovine
002 Cazin 44.9667583 15.9424791 Cazin, Općina Cazin, Unsko-sanski kanton, Entitet Federacija Bosne i Hercegovine
003 Bihac 44.8146409 15.8690863 Bihać, Grad Bihać, Unsko-sanski kanton, Entitet Federacija Bosne i Hercegovine, 77000
004 Bosanska Krupa 44.8840208 16.1528053 Bosanska Krupa, Općina Bosanska Krupa, Unsko-sanski kanton, Entitet Federacija Bosne i Hercegovine
005 Buzim 45.0625034 16.0316808 Bužim, Općina Bužim, Unsko-sanski kanton, Entitet Federacija Bosne i Hercegovine
006 Krupa Na Uni
007 Novi Grad 45.090718 18.3165467 Novi Grad, Općina Odžak, Posavski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
008 Kozarska Dubica
009 Prijedor
010 Gradiska
011 Laktasi
012 Srbac
013 Prnjavor 44.1693202 17.8357076037563 Prnjavor, Srednjobosanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
014 Derventa
016 Brod 44.8609945 18.7684022 Brod, Brčko, Brčko distrikt Bosne i Hercegovine, Bosna i Hercegovina
017 Odzak 45.0125273 18.3269719 Odžak, Općina Odžak, Posavski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
018 Vukosavlje
020 Domaljevac-samac
021 Samac
022 Orasje 45.0340351 18.6951811 Orašje, Općina Orašje, Posavski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
023 Donji Zabar
024 Modrica
025 Gradacac 44.8779001 18.4253061 Gradačac, Općina Gradačac, Tuzlanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
026 Pelagicevo
029 Bijeljina
030 Bosanski Petrovac 44.5560108 16.369403 Bosanski Petrovac, Općina Bosanski Petrovac, Unsko-sanski kanton, Entitet Federacija Bosne i Hercegovine
031 Petrovac 44.5560108 16.369403 Bosanski Petrovac, Općina Bosanski Petrovac, Unsko-sanski kanton, Entitet Federacija Bosne i Hercegovine
032 Sanski Most 44.7646228 16.6667645 Sanski Most, Općina Sanski Most, Unsko-sanski kanton, Entitet Federacija Bosne i Hercegovine, 79260
033 Ostra Luka 43.9465225 18.2548926 Luka, Općina Ilijaš, Kanton Sarajevo, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
034 Banja Luka
035 Celinac
036 Doboj Istok
037 Doboj Jug 44.70089405 18.0494143707896 GORICIANA Doboj Jug, Općina Doboj Jug, Zeničko-dobojski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
038 Doboj 43.1507232 17.8338683 Doboj, Općina Čapljina, Hercegovačko-neretvanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
039 Tesanj 44.6133803 17.9862488 Tešanj, Općina Tešanj, Zeničko-dobojski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
042 Maglaj 44.5484095 18.0974771 Maglaj, Općina Maglaj, Zeničko-dobojski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
044 Gracanica 44.6995816 18.3073742 Gračanica, Općina Gračanica, Tuzlanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
045 Petrovo 44.0744366 16.8747742 Petrovo Vrelo, Općina Glamoč, Kanton 10, Entitet Federacija Bosne i Hercegovine
047 Lukavac 44.5333718 18.5269884 Lukavac, Općina Lukavac, Tuzlanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
049 Srebrenik 44.7039779 18.4914812 Srebrenik, Općina Srebrenik, Tuzlanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
050 Tuzla 44.5391105 18.675193 Tuzla, Općina Tuzla, Tuzlanski kanton, Entitet Federacija Bosne i Hercegovine, 75000, Bosna i Hercegovina
052 Celic 44.7225 18.8195679 Čelić, Općina Čelić, Tuzlanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
054 Lopare
055 Teocak 44.6781929 16.1313593 Teočak, Grad Bihać, Unsko-sanski kanton, Entitet Federacija Bosne i Hercegovine
056 Ugljevik
057 Drvar 44.374452 16.3854741 Drvar, Općina Drvar, Kanton 10, Entitet Federacija Bosne i Hercegovine
058 Istocni Drvar
059 Kljuc 44.533228 16.7749082 Ključ, Općina Ključ, Unsko-sanski kanton, Entitet Federacija Bosne i Hercegovine
061 Ribnik 44.1273274 16.8232418 Ribnik, Bosna i Hercegovina
064 Mrkonjic Grad
065 Jajce 44.3414932 17.2697162 Jajce, Grad Jajce, Srednjobosanski kanton, Entitet Federacija Bosne i Hercegovine
066 Jezero 44.0919851 18.1915784 Jezero, Općina Kakanj, Zeničko-dobojski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
067 Dobretici 44.3758348 17.4162503 Dobretići, Općina Dobretići, Srednjobosanski kanton, Entitet Federacija Bosne i Hercegovine
068 Knezevo
070 Kotor Varos
074 Teslic
075 Zepce 44.42554 18.0346324 Žepče, Općina Žepče, Zeničko-dobojski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
077 Zavidovici 44.4399853 18.1456919 Zavidovići, Općina Zavidovići, Zeničko-dobojski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
078 Banovici 44.4056526 18.5252473 Banovići, Općina Banovići, Tuzlanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
079 Zivinice 44.451574 18.6501306 Živinice, Općina Živinice, Tuzlanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
080 Kalesija 44.4450549 18.8764839 Kalesija, Općina Kalesija, Tuzlanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
081 Osmaci
082 Sapna 44.4916604 19.0027278 Sapna, Općina Sapna, Tuzlanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
083 Zvornik
084 Bosansko Grahovo 44.1808174 16.36568 Bosansko Grahovo, Općina Bosansko Grahovo, Kanton 10, Entitet Federacija Bosne i Hercegovine
085 Glamoc 44.0449478 16.8497438 Glamoč, Općina Glamoč, Kanton 10, Entitet Federacija Bosne i Hercegovine
088 Sipovo
089 Donji Vakuf 44.1446382 17.3984734 Donji Vakuf, Općina Donji Vakuf, Srednjobosanski kanton, Entitet Federacija Bosne i Hercegovine
091 Travnik 44.2260893 17.6628722 Travnik, Općina Travnik, Srednjobosanski kanton, Entitet Federacija Bosne i Hercegovine
093 Zenica 44.200713 17.9080954 Zenica, Grad Zenica, Zeničko-dobojski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
094 Kakanj 44.1275341 18.1169641 Kakanj, Općina Kakanj, Zeničko-dobojski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
095 Vares 44.1619839 18.3276571 Vareš, Općina Vareš, Zeničko-dobojski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
096 Olovo 44.1269033 18.580233 Olovo, Općina Olovo, Zeničko-dobojski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
098 Kladanj 44.2259412 18.6937539 Kladanj, Općina Kladanj, Tuzlanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
101 Sekovici
103 Vlasenica
104 Bratunac
105 Srebrenica
106 Livno 43.8259136 17.0042416 Livno, Općina Livno, Kanton 10, Entitet Federacija Bosne i Hercegovine
107 Kupres (fbih)
108 Kupres (rs)
109 Bugojno 44.0520688 17.4490834 Bugojno, Općina Bugojno, Srednjobosanski kanton, Entitet Federacija Bosne i Hercegovine
110 Gornji Vakuf - Uskoplje 43.9385698 17.583559 Gornji Vakuf-Uskoplje, Općina Gornji Vakuf, Srednjobosanski kanton, Entitet Federacija Bosne i Hercegovine
111 Novi Travnik 44.1707502 17.6576521 Novi Travnik, Općina Novi Travnik, Srednjobosanski kanton, Entitet Federacija Bosne i Hercegovine
112 Vitez 44.150409 17.791462 Vitez, Srednjobosanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
113 Busovaca 44.096806 17.879696 Busovača, Srednjobosanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
114 Fojnica 43.9631837 17.8997641 Fojnica, Općina Fojnica, Srednjobosanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
115 Kiseljak 43.9438892 18.0782979 Kiseljak, Općina Kiseljak, Srednjobosanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
116 Visoko 43.9890587 18.1817776 Visoko, Općina Visoko, Zeničko-dobojski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
117 Breza 44.0183108 18.2608208 Breza, Općina Visoko, Zeničko-dobojski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
118 Ilijas 43.95741315 18.2666574673534 Ilijaš, Općina Ilijaš, Kanton Sarajevo, Entitet Federacija Bosne i Hercegovine, 71380, Bosna i Hercegovina
121 Sokolac 44.7866105 15.8974607 Sokolac, Grad Bihać, Unsko-sanski kanton, Entitet Federacija Bosne i Hercegovine
123 Han Pijesak
124 Tomislavgrad 43.713651 17.2287125 Tomislavgrad, Općina Tomislavgrad (ex.Duvno), Kanton 10, Entitet Federacija Bosne i Hercegovine
125 Prozor-rama
126 Jablanica 43.6619559 17.7605996 Jablanica, Općina Jablanica, Hercegovačko-neretvanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
127 Konjic 43.6534481 17.962676 Konjic, Općina Konjic, Hercegovačko-neretvanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
129 Kresevo 43.8683908 18.0486381 Kreševo, Općina Kreševo, Srednjobosanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
130 Hadzici 43.8226456 18.2025181 Hadžići, Općina Hadžići, Kanton Sarajevo, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
131 Ilidza 43.8314309 18.3063998 Ilidža, Azići, Općina Ilidža, Kanton Sarajevo, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
132 Istocna Ilidza
133 Novi Grad Sarajevo
135 Vogosca 43.9023528 18.3429351 Vogošća, Opština Vogošća, Kanton Sarajevo, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
136 Centar Sarajevo
137 Stari Grad Sarajevo
138 Istocni Stari Grad
139 Novo Srajevo
140 Istocno Novo Srajevo
141 Trnovo (fbih)
142 Trnovo (rs)
143 Pale (fbih)
144 Pale (rs)
146 Rogatica
147 Visegrad
148 Posusje 43.4744218 17.3275959 Posušje, Općina Posušje, Zapadnohercegovački kanton, Entitet Federacija Bosne i Hercegovine
149 Grude 43.3723392 17.4146691 Grude, Općina Grude, Zapadnohercegovački kanton, Entitet Federacija Bosne i Hercegovine
150 Siroki Brijeg 43.3831944 17.5929153 Široki Brijeg, Općina Široki Brijeg, Zapadnohercegovački kanton, Entitet Federacija Bosne i Hercegovine
158 Istocni Mostar
161 Nevesinje
163 Kalinovik
164 Gacko
165 Foca (fbih)
166 Foca (rs)
167 Gorazde 43.667529 18.9721393 Goražde, Općina Goražde, Bosansko-podrinjski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
168 Novo Gorazde
169 Cajnice
170 Rudo 43.6563017 17.5582044 Rudo Polje, Općina Jablanica, Hercegovačko-neretvanski kanton, Entitet Federacija Bosne i Hercegovine
171 Ljubuski 43.1973791 17.5461833 Ljubuški, Općina Ljubuški, Zapadnohercegovački kanton, Entitet Federacija Bosne i Hercegovine
172 Citluk 43.2267192 17.6963313 Čitluk, Općina Čitluk, Hercegovačko-neretvanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
173 Capljina 43.1114824 17.7024797 Čapljina, Općina Čapljina, Hercegovačko-neretvanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
174 Neum 42.9277897 17.6177549 Neum, Općina Neum, Hercegovačko-neretvanski kanton, Entitet Federacija Bosne i Hercegovine
176 Stolac 43.0829465 17.9544491 Stolac, Općina Stolac, Hercegovačko-neretvanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
177 Berkovici
179 Ljubinje
180 Bileca
181 Ravno 42.887141 17.9695185 Ravno, Općina Ravno, Hercegovačko-neretvanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
182 Trebinje
183 Usora 44.6493892 17.9306465 Usora, Bosna i Hercegovina
184 Kostajnica 43.7164419 17.8117248 Kostajnica, Općina Konjic, Hercegovačko-neretvanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
185 Milici 44.4182327 18.4213386 Milići, Općina Banovići, Tuzlanski kanton, Entitet Federacija Bosne i Hercegovine, Bosna i Hercegovina
200 Brcko Distrikt Bih
001 Velika Kladusa 45.1838373 15.8065454 Velika Kladuša
002 Cazin 44.9690446 15.9431582 Cazin
003 Bihac 44.816667 15.866667 Bihać
004 Bosanska Krupa 44.889004 16.1485765 Bosanska Krupa
005 Buzim 45.0510883 16.0518078 Bužim
006 Krupa Na Uni 44.8889748 16.3126863 Krupa na Uni
007 Novi Grad 45.0486976 16.3746171 Novi Grad
008 Kozarska Dubica 45.183333 16.8 Bosanska Dubica
009 Prijedor 44.9778368 16.7060617 Prijedor
010 Gradiska 45.1465976 17.2544232 Gradiška
011 Laktasi 44.9064386 17.3014638 Laktaši
012 Srbac 45.0988684 17.5217027 Srbac
013 Prnjavor 44.8678652 17.6618242 Prnjavor
014 Derventa 44.9764185 17.9070412 Derventa
016 Brod 50.083141 25.15 Brody
017 Odzak 45.0101422 18.3262539 Odžak
018 Vukosavlje 45.0286713 18.2508514 Vukosavlje
020 Domaljevac-samac 45.0528897 18.5690443 Domaljevac-Šamac
021 Samac 45.0610659 18.4690346 Šamac
022 Orasje 45.0361554 18.6937329 Orašje
023 Donji Zabar 44.94139999999999 18.6461 Donji Žabar
024 Modrica 44.9569258 18.3015919 Modriča
025 Gradacac 44.8775521 18.425887 Gradačac
026 Pelagicevo 44.9 18.61 Pelagićevo
029 Bijeljina 44.75 19.216667 Bijeljina
030 Bosanski Petrovac 44.550306 16.364376 Bosanski Petrovac
031 Petrovac 42.205556 18.9425 Petrovac
032 Sanski Most 44.7639581 16.664612 Sanski Most
033 Ostra Luka 44.8562873 16.6625953 Oštra Luka
034 Banja Luka 44.7721811 17.191 Banja Luka
035 Celinac 44.724837 17.3220709 Čelinac
036 Doboj Istok 44.7311051 18.1911809 Doboj-Istok
037 Doboj Jug 44.6706838 18.0636308 Doboj-Jug
038 Doboj 44.7348727 18.0842548 Doboj
039 Tesanj 44.6166027 17.9914718 Tešanj
042 Maglaj 44.5454847 18.1033619 Maglaj
044 Gracanica 44.7051702 18.3104025 Gračanica
045 Petrovo 44.6778754 18.223951 Petrovo
047 Lukavac 44.5336231 18.5316719 Lukavac
049 Srebrenik 44.7 18.483333 Srebrenik
050 Tuzla 44.53746109999999 18.6734688 Tuzla
052 Celic 44.716667 18.816667 Čelić
054 Lopare 44.6323265 18.8432361 Lopare
055 Teocak 44.6025007 18.9845053 Teočak
056 Ugljevik 44.694444 18.997778 Ugljevik
057 Drvar 44.366667 16.383333 Drvar
058 Istocni Drvar 44.4052042 16.6293814 Istočni Drvar
059 Kljuc 44.5339817 16.7747156 Ključ
061 Ribnik 44.4671072 16.7843428 Ribnik
064 Mrkonjic Grad 44.416667 17.083333 Mrkonjić Grad
065 Jajce 44.3398061 17.2712934 Jajce
066 Jezero 44.091396 18.1878872 Jezero
067 Dobretici 44.3776703 17.4118984 Dobretići
068 Knezevo 44.4869469 17.3804348 Kneževo
070 Kotor Varos 44.622222 17.370278 Kotor-Varoš
074 Teslic 44.6063199 17.8595342 Teslić
075 Zepce 44.4264287 18.0374164 Žepče
077 Zavidovici 44.4437217 18.1451051 Zavidovići
078 Banovici 44.4094788 18.5248551 Banovići
079 Zivinice 44.45 18.65 Živinice
080 Kalesija 44.4601779 18.8391098 Kalesija
081 Osmaci 44.4009766 18.9621905 Osmaci
082 Sapna 44.4902356 19.0048278 Sapna
083 Zvornik 44.3868886 19.103209 Zvornik
084 Bosansko Grahovo 44.1790899 16.362569 Bosansko Grahovo
085 Glamoc 44.0461726 16.8557453 Glamoč
088 Sipovo 44.2837305 17.0877754 Šipovo
089 Donji Vakuf 44.1440673 17.398111 Donji Vakuf
091 Travnik 44.2253642 17.6429463 Travnik
093 Zenica 44.2034392 17.9077432 Zenica
094 Kakanj 44.128014 18.1178262 Kakanj
095 Vares 44.16189019999999 18.3268323 Vareš
096 Olovo 44.1265438 18.5826846 Olovo
098 Kladanj 44.2246967 18.6918556 Kladanj
101 Sekovici 44.3070961 18.8434434 Šekovići
103 Vlasenica 44.17997740000001 18.9418196 Vlasenica
104 Bratunac 44.1858792 19.3326154 Bratunac
105 Srebrenica 44.1039762 19.2997218 Srebrenica
106 Livno 43.8249858 17.0076892 Livno
107 Kupres (fbih) 43.9916896 17.2803166 Kupres
108 Kupres (rs) 44.0791189 17.1629795 Kupres
109 Bugojno 44.05 17.45 Bugojno
110 Gornji Vakuf - Uskoplje 43.9375436 17.5880463 Gornji Vakuf
111 Novi Travnik 44.1731869 17.6593749 Novi Travnik
112 Vitez 44.150897 17.7905271 Vitez
113 Busovaca 44.097527 17.8802154 Busovača
114 Fojnica 43.96382879999999 17.8966344 Fojnica
115 Kiseljak 43.9399783 18.0786274 Kiseljak
116 Visoko 43.98876509999999 18.1798837 Visoko
117 Breza 44.0181484 18.2612953 Breza
118 Ilijas 43.9486183 18.2648525 Ilijaš
121 Sokolac 43.9340953 18.8019069 Sokolac
123 Han Pijesak 44.083333 18.95 Han-Pijesak
124 Tomislavgrad 43.7187433 17.2236492 Tomislavgrad
125 Prozor-rama 43.8212183 17.6092972 Prozor
126 Jablanica 43.6577331 17.760399 Jablanica
127 Konjic 43.6536202 17.9590172 Konjic
129 Kresevo 43.8656167 18.034588 Kreševo
130 Hadzici 43.8218843 18.1988004 Hadžići
131 Ilidza 43.8314063 18.3002114 Ilidža
132 Istocna Ilidza 43.7911638 18.3749814 Istočna Ilidža
133 Novi Grad Sarajevo 43.8786277 18.3001767 Novi Grad Sarajevo
135 Vogosca 43.9022283 18.3425874 Vogošća
136 Centar Sarajevo 43.896586 18.4185617 Centar Sarajevo
137 Stari Grad Sarajevo 43.8885914 18.4665442 Stari Grad Sarajevo
138 Istocni Stari Grad 43.8805734 18.5145331 Istočni Stari Grad
139 Novo Srajevo 43.8627466 18.3960211 Novo Sarajevo
140 Istocno Novo Srajevo 43.79687209999999 18.4252786 Istočno Novo Sarajevo
141 Trnovo (fbih) 43.7003215 18.3014505 Trnovo
142 Trnovo (rs) 43.6650404 18.4469906 Trnovo
143 Pale (fbih) 43.75011480000001 18.786974 Pale
144 Pale (rs) 43.816667 18.569444 Pale
146 Rogatica 43.7988425 19.0021097 Rogatica
147 Visegrad 47.7829694 18.9733392 Visegrád
148 Posusje 43.4719941 17.3296617 Posušje
149 Grude 43.3746502 17.4096253 Grude
150 Siroki Brijeg 43.383333 17.592778 Široki Brijeg
158 Istocni Mostar 43.4023954 18.0124469 Istočni Mostar
161 Nevesinje 43.2574658 18.1123652 Nevesinje
163 Kalinovik 43.5 18.45 Kalinovik
164 Gacko 43.1672447 18.5360484 Gacko
165 Foca (fbih) 43.6157401 18.6956948 Foča
166 Foca (rs) 43.505478 18.7772645 Foča
167 Gorazde 43.6685443 18.9748537 Goražde
168 Novo Gorazde 43.6906477 19.0889003 Ustiprača
169 Cajnice 43.5571062 19.0735581 Čajniče
170 Rudo 43.616667 19.366667 Rudo
171 Ljubuski 43.1989428 17.5466671 Ljubuški
172 Citluk 43.2196802 17.6925674 Čitluk
173 Capljina 43.11182669999999 17.7054838 Čapljina
174 Neum 42.9233 17.6156 Neum
176 Stolac 43.08515149999999 17.9592754 Stolac
177 Berkovici 43.1210756 18.0717219 Berkovići
179 Ljubinje 42.941505 18.083766 Ljubinje
180 Bileca 42.8756616 18.4292187 Bileća
181 Ravno 42.87747600000001 17.961381 Ravno
182 Trebinje 42.712 18.346 Trebinje
183 Usora 44.6898979 17.9748688 Usora
184 Kostajnica 45.2280258 16.5396362 Hrvatska Kostajnica
185 Milici 44.11293130000001 19.0900007 Milići
200 Brcko Distrikt Bih 44.8726563 18.8106276 Brčko
1 Velika Kladusa 45.1838373 15.8065454 Velika Kladuša
2 Cazin 44.9690446 15.9431582 Cazin
3 Bihac 44.816667 15.866667 Bihać
4 Bosanska Krupa 44.889004 16.1485765 Bosanska Krupa
5 Buzim 45.0510883 16.0518078 Bužim
6 Krupa Na Uni 44.8889748 16.3126863 Krupa na Uni
7 Novi Grad 45.0486976 16.3746171 Novi Grad
8 Kozarska Dubica 45.183333 16.8 Bosanska Dubica
9 Prijedor 44.9778368 16.7060617 Prijedor
10 Gradiska 45.1465976 17.2544232 Gradiška
11 Laktasi 44.9064386 17.3014638 Laktaši
12 Srbac 45.0988684 17.5217027 Srbac
13 Prnjavor 44.8678652 17.6618242 Prnjavor
14 Derventa 44.9764185 17.9070412 Derventa
16 Brod 45.133333 17.983333 Brody
17 Odzak 45.0101422 18.3262539 Odžak
18 Vukosavlje 45.0286713 18.2508514 Vukosavlje
20 Domaljevac-samac 45.0528897 18.5690443 Domaljevac-Šamac
21 Samac 45.0610659 18.4690346 Šamac
22 Orasje 45.0361554 18.6937329 Orašje
23 Donji Zabar 44.9414 18.6461 Donji Žabar
24 Modrica 44.9569258 18.3015919 Modriča
25 Gradacac 44.8775521 18.425887 Gradačac
26 Pelagicevo 44.9 18.61 Pelagićevo
29 Bijeljina 44.75 19.216667 Bijeljina
30 Bosanski Petrovac 44.550306 16.364376 Bosanski Petrovac
31 Petrovac 44.5 16.466667 Petrovac
32 Sanski Most 44.7639581 16.664612 Sanski Most
33 Ostra Luka 44.8562873 16.6625953 Oštra Luka
34 Banja Luka 44.7721811 17.191 Banja Luka
35 Celinac 44.724837 17.3220709 Čelinac
36 Doboj Istok 44.7311051 18.1911809 Doboj-Istok
37 Doboj Jug 44.6706838 18.0636308 Doboj-Jug
38 Doboj 44.7348727 18.0842548 Doboj
39 Tesanj 44.6166027 17.9914718 Tešanj
42 Maglaj 44.5454847 18.1033619 Maglaj
44 Gracanica 44.7051702 18.3104025 Gračanica
45 Petrovo 44.6778754 18.223951 Petrovo
47 Lukavac 44.5336231 18.5316719 Lukavac
49 Srebrenik 44.7 18.483333 Srebrenik
50 Tuzla 44.5374611 18.6734688 Tuzla
52 Celic 44.716667 18.816667 Čelić
54 Lopare 44.6323265 18.8432361 Lopare
55 Teocak 44.6025007 18.9845053 Teočak
56 Ugljevik 44.694444 18.997778 Ugljevik
57 Drvar 44.366667 16.383333 Drvar
58 Istocni Drvar 44.4052042 16.6293814 Istočni Drvar
59 Kljuc 44.5339817 16.7747156 Ključ
61 Ribnik 44.4671072 16.7843428 Ribnik
64 Mrkonjic Grad 44.416667 17.083333 Mrkonjić Grad
65 Jajce 44.3398061 17.2712934 Jajce
66 Jezero 44.091396 18.1878872 Jezero
67 Dobretici 44.3776703 17.4118984 Dobretići
68 Knezevo 44.4869469 17.3804348 Kneževo
70 Kotor Varos 44.622222 17.370278 Kotor-Varoš
74 Teslic 44.6063199 17.8595342 Teslić
75 Zepce 44.4264287 18.0374164 Žepče
77 Zavidovici 44.4437217 18.1451051 Zavidovići
78 Banovici 44.4094788 18.5248551 Banovići
79 Zivinice 44.45 18.65 Živinice
80 Kalesija 44.4601779 18.8391098 Kalesija
81 Osmaci 44.4009766 18.9621905 Osmaci
82 Sapna 44.4902356 19.0048278 Sapna
83 Zvornik 44.3868886 19.103209 Zvornik
84 Bosansko Grahovo 44.1790899 16.362569 Bosansko Grahovo
85 Glamoc 44.0461726 16.8557453 Glamoč
88 Sipovo 44.2837305 17.0877754 Šipovo
89 Donji Vakuf 44.1440673 17.398111 Donji Vakuf
91 Travnik 44.2253642 17.6429463 Travnik
93 Zenica 44.2034392 17.9077432 Zenica
94 Kakanj 44.128014 18.1178262 Kakanj
95 Vares 44.1618902 18.3268323 Vareš
96 Olovo 44.1265438 18.5826846 Olovo
98 Kladanj 44.2246967 18.6918556 Kladanj
101 Sekovici 44.3070961 18.8434434 Šekovići
103 Vlasenica 44.1799774 18.9418196 Vlasenica
104 Bratunac 44.1858792 19.3326154 Bratunac
105 Srebrenica 44.1039762 19.2997218 Srebrenica
106 Livno 43.8249858 17.0076892 Livno
107 Kupres (fbih) 43.9916896 17.2803166 Kupres
108 Kupres (rs) 44.0791189 17.1629795 Kupres
109 Bugojno 44.05 17.45 Bugojno
110 Gornji Vakuf - Uskoplje 43.9375436 17.5880463 Gornji Vakuf
111 Novi Travnik 44.1731869 17.6593749 Novi Travnik
112 Vitez 44.150897 17.7905271 Vitez
113 Busovaca 44.097527 17.8802154 Busovača
114 Fojnica 43.9638288 17.8966344 Fojnica
115 Kiseljak 43.9399783 18.0786274 Kiseljak
116 Visoko 43.9887651 18.1798837 Visoko
117 Breza 44.0181484 18.2612953 Breza
118 Ilijas 43.9486183 18.2648525 Ilijaš
121 Sokolac 43.9340953 18.8019069 Sokolac
123 Han Pijesak 44.083333 18.95 Han-Pijesak
124 Tomislavgrad 43.7187433 17.2236492 Tomislavgrad
125 Prozor-rama 43.8212183 17.6092972 Prozor
126 Jablanica 43.6577331 17.760399 Jablanica
127 Konjic 43.6536202 17.9590172 Konjic
129 Kresevo 43.8656167 18.034588 Kreševo
130 Hadzici 43.8218843 18.1988004 Hadžići
131 Ilidza 43.8314063 18.3002114 Ilidža
132 Istocna Ilidza 43.7911638 18.3749814 Istočna Ilidža
133 Novi Grad Sarajevo 43.8786277 18.3001767 Novi Grad Sarajevo
135 Vogosca 43.9022283 18.3425874 Vogošća
136 Centar Sarajevo 43.896586 18.4185617 Centar Sarajevo
137 Stari Grad Sarajevo 43.8885914 18.4665442 Stari Grad Sarajevo
138 Istocni Stari Grad 43.8805734 18.5145331 Istočni Stari Grad
139 Novo Srajevo 43.8627466 18.3960211 Novo Sarajevo
140 Istocno Novo Srajevo 43.7968721 18.4252786 Istočno Novo Sarajevo
141 Trnovo (fbih) 43.7003215 18.3014505 Trnovo
142 Trnovo (rs) 43.6650404 18.4469906 Trnovo
143 Pale (fbih) 43.7501148 18.786974 Pale
144 Pale (rs) 43.816667 18.569444 Pale
146 Rogatica 43.7988425 19.0021097 Rogatica
147 Visegrad 43.783333 19.283333 Višegrad
148 Posusje 43.4719941 17.3296617 Posušje
149 Grude 43.3746502 17.4096253 Grude
150 Siroki Brijeg 43.383333 17.592778 Široki Brijeg
158 Istocni Mostar 43.4023954 18.0124469 Istočni Mostar
161 Nevesinje 43.2574658 18.1123652 Nevesinje
163 Kalinovik 43.5 18.45 Kalinovik
164 Gacko 43.1672447 18.5360484 Gacko
165 Foca (fbih) 43.6157401 18.6956948 Foča
166 Foca (rs) 43.505478 18.7772645 Foča
167 Gorazde 43.6685443 18.9748537 Goražde
168 Novo Gorazde 43.6906477 19.0889003 Ustiprača
169 Cajnice 43.5571062 19.0735581 Čajniče
170 Rudo 43.616667 19.366667 Rudo
171 Ljubuski 43.1989428 17.5466671 Ljubuški
172 Citluk 43.2196802 17.6925674 Čitluk
173 Capljina 43.1118267 17.7054838 Čapljina
174 Neum 42.9233 17.6156 Neum
176 Stolac 43.0851515 17.9592754 Stolac
177 Berkovici 43.1210756 18.0717219 Berkovići
179 Ljubinje 42.941505 18.083766 Ljubinje
180 Bileca 42.8756616 18.4292187 Bileća
181 Ravno 42.877476 17.961381 Ravno
182 Trebinje 42.712 18.346 Trebinje
183 Usora 44.6898979 17.9748688 Usora
184 Kostajnica 45.2280258 16.5396362 Hrvatska Kostajnica
185 Milici 44.1129313 19.0900007 Milići
200 Brcko Distrikt Bih 44.8726563 18.8106276 Brčko
<!DOCTYPE html>
<html>
<head>
<title>General Election in Bosnia and Herzegovina 2010</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"/>
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script>
// see http://leafletjs.com/reference.html
L_PREFER_CANVAS = true;
</script>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css">
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.ie.css" />
<![endif]-->
<script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.js"></script>
<style type="text/css">
html, body, #map {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
.leaflet-tile-pane {
opacity: .3
}
.leaflet-container {
background-color: #fff;
}
</style>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#">General Election in Bosnia and Herzegovina 2010</a>
</div>
</div>
</div>
<div style="position:fixed;top:50px;z-index:1000;">
<div class="alert alert-info" >The <strong>size</strong> of bubbles represents number of voters, the <strong>color</strong> represents the winner.</div>
</div> <div style="position:fixed;top:125px;z-index:1000;max-width:75px;">
<div class="alert alert-info" style="float:left;">
<svg height="20" width="20"><circle cx="10" cy="10" r="10" fill="#af251b"></svg> САВЕЗ НЕЗАВИСНИХ СОЦИЈАЛДЕМОКРАТА - СНСД - МИЛОРАД ДОДИК<br/>
<svg height="20" width="20"><circle cx="10" cy="10" r="10" fill="#de0023"></svg> SDP - SOCIJALDEMOKRATSKA PARTIJA BIH<br/>
<svg height="20" width="20"><circle cx="10" cy="10" r="10" fill="#009900"></svg> SDA - STRANKA DEMOKRATSKE AKCIJE<br/>
<svg height="20" width="20"><circle cx="10" cy="10" r="10" fill="#2e3293"></svg> СДС - СРПСКА ДЕМОКРАТСКА СТРАНКА
</div>
</div>
<div id="map" style="margin-top:40px;"></div>
<div class="alert alert-warning">Better to use D3+nicer tooltips as in <a href="http://bl.ocks.org/michalskop/9af4323004be2aa89438">Slovak elections maps</a></div>
<script type="text/javascript">
// Create the map
var map = L.map('map',{zoomControl: false}).setView([44.21,17.96], 8);
map.addControl( L.control.zoom({position: 'topright'}) );
// add an OpenStreetMap tile layer
// also see http://wiki.openstreetmap.org/wiki/Tiles
//L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
L.tileLayer('http://{s}.www.toolserver.org/tiles/bw-mapnik/{z}/{x}/{y}.png', {
attribution: 'CC-BY Michal Škop <a href="http://kohovolit.eu">KohoVolit.eu</a> | &copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
//add circles
$.getJSON( "ba2010.json", function (data) {
$.each(data.votes, function (index, value) {
description = "<strong>" + value.place + "</strong> (" + value.population + ")<br>";
tuples = [];
for (var key in value.votes) {
tuples.push([key,parseInt(value.votes[key])]);
}
tuples.sort(function(a, b) {
a = a[1];
b = b[1];
return a < b ? 1 : (a > b ? -1 : 0);
});
for (i = 0; i < 9; i++) {
tmp = Math.round(parseInt(tuples[i][1]) / parseInt(value.population) * 100);
description += data.candidates[tuples[i][0]] + ": " + tmp +"%<br>";
}
/*sum = 0;
$.each(value.description, function (i, v) {
tmp = Math.round(parseInt(v.value) / parseInt(value.population) * 1000) / 10;
description += v.name + ': ' + tmp + '% (' + v.value + ' hlasů)<br>';
sum += parseInt(v.value)
});
tmp = Math.round((parseInt(value.population) - sum) / parseInt(value.population) * 1000) / 10;
tmp2 = value.population - sum;
description += "Ostatní: " + tmp + '% (' + tmp2 + ' hlasů)';*/
circle = L.circle([value.lat, value.lng], Math.sqrt(parseInt(value.population)*2000), {
color: data.colors[value.winner_class],
fillColor: data.colors[value.winner_class],
fillOpacity: 0.85,
weight: 1,
}).addTo(map);
circle.bindPopup(description);
});
});
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-8592359-13', 'ocks.org');
ga('send', 'pageview');
</script>
</body>
</html>
municipality_ID municipality_name
001 Velika Kladusa
002 Cazin
003 Bihac
004 Bosanska Krupa
005 Buzim
006 Krupa Na Uni
007 Novi Grad
008 Kozarska Dubica
009 Prijedor
010 Gradiska
011 Laktasi
012 Srbac
013 Prnjavor
014 Derventa
016 Brod
017 Odzak
018 Vukosavlje
020 Domaljevac-samac
021 Samac
022 Orasje
023 Donji Zabar
024 Modrica
025 Gradacac
026 Pelagicevo
029 Bijeljina
030 Bosanski Petrovac
031 Petrovac
032 Sanski Most
033 Ostra Luka
034 Banja Luka
035 Celinac
036 Doboj Istok
037 Doboj Jug
038 Doboj
039 Tesanj
042 Maglaj
044 Gracanica
045 Petrovo
047 Lukavac
049 Srebrenik
050 Tuzla
052 Celic
054 Lopare
055 Teocak
056 Ugljevik
057 Drvar
058 Istocni Drvar
059 Kljuc
061 Ribnik
064 Mrkonjic Grad
065 Jajce
066 Jezero
067 Dobretici
068 Knezevo
070 Kotor Varos
074 Teslic
075 Zepce
077 Zavidovici
078 Banovici
079 Zivinice
080 Kalesija
081 Osmaci
082 Sapna
083 Zvornik
084 Bosansko Grahovo
085 Glamoc
088 Sipovo
089 Donji Vakuf
091 Travnik
093 Zenica
094 Kakanj
095 Vares
096 Olovo
098 Kladanj
101 Sekovici
103 Vlasenica
104 Bratunac
105 Srebrenica
106 Livno
107 Kupres (fbih)
108 Kupres (rs)
109 Bugojno
110 Gornji Vakuf - Uskoplje
111 Novi Travnik
112 Vitez
113 Busovaca
114 Fojnica
115 Kiseljak
116 Visoko
117 Breza
118 Ilijas
121 Sokolac
123 Han Pijesak
124 Tomislavgrad
125 Prozor-rama
126 Jablanica
127 Konjic
129 Kresevo
130 Hadzici
131 Ilidza
132 Istocna Ilidza
133 Novi Grad Sarajevo
135 Vogosca
136 Centar Sarajevo
137 Stari Grad Sarajevo
138 Istocni Stari Grad
139 Novo Srajevo
140 Istocno Novo Srajevo
141 Trnovo (fbih)
142 Trnovo (rs)
143 Pale (fbih)
144 Pale (rs)
146 Rogatica
147 Visegrad
148 Posusje
149 Grude
150 Siroki Brijeg
158 Istocni Mostar
161 Nevesinje
163 Kalinovik
164 Gacko
165 Foca (fbih)
166 Foca (rs)
167 Gorazde
168 Novo Gorazde
169 Cajnice
170 Rudo
171 Ljubuski
172 Citluk
173 Capljina
174 Neum
176 Stolac
177 Berkovici
179 Ljubinje
180 Bileca
181 Ravno
182 Trebinje
183 Usora
184 Kostajnica
185 Milici
200 Brcko Distrikt Bih
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment