Services Plugins FAQs

GEOFence not recognising point is inside polygon

Hi there,

I’m trying to get the geofence working again and can’t seem to get it to recognise when a point is inside a shape…

I’ve got a list of coordinates (I’ll paste them at the bottom), I’ve setup the workflow to add the shape to a Mapbox map (just to be able to see the actual shape), I’ve also added a draggable marker to the map and can see it’s coordinate changes when I move the marker.

I’ve configured the GEOfence element to look at the marker points and for simplicity I’ve also pasted the coordinates into the polygon coordinates field (rather than a lookup at the moment)

I’m also getting this error…

The plugin Geofence #MapLocationTriggerLive / element Geofence threw the following error: c@
g@
p@ (please report this to the plugin author)

and here is a list of the coordinates if you wan to test…

-0.63179,52.162343,-0.632327,52.155341,-0.642436,52.15319,-0.637688,52.147928,-0.639579,52.146547,-0.636017,52.142811,-0.637107,52.139673,-0.620941,52.133486,-0.608908,52.134289,-0.600572,52.126152,-0.59949,52.116035,-0.59347,52.111114,-0.603531,52.10545,-0.59841,52.102109,-0.605617,52.099548,-0.608931,52.094986,-0.607445,52.092547,-0.633013,52.081401,-0.638101,52.077513,-0.643238,52.068148,-0.652661,52.064572,-0.670626,52.049146,-0.644701,52.037681,-0.646471,52.031654,-0.643902,52.030727,-0.645547,52.028701,-0.641854,52.024499,-0.652676,52.01892,-0.64513,52.011289,-0.652309,52.010105,-0.663341,52.000173,-0.662276,51.991238,-0.657117,51.988638,-0.657824,51.982465,-0.647334,51.972669,-0.65463,51.969669,-0.652886,51.968723,-0.65692,51.961048,-0.661139,51.960205,-0.663753,51.956015,-0.665729,51.957004,-0.669184,51.954959,-0.67358,51.956432,-0.674788,51.952795,-0.671321,51.949117,-0.674336,51.946503,-0.672083,51.94406,-0.675506,51.943648,-0.676482,51.945539,-0.684372,51.94278,-0.681842,51.936133,-0.684606,51.936289,-0.693111,51.9275,-0.694268,51.921023,-0.703802,51.909567,-0.694349,51.900599,-0.67462,51.902201,-0.668905,51.897079,-0.661165,51.894699,-0.661158,51.891011,-0.653633,51.887242,-0.639005,51.883055,-0.630079,51.882572,-0.621746,51.885937,-0.610628,51.876017,-0.585224,51.870778,-0.57091,51.858527,-0.573103,51.855492,-0.570381,51.851859,-0.568662,51.851803,-0.565342,51.851697,-0.568482,51.851266,-0.566129,51.847885,-0.557896,51.845188,-0.549909,51.836351,-0.539293,51.83187,-0.545314,51.824978,-0.550655,51.828447,-0.555291,51.827173,-0.5588,51.831426,-0.562318,51.830542,-0.560739,51.826922,-0.56001,51.825248,-0.562449,51.826843,-0.568805,51.820267,-0.576829,51.819279,-0.575961,51.816712,-0.583483,51.807368,-0.593311,51.808599,-0.596489,51.814485,-0.613524,51.812507,-0.617208,51.815421,-0.627304,51.816334,-0.634592,51.820407,-0.649421,51.814068,-0.657,51.816276,-0.668862,51.816271,-0.67845,51.824417,-0.6887,51.839574,-0.691884,51.841724,-0.697096,51.841569,-0.688414,51.849697,-0.693957,51.857501,-0.696226,51.856887,-0.698003,51.85859,-0.703125,51.858086,-0.70872,51.85487,-0.712114,51.858258,-0.719089,51.857567,-0.724176,51.854706,-0.724257,51.850464,-0.732828,51.849427,-0.737974,51.842864,-0.747379,51.842414,-0.746437,51.838076,-0.739522,51.834503,-0.739491,51.831406,-0.725875,51.818605,-0.720858,51.816598,-0.710938,51.821,-0.687039,51.800649,-0.683836,51.795048,-0.691836,51.792804,-0.683145,51.788524,-0.677823,51.779447,-0.677646,51.771724,-0.67131,51.766628,-0.652963,51.7604,-0.644898,51.754439,-0.632691,51.753519,-0.629933,51.755148,-0.618937,51.75312,-0.615418,51.751385,-0.614588,51.747899,-0.60252,51.751827,-0.588034,51.752587,-0.576668,51.737518,-0.571862,51.736326,-0.565356,51.74009,-0.567239,51.73702,-0.565102,51.736142,-0.560902,51.737806,-0.562303,51.73455,-0.555377,51.734538,-0.555961,51.732811,-0.55174,51.73105,-0.555253,51.728886,-0.552071,51.723519,-0.562958,51.718495,-0.564865,51.712357,-0.556986,51.706012,-0.549324,51.70366,-0.545674,51.697297,-0.544627,51.694188,-0.550284,51.687492,-0.550352,51.683154,-0.548355,51.683516,-0.54794,51.68092,-0.540546,51.680317,-0.536452,51.682173,-0.532781,51.681166,-0.525932,51.682595,-0.526592,51.679203,-0.512805,51.680378,-0.506768,51.673561,-0.516377,51.665938,-0.522654,51.66853,-0.524436,51.658884,-0.534283,51.663492,-0.534932,51.661407,-0.538547,51.66111,-0.53591,51.653439,-0.538322,51.652856,-0.532584,51.649621,-0.540916,51.638528,-0.535786,51.63764,-0.537325,51.635305,-0.531714,51.617643,-0.52225,51.602338,-0.51644,51.600385,-0.502254,51.600184,-0.497966,51.602924,-0.500894,51.609358,-0.497068,51.61941,-0.501843,51.622679,-0.499292,51.627164,-0.501966,51.629413,-0.498885,51.632147,-0.493197,51.631257,-0.489518,51.627254,-0.458795,51.612787,-0.450544,51.615818,-0.447214,51.620117,-0.442242,51.620565,-0.418287,51.616917,-0.412804,51.614302,-0.401137,51.613901,-0.373289,51.619846,-0.361446,51.625731,-0.350902,51.627401,-0.341492,51.631303,-0.339965,51.629964,-0.334653,51.634327,-0.318356,51.641026,-0.306012,51.636808,-0.297814,51.635939,-0.275403,51.639166,-0.274556,51.64259,-0.264963,51.645324,-0.259025,51.642324,-0.253569,51.647704,-0.252276,51.656547,-0.249559,51.655737,-0.230616,51.660466,-0.22816,51.657652,-0.221499,51.66115,-0.215092,51.662868,-0.213834,51.661843,-0.209563,51.663351,-0.212833,51.667444,-0.209658,51.667083,-0.207334,51.66909,-0.20393,51.668294,-0.205053,51.670615,-0.196553,51.668794,-0.198366,51.665971,-0.192768,51.664386,-0.189492,51.668368,-0.183787,51.669093,-0.177033,51.673938,-0.174177,51.67358,-0.165312,51.682891,-0.165198,51.688601,-0.151077,51.686005,-0.137088,51.689212,-0.123516,51.689052,-0.106561,51.692338,-0.085626,51.690453,-0.063735,51.683498,-0.050901,51.684762,-0.013643,51.681368,-0.013206,51.664239,-0.010647,51.66094,-0.013983,51.646724,-0.009068,51.646657,-0.009916,51.644104,-0.00222,51.644206,-0.000658,51.642258,0.020992,51.641612,0.02401,51.635063,0.020092,51.62933,0.039173,51.616175,0.051981,51.618779,0.052481,51.61722,0.048446,51.61689,0.046364,51.613822,0.060836,51.60756,0.071099,51.605189,0.078303,51.607487,0.08541,51.604968,0.090845,51.606698,0.0931,51.611277,0.090549,51.614075,0.096331,51.615922,0.098431,51.613225,0.102101,51.613052,0.114971,51.617422,0.117568,51.615868,0.134068,51.624046,0.167156,51.621919,0.17949,51.626325,0.184183,51.624872,0.184248,51.62602,0.201864,51.625672,0.222335,51.632235,0.25104,51.617929,0.262348,51.609379,0.256324,51.60701,0.252255,51.602101,0.268122,51.600079,0.269531,51.589535,0.284994,51.573971,0.288531,51.564808,0.311273,51.566326,0.313488,51.558398,0.326053,51.551505,0.327137,51.546349,0.329681,51.546454,0.33226,51.541016,0.298963,51.539268,0.295446,51.538174,0.295996,51.535831,0.263592,51.532663,0.26495,51.523827,0.261928,51.518384,0.25208,51.5184,0.249098,51.529332,0.247212,51.529187,0.244085,51.52403,0.241103,51.524905,0.238943,51.52247,0.243153,51.519274,0.235424,51.519849,0.240167,51.508475,0.224896,51.507108,0.228215,51.499882,0.211326,51.495539,0.208588,51.486396,0.221955,51.482791,0.243477,51.470713,0.274294,51.458151,0.285734,51.459301,0.302272,51.470045,0.313709,51.470285,0.3209,51.466657,0.3324,51.452493,0.347135,51.449276,0.41029,51.44968,0.43894,51.45617,0.445345,51.46397,0.453815,51.48354,0.469318,51.495229,0.491971,51.499797,0.536927,51.503656,0.548665,51.502841,0.622109,51.501279,0.676117,51.504204,0.676316,51.488567,0.689569,51.486515,0.691905,51.484434,0.701374,51.483806,0.728906,51.474868,0.734316,51.471443,0.738267,51.462622,0.732092,51.452001,0.737164,51.449674,0.764921,51.442158,0.786902,51.441857,0.797965,51.438889,0.802005,51.440107,0.805548,51.438417,0.803242,51.437377,0.812658,51.436382,0.828561,51.428502,0.883646,51.422626,0.906113,51.416838,0.941434,51.39798,0.946361,51.397329,0.956764,51.382036,0.959397,51.381835,0.95835,51.378384,0.969283,51.369694,0.968696,51.364544,0.962743,51.357213,0.969303,51.359685,0.972951,51.36106,0.96965,51.356898,0.984151,51.355754,0.990609,51.357766,0.996655,51.357142,0.995799,51.358702,1.001702,51.357834,1.008051,51.361262,1.023549,51.364229,1.023108,51.366227,1.027221,51.367935,1.033451,51.367926,1.0325,51.373784,1.035188,51.367858,1.059424,51.369129,1.079479,51.375931,1.079196,51.373704,1.095769,51.373826,1.096455,51.375063,1.097242,51.373892,1.116512,51.37704,1.118142,51.374406,1.127675,51.37571,1.133383,51.374074,1.151341,51.374704,1.158718,51.377436,1.16007,51.376241,1.187147,51.38108,1.19714,51.380578,1.213485,51.383082,1.213761,51.381489,1.226725,51.382197,1.22688,51.38059,1.234511,51.381044,1.250263,51.378263,1.261503,51.381147,1.27626,51.38085,1.292247,51.386061,1.3129,51.383069,1.324383,51.384294,1.331314,51.388874,1.340795,51.387593,1.349734,51.389684,1.361302,51.388316,1.378643,51.395591,1.398486,51.394244,1.404601,51.396368,1.408346,51.395896,1.409043,51.394169,1.417146,51.394001,1.423544,51.396933,1.428802,51.399343,1.430573,51.398272,1.426341,51.397124,1.428899,51.393777,1.442892,51.389063,1.441284,51.385553,1.445152,51.385188,1.445867,51.380678,1.449659,51.379442,1.442528,51.351579,1.435752,51.342516,1.439121,51.339942,1.429664,51.331716,1.428439,51.327302,1.42214,51.323797,1.390735,51.322995,1.384772,51.318794,1.387613,51.319504,1.38926,51.316968,1.381683,51.305595,1.381807,51.290277,1.385276,51.272859,1.403199,51.231346,1.404322,51.175412,1.395971,51.157789,1.384631,51.151157,1.383348,51.146167,1.37773,51.141063,1.366184,51.136206,1.340842,51.131011,1.341074,51.127569,1.341428,51.122314,1.340785,51.127469,1.336545,51.127462,1.337275,51.125929,1.336313,51.127094,1.335778,51.127742,1.335593,51.127057,1.335074,51.125127,1.333113,51.126107,1.331621,51.126853,1.33257,51.1259,1.333964,51.124497,1.332113,51.125725,1.326969,51.123778,1.3249,51.126136,1.315545,51.123678,1.311932,51.1195,1.316522,51.117103,1.321176,51.114672,1.316527,51.117064,1.315123,51.115916,1.31248,51.116912,1.314548,51.115376,1.312419,51.115338,1.311745,51.115326,1.312407,51.115004,1.315474,51.11351,1.317306,51.112617,1.325935,51.111934,1.316161,51.112123,1.311078,51.114773,1.301294,51.113672,1.295022,51.112375,1.292288,51.109122,1.280897,51.107866,1.265828,51.102267,1.259588,51.102499,1.24722,51.09932,1.243585,51.101025,1.24231,51.099633,1.237926,51.100898,1.224668,51.099392,1.206254,51.093344,1.203021,51.09054,1.203406,51.085118,1.200313,51.084365,1.203492,51.084178,1.204805,51.084101,1.203615,51.082841,1.198884,51.082814,1.193586,51.082783,1.186799,51.079577,1.188908,51.078557,1.193095,51.076531,1.188108,51.077834,1.175549,51.07605,1.166645,51.072313,1.16522,51.073491,1.143192,51.073109,1.095537,51.068114,1.059774,51.059635,1.031991,51.046609,0.999665,51.024629,0.986321,51.012684,0.975303,50.997446,0.97134,50.98672,0.972086,50.977305,0.982578,50.933622,0.979979,50.915899,0.976746,50.913141,0.967696,50.911118,0.938851,50.912069,0.850935,50.922627,0.806586,50.928502,0.774171,50.926547,0.742771,50.918299,0.735574,50.913846,0.729149,50.912562,0.727974,50.910138,0.72061,50.907238,0.717078,50.905847,0.719034,50.906255,0.689042,50.8895,0.673749,50.878698,0.670585,50.874292,0.649439,50.867436,0.64364,50.867861,0.631687,50.865355,0.6263,50.861951,0.607156,50.859777,0.590295,50.854056,0.535092,50.849613,0.517885,50.84677,0.482105,50.837249,0.413492,50.830402,0.370574,50.818472,0.347649,50.808371,0.332253,50.792693,0.332452,50.788737,0.327313,50.785355,0.310459,50.779956,0.297534,50.772587,0.285509,50.760482,0.26967,50.750704,0.268386,50.748671,0.278809,50.755207,0.268061,50.748336,0.265535,50.74672,0.254999,50.734844,0.252786,50.736751,0.239644,50.734046,0.206091,50.737659,0.189142,50.746565,0.176589,50.74841,0.176365,50.749981,0.15518,50.755641,0.151574,50.758303,0.143685,50.758102,0.136956,50.754685,0.118787,50.758114,0.068269,50.782052,0.060311,50.782969,0.05718,50.782015,0.058023,50.78067,0.055054,50.78223,0.051999,50.781117,0.052768,50.78032,0.056542,50.776413,0.051269,50.78022,0.033685,50.780618,0.018949,50.785166,0.015004,50.78432,-0.040764,50.799113,-0.062497,50.802386,-0.092739,50.811005,-0.094897,50.810089,-0.091586,50.809319,-0.092022,50.798809,-0.11294,50.801463,-0.112516,50.811862,-0.110493,50.811506,-0.109907,50.813191,-0.111685,50.813944,-0.165059,50.823239,-0.21791,50.827491,-0.238838,50.828853,-0.245755,50.828329,-0.248226,50.826113,-0.248149,50.828552,-0.251055,50.826671,-0.249766,50.825305,-0.251778,50.826806,-0.282003,50.826604,-0.328849,50.818212,-0.338613,50.81424,-0.359772,50.810354,-0.422575,50.803297,-0.447349,50.801593,-0.51494,50.802201,-0.52937,50.801541,-0.529087,50.799942,-0.533846,50.801689,-0.541644,50.800381,-0.541257,50.798399,-0.561807,50.799592,-0.601269,50.790798,-0.649733,50.787016,-0.658886,50.784123,-0.703952,50.777765,-0.730469,50.771316,-0.744298,50.764437,-0.747802,50.761574,-0.745167,50.760683,-0.747636,50.758174,-0.74433,50.758736,-0.748602,50.757128,-0.758812,50.753284,-0.763919,50.746929,-0.764351,50.743531,-0.76202,50.742602,-0.767531,50.741094,-0.787824,50.722784,-0.798229,50.724897,-0.834287,50.748741,-0.862684,50.761316,-0.90185,50.771647,-0.915241,50.777023,-0.918487,50.777113,-0.917271,50.774962,-0.919018,50.777128,-0.933579,50.777573,-0.95033,50.777487,-0.977305,50.782759,-1.02086,50.784673,-1.008042,50.777848,-1.008427,50.77391,-1.01286,50.771823,-1.02207,50.779426,-1.023914,50.78591,-1.024465,50.787848,-1.028371,50.787715,-1.037465,50.786101,-1.035363,50.781941,-1.03809,50.785718,-1.040909,50.785862,-1.089673,50.778129,-1.103042,50.785956,-1.126406,50.782749,-1.136604,50.775521,-1.143234,50.773899,-1.162956,50.784786,-1.188788,50.788934,-1.199375,50.793989,-1.205277,50.80079,-1.209648,50.800473,-1.207223,50.802465,-1.217764,50.810539,-1.221746,50.809978,-1.220424,50.810867,-1.234642,50.815284,-1.243333,50.814684,-1.246901,50.817501,-1.250354,50.81641,-1.265031,50.824431,-1.300535,50.833939,-1.312274,50.842596,-1.317839,50.843202,-1.316244,50.847144,-1.31869,50.846666,-1.319527,50.848945,-1.327888,50.853359,-1.340446,50.845359,-1.330191,50.836513,-1.330253,50.833261,-1.327137,50.832621,-1.318655,50.824016,-1.32762,50.817197,-1.315782,50.823634,-1.302795,50.816583,-1.304777,50.810387,-1.326215,50.804441,-1.34344,50.786498,-1.348795,50.784209,-1.350905,50.785464,-1.358163,50.783379,-1.36313,50.785185,-1.376555,50.785606,-1.375166,50.782812,-1.379636,50.780675,-1.39094,50.778073,-1.399396,50.776125,-1.403085,50.774517,-1.400485,50.775141,-1.393199,50.77689,-1.40251,50.773312,-1.416761,50.767834,-1.426352,50.765287,-1.432107,50.765973,-1.451766,50.762696,-1.452588,50.76033,-1.452503,50.762652,-1.461505,50.759417,-1.471849,50.75859,-1.492949,50.749519,-1.49828,50.749277,-1.502213,50.746136,-1.517857,50.742717,-1.538535,50.727993,-1.546537,50.725914,-1.546458,50.723327,-1.557472,50.715484,-1.549186,50.708427,-1.551711,50.706351,-1.567452,50.709411,-1.583345,50.718712,-1.596246,50.722012,-1.656061,50.73421,-1.693611,50.737531,-1.6923,50.741203,-1.685387,50.745178,-1.683301,50.752449,-1.719447,50.752769,-1.74245,50.74863,-1.745643,50.748055,-1.743808,50.749849,-1.74613,50.756672,-1.743491,50.757267,-1.740435,50.763869,-1.746261,50.773714,-1.749764,50.775738,-1.747165,50.776854,-1.75032,50.78009,-1.758032,50.779016,-1.771589,50.773146,-1.770354,50.77038,-1.777536,50.76695,-1.781461,50.767936,-1.784895,50.765247,-1.789419,50.767163,-1.788713,50.771088,-1.791027,50.770544,-1.791973,50.772131,-1.789337,50.774845,-1.792219,50.776809,-1.789338,50.779451,-1.793593,50.783261,-1.798992,50.784431,-1.797146,50.786496,-1.802272,50.788016,-1.802435,50.792478,-1.807435,50.792614,-1.802337,50.794712,-1.806265,50.796278,-1.802843,50.800307,-1.806126,50.801051,-1.80575,50.80417,-1.813611,50.807348,-1.8133,50.809321,-1.8044,50.813936,-1.808742,50.81689,-1.803225,50.821566,-1.806314,50.824303,-1.805104,50.830611,-1.802032,50.832085,-1.798615,50.830608,-1.795907,50.831617,-1.798125,50.833809,-1.793538,50.834176,-1.792086,50.836902,-1.800035,50.839438,-1.801792,50.84163,-1.798466,50.841679,-1.801732,50.842794,-1.803943,50.843549,-1.805106,50.845835,-1.801413,50.849034,-1.806967,50.852576,-1.804732,50.854499,-1.808579,50.863898,-1.814259,50.865155,-1.816301,50.859285,-1.830986,50.855903,-1.852408,50.859309,-1.855004,50.867088,-1.849298,50.870268,-1.849945,50.874359,-1.846738,50.878578,-1.849443,50.882919,-1.84551,50.887409,-1.850021,50.890467,-1.841336,50.898468,-1.826421,50.896349,-1.818011,50.904525,-1.821876,50.912682,-1.812128,50.927778,-1.82777,50.927443,-1.843308,50.932254,-1.85565,50.928085,-1.864953,50.919963,-1.875108,50.9178,-1.880265,50.924899,-1.89836,50.934968,-1.900547,50.938963,-1.910643,50.945896,-1.9223,50.961975,-1.928641,50.964162,-1.931346,50.968362,-1.940677,50.970223,-1.946286,50.976314,-1.95692,50.978832,-1.958275,50.990394,-1.951392,50.982876,-1.929335,50.998261,-1.888205,51.000092,-1.875948,51.006893,-1.875448,50.985007,-1.854849,51.005243,-1.837283,51.009985,-1.828884,50.997838,-1.816894,50.986488,-1.809057,50.992611,-1.801789,50.991961,-1.7558,50.981016,-1.755882,50.97846,-1.721101,50.977349,-1.71112,50.9718,-1.690901,50.955269,-1.663151,50.945852,-1.64787,50.950038,-1.63646,50.959814,-1.624896,50.95521,-1.613679,50.971817,-1.604423,50.979091,-1.615918,50.980064,-1.621141,50.983564,-1.620453,50.987934,-1.626711,50.990899,-1.630383,50.999597,-1.61873,51.004748,-1.612233,51.002275,-1.60758,51.002463,-1.611156,51.006486,-1.611997,51.006603,-1.616431,51.007222,-1.611952,51.007435,-1.610589,51.010378,-1.606516,51.007571,-1.599026,51.008621,-1.599153,51.011279,-1.606869,51.017821,-1.607154,51.020585,-1.6009,51.024292,-1.612948,51.027845,-1.620958,51.03362,-1.633874,51.033341,-1.636459,51.041447,-1.62931,51.069291,-1.629238,51.078696,-1.63881,51.092719,-1.628457,51.103417,-1.632431,51.111706,-1.627751,51.117889,-1.642081,51.125932,-1.664473,51.12774,-1.655543,51.156828,-1.673865,51.179086,-1.670731,51.182502,-1.670333,51.191313,-1.678477,51.193941,-1.695593,51.204582,-1.691191,51.215365,-1.675205,51.21637,-1.674225,51.217796,-1.668235,51.2175,-1.654997,51.221004,-1.635043,51.218053,-1.620841,51.241751,-1.611899,51.243513,-1.608932,51.253303,-1.602214,51.25125,-1.601694,51.254057,-1.589567,51.253688,-1.579146,51.256164,-1.551721,51.249098,-1.546674,51.245632,-1.53755,51.249064,-1.531337,51.261046,-1.532087,51.263148,-1.542028,51.261365,-1.537433,51.277833,-1.5441,51.28178,-1.536029,51.287621,-1.524326,51.287586,-1.525666,51.293688,-1.521031,51.296466,-1.522801,51.298113,-1.52701,51.297682,-1.529542,51.300335,-1.526744,51.307593,-1.530016,51.314362,-1.535081,51.316748,-1.5334,51.32865,-1.528638,51.332103,-1.529028,51.338987,-1.517804,51.339877,-1.512944,51.335515,-1.499823,51.329899,-1.499062,51.333749,-1.487239,51.348203,-1.502135,51.356787,-1.496976,51.370182,-1.504065,51.369375,-1.514929,51.372562,-1.518484,51.379296,-1.529157,51.379337,-1.530394,51.381906,-1.539853,51.386052,-1.539239,51.388837,-1.54799,51.391055,-1.55053,51.395232,-1.557122,51.396098,-1.554508,51.410555,-1.563793,51.408749,-1.565009,51.413739,-1.572571,51.416088,-1.566637,51.422553,-1.561837,51.420904,-1.555183,51.422915,-1.554633,51.421786,-1.540585,51.42666,-1.528138,51.42444,-1.526813,51.425527,-1.533587,51.430065,-1.525655,51.441241,-1.525516,51.447987,-1.530553,51.456017,-1.546941,51.459339,-1.552463,51.465987,-1.560144,51.469289,-1.563103,51.47688,-1.568376,51.477466,-1.571968,51.486774,-1.583809,51.49461,-1.583789,51.500739,-1.587283,51.502615,-1.589582,51.513999,-1.586227,51.525407,-1.590617,51.524986,-1.595559,51.520274,-1.604328,51.51879,-1.615264,51.537004,-1.635583,51.553748,-1.649203,51.57244,-1.656555,51.576994,-1.659825,51.574687,-1.678047,51.569927,-1.685557,51.573389,-1.692617,51.58401,-1.686264,51.590813,-1.692124,51.605934,-1.684005,51.609938,-1.682828,51.614044,-1.676465,51.612234,-1.66852,51.616747,-1.675246,51.623331,-1.661466,51.63547,-1.664819,51.640409,-1.677157,51.641889,-1.687782,51.652858,-1.693447,51.652641,-1.690004,51.657263,-1.692132,51.664259,-1.695607,51.669234,-1.701696,51.671215,-1.70025,51.676944,-1.696394,51.679047,-1.698027,51.682588,-1.692613,51.687778,-1.684569,51.690581,-1.677526,51.688878,-1.675281,51.685239,-1.677774,51.684683,-1.676719,51.683007,-1.66997,51.68091,-1.666823,51.682249,-1.663403,51.680836,-1.654169,51.681997,-1.649769,51.684558,-1.654905,51.687652,-1.652606,51.689273,-1.656998,51.691926,-1.658952,51.696921,-1.666959,51.697728,-1.689511,51.712512,-1.690329,51.717849,-1.69738,51.724003,-1.687297,51.73037,-1.690551,51.739609,-1.688531,51.740347,-1.696376,51.749036,-1.695188,51.754123,-1.702213,51.771042,-1.709912,51.777979,-1.720995,51.783669,-1.69496,51.794605,-1.683443,51.804447,-1.678372,51.817477,-1.682633,51.816505,-1.687974,51.834906,-1.677899,51.850757,-1.682102,51.855176,-1.68267,51.860087,-1.688704,51.863272,-1.686565,51.864761,-1.68838,51.865945,-1.681953,51.869687,-1.668627,51.877444,-1.670473,51.881947,-1.668388,51.881899,-1.664136,51.887786,-1.664537,51.892668,-1.660169,51.896992,-1.654718,51.897411,-1.646402,51.895042,-1.634572,51.899666,-1.63729,51.90234,-1.635692,51.912092,-1.646386,51.914128,-1.64492,51.917152,-1.647024,51.91822,-1.642702,51.921999,-1.647049,51.922731,-1.625121,51.936174,-1.616713,51.938117,-1.634012,51.956084,-1.647288,51.957417,-1.650446,51.959357,-1.656885,51.957936,-1.653894,51.961943,-1.664047,51.964436,-1.67046,51.975703,-1.665617,51.985356,-1.667272,51.987916,-1.664474,51.986661,-1.639836,51.975602,-1.613867,51.955837,-1.598444,51.964826,-1.593162,51.970881,-1.601828,51.977372,-1.582102,51.973427,-1.551205,51.98129,-1.558756,51.992086,-1.543277,51.99686,-1.529466,51.992183,-1.526846,51.993286,-1.522628,52.006461,-1.512487,52.021873,-1.498894,52.059373,-1.503375,52.066688,-1.50416,52.069594,-1.50161,52.07036,-1.503396,52.072043,-1.492208,52.077551,-1.495907,52.082609,-1.48715,52.088148,-1.486276,52.091718,-1.489347,52.094371,-1.481691,52.093892,-1.478846,52.101764,-1.469105,52.09747,-1.455082,52.098956,-1.455155,52.09775,-1.448736,52.098039,-1.450769,52.108727,-1.455006,52.113421,-1.450289,52.116478,-1.444732,52.115673,-1.427407,52.11866,-1.421182,52.118054,-1.405449,52.110503,-1.403533,52.105996,-1.389111,52.097839,-1.386957,52.094562,-1.379258,52.096471,-1.375982,52.100141,-1.35933,52.101726,-1.366744,52.111716,-1.371926,52.113131,-1.372401,52.117947,-1.392257,52.117201,-1.394859,52.119375,-1.38702,52.128814,-1.384286,52.127954,-1.367707,52.136485,-1.36561,52.137118,-1.364382,52.135208,-1.35027,52.135542,-1.351498,52.142001,-1.342604,52.145265,-1.345023,52.153643,-1.3398,52.15925,-1.33557,52.159487,-1.333462,52.16889,-1.320943,52.158075,-1.319315,52.15376,-1.313921,52.151695,-1.313321,52.148328,-1.307999,52.145962,-1.310002,52.143918,-1.300912,52.138804,-1.278402,52.117491,-1.254502,52.104291,-1.255578,52.102903,-1.249661,52.097578,-1.249535,52.09619,-1.256368,52.096034,-1.273856,52.098283,-1.288696,52.093057,-1.309531,52.092691,-1.322731,52.087437,-1.319726,52.08034,-1.300929,52.080521,-1.299077,52.078477,-1.308471,52.070734,-1.301825,52.069137,-1.303743,52.06544,-1.309336,52.064774,-1.308947,52.058012,-1.314487,52.051876,-1.299111,52.043146,-1.293446,52.032398,-1.295881,52.028462,-1.286886,52.026904,-1.28599,52.021339,-1.279735,52.014701,-1.280203,52.011797,-1.286134,52.011128,-1.280123,52.008718,-1.278637,52.005789,-1.284939,52.000004,-1.283986,51.996763,-1.286224,51.99513,-1.283932,51.993346,-1.285609,51.991129,-1.290428,51.990157,-1.284966,51.97998,-1.282435,51.982796,-1.271816,51.983379,-1.262488,51.981359,-1.250583,51.986146,-1.243188,51.986725,-1.231278,51.9818,-1.197841,51.977866,-1.192338,51.981944,-1.177639,51.98248,-1.165408,51.993844,-1.158237,51.992666,-1.145494,51.997451,-1.135918,51.997728,-1.132843,52.005315,-1.126934,52.007536,-1.119677,52.015856,-1.121594,52.017575,-1.126167,52.017132,-1.136762,52.020063,-1.138253,52.022671,-1.134528,52.032167,-1.123578,52.045572,-1.115695,52.048448,-1.100546,52.049032,-1.09657,52.05203,-1.084871,52.052786,-1.082468,52.057197,-1.078249,52.059275,-1.073253,52.058559,-1.063664,52.063159,-1.054559,52.060084,-1.040672,52.066522,-1.03255,52.063321,-1.029272,52.064158,-1.027662,52.066007,-1.031154,52.070529,-1.043929,52.074133,-1.027921,52.076104,-1.014471,52.072021,-1.008115,52.071854,-1.006444,52.073898,-0.996555,52.073599,-0.985888,52.07014,-0.974968,52.073146,-0.969416,52.071334,-0.962375,52.079067,-0.953486,52.081956,-0.946716,52.077307,-0.941671,52.076264,-0.946104,52.073608,-0.946005,52.070455,-0.940894,52.067777,-0.943657,52.067013,-0.94093,52.062584,-0.935359,52.063061,-0.939495,52.061626,-0.933487,52.054452,-0.931823,52.043554,-0.907648,52.021651,-0.891738,52.031989,-0.884639,52.028671,-0.87909,52.030401,-0.872948,52.040679,-0.869357,52.046648,-0.861047,52.04503,-0.854072,52.051132,-0.862026,52.054952,-0.864302,52.061359,-0.858983,52.064516,-0.841128,52.064253,-0.833047,52.072371,-0.837653,52.075487,-0.83907,52.082716,-0.846723,52.086862,-0.848339,52.091929,-0.856404,52.092775,-0.859541,52.097929,-0.871154,52.100457,-0.866894,52.103357,-0.871486,52.105517,-0.87024,52.108859,-0.873073,52.112172,-0.888636,52.114627,-0.882304,52.120608,-0.882342,52.126748,-0.870607,52.131041,-0.855155,52.132089,-0.85289,52.12976,-0.848365,52.129826,-0.839856,52.13113,-0.837396,52.133258,-0.833668,52.131677,-0.829834,52.133027,-0.833595,52.144098,-0.815672,52.142887,-0.808879,52.152008,-0.80922,52.157392,-0.80359,52.159092,-0.793726,52.151744,-0.781949,52.163769,-0.78483,52.166337,-0.781151,52.166002,-0.779516,52.169185,-0.766971,52.171511,-0.763529,52.163894,-0.758831,52.167742,-0.751375,52.16729,-0.746436,52.170693,-0.740592,52.171591,-0.730903,52.179885,-0.720653,52.182977,-0.703318,52.193718,-0.686302,52.196745,-0.669786,52.195444,-0.6591,52.190186,-0.644814,52.189256,-0.640794,52.1871,-0.641164,52.183847,-0.629103,52.181958,-0.62991,52.172951,-0.636562,52.168548,-0.63179,52.162343

