let dealerMap = (function() { const branches_geojson = { "type": "FeatureCollection", "features": [{ "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [178.2583237, -37.5364105, 0], [177.5301982, -38.3683686, 0], [177.1325684, -38.8129611, 0], [176.9128418, -38.8942394, 0], [177.2012329, -39.1380494, 0], [177.4254227, -39.0874361, 0], [177.6180267, -39.0719784, 0], [177.792778, -39.0903673, 0], [177.8114869, -39.1094131, 0], [177.805481, -39.1407123, 0], [177.8109741, -39.2024622, 0], [177.8260803, -39.2673477, 0], [177.836548, -39.2975079, 0], [177.8628163, -39.3207579, 0], [177.8920074, -39.2989716, 0], [177.9136276, -39.2718661, 0], [177.9483032, -39.1854332, 0], [178.0049776, -39.1375069, 0], [178.0252075, -39.0895679, 0], [177.973695, -39.0645254, 0], [177.9153442, -39.0533181, 0], [177.9345703, -38.8974459, 0], [177.956543, -38.8204511, 0], [177.9741959, -38.7906663, 0], [177.9849695, -38.7560629, 0], [177.9721878, -38.7350396, 0], [177.9836922, -38.71228, 0], [178.0169678, -38.694085, 0], [178.039963, -38.7208762, 0], [178.0688095, -38.7289116, 0], [178.1130981, -38.6897975, 0], [178.18081, -38.6474477, 0], [178.2333387, -38.5980954, 0], [178.2888794, -38.5632003, 0], [178.3134357, -38.5293567, 0], [178.3194351, -38.4810072, 0], [178.3547974, -38.4320767, 0], [178.3795166, -38.3330388, 0], [178.3788211, -38.2734743, 0], [178.3575439, -38.216604, 0], [178.3795194, -38.1774719, 0], [178.3685303, -38.1431975, 0], [178.3905029, -38.0675547, 0], [178.3822632, -38.0134762, 0], [178.4330749, -37.9076375, 0], [178.4641734, -37.8503029, 0], [178.5013962, -37.789438, 0], [178.5491422, -37.7379971, 0], [178.5855102, -37.6906126, 0], [178.5643871, -37.6612631, 0], [178.5371017, -37.6368006, 0], [178.4924639, -37.6240302, 0], [178.4423447, -37.6183107, 0], [178.3517075, -37.6006322, 0], [178.3252577, -37.5756102, 0], [178.3297215, -37.556019, 0], [178.3010596, -37.5405066, 0], [178.2583237, -37.5364105, 0] ] ] }, "properties": { "name": "Gisborne", "branch_phone": "06 867 6459", "branch_email": "gisborne@jae.co.nz", "branch_slug": "gisborne" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [169.4833374, -45.8536735, 0], [169.9584961, -45.7512351, 0], [170.2523804, -45.1897801, 0], [170.3787231, -45.1665472, 0], [170.4364014, -44.9745137, 0], [169.9667358, -44.8149672, 0], [169.4284058, -44.8227602, 0], [169.0988159, -44.8850665, 0], [168.9834595, -45.4620571, 0], [169.453125, -45.8441078, 0], [169.4833374, -45.8536735, 0] ] ] }, "properties": { "name": "Central Otago", "branch_phone": "03 448 5905", "branch_email": "central.otago@jae.co.nz", "branch_slug": "central-otago" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [168.3132935, -45.294211, 0], [168.9834595, -45.4620571, 0], [169.0988159, -44.8850665, 0], [168.8461304, -44.931752, 0], [168.3462524, -44.7291743, 0], [168.2089233, -44.7759862, 0], [168.3132935, -45.294211, 0] ] ] }, "properties": { "name": "Queenstown", "branch_phone": "03 442 7723", "branch_email": "queenstown@jae.co.nz", "branch_slug": "queenstown" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [170.7938003, -45.5322066, 0], [170.6135559, -45.3434589, 0], [170.3787231, -45.1665472, 0], [170.2523804, -45.1897801, 0], [169.9584961, -45.7512351, 0], [169.4833374, -45.8536735, 0], [169.1853333, -46.0379693, 0], [169.1921997, -46.1322667, 0], [169.3940735, -46.227353, 0], [169.4833374, -46.4151388, 0], [169.733963, -46.513043, 0], [169.7854614, -46.4775908, 0], [169.8039646, -46.4620159, 0], [169.8282972, -46.4596798, 0], [169.8361015, -46.45075, 0], [169.8138666, -46.4314099, 0], [169.8082924, -46.4117066, 0], [169.7954156, -46.3930612, 0], [169.8022843, -46.3645807, 0], [169.8318651, -46.3464588, 0], [169.8662331, -46.3314088, 0], [169.9055702, -46.321866, 0], [169.9356213, -46.3056737, 0], [170.0402437, -46.2474882, 0], [170.1381626, -46.1976303, 0], [170.2043152, -46.1438047, 0], [170.2201128, -46.1002366, 0], [170.2304077, -46.0522671, 0], [170.2572685, -46.0199941, 0], [170.2892473, -45.9924816, 0], [170.3370094, -45.9577136, 0], [170.3765971, -45.9601195, 0], [170.4163457, -45.9495046, 0], [170.5012894, -45.9256026, 0], [170.5432147, -45.9197042, 0], [170.5961139, -45.9159355, 0], [170.6809598, -45.9164673, 0], [170.7362938, -45.9050609, 0], [170.7619645, -45.884507, 0], [170.7709693, -45.8565429, 0], [170.7516522, -45.8353141, 0], [170.7647896, -45.8069055, 0], [170.7632446, -45.765607, 0], [170.72487, -45.747768, 0], [170.6793022, -45.7435686, 0], [170.6394707, -45.7291911, 0], [170.6252289, -45.7097755, 0], [170.6685056, -45.6755955, 0], [170.6904602, -45.6397276, 0], [170.7326889, -45.6147579, 0], [170.7521748, -45.5924172, 0], [170.7503701, -45.5712743, 0], [170.7697741, -45.5494578, 0], [170.7938003, -45.5322066, 0] ] ] }, "properties": { "name": "Dunedin", "branch_phone": "03 488 0038", "branch_email": "dunedin@jae.co.nz", "branch_slug": "dunedin" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [174.6252823,-38.4879946,0], [175.0183868,-38.4799322,0], [175.5944824,-38.1140303,0], [175.6542206,-38.0791764,0], [175.812149,-37.8791893,0], [175.9233856,-37.8770214,0], [175.8959198,-37.8499169,0], [175.8821869,-37.7685436,0], [175.8167839,-37.6574603,0], [175.7633972,-37.5924715,0], [175.6219482,-37.63816,0], [175.4956055,-37.4993762,0], [175.2236938,-37.4315231,0], [175.1758861,-37.3550124,0], [174.7257042,-37.5340965,0], [174.7547149,-37.6058003,0], [174.7934681,-37.7008748,0], [174.8223495,-37.8000186,0], [174.8127365,-37.8103264,0], [174.7763442,-37.8127675,0], [174.7433853,-37.8461215,0], [174.7385788,-37.8786474,0], [174.7451019,-37.9041159,0], [174.764328,-37.9620647,0], [174.7722244,-38.0196973,0], [174.7533416,-38.0856621,0], [174.7245025,-38.1029545,0], [174.6942902,-38.0999826,0], [174.6750652,-38.0970111,0], [174.6596146,-38.1107887,0], [174.6932602,-38.2322473,0], [174.6925736,-38.3133767,0], [174.6431351,-38.3631951,0], [174.6269989,-38.383113,0], [174.6252823,-38.4879946,0] ] ] }, "properties": { "name": "Waikato", "branch_phone": "07 847 8882", "branch_email": "waikato@jae.co.nz", "branch_slug": "waikato" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [176.6314888, -37.8257177, 0], [176.603508, -37.8062577, 0], [176.5526962, -37.7712575, 0], [176.506691, -37.7549727, 0], [176.4891815, -37.7370553, 0], [176.4689255, -37.7248364, 0], [176.4263535, -37.7318964, 0], [176.3765716, -37.7050103, 0], [176.3151168, -37.6854505, 0], [176.2649918, -37.6561013, 0], [176.2162399, -37.6329942, 0], [176.1932373, -37.6196704, 0], [176.1839675, -37.6055282, 0], [176.1595917, -37.6052562, 0], [176.1431122, -37.580773, 0], [176.1074066, -37.5502936, 0], [176.0682678, -37.5140832, 0], [176.0528183, -37.4715884, 0], [176.0030365, -37.4361576, 0], [175.9436846, -37.580875, 0], [175.8945465, -37.6200783, 0], [175.8167839, -37.6574603, 0], [175.8821869, -37.7685436, 0], [175.8959198, -37.8499169, 0], [175.9233856, -37.8770214, 0], [176.388588, -37.8674682, 0], [176.6143571, -37.8316752, 0], [176.6314888, -37.8257177, 0] ] ] }, "properties": { "name": "Tauranga", "branch_phone": "07 572 0629", "branch_email": "tauranga@jae.co.nz", "branch_slug": "tauranga" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [176.0030365, -37.4361576, 0], [175.9838104, -37.410528, 0], [175.9625244, -37.3655186, 0], [175.966301, -37.3393189, 0], [175.9498215, -37.3101063, 0], [175.932312, -37.271594, 0], [175.9244156, -37.2453615, 0], [175.9247589, -37.2141986, 0], [175.9151458, -37.1942367, 0], [175.911026, -37.1638734, 0], [175.9151459, -37.1214539, 0], [175.9089661, -37.0836668, 0], [175.7846832, -37.0885966, 0], [175.738678, -37.4181633, 0], [175.7633972, -37.5924715, 0], [175.8167839, -37.6574603, 0], [175.8945465, -37.6200783, 0], [175.9436846, -37.580875, 0], [176.0030365, -37.4361576, 0] ] ] }, "properties": { "name": "Waihi", "branch_phone": "07 863 8358", "branch_email": "waihi@jae.co.nz", "branch_slug": "waihi" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [174.4349097,-36.1617849,0], [174.4314764,-36.1601911,0], [174.4306183,-36.1556178,0], [174.42358,-36.1512512,0], [174.4182587,-36.1500735,0], [174.416971,-36.1432807,0], [174.408388,-36.1459146,0], [174.3981741,-36.14737,0], [174.3862437,-36.1463304,0], [174.3875311,-36.1533997,0], [174.3864153,-36.1599139,0], [174.3792055,-36.1641409,0], [174.3721674,-36.1664969,0], [174.3710516,-36.171555,0], [174.3649576,-36.2018277,0], [174.3548295,-36.2088226,0], [174.2191315,-36.2893934,0], [174.2156982,-36.3389126,0], [174.213295,-36.391164,0], [174.2290862,-36.4060162,0], [174.2786977,-36.4158258,0], [174.3313979,-36.463608,0], [174.3916512,-36.564944,0], [174.3895892,-36.6029173,0], [174.4050408,-36.6181455,0], [174.4201469,-36.6185588,0], [174.4324206,-36.6401183,0], [174.4424628,-36.6440438,0], [174.4496725,-36.6653208,0], [174.5959282,-36.7532582,0], [174.6065282,-36.7120888,0], [174.6209049,-36.7040725,0], [174.6242994,-36.7017213,0], [174.6270929,-36.6989571,0], [174.6424369,-36.6778785,0], [174.6533042,-36.6823004,0], [174.6534748,-36.6814504,0], [174.6519273,-36.6766525,0], [174.6517932,-36.6734928,0], [174.6524692,-36.6729557,0], [174.6718881,-36.6705718,0], [174.6751174,-36.6719566,0], [174.679656,-36.6746491,0], [174.6801842,-36.6752429,0], [174.6824292,-36.6756646,0], [174.6864152,-36.6747868,0], [174.7144603,-36.6751655,0], [174.7370339,-36.6622914,0], [174.7437286,-36.6565767,0], [174.7514535,-36.6515499,0], [174.7696496,-36.6412202,0], [174.7801209,-36.6372256,0], [174.7866441,-36.6354349,0], [174.7943689,-36.6370879,0], [174.8091318,-36.6359859,0], [174.8209764,-36.6259296,0], [174.8390009,-36.6241386,0], [174.8650935,-36.6087069,0], [174.8855202,-36.6161496,0], [174.9100688,-36.6155964,0], [174.9156478,-36.6060881,0], [174.9105838,-36.5960285,0], [174.881573,-36.5818317,0], [174.8228648,-36.5856913,0], [174.7885324,-36.593272,0], [174.7607233,-36.6080179,0], [174.7548867,-36.6149075,0], [174.7447587,-36.6133918,0], [174.7353174,-36.615872,0], [174.7298242,-36.6107738,0], [174.7167779,-36.5991982,0], [174.7037316,-36.5771448,0], [174.7088815,-36.5702518,0], [174.7202112,-36.5654264,0], [174.7287942,-36.5339846,0], [174.7382356,-36.5189487,0], [174.7853573,-36.5230278,0], [174.8209764,-36.502668,0], [174.8427775,-36.4673353,0], [174.8855212,-36.4542195,0], [174.8929026,-36.4282575,0], [174.8819163,-36.3906801,0], [174.8819163,-36.3611026,0], [174.848614,-36.342853,0], [174.8233796,-36.3382899,0], [174.8131738,-36.310555,0], [174.8363928,-36.2908782,0], [174.8355677,-36.2747941,0], [174.8132516,-36.2548631,0], [174.7554017,-36.2412961,0], [174.6937752,-36.1857576,0], [174.6501732,-36.123663,0], [174.6385002,-36.0776846,0], [174.5990181,-36.0901003,0], [174.5972157,-36.0914875,0], [174.5998764,-36.0944004,0], [174.6024514,-36.0966198,0], [174.6027089,-36.0991858,0], [174.5997906,-36.1011276,0], [174.5984173,-36.1045257,0], [174.599619,-36.1100038,0], [174.5904351,-36.1208204,0], [174.585371,-36.1179084,0], [174.5811653,-36.115551,0], [174.5828819,-36.1124308,0], [174.5806074,-36.1090331,0], [174.5751571,-36.1098652,0], [174.5732688,-36.1138175,0], [174.5707797,-36.1196417,0], [174.5697498,-36.1266441,0], [174.5652007,-36.1292784,0], [174.5446872,-36.1309422,0], [174.5373487,-36.1325713,0], [174.5303535,-36.1303881,0], [174.5127582,-36.1381515,0], [174.508295,-36.1378742,0], [174.4963645,-36.1432114,0], [174.4899272,-36.1430728,0], [174.4814301,-36.1442516,0], [174.4742201,-36.1475087,0], [174.471731,-36.1510433,0], [174.4589424,-36.1557564,0], [174.4557665,-36.1576963,0], [174.4488142,-36.1589437,0], [174.4450377,-36.1602604,0], [174.4428919,-36.1610919,0], [174.4401453,-36.161577,0], [174.4373987,-36.1619928,0], [174.4349097,-36.1617849,0] ] ] }, "properties": { "name": "Rodney", "branch_phone": "09 424 1187", "branch_email": "rodney@jae.co.nz", "branch_slug": "rodney" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [174.6385002, -36.0776846, 0], [174.6136093, -36.0304989, 0], [174.559021, -36.0174484, 0], [174.5370483, -36.0046735, 0], [174.5119857, -35.9635577, 0], [174.5020274, -35.914487, 0], [174.5123291, -35.8748634, 0], [174.567261, -35.8898929, 0], [174.6105194, -35.8812617, 0], [174.6225347, -35.8457828, 0], [174.6125794, -35.8211538, 0], [174.5964432, -35.7573787, 0], [174.5924823, -35.7079006, 0], [174.5573044, -35.6670591, 0], [174.5779037, -35.6280005, 0], [174.5705172, -35.5850057, 0], [174.5480346, -35.5512227, 0], [174.5078397, -35.5013408, 0], [174.4828034, -35.4514412, 0], [174.4735114, -35.4193389, 0], [174.4456922, -35.3989842, 0], [174.4051846, -35.3882025, 0], [174.410019, -35.350416, 0], [174.4067361, -35.3148485, 0], [174.3725688, -35.2946785, 0], [174.3409852, -35.281217, 0], [174.3502808, -35.2411328, 0], [174.3571517, -35.2074709, 0], [174.3715668, -35.173247, 0], [174.3240973, -35.1431987, 0], [174.2801243, -35.157062, 0], [174.2471157, -35.1894378, 0], [174.1748428, -35.1606174, 0], [174.1363785, -35.1244013, 0], [174.1085816, -35.0912598, 0], [174.0584531, -35.0893089, 0], [173.9987183, -35.090698, 0], [173.9743443, -35.0631578, 0], [174.0097046, -35.0316832, 0], [174.0011215, -34.973751, 0], [173.9255286, -34.9469775, 0], [173.7631988, -34.9256305, 0], [173.6516189, -34.9233786, 0], [173.5999438, -34.8887637, 0], [173.5410691, -34.8955057, 0], [173.5218599, -34.9335163, 0], [173.4844369, -34.956318, 0], [173.4559317, -34.9596929, 0], [173.4226227, -34.9489907, 0], [173.4090648, -34.9257663, 0], [173.4085571, -34.9019785, 0], [173.4592072, -34.8908617, 0], [173.4961069, -34.868462, 0], [173.5015869, -34.8326866, 0], [173.4596789, -34.7916727, 0], [173.4082031, -34.7528965, 0], [173.3683799, -34.7486712, 0], [173.3306122, -34.7624866, 0], [173.3216858, -34.8264865, 0], [173.2844394, -34.8425563, 0], [173.2403183, -34.847621, 0], [173.2037399, -34.8238006, 0], [173.1778336, -34.7531786, 0], [173.0922971, -34.6834612, 0], [173.0511475, -34.6173871, 0], [173.0367218, -34.5681936, 0], [173.0319214, -34.5110832, 0], [173.0398276, -34.4626912, 0], [173.0731201, -34.4295671, 0], [173.0724335, -34.3961452, 0], [173.0377559, -34.3760383, 0], [172.9852295, -34.3729119, 0], [172.9193115, -34.3955786, 0], [172.8334932, -34.3953081, 0], [172.7946854, -34.4196553, 0], [172.7685839, -34.4165469, 0], [172.7078247, -34.3978449, 0], [172.6625132, -34.3994098, 0], [172.6199341, -34.424753, 0], [172.6053461, -34.4486762, 0], [172.5989914, -34.4759958, 0], [172.6501465, -34.5133464, 0], [172.7267074, -34.5682102, 0], [172.7671804, -34.592517, 0], [172.8035601, -34.6258556, 0], [172.8647232, -34.6925092, 0], [172.9713493, -34.8065717, 0], [173.0710602, -34.9278823, 0], [173.1445313, -35.038992, 0], [173.1445321, -35.0884356, 0], [173.1417847, -35.1378791, 0], [173.1146622, -35.1429364, 0], [173.0813599, -35.1378791, 0], [173.046345, -35.1422336, 0], [173.0223084, -35.160056, 0], [173.0360412, -35.2108436, 0], [173.2200623, -35.430463, 0], [173.3155414, -35.5488021, 0], [173.4215927, -35.6559014, 0], [173.6553955, -35.8985064, 0], [173.7460327, -35.9960632, 0], [173.9118576, -36.1808394, 0], [173.9942551, -36.3046121, 0], [174.0007782, -36.341125, 0], [174.0261841, -36.4041523, 0], [174.0766525, -36.4160333, 0], [174.1381111, -36.425989, 0], [174.1820527, -36.4066392, 0], [174.213295, -36.391164, 0], [174.2156982, -36.3389126, 0], [174.2191315, -36.2893934, 0], [174.3548295, -36.2088226, 0], [174.3647861, -36.2017589, 0], [174.3719959, -36.1664281, 0], [174.379034, -36.1640721, 0], [174.3862438, -36.1598451, 0], [174.3873596, -36.1533309, 0], [174.3860722, -36.1462616, 0], [174.3980026, -36.1473012, 0], [174.4082165, -36.1458458, 0], [174.4167995, -36.1432119, 0], [174.4182587, -36.1500735, 0], [174.4234085, -36.1511824, 0], [174.4306183, -36.1556178, 0], [174.4313049, -36.1601223, 0], [174.4347382, -36.1617161, 0], [174.4386864, -36.1618547, 0], [174.4428919, -36.1610919, 0], [174.4469261, -36.15936, 0], [174.455595, -36.1576275, 0], [174.4589424, -36.1557564, 0], [174.4715595, -36.1509745, 0], [174.4740486, -36.1474399, 0], [174.4814301, -36.1442516, 0], [174.4897556, -36.143004, 0], [174.4961929, -36.1431426, 0], [174.5081234, -36.1378054, 0], [174.5125866, -36.1380827, 0], [174.5303535, -36.1303881, 0], [174.5371771, -36.1325025, 0], [174.5445156, -36.1308734, 0], [174.5650291, -36.1292096, 0], [174.5695782, -36.1265753, 0], [174.5706081, -36.1195729, 0], [174.5749855, -36.1097964, 0], [174.5804358, -36.1089643, 0], [174.5827103, -36.112362, 0], [174.5809937, -36.1154822, 0], [174.5902634, -36.1207516, 0], [174.5994473, -36.109935, 0], [174.5982456, -36.1044569, 0], [174.5997906, -36.1011276, 0], [174.6025372, -36.099117, 0], [174.6022797, -36.096551, 0], [174.597044, -36.0914187, 0], [174.5988464, -36.0900315, 0], [174.6385002, -36.0776846, 0] ] ] }, "properties": { "name": "Northland", "branch_phone": "09 430 0577", "branch_email": "northland@jae.co.nz", "branch_slug": "northland" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [171.29076, -42.217585, 0], [171.2823486, -42.2417354, 0], [171.2713623, -42.2793409, 0], [171.2342834, -42.3351996, 0], [171.1985779, -42.3727493, 0], [171.1628723, -42.468045, 0], [171.1257935, -42.5348682, 0], [171.0351563, -42.6339587, 0], [170.9664917, -42.6895018, 0], [170.9197998, -42.7349091, 0], [170.8648682, -42.8004389, 0], [170.7577515, -42.8830084, 0], [170.665741, -42.9353123, 0], [170.5435181, -42.9925945, 0], [170.4418945, -43.0116767, 0], [170.3649902, -43.0608614, 0], [170.3031921, -43.0879463, 0], [170.2510071, -43.0959691, 0], [170.1576233, -43.2011717, 0], [170.0422668, -43.2802047, 0], [169.8953247, -43.3741104, 0], [169.8143005, -43.3840918, 0], [169.6865845, -43.5306292, 0], [169.6440125, -43.5346116, 0], [169.5877075, -43.5813857, 0], [169.5478821, -43.5734267, 0], [169.5341492, -43.5903383, 0], [169.5465088, -43.6470071, 0], [169.9694824, -43.6748248, 0], [170.6698608, -43.377105, 0], [171.3194275, -43.0979747, 0], [171.5762329, -42.9845581, 0], [172.0967102, -42.6925299, 0], [171.29076, -42.217585, 0] ] ] }, "properties": { "name": "Westland", "branch_phone": "03 755 6379", "branch_email": "westland@jae.co.nz", "branch_slug": "westland" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [172.0967102, -42.6925299, 0], [172.2697449, -42.3869514, 0], [172.0307922, -42.3047374, 0], [172.3287964, -41.2571621, 0], [172.0798874, -41.1959648, 0], [172.0668411, -41.2941883, 0], [172.0541382, -41.3552935, 0], [172.0472717, -41.3752628, 0], [172.0211792, -41.3956123, 0], [171.9974899, -41.4105483, 0], [171.9830703, -41.42857, 0], [171.9470214, -41.4573943, 0], [171.9126892, -41.510377, 0], [171.8704605, -41.574875, 0], [171.8127823, -41.6313542, 0], [171.7516708, -41.6662439, 0], [171.6963958, -41.707779, 0], [171.6651535, -41.7221306, 0], [171.5978623, -41.7116234, 0], [171.5607834, -41.7203368, 0], [171.540184, -41.7293052, 0], [171.4416504, -41.7367352, 0], [171.4217377, -41.7564589, 0], [171.4347839, -41.7754084, 0], [171.4423354, -41.8254242, 0], [171.4334106, -41.8756964, 0], [171.4014816, -41.8943551, 0], [171.3942718, -41.9296129, 0], [171.3788223, -41.9778691, 0], [171.3650894, -42.0067032, 0], [171.3510132, -42.0319543, 0], [171.3335037, -42.0592345, 0], [171.3153076, -42.0921083, 0], [171.293335, -42.1824868, 0], [171.2828636, -42.213008, 0], [172.0967102, -42.6925299, 0] ] ] }, "properties": { "name": "Westport", "branch_phone": "03 789 5238", "branch_email": "westport@jae.co.nz", "branch_slug": "westport" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [173.194077, -41.3290827, 0], [173.1956863, -41.3206227, 0], [173.1876183, -41.3101792, 0], [173.1905365, -41.2999919, 0], [173.205986, -41.2879972, 0], [173.1987745, -41.2745165, 0], [173.1826401, -41.2680012, 0], [173.1287384, -41.2527743, 0], [173.1108856, -41.2437398, 0], [173.0895996, -41.2264415, 0], [173.0940628, -41.2106884, 0], [173.0792999, -41.184597, 0], [173.067627, -41.1714182, 0], [173.0538941, -41.1551349, 0], [173.0518341, -41.1409159, 0], [173.0508041, -41.125918, 0], [173.0411911, -41.1101407, 0], [173.047371, -41.0943596, 0], [173.0417054, -41.0841386, 0], [173.033638, -41.0775396, 0], [173.0253983, -41.0717162, 0], [173.02145, -41.0626566, 0], [173.0214501, -41.0557965, 0], [173.0312348, -41.0516541, 0], [173.0374146, -41.0371537, 0], [173.0308914, -41.0252404, 0], [173.0264282, -41.0125477, 0], [173.0190468, -41.0049049, 0], [173.0235107, -40.9977797, 0], [173.0362131, -40.9961607, 0], [173.0451393, -40.9999821, 0], [173.0607605, -40.997391, 0], [173.0705459, -40.9890987, 0], [173.0768967, -40.9809348, 0], [173.0768967, -40.9640857, 0], [173.0763817, -40.9506033, 0], [173.0674553, -40.9415271, 0], [173.0710601, -40.9262243, 0], [173.0703735, -40.9171447, 0], [173.0729485, -40.9067666, 0], [173.0736351, -40.8926236, 0], [173.076725, -40.8792565, 0], [173.0726051, -40.8609534, 0], [173.0623055, -40.8504365, 0], [173.0499456, -40.8458919, 0], [173.0401611, -40.8473201, 0], [173.0346679, -40.8505663, 0], [173.0278016, -40.8471902, 0], [173.0216217, -40.8366712, 0], [173.0205917, -40.8295276, 0], [173.0259132, -40.8177067, 0], [173.0235095, -40.8062731, 0], [173.0147553, -40.798217, 0], [173.011322, -40.7898997, 0], [173.0130386, -40.7802814, 0], [172.9948425, -40.7727419, 0], [172.9714966, -40.7743019, 0], [172.9534721, -40.7770317, 0], [172.9390526, -40.7927589, 0], [172.9254913, -40.7909394, 0], [172.9086685, -40.7935386, 0], [172.8915023, -40.8140691, 0], [172.881031, -40.8212143, 0], [172.8427505, -40.8234226, 0], [172.8121949, -40.8062734, 0], [172.8015518, -40.7937986, 0], [172.7849007, -40.7886, 0], [172.774086, -40.7813214, 0], [172.7579499, -40.7745618, 0], [172.7476502, -40.7644213, 0], [172.7352905, -40.7490776, 0], [172.7126312, -40.7181194, 0], [172.7057648, -40.7017239, 0], [172.6995849, -40.6592851, 0], [172.7026748, -40.6204676, 0], [172.7074814, -40.6017021, 0], [172.7078247, -40.5889282, 0], [172.7256775, -40.564677, 0], [172.7373505, -40.5534611, 0], [172.7452469, -40.543026, 0], [172.7620697, -40.5265875, 0], [172.825241, -40.5315455, 0], [172.8709001, -40.5350757, 0], [172.912445, -40.5391124, 0], [172.9584503, -40.5516351, 0], [173.0010224, -40.5670242, 0], [173.0284881, -40.5719793, 0], [173.0532074, -40.5709361, 0], [173.0501175, -40.5508525, 0], [173.0281449, -40.5365033, 0], [173.0006791, -40.5187582, 0], [172.9371643, -40.5044021, 0], [172.8606034, -40.4963092, 0], [172.786789, -40.4916095, 0], [172.7445602, -40.4976145, 0], [172.7239609, -40.4934372, 0], [172.691171, -40.4858714, 0], [172.6449967, -40.4892597, 0], [172.6020813, -40.5169312, 0], [172.5680924, -40.5388516, 0], [172.5179672, -40.573544, 0], [172.4695588, -40.594403, 0], [172.4276733, -40.6212494, 0], [172.3912812, -40.648085, 0], [172.3675919, -40.6702228, 0], [172.3380661, -40.6933944, 0], [172.2845078, -40.7324296, 0], [172.2302627, -40.7524587, 0], [172.2058869, -40.7639012, 0], [172.1914673, -40.7792416, 0], [172.1567917, -40.8096516, 0], [172.1317291, -40.8296576, 0], [172.1131897, -40.8530334, 0], [172.0967102, -40.8688723, 0], [172.0778274, -40.8922343, 0], [172.0733643, -40.9153287, 0], [172.0743942, -40.9798981, 0], [172.0802307, -41.0213551, 0], [172.0819474, -41.0495828, 0], [172.0764542, -41.0884084, 0], [172.0805741, -41.1233319, 0], [172.0798874, -41.1959648, 0], [172.3287964, -41.2571621, 0], [172.0307922, -42.3047374, 0], [172.2697449, -42.3869514, 0], [172.3674218, -42.4046998, 0], [172.775116, -41.9211835, 0], [172.8678131, -41.8071491, 0], [172.9646301, -41.7769446, 0], [173.0401611, -41.7410903, 0], [173.0820465, -41.7308425, 0], [173.2138824, -41.6703473, 0], [173.2880402, -41.6585493, 0], [173.3670044, -41.6293013, 0], [173.1995058, -41.3523621, 0], [173.1816959, -41.3365588, 0], [173.194077, -41.3290827, 0] ] ] }, "properties": { "name": "Tasman", "branch_phone": "03 541 0444", "branch_email": "tasman@jae.co.nz", "branch_slug": "tasman" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [173.6032104, -41.0420738, 0], [173.541069, -41.1604339, 0], [173.3670044, -41.6293013, 0], [173.2880402, -41.6585493, 0], [173.2138824, -41.6703473, 0], [173.0820465, -41.7308425, 0], [173.0401611, -41.7410903, 0], [172.9646301, -41.7769446, 0], [172.8678131, -41.8071491, 0], [172.775116, -41.9211835, 0], [173.281517, -42.1649303, 0], [173.8843918, -42.0118053, 0], [174.0138245, -42.0209879, 0], [174.0412902, -41.9970082, 0], [174.0811157, -41.965617, 0], [174.1759704, -41.8940842, 0], [174.2459106, -41.8143142, 0], [174.2788696, -41.7590199, 0], [174.3035889, -41.7180305, 0], [174.2246246, -41.7088042, 0], [174.1827393, -41.6708602, 0], [174.190979, -41.6154423, 0], [174.190979, -41.545589, 0], [174.125061, -41.5044636, 0], [174.0563965, -41.4591954, 0], [174.0866089, -41.4138956, 0], [174.1223145, -41.3809304, 0], [174.2294312, -41.3438246, 0], [174.3283081, -41.2612915, 0], [174.4244385, -41.1641817, 0], [174.4381714, -41.0710691, 0], [174.3557739, -41.0793511, 0], [174.3118286, -41.0793511, 0], [174.3338013, -41.0213551, 0], [174.3145752, -40.9819715, 0], [174.256897, -41.0068481, 0], [174.2184448, -40.9757509, 0], [174.1744995, -40.952937, 0], [174.105835, -40.9135126, 0], [174.1140747, -40.8761414, 0], [174.0316772, -40.8886008, 0], [173.9657593, -40.8865244, 0], [173.9712524, -40.824202, 0], [174.0454102, -40.734771, 0], [174.0206909, -40.6431356, 0], [173.921814, -40.6868864, 0], [173.7954712, -40.7514184, 0], [173.7487793, -40.8387491, 0], [173.7460327, -40.8844479, 0], [173.7405396, -40.938415, 0], [173.7240601, -40.9798981, 0], [173.671875, -41.0130658, 0], [173.6032104, -41.0420738, 0] ] ] }, "properties": { "name": "Marlborough", "branch_phone": "03 578 1581", "branch_email": "marlborough@jae.co.nz", "branch_slug": "marlborough" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [173.194077, -41.3290827, 0], [173.1816959, -41.3365588, 0], [173.1995058, -41.3523621, 0], [173.3670044, -41.6293013, 0], [173.541069, -41.1604339, 0], [173.6032104, -41.0420738, 0], [173.5757446, -41.0539842, 0], [173.5572052, -41.0658923, 0], [173.5462189, -41.0829742, 0], [173.5331726, -41.0943596, 0], [173.5029602, -41.0990168, 0], [173.5022736, -41.1207456, 0], [173.4851074, -41.1429843, 0], [173.4583282, -41.1491891, 0], [173.4459686, -41.1367789, 0], [173.4267426, -41.1264353, 0], [173.4040833, -41.1367789, 0], [173.3951569, -41.1564273, 0], [173.3704376, -41.1709014, 0], [173.3278656, -41.1920897, 0], [173.3093262, -41.2091387, 0], [173.2918167, -41.2340585, 0], [173.2609177, -41.2518709, 0], [173.2535362, -41.2624528, 0], [173.2509613, -41.2714848, 0], [173.2447815, -41.2758713, 0], [173.2301903, -41.2741941, 0], [173.2185173, -41.2819346, 0], [173.205986, -41.2879972, 0], [173.1905365, -41.2999919, 0], [173.1876183, -41.3101792, 0], [173.1956863, -41.3206227, 0], [173.194077, -41.3290827, 0] ] ] }, "properties": { "name": "Nelson", "branch_phone": "03 548 5550", "branch_email": "nelson@jae.co.nz", "branch_slug": "nelson" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [176.7281342, -38.4019491, 0], [177.3893738, -38.4008729, 0], [177.4841309, -38.4062538, 0], [177.5301982, -38.3683686, 0], [178.2583237, -37.5364105, 0], [178.1838227, -37.5162617, 0], [178.1292252, -37.5269066, 0], [178.0250231, -37.5251302, 0], [177.976799, -37.5225248, 0], [177.9454015, -37.5490796, 0], [177.9482302, -37.5838462, 0], [177.923036, -37.5970054, 0], [177.8758621, -37.5981841, 0], [177.8510013, -37.6236372, 0], [177.7911758, -37.6483178, 0], [177.718277, -37.6607218, 0], [177.6830168, -37.7059576, 0], [177.6392516, -37.7397052, 0], [177.6341623, -37.7701423, 0], [177.5941831, -37.8073362, 0], [177.5507355, -37.8602178, 0], [177.5175131, -37.9020128, 0], [177.4431803, -37.9402239, 0], [177.3445266, -37.9671437, 0], [177.2280121, -37.9737031, 0], [177.0870567, -37.9599131, 0], [177.0169728, -37.9217866, 0], [177.0114957, -37.8617732, 0], [176.9947168, -37.8412359, 0], [176.9564673, -37.8377352, 0], [176.9119314, -37.8690454, 0], [176.8553352, -37.8791893, 0], [176.8182563, -37.8793248, 0], [176.7664094, -37.8740525, 0], [176.7042733, -37.8576427, 0], [176.661865, -37.8449392, 0], [176.6314888, -37.8257177, 0], [176.601963, -37.835683, 0], [176.5865135, -37.8472059, 0], [176.5648842, -37.8562873, 0], [176.5595627, -37.8627928, 0], [176.559906, -37.8980205, 0], [176.5765572, -37.9110234, 0], [176.6002464, -37.9287633, 0], [176.6083145, -37.9696434, 0], [176.5916634, -38.0110418, 0], [176.5545845, -38.0367349, 0], [176.5193939, -38.041602, 0], [176.5434265, -38.0643111, 0], [176.6498566, -38.0778251, 0], [176.7240143, -38.1178119, 0], [176.8263245, -38.1853074, 0], [176.809845, -38.2662195, 0], [176.7281342, -38.4019491, 0] ] ] }, "properties": { "name": "Whakatane", "branch_phone": "07 308 6224", "branch_email": "whakatane@jae.co.nz", "branch_slug": "whakatane" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [177.2012329, -39.1380494, 0], [176.9128418, -38.8942394, 0], [176.829071, -38.9337755, 0], [176.7054749, -38.8525424, 0], [176.5942383, -38.9305707, 0], [176.6271973, -38.9925047, 0], [176.4569092, -38.9978413, 0], [176.375885, -39.1694647, 0], [176.2564087, -39.1055545, 0], [176.1753845, -39.1343212, 0], [176.2069702, -39.2939227, 0], [176.2701416, -39.3491665, 0], [176.2564087, -39.4966231, 0], [176.2838745, -39.6257882, 0], [176.0751343, -39.6490547, 0], [176.0050964, -39.8264678, 0], [176.0105896, -39.9939557, 0], [176.1383057, -40.0139426, 0], [176.234436, -40.0549499, 0], [176.3209534, -40.0633587, 0], [176.342926, -40.0854266, 0], [176.3360596, -40.1347909, 0], [176.2495422, -40.2082457, 0], [176.2728882, -40.2512323, 0], [176.4129639, -40.3664274, 0], [176.5722656, -40.4354502, 0], [176.6629028, -40.4427666, 0], [176.6862488, -40.3486374, 0], [176.7151134, -40.2923469, 0], [176.7576599, -40.2522804, 0], [176.8206849, -40.2255539, 0], [176.8664932, -40.1893649, 0], [176.9262313, -40.0885786, 0], [176.9284663, -40.0399541, 0], [176.9461441, -39.9907993, 0], [176.9671034, -39.9407882, 0], [177.003479, -39.8907726, 0], [177.0429821, -39.8263057, 0], [177.0467377, -39.7576161, 0], [177.0776557, -39.7145686, 0], [177.1257019, -39.6680851, 0], [177.1198611, -39.6427079, 0], [177.0965195, -39.6228794, 0], [177.0336914, -39.6226149, 0], [176.9677734, -39.5845239, 0], [176.9540405, -39.5241703, 0], [176.9554138, -39.469065, 0], [176.9317223, -39.457936, 0], [176.8977356, -39.4584628, 0], [176.9128551, -39.4083305, 0], [176.9361877, -39.3619088, 0], [176.9959259, -39.3218156, 0], [177.0522308, -39.2455486, 0], [177.0669938, -39.2037924, 0], [177.2012329, -39.1380494, 0] ] ] }, "properties": { "name": "Hawkes Bay", "branch_phone": "06 844 3772", "branch_email": "hawkes.bay@jae.co.nz", "branch_slug": "hawkes-bay" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [175.2236938, -37.4315231, 0], [175.4956055, -37.4993762, 0], [175.6219482, -37.63816, 0], [175.7633972, -37.5924715, 0], [175.738678, -37.4181633, 0], [175.7846832, -37.0885966, 0], [175.9089661, -37.0836668, 0], [175.9875794, -37.0809007, 0], [175.9526958, -37.0091025, 0], [175.8911133, -36.9542816, 0], [175.8681107, -36.8837399, 0], [175.8565904, -36.8231519, 0], [175.8244074, -36.8114102, 0], [175.7966995, -36.7955396, 0], [175.7941512, -36.7669366, 0], [175.8756101, -36.7630911, 0], [175.9209666, -36.7544302, 0], [175.9532547, -36.7193475, 0], [175.9826148, -36.6784564, 0], [175.9735107, -36.6276518, 0], [175.9676634, -36.588237, 0], [175.922699, -36.561497, 0], [175.842014, -36.541117, 0], [175.7551575, -36.5537752, 0], [175.7182818, -36.5846441, 0], [175.7170932, -36.6287421, 0], [175.7289271, -36.6832839, 0], [175.6874523, -36.7055918, 0], [175.6540096, -36.6969189, 0], [175.6181717, -36.6681435, 0], [175.6238291, -36.625024, 0], [175.5793762, -36.5830035, 0], [175.5690676, -36.5650717, 0], [175.541954, -36.5079805, 0], [175.4662212, -36.4823267, 0], [175.4407359, -36.4559549, 0], [175.3994751, -36.4422756, 0], [175.3301383, -36.4527871, 0], [175.2963191, -36.4627212, 0], [175.2820587, -36.4955615, 0], [175.2950923, -36.5412185, 0], [175.337677, -36.5730782, 0], [175.3514046, -36.6185477, 0], [175.3524399, -36.6576783, 0], [175.3615372, -36.7233086, 0], [175.3891754, -36.7936151, 0], [175.37338, -36.85611, 0], [175.3953552, -36.9213519, 0], [175.4574967, -36.9677238, 0], [175.4774093, -37.0373656, 0], [175.4767227, -37.0636703, 0], [175.4875219, -37.1130914, 0], [175.4962921, -37.1562123, 0], [175.4574967, -37.186305, 0], [175.4053116, -37.1915017, 0], [175.3672027, -37.1791933, 0], [175.3404236, -37.1285711, 0], [175.337677, -37.1069437, 0], [175.3325271, -37.0768193, 0], [175.3246307, -37.0253062, 0], [175.3146743, -36.9967947, 0], [175.2793121, -37.0014559, 0], [175.2799988, -37.0269508, 0], [175.2830887, -37.057369, 0], [175.272789, -37.0979076, 0], [175.2260971, -37.1403403, 0], [175.1639557, -37.1972449, 0], [175.1014709, -37.2158391, 0], [175.1148605, -37.2450882, 0], [175.1622391, -37.3327675, 0], [175.2236938, -37.4315231, 0] ] ] }, "properties": { "name": "Coromandel", "branch_phone": "07 868 6662", "branch_email": "coromandel@jae.co.nz", "branch_slug": "coromandel" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [176.139679, -38.4213183, 0], [176.0325623, -38.3890334, 0], [175.8348083, -38.3685789, 0], [175.7496643, -38.3513495, 0], [175.6851196, -38.3061029, 0], [175.6782532, -38.201497, 0], [175.5944824, -38.1140303, 0], [175.0183868, -38.4799322, 0], [174.9586487, -38.7048027, 0], [174.9641418, -38.8664441, 0], [175.1371765, -38.888895, 0], [175.3308105, -39.1236683, 0], [175.4022217, -39.1758525, 0], [175.4942322, -39.171594, 0], [175.5587769, -39.0810402, 0], [175.6246948, -39.0842382, 0], [175.7180786, -39.0970287, 0], [175.7785034, -39.1375168, 0], [175.8403015, -39.1407123, 0], [176.1753845, -39.1343212, 0], [176.2564087, -39.1055545, 0], [176.375885, -39.1694647, 0], [176.4569092, -38.9978413, 0], [176.6271973, -38.9925047, 0], [176.5942383, -38.9305707, 0], [176.7054749, -38.8525424, 0], [176.6340637, -38.6801497, 0], [176.3868713, -38.5234585, 0], [176.139679, -38.4213183, 0] ] ] }, "properties": { "name": "Taupo", "branch_phone": "07 378 8225", "branch_email": "taupo@jae.co.nz", "branch_slug": "taupo" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [172.2546387, -43.9265828, 0], [172.0355988, -43.7472891, 0], [171.638031, -43.506729, 0], [171.5618134, -43.3870859, 0], [171.3647461, -43.2912012, 0], [171.3619995, -43.149094, 0], [171.3194275, -43.0979747, 0], [170.6698608, -43.377105, 0], [170.7103729, -43.4818229, 0], [170.8662415, -43.5744216, 0], [171.0392761, -43.705608, 0], [171.1875916, -43.7512572, 0], [171.2452698, -43.8904702, 0], [171.2940216, -43.938945, 0], [171.2926483, -43.9799693, 0], [171.4677429, -44.1033654, 0], [171.500187, -44.2081729, 0], [171.9356918, -44.019484, 0], [172.2546387, -43.9265828, 0] ] ] }, "properties": { "name": "Ashburton", "branch_phone": "03 308 3676", "branch_email": "ashburton@jae.co.nz", "branch_slug": "ashburton" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [172.7098846, -43.3908907, 0], [172.6858521, -43.3902047, 0], [172.6785564, -43.3920758, 0], [172.6769257, -43.395319, 0], [172.6508331, -43.4120934, 0], [172.6532364, -43.4148991, 0], [172.6531506, -43.4216322, 0], [172.6495457, -43.4268686, 0], [172.6500607, -43.4326654, 0], [172.655468, -43.4407676, 0], [172.6584721, -43.4547881, 0], [172.6634502, -43.507725, 0], [172.6631927, -43.5101839, 0], [172.6608324, -43.512985, 0], [172.660532, -43.5146345, 0], [172.6601458, -43.5152569, 0], [172.6600385, -43.5171865, 0], [172.6599526, -43.5176377, 0], [172.6557255, -43.5176377, 0], [172.6517129, -43.5176377, 0], [172.6508117, -43.5190848, 0], [172.6507044, -43.5208897, 0], [172.6364994, -43.5208431, 0], [172.6366925, -43.5364627, 0], [172.624805, -43.5364783, 0], [172.6056755, -43.5368283, 0], [172.5960088, -43.5375983, 0], [172.5714827, -43.5395582, 0], [172.5573206, -43.5391849, 0], [172.5530291, -43.539496, 0], [172.5458622, -43.5435089, 0], [172.5350475, -43.5429801, 0], [172.5273657, -43.5432912, 0], [172.523632, -43.5435712, 0], [172.50844, -43.5456242, 0], [172.5004578, -43.5461219, 0], [172.4795151, -43.5524672, 0], [172.4545383, -43.5630411, 0], [172.4123955, -43.5812613, 0], [172.3923969, -43.5858621, 0], [172.2445965, -43.6418519, 0], [172.2270012, -43.6485598, 0], [172.2239971, -43.6485598, 0], [172.1155071, -43.6899081, 0], [172.0877838, -43.6965485, 0], [172.0519924, -43.731228, 0], [172.0355988, -43.7472891, 0], [172.2546387, -43.9265828, 0], [172.407074, -43.866713, 0], [172.6885986, -43.8439369, 0], [172.8015518, -43.8922021, 0], [172.8677987, -43.9085415, 0], [172.9316711, -43.9142179, 0], [173.0669403, -43.8865113, 0], [173.106784, -43.8533378, 0], [173.1259918, -43.8127293, 0], [173.152771, -43.7358793, 0], [173.1191254, -43.6941903, 0], [173.0799866, -43.663898, 0], [173.0243683, -43.6335903, 0], [172.8992271, -43.606375, 0], [172.8199196, -43.5801422, 0], [172.763443, -43.5485481, 0], [172.7361489, -43.4692414, 0], [172.7285957, -43.4170189, 0], [172.7303123, -43.3915768, 0], [172.7098846, -43.3908907, 0] ] ] }, "properties": { "name": "Christchurch East and South", "branch_phone": "03 322 9933", "branch_email": "christchurch.south@jae.co.nz", "branch_slug": "christchurch-east-south" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [173.3323288, -42.8555814, 0], [173.2798004, -42.8180697, 0], [173.2461548, -42.8165587, 0], [173.0854797, -42.7333961, 0], [173.0072021, -42.6541619, 0], [172.9502106, -42.543469, 0], [172.9227448, -42.5126017, 0], [172.8760529, -42.489821, 0], [172.3674218, -42.4046998, 0], [172.2697449, -42.3869514, 0], [172.0967102, -42.6925299, 0], [171.5851593, -42.9800372, 0], [171.3194275, -43.0979747, 0], [171.3619995, -43.149094, 0], [171.3647461, -43.2912012, 0], [171.5618134, -43.3870859, 0], [171.638031, -43.506729, 0], [172.0355988, -43.7472891, 0], [172.0877838, -43.6965485, 0], [172.1155071, -43.6899081, 0], [172.2239971, -43.6485598, 0], [172.2270012, -43.6485598, 0], [172.3923969, -43.5858621, 0], [172.4123955, -43.5812613, 0], [172.4771118, -43.5532758, 0], [172.5004578, -43.5461219, 0], [172.50844, -43.5456242, 0], [172.5296402, -43.5428246, 0], [172.5458622, -43.5435089, 0], [172.5530291, -43.539496, 0], [172.5573206, -43.5391849, 0], [172.5714827, -43.5395582, 0], [172.5960088, -43.5375983, 0], [172.6056755, -43.5368283, 0], [172.624805, -43.5364783, 0], [172.6366925, -43.5364627, 0], [172.6364994, -43.5208431, 0], [172.6507044, -43.5208897, 0], [172.6508117, -43.5190848, 0], [172.6517129, -43.5176377, 0], [172.6599526, -43.5176377, 0], [172.6601458, -43.5152569, 0], [172.660532, -43.5146345, 0], [172.6608324, -43.512985, 0], [172.6631927, -43.5101839, 0], [172.6634502, -43.507725, 0], [172.6584721, -43.4547881, 0], [172.655468, -43.4407676, 0], [172.6500607, -43.4326654, 0], [172.6495457, -43.4268686, 0], [172.6531506, -43.4216322, 0], [172.6532364, -43.4148991, 0], [172.6508331, -43.4120934, 0], [172.6769257, -43.395319, 0], [172.6785564, -43.3920758, 0], [172.6858521, -43.3902047, 0], [172.7303123, -43.3915768, 0], [172.7335739, -43.3633786, 0], [172.732544, -43.3326699, 0], [172.7407837, -43.295949, 0], [172.7548598, -43.253705, 0], [172.7806091, -43.2074281, 0], [172.8029252, -43.177642, 0], [172.827301, -43.1493445, 0], [172.8430939, -43.1425812, 0], [172.8606033, -43.1365687, 0], [172.8990555, -43.1115104, 0], [172.9302979, -43.1029883, 0], [172.9790497, -43.0902028, 0], [173.0223083, -43.0688878, 0], [173.0480576, -43.0601088, 0], [173.0902863, -43.0661288, 0], [173.1280518, -43.0116767, 0], [173.1551743, -42.9930968, 0], [173.1840134, -42.989581, 0], [173.2458114, -42.9677286, 0], [173.3052063, -42.9109262, 0], [173.3323288, -42.8857756, 0], [173.3263206, -42.8686674, 0], [173.3323288, -42.8555814, 0] ] ] }, "properties": { "name": "Christchurch North and West", "branch_phone": "03 359 9004", "branch_email": "christchurch.north@jae.co.nz", "branch_slug": "christchurch-north-west" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [173.3323288, -42.8555814, 0], [173.3469197, -42.846142, 0], [173.3963581, -42.7998086, 0], [173.4475808, -42.716838, 0], [173.4924883, -42.6373682, 0], [173.5419266, -42.561552, 0], [173.5357468, -42.5256335, 0], [173.550853, -42.482099, 0], [173.6545362, -42.4380274, 0], [173.7019147, -42.4496815, 0], [173.7335003, -42.4324529, 0], [173.74174, -42.3979814, 0], [173.7142742, -42.3858105, 0], [173.7170208, -42.3492836, 0], [173.7623393, -42.3310122, 0], [173.8378702, -42.2629552, 0], [173.8955483, -42.2049982, 0], [173.9511665, -42.1813425, 0], [173.9604362, -42.1523332, 0], [173.9415535, -42.1253476, 0], [173.9806922, -42.0593629, 0], [174.0138245, -42.0209879, 0], [173.8842187, -42.0116787, 0], [173.2813451, -42.1648037, 0], [172.7749451, -41.9210569, 0], [172.3674218, -42.4046998, 0], [172.8760529, -42.489821, 0], [172.9227448, -42.5126017, 0], [172.9502106, -42.543469, 0], [173.0072021, -42.6541619, 0], [173.0854797, -42.7333961, 0], [173.2461548, -42.8165587, 0], [173.2798004, -42.8180697, 0], [173.3323288, -42.8555814, 0] ] ] }, "properties": { "name": "Kaikoura Coast", "branch_phone": "03 319 5528", "branch_email": "kaikoura.coast@jae.co.nz", "branch_slug": "kaikoura-coast" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [167.8353882, -44.4239729, 0], [168.3462524, -44.7291743, 0], [168.8461304, -44.931752, 0], [169.4284058, -44.8227602, 0], [169.9694824, -43.6748248, 0], [169.5465088, -43.6470071, 0], [169.5341492, -43.5903383, 0], [169.4778442, -43.6042619, 0], [169.3789673, -43.6181823, 0], [169.3212891, -43.6460134, 0], [169.1674805, -43.72149, 0], [169.0686035, -43.7889411, 0], [168.9477539, -43.8543358, 0], [168.8131714, -43.9196588, 0], [168.7445068, -43.9611906, 0], [168.6538696, -43.9414172, 0], [168.5385132, -43.9453724, 0], [168.480835, -43.9789811, 0], [168.3874512, -43.9888624, 0], [168.3270264, -44.0046691, 0], [168.2830811, -44.0500898, 0], [168.2446289, -44.0954757, 0], [168.1869507, -44.1546224, 0], [168.0935669, -44.2196154, 0], [168.0221558, -44.2432314, 0], [168.0413818, -44.2786377, 0], [168.0496216, -44.294367, 0], [167.9754639, -44.3140227, 0], [167.9562378, -44.3513504, 0], [167.8353882, -44.4239729, 0] ] ] }, "properties": { "name": "Wanaka", "branch_phone": "03 443 1150", "branch_email": "wanaka@jae.co.nz", "branch_slug": "wanaka" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [171.500187, -44.2081729, 0], [171.4677429, -44.1033654, 0], [171.2926483, -43.9799693, 0], [171.2940216, -43.938945, 0], [171.2452698, -43.8904702, 0], [171.1875916, -43.7512572, 0], [171.0392761, -43.705608, 0], [170.8662415, -43.5744216, 0], [170.7103729, -43.4818229, 0], [170.6698608, -43.377105, 0], [169.9694824, -43.6748248, 0], [169.4284058, -44.8227602, 0], [169.9667358, -44.8149672, 0], [170.4364014, -44.9745137, 0], [170.3787231, -45.1665472, 0], [170.6135559, -45.3434589, 0], [170.7938003, -45.5322066, 0], [170.8292769, -45.5096057, 0], [170.8561561, -45.4750851, 0], [170.8336959, -45.441667, 0], [170.8491783, -45.4179469, 0], [170.8855869, -45.4032764, 0], [170.8871378, -45.3736777, 0], [170.8797643, -45.3479355, 0], [170.8451135, -45.3379344, 0], [170.8946879, -45.242894, 0], [170.9619942, -45.1470024, 0], [170.9858951, -45.1384142, 0], [171.0032696, -45.1269159, 0], [171.0026866, -45.1043639, 0], [171.1185837, -45.0264651, 0], [171.174202, -44.9492493, 0], [171.1937714, -44.8969846, 0], [171.2009811, -44.8475935, 0], [171.2071609, -44.7903635, 0], [171.2009811, -44.7218566, 0], [171.1920548, -44.6657228, 0], [171.1875916, -44.6246864, 0], [171.1999512, -44.5828873, 0], [171.2414933, -44.5126658, 0], [171.2734222, -44.4595152, 0], [171.2833786, -44.4335347, 0], [171.2892151, -44.4126929, 0], [171.2874985, -44.3854648, 0], [171.2689591, -44.3700053, 0], [171.3479232, -44.3024758, 0], [171.500187, -44.2081729, 0] ] ] }, "properties": { "name": "Timaru", "branch_phone": "03 688 3887", "branch_email": "timaru@jae.co.nz", "branch_slug": "timaru" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [169.733963, -46.513043, 0], [169.4833374, -46.4151388, 0], [169.3940735, -46.227353, 0], [169.1921997, -46.1322667, 0], [169.1853333, -46.0379693, 0], [169.4833374, -45.8536735, 0], [169.453125, -45.8441078, 0], [168.9834595, -45.4620571, 0], [168.3132935, -45.294211, 0], [168.2089233, -44.7759862, 0], [168.3462524, -44.7291743, 0], [167.8353882, -44.4239729, 0], [167.7749634, -44.5454627, 0], [167.5112915, -44.6784187, 0], [167.1569824, -44.9395292, 0], [166.9482422, -45.1161766, 0], [166.739502, -45.2903466, 0], [166.6213989, -45.5236682, 0], [166.5252686, -45.602509, 0], [166.4071655, -45.7004249, 0], [166.4154053, -45.7771018, 0], [166.3961792, -45.8632376, 0], [166.4044189, -45.9587876, 0], [166.4675903, -46.0732306, 0], [166.5692139, -46.1589074, 0], [166.6268921, -46.2254529, 0], [166.7504883, -46.2596449, 0], [166.8493652, -46.2444511, 0], [167.0196533, -46.2577459, 0], [167.1459961, -46.2881219, 0], [167.3355103, -46.2938156, 0], [167.4041748, -46.2539477, 0], [167.4124146, -46.2083489, 0], [167.4481201, -46.1779286, 0], [167.5854492, -46.2197521, 0], [167.6733398, -46.2767329, 0], [167.6348877, -46.3014062, 0], [167.6623535, -46.3583021, 0], [167.7310181, -46.407564, 0], [167.8134155, -46.4208192, 0], [167.9370117, -46.4037762, 0], [168.0770874, -46.407564, 0], [168.1787109, -46.4340712, 0], [168.2061768, -46.5588603, 0], [167.744751, -46.6607475, 0], [167.6486206, -46.7116192, 0], [167.5442505, -46.7360959, 0], [167.6101685, -46.824496, 0], [167.7035522, -46.8864774, 0], [167.6376343, -46.9183793, 0], [167.6486206, -46.9896208, 0], [167.5827026, -47.0195889, 0], [167.5195313, -47.0869555, 0], [167.5030518, -47.1523693, 0], [167.3794556, -47.3295156, 0], [167.6925659, -47.3164829, 0], [167.8546143, -47.2139715, 0], [168.1842041, -47.1430294, 0], [168.2830811, -47.0514115, 0], [168.2583618, -46.9615105, 0], [168.5357666, -46.8507999, 0], [168.6621094, -46.7530348, 0], [168.6154175, -46.6286926, 0], [168.7554932, -46.5890691, 0], [168.7994385, -46.6645174, 0], [168.9834595, -46.7153856, 0], [169.2333984, -46.6814788, 0], [169.4613647, -46.6437796, 0], [169.5355225, -46.6022801, 0], [169.6508789, -46.5777428, 0], [169.733963, -46.513043, 0] ] ] }, "properties": { "name": "Southland", "branch_phone": "03 214 4774", "branch_email": "southland@jae.co.nz", "branch_slug": "southland" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [174.9857728, -41.399216, 0], [175.0444808, -41.3883986, 0], [175.0726331, -41.394065, 0], [175.1344309, -41.4095163, 0], [175.1934822, -41.4332012, 0], [175.1934822, -41.4661398, 0], [175.1673898, -41.506261, 0], [175.1866158, -41.5443017, 0], [175.1948555, -41.5720471, 0], [175.2127082, -41.627502, 0], [175.3363039, -41.629555, 0], [175.3637696, -41.604915, 0], [175.3939819, -41.587456, 0], [175.4489134, -41.5843745, 0], [175.4791257, -41.5607448, 0], [175.5477899, -41.5134596, 0], [175.6178275, -41.4990616, 0], [175.6370534, -41.4754007, 0], [175.6672657, -41.4496726, 0], [175.7716355, -41.3992159, 0], [175.8636456, -41.3476891, 0], [175.9007243, -41.3023117, 0], [175.9350564, -41.2703223, 0], [176.0078406, -41.2486431, 0], [176.005094, -41.2124952, 0], [176.0298132, -41.1835625, 0], [176.0957308, -41.1339338, 0], [176.1218233, -41.0480288, 0], [176.168515, -40.9703072, 0], [176.2618985, -40.9267431, 0], [176.3058436, -40.826021, 0], [176.3195765, -40.7636419, 0], [176.360775, -40.7012042, 0], [176.4129599, -40.65017, 0], [176.4486653, -40.6147355, 0], [176.4829975, -40.586583, 0], [176.4884907, -40.5636351, 0], [176.5063434, -40.5396358, 0], [176.5626481, -40.5109296, 0], [176.5962935, -40.5088414, 0], [176.625479, -40.5097577, 0], [176.6498517, -40.4934389, 0], [176.6628979, -40.4425072, 0], [176.572261, -40.4351908, 0], [176.41296, -40.366168, 0], [176.2728848, -40.2509729, 0], [176.2495422, -40.2082457, 0], [176.1527223, -40.2803139, 0], [176.0462927, -40.3577968, 0], [175.9007243, -40.3975508, 0], [175.8608991, -40.4540028, 0], [175.7537828, -40.5584185, 0], [175.6082145, -40.584497, 0], [175.3596498, -40.8478397, 0], [175.1918086, -41.1033653, 0], [175.1042616, -41.226908, 0], [175.0486437, -41.3058736, 0], [174.9857728, -41.399216, 0] ] ] }, "properties": { "name": "Wairarapa", "branch_phone": "06 377 5585", "branch_email": "wairarapa@jae.co.nz", "branch_slug": "wairarapa" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [174.9858143, -41.3994267, 0], [175.0486423, -41.3061331, 0], [175.1042605, -41.2271675, 0], [175.1918078, -41.1036248, 0], [175.3596498, -40.8478397, 0], [175.2594423, -40.8103825, 0], [175.228389, -40.8425742, 0], [175.2363294, -40.8463648, 0], [175.2373599, -40.8500456, 0], [175.2393132, -40.8536565, 0], [175.2391097, -40.8577796, 0], [175.236181, -40.8594308, 0], [175.23616, -40.861857, 0], [175.2361238, -40.8661946, 0], [175.2350146, -40.8700128, 0], [175.2242541, -40.8833606, 0], [175.1736137, -40.9025659, 0], [175.1608229, -40.9143719, 0], [175.1138196, -40.9587812, 0], [175.0667527, -41.0034312, 0], [175.0080451, -41.0596967, 0], [175.0193739, -41.0668784, 0], [175.0176577, -41.076293, 0], [175.0142242, -41.0838959, 0], [174.9972344, -41.0933757, 0], [174.966159, -41.1241883, 0], [174.9673192, -41.1306858, 0], [174.9574918, -41.1431307, 0], [174.9435427, -41.1474291, 0], [174.9307969, -41.1354374, 0], [174.9037602, -41.1512732, 0], [174.8728612, -41.1669114, 0], [174.8376706, -41.190394, 0], [174.8393872, -41.1928806, 0], [174.8423913, -41.1956255, 0], [174.8407605, -41.198887, 0], [174.8333791, -41.2021482, 0], [174.838486, -41.2186136, 0], [174.8429492, -41.2206795, 0], [174.8428205, -41.2235524, 0], [174.8403314, -41.2241979, 0], [174.8431154, -41.2335574, 0], [174.8632911, -41.2299109, 0], [174.879041, -41.2328479, 0], [174.8920873, -41.2431748, 0], [174.9020436, -41.2630493, 0], [174.8962071, -41.2821439, 0], [174.8735478, -41.3051015, 0], [174.857755, -41.330887, 0], [174.8447087, -41.357693, 0], [174.8488286, -41.3659388, 0], [174.8639348, -41.3783056, 0], [174.8721745, -41.3891245, 0], [174.8618749, -41.3989116, 0], [174.8625615, -41.4099846, 0], [174.8766377, -41.4138469, 0], [174.9017003, -41.4251748, 0], [174.912, -41.4388172, 0], [174.9247029, -41.440104, 0], [174.9411824, -41.4287787, 0], [174.9751713, -41.4092121, 0], [174.9858143, -41.3994267, 0] ] ] }, "properties": { "name": "Hutt Valley", "branch_phone": "04 563 7272", "branch_email": "hutt.valley@jae.co.nz", "branch_slug": "hutt-valley" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [174.8248172, -41.2471924, 0], [174.8188949, -41.2434977, 0], [174.8178434, -41.2424651, 0], [174.815011, -41.2414002, 0], [174.8152685, -41.238625, 0], [174.8146677, -41.236721, 0], [174.8128009, -41.2399481, 0], [174.8089385, -41.23756, 0], [174.8067498, -41.2361401, 0], [174.8106551, -41.2326546, 0], [174.8075008, -41.2318477, 0], [174.8050117, -41.2348169, 0], [174.798553, -41.2371728, 0], [174.7982365, -41.2371486, 0], [174.7981936, -41.2369065, 0], [174.7981185, -41.2360029, 0], [174.7979629, -41.2359626, 0], [174.7976732, -41.2359222, 0], [174.7975633, -41.2358799, 0], [174.797405, -41.2356459, 0], [174.7973514, -41.2354341, 0], [174.7973514, -41.234946, 0], [174.7973782, -41.2343832, 0], [174.7973487, -41.2341412, 0], [174.7972387, -41.2339415, 0], [174.7970322, -41.2337781, 0], [174.7967854, -41.2336873, 0], [174.7965628, -41.2336551, 0], [174.7962275, -41.2336349, 0], [174.7959352, -41.2335562, 0], [174.7957072, -41.2334231, 0], [174.7951707, -41.2330298, 0], [174.7943902, -41.2325456, 0], [174.7938377, -41.2321644, 0], [174.7933334, -41.2317509, 0], [174.7929794, -41.2312587, 0], [174.7926468, -41.2308311, 0], [174.7922552, -41.2302743, 0], [174.7919333, -41.2299354, 0], [174.7916007, -41.2299153, 0], [174.7914076, -41.2300807, 0], [174.7896051, -41.230234, 0], [174.7190309, -41.2398029, 0], [174.717443, -41.2197921, 0], [174.6990539, -41.212351, 0], [174.68678, -41.2164672, 0], [174.6857071, -41.2248922, 0], [174.6712017, -41.2335421, 0], [174.6647215, -41.2325739, 0], [174.6556021, -41.2319123, 0], [174.6505594, -41.2335098, 0], [174.6391868, -41.2336066, 0], [174.6325779, -41.2416099, 0], [174.6247244, -41.2471279, 0], [174.610219, -41.263711, 0], [174.6044684, -41.2695495, 0], [174.6011209, -41.2779677, 0], [174.6014643, -41.287836, 0], [174.6039963, -41.2951878, 0], [174.6187592, -41.3037639, 0], [174.6216345, -41.3116942, 0], [174.622364, -41.3212351, 0], [174.6312046, -41.3272297, 0], [174.6407747, -41.3367038, 0], [174.6520186, -41.3462409, 0], [174.666996, -41.352652, 0], [174.6768236, -41.3546492, 0], [174.6894407, -41.355809, 0], [174.7025299, -41.3647958, 0], [174.722271, -41.3693049, 0], [174.7429578, -41.3592572, 0], [174.762268, -41.3587404, 0], [174.8010636, -41.3511379, 0], [174.8447087, -41.357693, 0], [174.857755, -41.330887, 0], [174.8735478, -41.3051015, 0], [174.8962071, -41.2821439, 0], [174.9020436, -41.2630493, 0], [174.8920873, -41.2431748, 0], [174.879041, -41.2328479, 0], [174.8632911, -41.2299109, 0], [174.8431154, -41.2335574, 0], [174.8248172, -41.2471924, 0] ] ] }, "properties": { "name": "Wellington", "branch_phone": "04 383 7073", "branch_email": "wellington@jae.co.nz", "branch_slug": "wellington" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [175.1677322, -40.1300661, 0], [175.1795769, -40.1270473, 0], [175.18507, -40.1336097, 0], [175.2065277, -40.1358408, 0], [175.2255821, -40.1422712, 0], [175.2326202, -40.1450925, 0], [175.2558804, -40.1375469, 0], [175.2627468, -40.137875, 0], [175.2664375, -40.1327566, 0], [175.2817154, -40.1306567, 0], [175.2823162, -40.127441, 0], [175.2911568, -40.127441, 0], [175.2938175, -40.1207467, 0], [175.3044605, -40.1214031, 0], [175.3105545, -40.1187777, 0], [175.325489, -40.1238314, 0], [175.3254032, -40.1281629, 0], [175.338192, -40.1311161, 0], [175.34832, -40.1305911, 0], [175.347805, -40.1363657, 0], [175.359478, -40.1464047, 0], [175.3686619, -40.1575573, 0], [175.3763008, -40.1605091, 0], [175.3849697, -40.1525716, 0], [175.392952, -40.1485697, 0], [175.4036808, -40.1435178, 0], [175.4122639, -40.1400403, 0], [175.4185939, -40.138039, 0], [175.4195595, -40.1364478, 0], [175.4195809, -40.1354143, 0], [175.4189372, -40.1336425, 0], [175.4181218, -40.1308372, 0], [175.4181433, -40.1286879, 0], [175.4188728, -40.1253245, 0], [175.4194951, -40.1229454, 0], [175.4189587, -40.1193028, 0], [175.4181647, -40.1149871, 0], [175.4164052, -40.1066668, 0], [175.415225, -40.100906, 0], [175.4140019, -40.0940121, 0], [175.4129076, -40.0884309, 0], [175.4125428, -40.0864609, 0], [175.4128218, -40.0851968, 0], [175.4142165, -40.0809939, 0], [175.4159546, -40.0758056, 0], [175.4173708, -40.0716186, 0], [175.4181647, -40.070075, 0], [175.4195809, -40.0685151, 0], [175.4217911, -40.0665117, 0], [175.4246235, -40.0638349, 0], [175.4258466, -40.0627346, 0], [175.429194, -40.0580212, 0], [175.4324341, -40.0534553, 0], [175.4341292, -40.0513037, 0], [175.4361033, -40.0487249, 0], [175.4369831, -40.0473779, 0], [175.4385066, -40.044109, 0], [175.4392576, -40.0426306, 0], [175.4412532, -40.0397065, 0], [175.4433775, -40.0368973, 0], [175.4447722, -40.0352051, 0], [175.4463816, -40.0336936, 0], [175.4486346, -40.0321985, 0], [175.4509091, -40.031032, 0], [175.4540205, -40.0298983, 0], [175.4568744, -40.0292575, 0], [175.4624963, -40.0285346, 0], [175.465951, -40.0277952, 0], [175.4706502, -40.0260371, 0], [175.4787827, -40.0217484, 0], [175.487237, -40.0167199, 0], [175.4936743, -40.0128086, 0], [175.4963565, -40.0111816, 0], [175.4994035, -40.0085848, 0], [175.5031371, -40.0053141, 0], [175.5066562, -40.0022733, 0], [175.5106044, -39.9989036, 0], [175.5135226, -39.9966023, 0], [175.5147886, -39.9953037, 0], [175.5154753, -39.9929529, 0], [175.5162263, -39.9886457, 0], [175.5170417, -39.9848808, 0], [175.5199599, -39.9809183, 0], [175.521419, -39.9788466, 0], [175.521419, -39.977301, 0], [175.5208826, -39.9743412, 0], [175.5206251, -39.9714306, 0], [175.5210972, -39.9694737, 0], [175.5219769, -39.9679114, 0], [175.5237365, -39.9660859, 0], [175.5262256, -39.9646716, 0], [175.5294013, -39.9638164, 0], [175.5350661, -39.9627145, 0], [175.5375767, -39.9618921, 0], [175.5409884, -39.960083, 0], [175.5449152, -39.9585369, 0], [175.5489492, -39.9572211, 0], [175.5525541, -39.9570073, 0], [175.5565667, -39.9568922, 0], [175.5591631, -39.9562343, 0], [175.5638838, -39.9537012, 0], [175.5660725, -39.952155, 0], [175.5675316, -39.9483058, 0], [175.568819, -39.9445551, 0], [175.5692053, -39.9428113, 0], [175.5619955, -39.9416268, 0], [175.5542707, -39.940212, 0], [175.5526829, -39.9397842, 0], [175.5595922, -39.9242188, 0], [175.5603218, -39.9226062, 0], [175.5804062, -39.9273124, 0], [175.5851269, -39.9260619, 0], [175.5875301, -39.9252391, 0], [175.5897188, -39.9233302, 0], [175.5925512, -39.9223429, 0], [175.5959845, -39.9225074, 0], [175.5994177, -39.923396, 0], [175.6034088, -39.9242188, 0], [175.605855, -39.9243834, 0], [175.6104898, -39.9265884, 0], [175.6145239, -39.9262593, 0], [175.6177855, -39.9244492, 0], [175.6201029, -39.9241201, 0], [175.6249952, -39.9250745, 0], [175.626626, -39.9250745, 0], [175.6294584, -39.9246467, 0], [175.6312609, -39.9227707, 0], [175.6349945, -39.9148713, 0], [175.636282, -39.9119747, 0], [175.6420755, -39.9061809, 0], [175.6502295, -39.8999258, 0], [175.6574821, -39.894625, 0], [175.6635332, -39.8900811, 0], [175.6669664, -39.8884347, 0], [175.6692839, -39.8874139, 0], [175.6744337, -39.8816839, 0], [175.6746483, -39.8800373, 0], [175.674305, -39.8776991, 0], [175.6753778, -39.8758218, 0], [175.6796694, -39.8729564, 0], [175.6825876, -39.8712437, 0], [175.6879091, -39.8708814, 0], [175.6912136, -39.8702556, 0], [175.6945181, -39.8678511, 0], [175.6981659, -39.8662042, 0], [175.7061481, -39.8628443, 0], [175.7191944, -39.8574747, 0], [175.726018, -39.8547733, 0], [175.7319403, -39.8510833, 0], [175.7373905, -39.8476568, 0], [175.7397509, -39.8450868, 0], [175.7422829, -39.840968, 0], [175.7442141, -39.8397158, 0], [175.7485485, -39.8390568, 0], [175.7687616, -39.8367501, 0], [175.7710361, -39.8361898, 0], [175.7777739, -39.8328614, 0], [175.7798767, -39.8322353, 0], [175.7816362, -39.8306204, 0], [175.7815933, -39.8287419, 0], [175.7805204, -39.8273906, 0], [175.7782459, -39.8263359, 0], [175.7764864, -39.8240947, 0], [175.7761431, -39.8225786, 0], [175.7783318, -39.819645, 0], [175.7839108, -39.813415, 0], [175.7869148, -39.8101844, 0], [175.7892323, -39.8088987, 0], [175.7940817, -39.8072173, 0], [175.7961416, -39.8064591, 0], [175.7976866, -39.8052722, 0], [175.7984591, -39.8028984, 0], [175.7982445, -39.8010851, 0], [175.7970858, -39.7994695, 0], [175.7943392, -39.7981177, 0], [175.7889748, -39.7968317, 0], [175.7874727, -39.7959415, 0], [175.7853699, -39.7938971, 0], [175.7844687, -39.7910613, 0], [175.7862711, -39.7815637, 0], [175.7873869, -39.7782326, 0], [175.7897472, -39.7752312, 0], [175.79494, -39.7721308, 0], [175.7982874, -39.7696899, 0], [175.8021069, -39.764346, 0], [175.8053684, -39.7601564, 0], [175.8093166, -39.7583749, 0], [175.8140373, -39.7581109, 0], [175.8185863, -39.7596945, 0], [175.8215904, -39.7603543, 0], [175.8255816, -39.7593646, 0], [175.828371, -39.7575171, 0], [175.8305168, -39.7541189, 0], [175.8335209, -39.7516443, 0], [175.8351088, -39.7494337, 0], [175.8348513, -39.7444512, 0], [175.8356667, -39.7427023, 0], [175.8388424, -39.7405904, 0], [175.8409023, -39.7368613, 0], [175.8435202, -39.7331981, 0], [175.8437777, -39.7314489, 0], [175.8428764, -39.7286105, 0], [175.8391428, -39.715374, 0], [175.8380699, -39.712667, 0], [175.8366108, -39.7109833, 0], [175.829401, -39.7026634, 0], [175.8254099, -39.6980077, 0], [175.8199596, -39.6954981, 0], [175.8084583, -39.6900825, 0], [175.807128, -39.6873084, 0], [175.8063984, -39.6856901, 0], [175.8048105, -39.6851617, 0], [175.801506, -39.6853599, 0], [175.7969141, -39.6860204, 0], [175.7846832, -39.6907099, 0], [175.7804775, -39.6918657, 0], [175.7736969, -39.6890917, 0], [175.779705, -39.6630307, 0], [175.7818079, -39.6628985, 0], [175.7806492, -39.6597269, 0], [175.779233, -39.6575133, 0], [175.7759285, -39.6554979, 0], [175.7714224, -39.6532511, 0], [175.7682896, -39.6495504, 0], [175.7677746, -39.6464773, 0], [175.7678604, -39.6394715, 0], [175.768075, -39.6369267, 0], [175.7674742, -39.6348446, 0], [175.7648563, -39.6325971, 0], [175.7608652, -39.6295233, 0], [175.7598782, -39.6278376, 0], [175.7598782, -39.6257882, 0], [175.7613802, -39.6218216, 0], [175.7621527, -39.6198382, 0], [175.7617664, -39.6176894, 0], [175.7594061, -39.6152761, 0], [175.7592344, -39.6134909, 0], [175.7603502, -39.6112758, 0], [175.7609081, -39.6092921, 0], [175.7607794, -39.6036712, 0], [175.7624531, -39.6008606, 0], [175.7645988, -39.5971902, 0], [175.7647705, -39.595636, 0], [175.7639122, -39.5944124, 0], [175.7623672, -39.5931227, 0], [175.7550716, -39.5921967, 0], [175.7490635, -39.5926928, 0], [175.7472181, -39.5929242, 0], [175.7455444, -39.5923951, 0], [175.736661, -39.586806, 0], [175.7312107, -39.5826717, 0], [175.7252884, -39.5807864, 0], [175.7216835, -39.5799595, 0], [175.7180357, -39.5795957, 0], [175.7146025, -39.5782726, 0], [175.7119417, -39.5749648, 0], [175.7086372, -39.5714914, 0], [175.7025862, -39.5690765, 0], [175.6983805, -39.5678525, 0], [175.6972218, -39.5645773, 0], [175.6975222, -39.5636509, 0], [175.6986809, -39.5622283, 0], [175.6995821, -39.5595484, 0], [175.6971359, -39.5560742, 0], [175.6948185, -39.5540889, 0], [175.6874371, -39.5516734, 0], [175.6856775, -39.5501844, 0], [175.6856775, -39.5477025, 0], [175.6845188, -39.545386, 0], [175.6810427, -39.5394953, 0], [175.6796265, -39.5358877, 0], [175.6800127, -39.5342659, 0], [175.6821156, -39.5315849, 0], [175.683918, -39.52897, 0], [175.6841326, -39.5238392, 0], [175.685463, -39.519006, 0], [175.683918, -39.5134772, 0], [175.6805277, -39.5102656, 0], [175.6754208, -39.5066897, 0], [175.6740046, -39.5043387, 0], [175.6733608, -39.5006963, 0], [175.6737041, -39.4989081, 0], [175.6698418, -39.4883436, 0], [175.6701851, -39.4848659, 0], [175.6694555, -39.4821498, 0], [175.6613016, -39.4838722, 0], [175.6579113, -39.481918, 0], [175.6598854, -39.4788043, 0], [175.4942322, -39.171594, 0], [175.4022217, -39.1758525, 0], [175.3666878, -39.1777155, 0], [175.0678253, -39.3029559, 0], [174.7066498, -39.5347624, 0], [174.4944763, -39.6236727, 0], [174.3235016, -39.6511695, 0], [174.3655586, -39.6964888, 0], [174.4177436, -39.7498296, 0], [174.4869232, -39.782685, 0], [174.5185089, -39.8022061, 0], [174.547348, -39.8227763, 0], [174.580307, -39.8317409, 0], [174.6290588, -39.8385954, 0], [174.6668243, -39.8528295, 0], [174.7044181, -39.8753607, 0], [174.7533417, -39.8818157, 0], [174.7966003, -39.8696957, 0], [174.863205, -39.8828695, 0], [174.9092102, -39.9007818, 0], [174.9504089, -39.9281681, 0], [174.9723816, -39.9518589, 0], [175.0053406, -39.9681745, 0], [175.0753784, -40.0339236, 0], [175.1378632, -40.0901545, 0], [175.1677322, -40.1300661, 0] ] ] }, "properties": { "name": "Whanganui", "branch_phone": "06 348 8100", "branch_email": "whanganui@jae.co.nz", "branch_slug": "whanganui" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [174.7710764,-36.8361748,0], [174.7685659,-36.8436279,0], [174.7672492,-36.8432659,0], [174.7666087,-36.844681,0], [174.7652845,-36.8490393,0], [174.7645458,-36.8509217,0], [174.760192,-36.8605067,0], [174.7592304,-36.8621639,0], [174.7588091,-36.8626285,0], [174.7586102,-36.8632658,0], [174.7609591,-36.8638023,0], [174.76156,-36.8641544,0], [174.7754431,-36.8670384,0], [174.7749657,-36.8684588,0], [174.7750892,-36.8692954,0], [174.7718167,-36.8815944,0], [174.7707867,-36.8855935,0], [174.7708425,-36.8864197,0], [174.7702545,-36.8888249,0], [174.7711576,-36.8893681,0], [174.7701287,-36.8925229,0], [174.7720175,-36.8932079,0], [174.7744427,-36.8933952,0], [174.7738499,-36.8956026,0], [174.7739733,-36.8967054,0], [174.7730398,-36.8996655,0], [174.7762156,-36.9120193,0], [174.7818374,-36.9132717,0], [174.7837687,-36.9275273,0], [174.7808933,-36.9293284,0], [174.7437286,-36.944953,0], [174.6956635,-36.9411114,0], [174.6201324,-37.0036494,0], [174.6263123,-37.024484,0], [174.5459747,-37.0327065,0], [174.4891548,-37.0717518,0], [174.5190239,-37.0943477,0], [174.6388436,-37.3032794,0], [174.6742058,-37.3833892,0], [174.6707725,-37.4232076,0], [174.7099114,-37.4989676,0], [174.7257042,-37.5340965,0], [175.1758861,-37.3550124,0], [175.1248169,-37.2644903,0], [175.1014709,-37.2158391,0], [175.1639557,-37.1972449,0], [175.272789,-37.0979076,0], [175.2830887,-37.057369,0], [175.2793121,-37.0014559,0], [175.3146743,-36.9967947,0], [175.294075,-36.9638834,0], [175.271759,-36.9424835,0], [175.2456665,-36.9271157,0], [175.2085877,-36.9175092,0], [175.181125,-36.9186085,0], [175.1564026,-36.9317813,0], [175.1416397,-36.9180582,0], [175.1213837,-36.9287624,0], [175.1069641,-36.9257434,0], [175.0959778,-36.9172347,0], [175.1158905,-36.8966453,0], [175.1021576,-36.8864859,0], [175.079155,-36.8886826,0], [175.064392,-36.8661629,0], [175.0314331,-36.861768,0], [174.9885178,-36.8647895,0], [174.9727249,-36.8667122,0], [174.969635,-36.8826414,0], [174.9600213,-36.8860742,0], [174.9538421,-36.8779729,0], [174.9229431,-36.8631414,0], [174.9169349,-36.8495434,0], [174.9068069,-36.8407516,0], [174.8130798,-36.8378664,0], [174.7770739,-36.8368361,0], [174.7710764,-36.8361748,0] ] ] }, "properties": { "name": "Auckland East and South", "branch_phone": "09 528 7092", "branch_email": "auckland.east.south@jae.co.nz", "branch_slug": "auckland-east-south" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [174.3981451, -38.9690852, 0], [174.3496994, -38.97486, 0], [174.2978265, -38.9664649, 0], [174.1878891, -38.9784271, 0], [174.1058773, -39.0174043, 0], [174.0620898, -39.0360714, 0], [174.0141678, -39.0397859, 0], [173.9676234, -39.0830021, 0], [173.856058, -39.12644, 0], [173.8012437, -39.157443, 0], [173.7504959, -39.1974733, 0], [173.7367646, -39.2384239, 0], [173.7271499, -39.2838914, 0], [173.7326168, -39.3588915, 0], [173.7714386, -39.43016, 0], [173.8398602, -39.5011981, 0], [173.9338303, -39.5581253, 0], [174.0660503, -39.6005777, 0], [174.1885491, -39.6132506, 0], [174.3235016, -39.6511695, 0], [174.4944763, -39.6236727, 0], [174.7066498, -39.5347624, 0], [175.0678253, -39.3029559, 0], [175.3666878, -39.1777155, 0], [175.4022217, -39.1758525, 0], [175.3308105, -39.1236683, 0], [175.1371765, -38.888895, 0], [174.9641418, -38.8664441, 0], [174.9586487, -38.7048027, 0], [175.0183868, -38.4799322, 0], [174.6252823, -38.4879946, 0], [174.6233648, -38.5055269, 0], [174.6148318, -38.5499491, 0], [174.6019672, -38.6829642, 0], [174.5698064, -38.8060719, 0], [174.5283639, -38.8537919, 0], [174.4639948, -38.9041063, 0], [174.3981451, -38.9690852, 0] ] ] }, "properties": { "name": "Taranaki", "branch_phone": "06 758 5965", "branch_email": "taranaki@jae.co.nz", "branch_slug": "taranaki" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [176.6143571, -37.8316752, 0], [176.388588, -37.8674682, 0], [175.9233856, -37.8770214, 0], [175.812149, -37.8791893, 0], [175.6542206, -38.0791764, 0], [175.5944824, -38.1140303, 0], [175.6782532, -38.201497, 0], [175.6851196, -38.3061029, 0], [175.7496643, -38.3513495, 0], [175.8348083, -38.3685789, 0], [176.0325623, -38.3890334, 0], [176.139679, -38.4213183, 0], [176.3868713, -38.5234585, 0], [176.6340637, -38.6801497, 0], [176.7054749, -38.8525424, 0], [176.829071, -38.9337755, 0], [176.9128418, -38.8942394, 0], [177.1325684, -38.8129611, 0], [177.5301982, -38.3683686, 0], [177.4841309, -38.4062538, 0], [177.3893738, -38.4008729, 0], [176.7281342, -38.4019491, 0], [176.809845, -38.2662195, 0], [176.8263245, -38.1853074, 0], [176.7240143, -38.1178119, 0], [176.6498566, -38.0778251, 0], [176.5434265, -38.0643111, 0], [176.5193939, -38.041602, 0], [176.5545845, -38.0367349, 0], [176.5916634, -38.0110418, 0], [176.6083145, -37.9696434, 0], [176.6002464, -37.9287633, 0], [176.559906, -37.8980205, 0], [176.5595627, -37.8627928, 0], [176.5648842, -37.8562873, 0], [176.5865135, -37.8472059, 0], [176.601963, -37.835683, 0], [176.6143571, -37.8316752, 0] ] ] }, "properties": { "name": "Rotorua", "branch_phone": "07 348 7964", "branch_email": "rotorua@jae.co.nz", "branch_slug": "rotorua" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [174.4891548,-37.0717174,0], [174.5459747,-37.0326721,0], [174.6263123,-37.0244496,0], [174.6201324,-37.003615,0], [174.6956635,-36.941077,0], [174.7437285,-36.9449186,0], [174.7808933,-36.9293284,0], [174.7837687,-36.9275273,0], [174.7818374,-36.9132717,0], [174.7762155,-36.9119849,0], [174.7730397,-36.8996311,0], [174.7739733,-36.8967054,0], [174.7738499,-36.8956026,0], [174.7744427,-36.8933952,0], [174.7720175,-36.8932079,0], [174.7701287,-36.8925229,0], [174.7711576,-36.8893681,0], [174.7702545,-36.8888249,0], [174.7708425,-36.8864197,0], [174.7707867,-36.8855935,0], [174.7718166,-36.88156,0], [174.7750892,-36.8692954,0], [174.7749657,-36.8684588,0], [174.7754215,-36.8670813,0], [174.76156,-36.8641544,0], [174.7609591,-36.8638023,0], [174.7586102,-36.8632658,0], [174.7588091,-36.8626285,0], [174.7592304,-36.8621639,0], [174.760192,-36.8605067,0], [174.7645458,-36.8509217,0], [174.7652845,-36.8490393,0], [174.7666087,-36.844681,0], [174.7672492,-36.8432659,0], [174.7685659,-36.8436279,0], [174.7710764,-36.8361748,0], [174.6986674,-36.8280083,0], [174.6873378,-36.8224089,0], [174.6857071,-36.8117585,0], [174.6843338,-36.8035121,0], [174.6772957,-36.7917937,0], [174.6736908,-36.7865697,0], [174.6657944,-36.78437,0], [174.6633911,-36.7820327,0], [174.6635628,-36.7768081,0], [174.6611595,-36.7729581,0], [174.6359253,-36.7727175,0], [174.6077728,-36.7730956,0], [174.6059917,-36.7696064,0], [174.6022367,-36.7675953,0], [174.5988035,-36.7566966,0], [174.5959282,-36.7532238,0], [174.4496725,-36.6653208,0], [174.4422914,-36.6439406,0], [174.4322492,-36.6400151,0], [174.4266702,-36.6298215,0], [174.420147,-36.6185244,0], [174.4050409,-36.6181112,0], [174.3895893,-36.6028829,0], [174.3902779,-36.5822799,0], [174.3916513,-36.5649096,0], [174.3313979,-36.463608,0], [174.2786977,-36.4158258,0], [174.2290862,-36.4060162,0], [174.213295,-36.391164,0], [174.1820527,-36.4066392,0], [174.1381111,-36.425989,0], [174.1405108,-36.481588,0], [174.1595652,-36.5254671,0], [174.3217851,-36.727431,0], [174.3549157,-36.7728206,0], [174.3792916,-36.8140605,0], [174.3950845,-36.8484101,0], [174.4057274,-36.8890601,0], [174.4213486,-36.9370981,0], [174.4277001,-36.9707067,0], [174.441433,-36.9996393,0], [174.4611741,-37.0474706,0], [174.4891548,-37.0717174,0] ] ] }, "properties": { "name": "Auckland West and Central", "branch_phone": "09 818 4089", "branch_email": "auckland.west.central@jae.co.nz", "branch_slug": "auckland-west-central" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [175.0918116, -40.765732, 0], [175.0429222, -40.802933, 0], [174.9805134, -40.8042353, 0], [174.9129387, -40.8153795, 0], [174.8834232, -40.8433012, 0], [174.8569767, -40.8766725, 0], [174.8580795, -40.906182, 0], [174.8891774, -40.9269207, 0], [174.9181282, -40.9754228, 0], [174.8927684, -41.0043585, 0], [174.8258186, -41.0322937, 0], [174.7768658, -41.0566074, 0], [174.7536359, -41.0915275, 0], [174.75932, -41.1194403, 0], [174.7473968, -41.1520197, 0], [174.7208272, -41.1772277, 0], [174.7153025, -41.1939657, 0], [174.7089179, -41.2097996, 0], [174.703986, -41.2110754, 0], [174.6990539, -41.212351, 0], [174.7174646, -41.2197759, 0], [174.7190525, -41.2397867, 0], [174.7919549, -41.2299192, 0], [174.7931833, -41.2315148, 0], [174.7944118, -41.2325294, 0], [174.7959568, -41.23354, 0], [174.796807, -41.2336711, 0], [174.7973184, -41.2339499, 0], [174.797373, -41.2349298, 0], [174.7974266, -41.2356297, 0], [174.7976948, -41.235906, 0], [174.7981401, -41.2359867, 0], [174.7982581, -41.2371324, 0], [174.7985746, -41.2371566, 0], [174.8050333, -41.2348007, 0], [174.8075224, -41.2318315, 0], [174.8106767, -41.2326384, 0], [174.8067714, -41.2361239, 0], [174.8128225, -41.2399319, 0], [174.8146893, -41.2367048, 0], [174.8152901, -41.2386088, 0], [174.8150326, -41.241384, 0], [174.817865, -41.2424489, 0], [174.8189165, -41.2434815, 0], [174.8248172, -41.2471924, 0], [174.8431154, -41.2335574, 0], [174.8403098, -41.2242304, 0], [174.8427989, -41.2235849, 0], [174.8429276, -41.220712, 0], [174.8384644, -41.2186461, 0], [174.8378492, -41.2166588, 0], [174.8333575, -41.2021807, 0], [174.8407389, -41.1989195, 0], [174.8423697, -41.195658, 0], [174.8393656, -41.1929131, 0], [174.837649, -41.1904265, 0], [174.8728395, -41.1669439, 0], [174.9037385, -41.1513057, 0], [174.9307752, -41.1354699, 0], [174.9435211, -41.1474616, 0], [174.9574702, -41.1431632, 0], [174.9672976, -41.1307183, 0], [174.9661374, -41.1242208, 0], [174.9972128, -41.0934082, 0], [175.0142026, -41.0839284, 0], [175.0176361, -41.0763255, 0], [175.0193523, -41.0669109, 0], [175.0080235, -41.0597292, 0], [175.048208, -41.0216276, 0], [175.0878309, -40.9835119, 0], [175.1735922, -40.9025984, 0], [175.21009, -40.8888741, 0], [175.2242327, -40.8833931, 0], [175.2349932, -40.8700453, 0], [175.2361238, -40.8661946, 0], [175.2361386, -40.8618895, 0], [175.2361595, -40.8594633, 0], [175.2390882, -40.857812, 0], [175.2394419, -40.8536939, 0], [175.2373599, -40.8500456, 0], [175.236308, -40.8463973, 0], [175.2323009, -40.8443165, 0], [175.2283676, -40.8426067, 0], [175.22416, -40.8397005, 0], [175.2177212, -40.8387424, 0], [175.2167758, -40.8359659, 0], [175.2148008, -40.831501, 0], [175.2117962, -40.8278154, 0], [175.2077619, -40.8267275, 0], [175.2046719, -40.8257613, 0], [175.1977411, -40.8202649, 0], [175.1979345, -40.8196477, 0], [175.1958963, -40.8174311, 0], [175.1976348, -40.8154744, 0], [175.1992234, -40.8122104, 0], [175.2001253, -40.8094662, 0], [175.1952769, -40.8071117, 0], [175.1911154, -40.806836, 0], [175.1831364, -40.8026461, 0], [175.1784157, -40.7910136, 0], [175.1712917, -40.7788622, 0], [175.157899, -40.775158, 0], [175.1470827, -40.7713237, 0], [175.1143853, -40.759361, 0], [175.0958672, -40.7597351, 0], [175.0918116, -40.765732, 0] ] ] }, "properties": { "name": "Kapiti Coast", "branch_phone": "04 233 9031", "branch_email": "kapiti.coast@jae.co.nz", "branch_slug": "kapiti-coast" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [176.1753845, -39.1343212, 0], [175.8403248, -39.1411774, 0], [175.7785263, -39.1379819, 0], [175.7181011, -39.0974938, 0], [175.6247166, -39.0847033, 0], [175.5587983, -39.0815053, 0], [175.4942322, -39.171594, 0], [175.6598854, -39.4788043, 0], [175.6579113, -39.481918, 0], [175.6613016, -39.4838722, 0], [175.6694555, -39.4821498, 0], [175.6701851, -39.4848659, 0], [175.6698418, -39.4883436, 0], [175.6737041, -39.4989081, 0], [175.6733608, -39.5006963, 0], [175.6740046, -39.5043387, 0], [175.6754208, -39.5066897, 0], [175.6805277, -39.5102656, 0], [175.683918, -39.5134772, 0], [175.685463, -39.519006, 0], [175.6840467, -39.5236071, 0], [175.683918, -39.52897, 0], [175.6798412, -39.5345472, 0], [175.6796265, -39.5358877, 0], [175.6810427, -39.5394953, 0], [175.6837891, -39.5443601, 0], [175.6856775, -39.5477025, 0], [175.6856775, -39.5501844, 0], [175.6874371, -39.5516734, 0], [175.6948185, -39.5540889, 0], [175.6971359, -39.5560742, 0], [175.6995821, -39.5595484, 0], [175.6986809, -39.5622283, 0], [175.6975222, -39.5636509, 0], [175.6972218, -39.5645773, 0], [175.6983805, -39.5678525, 0], [175.7025862, -39.5690765, 0], [175.7086372, -39.5714914, 0], [175.7117055, -39.5747166, 0], [175.7146025, -39.5782726, 0], [175.7180357, -39.5795957, 0], [175.7216835, -39.5799595, 0], [175.7252884, -39.5807864, 0], [175.7312107, -39.5826717, 0], [175.736661, -39.586806, 0], [175.7455444, -39.5923951, 0], [175.7472181, -39.5929242, 0], [175.7550716, -39.5921967, 0], [175.7623672, -39.5931227, 0], [175.7638478, -39.5944124, 0], [175.7647705, -39.595636, 0], [175.7645988, -39.5971902, 0], [175.7607794, -39.6036712, 0], [175.7609081, -39.6092921, 0], [175.7603502, -39.6112758, 0], [175.7592344, -39.6134909, 0], [175.7594061, -39.6152761, 0], [175.7617664, -39.6176894, 0], [175.7621527, -39.6198382, 0], [175.7598782, -39.6257882, 0], [175.7598782, -39.6278376, 0], [175.7608652, -39.6295233, 0], [175.7674742, -39.6348446, 0], [175.768075, -39.6369267, 0], [175.7677961, -39.6432055, 0], [175.7677746, -39.6464773, 0], [175.7682896, -39.6495504, 0], [175.7714224, -39.6532511, 0], [175.7757996, -39.6552831, 0], [175.779233, -39.6575133, 0], [175.780735, -39.6600077, 0], [175.7818079, -39.6628985, 0], [175.779705, -39.6630307, 0], [175.7736969, -39.6890917, 0], [175.7804775, -39.6918657, 0], [175.7846832, -39.6907099, 0], [175.7966331, -39.6862182, 0], [175.801506, -39.6853599, 0], [175.8048105, -39.6851617, 0], [175.8063984, -39.6856901, 0], [175.8084583, -39.6900825, 0], [175.8254099, -39.6980077, 0], [175.8380699, -39.712667, 0], [175.8391857, -39.7157702, 0], [175.8437777, -39.7314489, 0], [175.8435202, -39.7331981, 0], [175.8388424, -39.7405904, 0], [175.8356667, -39.7427023, 0], [175.8348513, -39.7444512, 0], [175.8351088, -39.7494337, 0], [175.8335209, -39.7516443, 0], [175.8305168, -39.7541189, 0], [175.828371, -39.7575171, 0], [175.8255816, -39.7593646, 0], [175.8215904, -39.7603543, 0], [175.8185863, -39.7596945, 0], [175.8140373, -39.7581109, 0], [175.8093166, -39.7583749, 0], [175.8053684, -39.7601564, 0], [175.7982874, -39.7696899, 0], [175.79494, -39.7721308, 0], [175.7897472, -39.7752312, 0], [175.7873869, -39.7782326, 0], [175.7862711, -39.7815637, 0], [175.7844687, -39.7910613, 0], [175.785905, -39.7944929, 0], [175.7874727, -39.7959415, 0], [175.7889748, -39.7968317, 0], [175.7943392, -39.7981177, 0], [175.7956696, -39.7984969, 0], [175.7970858, -39.7994695, 0], [175.7982445, -39.8010851, 0], [175.7984591, -39.8028984, 0], [175.7976866, -39.8052722, 0], [175.7961416, -39.8064591, 0], [175.7923443, -39.8078155, 0], [175.788943, -39.808967, 0], [175.7869148, -39.8101844, 0], [175.7822811, -39.8151975, 0], [175.7783318, -39.819645, 0], [175.7761431, -39.8225786, 0], [175.7764864, -39.8240947, 0], [175.7782459, -39.8263359, 0], [175.7805204, -39.8273906, 0], [175.7815933, -39.8287419, 0], [175.7816362, -39.8306204, 0], [175.7798767, -39.8322353, 0], [175.7777739, -39.8328614, 0], [175.7710361, -39.8361898, 0], [175.7687616, -39.8367501, 0], [175.7442141, -39.8397158, 0], [175.7422829, -39.840968, 0], [175.7397509, -39.8450868, 0], [175.7373905, -39.8476568, 0], [175.726018, -39.8547733, 0], [175.7241067, -39.8555715, 0], [175.7103437, -39.8611193, 0], [175.6986976, -39.8660336, 0], [175.6945181, -39.8678511, 0], [175.6912136, -39.8702556, 0], [175.6879091, -39.8708814, 0], [175.6825876, -39.8712437, 0], [175.6753778, -39.8758218, 0], [175.674305, -39.8776991, 0], [175.6746483, -39.8800373, 0], [175.6744337, -39.8816839, 0], [175.6692839, -39.8874139, 0], [175.6635332, -39.8900811, 0], [175.6420755, -39.9061809, 0], [175.636282, -39.9119747, 0], [175.6312609, -39.9227707, 0], [175.6294584, -39.9246467, 0], [175.626626, -39.9250745, 0], [175.6249952, -39.9250745, 0], [175.6201029, -39.9241201, 0], [175.6177855, -39.9244492, 0], [175.6145239, -39.9262593, 0], [175.6104898, -39.9265884, 0], [175.605855, -39.9243834, 0], [175.6031512, -39.9241861, 0], [175.5959845, -39.9225074, 0], [175.5925512, -39.9223429, 0], [175.5897188, -39.9233302, 0], [175.5875301, -39.9252391, 0], [175.5851269, -39.9260619, 0], [175.5804062, -39.9273124, 0], [175.5603218, -39.9226062, 0], [175.5568678, -39.9306195, 0], [175.5526829, -39.9397842, 0], [175.5542707, -39.940212, 0], [175.5600856, -39.9412651, 0], [175.5692053, -39.9428113, 0], [175.567639, -39.9474832, 0], [175.5660725, -39.952155, 0], [175.5638838, -39.9537012, 0], [175.5594958, -39.9559876, 0], [175.5565667, -39.9568922, 0], [175.5489492, -39.9572211, 0], [175.5409884, -39.960083, 0], [175.5375767, -39.9618921, 0], [175.5350661, -39.9627145, 0], [175.5297985, -39.9638247, 0], [175.5262256, -39.9646716, 0], [175.5237365, -39.9660859, 0], [175.5216444, -39.9680758, 0], [175.5210972, -39.9694737, 0], [175.5206251, -39.9714306, 0], [175.521419, -39.9788466, 0], [175.5170417, -39.9848808, 0], [175.5147886, -39.9953037, 0], [175.4963565, -40.0111816, 0], [175.4787827, -40.0217484, 0], [175.4706502, -40.0260371, 0], [175.465951, -40.0277952, 0], [175.4621423, -40.0284936, 0], [175.4568744, -40.0292575, 0], [175.4536772, -40.0300133, 0], [175.4509091, -40.031032, 0], [175.4486346, -40.0321985, 0], [175.4463816, -40.0336936, 0], [175.4447722, -40.0352051, 0], [175.4427446, -40.0378993, 0], [175.4392576, -40.0426306, 0], [175.4369831, -40.0473779, 0], [175.4258466, -40.0627346, 0], [175.4181647, -40.070075, 0], [175.4125428, -40.0864609, 0], [175.415225, -40.100906, 0], [175.4194951, -40.1229454, 0], [175.4184652, -40.1272194, 0], [175.4181218, -40.1308372, 0], [175.4195595, -40.1364478, 0], [175.4185939, -40.138039, 0], [175.4122639, -40.1400403, 0], [175.4033286, -40.1436662, 0], [175.3849697, -40.1525716, 0], [175.3763008, -40.1605091, 0], [175.3686619, -40.1575573, 0], [175.359478, -40.1464047, 0], [175.347805, -40.1363657, 0], [175.34832, -40.1305911, 0], [175.338192, -40.1311161, 0], [175.3254032, -40.1281629, 0], [175.325489, -40.1238314, 0], [175.3105545, -40.1187777, 0], [175.3044605, -40.1214031, 0], [175.2938175, -40.1207467, 0], [175.2911568, -40.127441, 0], [175.2823162, -40.127441, 0], [175.2817154, -40.1306567, 0], [175.2664375, -40.1327566, 0], [175.2627468, -40.137875, 0], [175.2558804, -40.1375469, 0], [175.2326202, -40.1450925, 0], [175.2255821, -40.1422712, 0], [175.2065277, -40.1358408, 0], [175.1850056, -40.1336097, 0], [175.1795125, -40.1270473, 0], [175.1677322, -40.1300661, 0], [175.1855428, -40.1716457, 0], [175.1956476, -40.2130918, 0], [175.200905, -40.2571593, 0], [175.2114983, -40.3004391, 0], [175.2133909, -40.3438477, 0], [175.2125376, -40.3872563, 0], [175.2045536, -40.4318424, 0], [175.1989673, -40.4765593, 0], [175.1945897, -40.5056077, 0], [175.1793677, -40.5605473, 0], [175.1689997, -40.5869074, 0], [175.1605147, -40.6144402, 0], [175.1297118, -40.6863761, 0], [175.1114191, -40.726023, 0], [175.1030015, -40.7418881, 0], [175.0958672, -40.7597351, 0], [175.1143209, -40.759361, 0], [175.1370399, -40.7677041, 0], [175.1474581, -40.7714478, 0], [175.1578346, -40.775158, 0], [175.1712273, -40.7788622, 0], [175.1783513, -40.7910136, 0], [175.183072, -40.8026461, 0], [175.191051, -40.806836, 0], [175.1952125, -40.8071117, 0], [175.2000609, -40.8094662, 0], [175.1992234, -40.8122104, 0], [175.1976348, -40.8154744, 0], [175.1958963, -40.8174311, 0], [175.1979345, -40.8196477, 0], [175.1977411, -40.8202649, 0], [175.199705, -40.8217912, 0], [175.2046719, -40.8257613, 0], [175.2117962, -40.8278154, 0], [175.2148008, -40.831501, 0], [175.2166686, -40.835755, 0], [175.2177212, -40.8387424, 0], [175.22416, -40.8397005, 0], [175.228389, -40.8425742, 0], [175.2594616, -40.8108476, 0], [175.3088549, -40.8293544, 0], [175.3596498, -40.8478397, 0], [175.6082371, -40.5852216, 0], [175.753807, -40.5591431, 0], [175.8609244, -40.4547273, 0], [175.9007501, -40.3982753, 0], [176.04632, -40.3585213, 0], [176.1527223, -40.2803139, 0], [176.2495422, -40.2082457, 0], [176.3360863, -40.135256, 0], [176.3429528, -40.0858917, 0], [176.32098, -40.0638238, 0], [176.234462, -40.055415, 0], [176.1383057, -40.0139426, 0], [176.0106141, -39.9944208, 0], [176.0051208, -39.8269329, 0], [176.0751592, -39.6495198, 0], [176.2839008, -39.6262533, 0], [176.2564348, -39.4970882, 0], [176.2701677, -39.3496316, 0], [176.2069959, -39.2943878, 0], [176.1753845, -39.1343212, 0] ] ] }, "properties": { "name": "Manawatu", "branch_phone": "06 354 6203", "branch_email": "manawatu@jae.co.nz", "branch_slug": "manawatu" } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [174.7437286,-36.6565767,0], [174.7370339,-36.6622914,0], [174.7144603,-36.6751655,0], [174.6864152,-36.6747868,0], [174.684559,-36.6753376,0], [174.6824292,-36.6756646,0], [174.6801842,-36.6752429,0], [174.679656,-36.6746491,0], [174.6751174,-36.6719566,0], [174.6718881,-36.6705718,0], [174.6524692,-36.6729557,0], [174.6517932,-36.6734928,0], [174.6519273,-36.6766525,0], [174.6534748,-36.6814504,0], [174.6533042,-36.6823004,0], [174.6475755,-36.6797655,0], [174.6424369,-36.6778785,0], [174.6313061,-36.6930844,0], [174.6270929,-36.6989571,0], [174.6242994,-36.7017213,0], [174.6209049,-36.7040725,0], [174.6065282,-36.7120888,0], [174.5959282,-36.7532582,0], [174.5988035,-36.7566966,0], [174.6022367,-36.7675953,0], [174.6059917,-36.7696064,0], [174.6077728,-36.77313,0], [174.6359253,-36.7727175,0], [174.6611595,-36.7729925,0], [174.6635628,-36.7768081,0], [174.6633911,-36.7820671,0], [174.6657944,-36.78437,0], [174.6736908,-36.7865697,0], [174.6772957,-36.7918281,0], [174.6843338,-36.8035121,0], [174.6857071,-36.8117585,0], [174.6873378,-36.8224089,0], [174.6986674,-36.8280083,0], [174.7770739,-36.8368361,0], [174.8130798,-36.8378664,0], [174.8223495,-36.8263251,0], [174.8137665,-36.8140262,0], [174.8072433,-36.8069482,0], [174.7899056,-36.7914844,0], [174.7860432,-36.7820671,0], [174.7830391,-36.7657045,0], [174.775486,-36.7565591,0], [174.769392,-36.7396408,0], [174.7640705,-36.7310426,0], [174.7596931,-36.7197603,0], [174.761753,-36.7121232,0], [174.7660446,-36.7029715,0], [174.7677612,-36.6943004,0], [174.7607231,-36.6841141,0], [174.7562599,-36.6768865,0], [174.7568607,-36.668832,0], [174.7535133,-36.6607079,0], [174.7437286,-36.6565767,0] ] ] }, "properties": { "name": "Auckland North Shore", "branch_phone": "09 415 5521", "branch_email": "auckland.northshore@jae.co.nz", "branch_slug": "auckland-north-shore" } }] }; let controls = {}; let controlsDom = {}; let templatesDom = {}; let layers = {}; let assets = {}; function _init() { console.log('There are ' + branches_geojson.features.length + ' branches in NZ'); _cacheDom(); _mapInit(); } function _cacheDom() { controlsDom.addressInput = document.getElementById('jae-branch-map-address-input'); controlsDom.map = document.getElementById('jae-branch-map'); templatesDom.branchInfo = document.getElementById('tpl-branch-info'); controlsDom.selectRegion = document.getElementById('jae-branch-map-address-select'); } function _mapInit() { controls.map = new google.maps.Map(controlsDom.map, { 'zoom': 6, 'mapTypeId': google.maps.MapTypeId.ROADMAP, 'center': new google.maps.LatLng(-40.848461, 174.763336), 'disableDefaultUI': true }); _branchesLayerInit(); _autoCompleteInit(); _mapEventBind(); } function _autoCompleteInit() { controls.autocomplete = new google.maps.places.Autocomplete(controlsDom.addressInput, { 'ComponentRestrictions': { 'country': ['nz'] }, 'types': ['geocode'] }); google.maps.event.addListener(controls.autocomplete, "place_changed", function() { let place = this.getPlace(); let branchData = _getMatchingBranchToLocation(place.geometry.location); _updateUserLocationMarker(place.geometry.location); _zoomToBranchArea(branchData[0]); _displayInformationBox(branchData); controlsDom.selectRegion.value = branchData[0]; _highlightBranch(branchData[0]); }); controlsDom.addressInput.addEventListener('click', function(e) { //Erase contents of the autocomplete field upon user clicking in the field e.target.value = ''; }); controlsDom.addressInput.addEventListener('keypress', function(e) { // Enter key processing var key = e.which || e.keyCode; if (key === 13) { // 13 is enter /* let place = e.target.value; let branchData = _getMatchingBranchToLocation(place.geometry.location); _updateUserLocationMarker(place.geometry.location); _zoomToBranchArea(branchData[0]); _displayInformationBox(branchData); controlsDom.selectRegion.value = branchData[0]; _highlightBranch(branchData[0]); e.target.value = ''; */ } }); controlsDom.selectRegion.addEventListener('change', function(e) { _defaultAllBranches(); _zoomToBranchArea(e.target.value); _highlightBranch(e.target.value); controlsDom.addressInput.value = ''; _displayInformationBox(_getMatchingBranchToData(e.target.value)); }); } function _mapEventBind() { // window.addEventListener("orientationchange", function() { // google.maps.event.trigger(controls.map, 'resize'); // }, false); } function _displayInformationBox(featureData) { console.log(featureData); let branchInfoTplHtml = templatesDom.branchInfo.innerHTML; if (typeof featureData[0] === "undefined") { document.getElementById('jae-branch-undefined').style.display = 'block'; document.getElementById('jae-branch-info').style.display = 'none'; } if (typeof featureData[0] !== "undefined") { document.getElementById('jae-branch-info').innerHTML = branchInfoTplHtml.replace(/{{branch_name}}/g, featureData[0]).replace(/{{branch_phone}}/g, featureData[1]).replace(/{{branch_email}}/g, featureData[2]).replace(/{{branch_slug}}/g, featureData[3]); document.getElementById('jae-branch-info').style.display = 'block'; document.getElementById('jae-branch-undefined').style.display = 'none'; } } function _updateUserLocationMarker(latlng) { if (!assets.hasOwnProperty('userLocationMarker')) { assets.userLocationMarker = new google.maps.Marker({ 'map': controls.map, 'position': latlng }); } else { assets.userLocationMarker.setPosition(latlng); } } function _zoomToBranchArea(branchName) { layers.branches.forEach(function(branchFeature) { if (branchName == branchFeature.getProperty('name')) { let bounds = new google.maps.LatLngBounds(); branchFeature.getGeometry().forEachLatLng(function(latlng) { bounds.extend(latlng); }); controls.map.fitBounds(bounds); } }); } function _defaultAllBranches() { layers.branches.forEach(function(branchFeature) { layers.branches.overrideStyle(branchFeature, { 'zIndex': 0 }); }); layers.branches.revertStyle(); } function _highlightBranch(branchName) { layers.branches.forEach(function(branchFeature) { if (branchName == branchFeature.getProperty('name')) { layers.branches.overrideStyle(branchFeature, { 'strokeColor': '#FFFFFF', 'zIndex': 9999, 'strokeWeight': 2, 'fillOpacity': 0.5 }); } }); } function _branchesLayerInit() { layers.branches = new google.maps.Data({ 'map': controls.map }); layers.branches.addGeoJson(branches_geojson, { 'idPropertyName': 'name' }); layers.branches.setStyle({ 'fillColor': '#FF0000', 'fillOpacity': 0.3, 'strokeColor': '#666', 'strokeWeight': 1 }); layers.branches.addListener('mouseover', function(event) { _defaultAllBranches(); _highlightBranch(event.feature.getProperty('name')); }); layers.branches.addListener('mouseout', function(event) { _defaultAllBranches(); }); layers.branches.addListener('click', function(event) { _zoomToBranchArea(event.feature.getProperty('name')); var featureData = Array(); featureData[0] = event.feature.getProperty('name'); featureData[1] = event.feature.getProperty('branch_phone'); featureData[2] = event.feature.getProperty('branch_email'); featureData[3] = event.feature.getProperty('branch_slug'); controlsDom.selectRegion.value = featureData[0]; controlsDom.addressInput.value = ''; _displayInformationBox(featureData); }); } function _getMatchingBranchToLocation(latlng) { let userLocationFeature = { 'type': 'Feature', 'properties': {}, 'geometry': { 'type': 'Point', 'coordinates': [latlng.lng(), latlng.lat()] } }; var matchingData = Array(); for (i = 0; i < branches_geojson.features.length; i++) { if (turf.inside(userLocationFeature, branches_geojson.features[i])) { matchingData[0] = branches_geojson.features[i].properties.name; matchingData[1] = branches_geojson.features[i].properties.branch_phone; matchingData[2] = branches_geojson.features[i].properties.branch_email; matchingData[3] = branches_geojson.features[i].properties.branch_slug; break; } } return matchingData; } function _getMatchingBranchToData(branchName) { var matchingData = Array(); for (i = 0; i < branches_geojson.features.length; i++) { if (branchName == branches_geojson.features[i].properties.name) { matchingData[0] = branches_geojson.features[i].properties.name; matchingData[1] = branches_geojson.features[i].properties.branch_phone; matchingData[2] = branches_geojson.features[i].properties.branch_email; matchingData[3] = branches_geojson.features[i].properties.branch_slug; break; } } return matchingData; } return { initialize: _init } })(); window.onload = function() { dealerMap.initialize(); }