1 Like

Hello @robbie.macintosh,

Thank you for reaching out to us.

Regarding your question, please use the element state “is Inside” to determine when the marker is within the specified polygon (image). However, please ensure that the Geofence element is not hidden.

I’ve also created a test page: Plugbee-iframes | Bubble Editor - using the coordinates you provided. This will allow you to observe how it functions and compare it with your setup.

Concerning the error, if it persists, could you please provide more details such as screenshots or screen recordings of the workflow involved in adding a Marker and Polygon to the map? Additionally, a step-by-step video from the moment you open the map until the error occurs would be very helpful. Please review each action carefully to pinpoint exactly what is happening.

Could you also inform us about the device and browser you are using? Does the error occur on other devices as well?

Thank you once again. I look forward to your reply. :pray:

Best regards,
Stefan

Hi Stefan… thanks for looking into this…

I was unable to add that screenshot to my original request…

I’ll need to add them one at a time

I can’t add a video to the post, if you can email me I’ll gladly ping that over separately.

I’m using an apple Mac and safari as the browser.

Hello @robbie.macintosh,

Thank you for the message.

I’ve posted this message on both forums to ensure you receive it, but please, let’s continue our conversation on just one to keep things streamlined. :pray:

Could you please confirm whether you’ve accessed the test page I provided earlier and if everything is functioning correctly? If you plan to replicate the page, remember to replace the plugin element with your own via the element’s tab and modify the workflow accordingly.

For video recordings, consider using a tool like Loom [link] and share the link with us. Alternatively, if you prefer you can send it directly to support@zeroqode.com.

I appreciate your cooperation and look forward to your response.

Best regards,
Stefan

Hi Stefan,

I can’t add more than one image to the forum, so if you want I can email in detailed screen shots.?

I’m making progress, however the error still persists on the pages…

I’ll try to explain…

I have a GEOJson file that has been added to the database in the field GEOJson, this is a json formatted file and can successfully produce a shape (or shapes) on the map.

I have also extracted the coordinate pairs from that file and stored them into another field (geocoordinates) the content of this field is long, lat, long, lat; long, lat long, lat.

I can also plots these independently of each other…

I"ve noticed that when I use the coordinates directly in the geofence element that the error I was experiencing goes away, although the field is just a copy and paste of the content of the database entry.

the error in Safari is not showing anything, however running in Chrome the error is below…

The plugin Geofence #MapLocationTriggerLive / element Geofence threw the following error: TypeError: Cannot read properties of null (reading ‘split’)
at g (PLUGIN_1640161444196x288791162037207040/Geofence–MapLocationTriggerLive-update–Geofence-.js:3:8316)
at p (PLUGIN_1640161444196x288791162037207040/Geofence–MapLocationTriggerLive-update–Geofence-.js:3:10335) (please report this to the plugin author)

so if I put the coordinates into the field directly then the errors disappear but as you can see I’ve tried several options to see if it’s configuration realated…

Now for the second part… even though the plugin is throwing the error…

I’m also finding that the draggable marker is reporting that it’s not in the area when it clearly is in the area.

I’ve checked the GEOJson and the extracted coordinate pairs and they match, so I don’t think it’s an issue with that…

I have the coordinate fields that contain (in some cases) multiple polygons separated by a ;. however when I try to plot these using the mapbox draw line (either as multipolygon or polygon) with limited success.

is it possible to use the GEOJson structured data and field with the geofence element instead of having to extract the coordinate pairs into a separate field?

I’m also struggling to get the individual polygon shapes to correctly display on a map to try to work out

I have the coordinate fields that contain (in some cases) multiple polygons separated by a ;. however when I try to plot these using the mapbox draw line (either as multipolygon (multipolygon throws an error) or polygon) with limited success. (example at bottom) - this is 2 of the polygons from the country of France JSON

this all needs to be driven from database entries and not hard coded into any of the elements or workflows

Hello @robbie.macintosh,

Thank you for your message, and I apologize for the delayed response.

From your message, it seems you would like the option to use JSON directly in the GeoFence instead of using coordinates as it currently operates. Could you please confirm if this understanding is correct?

Regarding the use of multipolygons in the GeoFence, you should separate their coordinates with a semicolon (";"). However, if you wish to use Mapbox Maps “create line” action with Multipolygons to display them on the map, it requires setting the coordinates and color. You can find an example of how to set this up on our documentation page.

I have also updated the test page I provided earlier so you can see an example of setting up polygons. Please try accessing it and see how it functions. Here is the preview link and the editor link. Could you please check and let us know if everything is working as expected?

Additionally, you have the option to use dynamic data both in Geofence and Mapbox, allowing you to utilize data from the database.

Thank you once again. I look forward to your reply.

Best regards,
Stefan

Hi Stefan, thanks for the continued investigation - on a Saturday too…

From your message, it seems you would like the option to use JSON directly in the GeoFence instead of using coordinates as it currently operates. Could you please confirm if this understanding is correct? -

when I wrote this it seemed a shame to have a field with the Json content in the database and to also have a separate field with the coordinates, the maintenance of the two could become tricky over time? (GEOJson for the Mapbox activity and coordinates for the geofence)

I’ve just checked the documents for the multipolygons and that could prove challenging as we have the potential for 1000’s (over 200 files for each country, with some having over 100 polygons per file) of json files and so far none of them have any ‘colour’ field set, adding a field to each one would be problematic and time consuming.

What I have found since continuing to investigate this is that for some large countries (like Russia) were we have a GEJson that correctly maps the country (if we exclude the current conflict in Ukraine), the GEOJson correctly maps the country, however the extracted coordinates (done manually to check) is not always picking up the correct placement… - is there a limitation on the field size?

Again thanks so much for the support on this…

Hello @robbie.macintosh,

Thank you for the message and providing those details.

Indeed, managing a large volume of data and getting the coordinates separrately can become challenging. I have forwarded your request to our development team to explore potential improvements to streamline the workflow. I will keep you updated with any progress or information related to this matter.

Thank you once again for bringing this to our attention. If you have any more questions in the meantime, please don’t hesitate to let us know.

Best regards,
Stefan

Thanks Stephan, your response and guidance is much appreciated.

Robbie

1 Like

Hi @robbie.macintosh,

Thank you for your feedback and kind words. :pray:

I’m glad to have been of help. Please don’t hesitate to reach out in meantime if you have any further questions or need assistance. It’s a pleasure to cooperate. :blush:

Wishing you a fantastic week ahead!

Best,
Stefan

Hi Stefan,

I had a few minutes to spare and decided to decode the GEOJson to reduce the need to have two fields…

this might be of interest

image

The REGEX - [\s*(?:\s*(?:[\s*(-?\d+.?\d*)\s*,\s*(-?\d+.?\d*)\s*]\s*,?\s*)+)\s*]

format as text (This Text split by ] ], [ [ )

find and replace (replace ] ] ] ], [ [ [ [ with ; )
find and replace (replace[ ,with )
find and replace (replace ], with )
find and replace (replace ,with)

this has worked on two separate sources of GEOJson from two independent sources.

there is probably a way to do this without so many steps, but doing it means that both the MapBox element and the geofence element are working from the same source.

Hello @robbie.macintosh,

Thank you for your message and sharing your approach to handling GEOJson data.

Your method of using REGEX along with multiple “find and replace” steps is indeed clever and effective. We appreciate your efforts to streamline the process for using both the MapBox and geofence elements from the same data source.

In any case we will continue to explore the possibility of simplifying this process further to enhance user experience by integrating a more direct JSON referencing possibility in the element.

Thank you once again for your valuable contribution. If you have any further questions or suggestions, please let me know.

Wishing you a great day ahead!

Best regards,
Stefan

Hi @robbie.macintosh,

I hope this message finds you well!

I’m excited to share an update following our last conversation about the Geofence. Great news—version “1.5.0” now includes the ability to use JSON data directly in the Polygon data, the same way you create multiple polygons in Mapbox, just as you requested. :blush: You can check out an example on this test page: Plugbee-iframes | Bubble Editor.

Could you please update the plugin on your app, test it out, and let me know if everything is working well? If you have any other questions, don’t hesitate to reach out.

Thank you again for your valuable input. I look forward to your thoughts and feedback. :pray:

Best wishes,
Stefan