text: var activities = [
     {
        "externalId":"93782512-C4E8-4C5F-8997-B8E32E6AE3F7",
        "uploadId":5523732757,
        "athlete":{
           "id":39662027
        },
        "name":"#Fusion #MissionArchion: Hardest Hard.  #F6",
        "distance":12019.2,
        "movingTime":7141,
        "elapsedTime":9645,
        "totalElevationGain":772,
        "elevHigh":534.3,
        "elevLow":23.9,
        "type":19,
        "startDate":"2021-04-24T10:21:31Z",
        "startDateLocal":"2021-04-24T06:21:31Z",
        "timezone":"(GMT-04:00) America/Port_of_Spain",
        "startLatlng":[
           10.72,
           -61.61
        ],
        "endLatlng":[
           10.72,
           -61.61
        ],
        "achievementCount":0,
        "kudosCount":23,
        "commentCount":3,
        "athleteCount":2,
        "photoCount":0,
        "totalPhotoCount":1,
        "map":{
           "id":"a5183347854",
           "polyline":null,
           "summaryPolyline":"mml`A~c`wJsBd@yCb@oAH{IbByDh@{Bl@uE`@eB\\wC|AkAt@u@n@}BzA{BjAs@f@_@d@}@\\c@`@cCtAoCjBuAhAGj@B\\^xA`@fAVZf@hAb@dA|BdDfAvBnAbBhDpGb@nAEHqAj@QP@fAQTwAP{@AYIqA\\aA?UFOJYj@mAlAkAd@]\\wCh@sAKiALSd@UPi@jAw@l@R`@Ln@CRUJWb@Bh@V^J\\XCLTLD`@j@F^^JLLAH`@r@BZD~@ITDb@I`@KDEhBg@v@BVd@jA^h@@PKN@HpAzAF@Tf@ZPLXNBRXDPj@\\h@Fn@AZDBHtAE\\Id@OfAFBPr@p@Nd@\\Rn@Dt@VDLSFP\\Db@V\\t@PvAdAPDdAOnAFdATp@B`@GXZh@F\\XDL?b@EP@h@n@x@XxA`@t@JHd@hBbAdAf@Lf@~@bAn@L?XPBLF?AKLG@Md@EJKLWGSRFV@VKr@JALOTAGJT`@^\\FNVXJ?DHMx@IPPJ_@~AkANWFe@j@s@JKf@K\\[j@u@l@Wb@ExAs@ZHTGrBNr@N\\MZ?VM^Cj@q@RKFQd@_@Xe@RMT_@LCNYJEAIN]L?f@q@bA_AlBkAMKBIBCEPTDXQnA_@P[?WLi@G[N[CWBCc@qBSi@UcBW]u@Sm@i@EcCXw@n@aA^_@`@gAf@_@d@eAz@{A?WJM\\eACMFUGM?[XeA@_@I_@BIKe@[c@CBg@@Me@K\\a@c@?RKVKJKA_Am@GMHJG?Q[@N?GIBGMKHKMCc@GMUKa@@KKEB]QKFMk@GPUKm@CIKWFAEK@IGIUHC_@K[i@IBc@Ka@HqA[_BMq@[c@?m@YU@g@O][IWJo@j@Ut@KDOXSV?EITW~@FRK?HFEEDVo@VBd@GZUN[\\GB_@fB?p@Kp@d@d@ApAd@j@MhADZGh@RRAVNCAHAFYd@QHUh@CFHBOHEL_AAUZe@@W\\eA@u@Jg@EMA_AB[Ni@NWK[Hi@KUGw@Q[Aa@I[UC_@_A@aAQc@IAE[@a@_@gAICSeBDYl@wA`@g@Ai@HOAu@F{@S_CIa@FaAIq@Bg@Po@KqADw@JUKc@[]Qy@@o@MOiAw@}Bu@cABeANYNo@A_BPgEn@mCVqBd@"
        },
        "trainer":false,
        "commute":false,
        "manual":false,
        "private":false,
        "flagged":false,
        "workoutType":0,
        "uploadIdStr":"5523732757",
        "averageSpeed":1.683,
        "maxSpeed":4.9,
        "hasKudoed":false,
        "gearId":"g6625739",
        "kilojoules":null,
        "averageWatts":null,
        "deviceWatts":null,
        "maxWatts":null,
        "weightedAverageWatts":null,
        "id":5183347854
     },
     {
        "externalId":"661D55A2-DECC-4B81-AABF-6C20E95FABA1-activity.fit",
        "uploadId":5267938941,
        "athlete":{
           "id":39662027
        },
        "name":"#Fusion #Covigne #RiverRun #Coalpot #F5",
        "distance":13485.6,
        "movingTime":6317,
        "elapsedTime":7398,
        "totalElevationGain":633.1,
        "elevHigh":533.8,
        "elevLow":24.5,
        "type":19,
        "startDate":"2021-03-13T10:24:58Z",
        "startDateLocal":"2021-03-13T06:24:58Z",
        "timezone":"(GMT-04:00) America/Port_of_Spain",
        "startLatlng":[
           10.72,
           -61.61
        ],
        "endLatlng":[
           10.72,
           -61.61
        ],
        "achievementCount":0,
        "kudosCount":16,
        "commentCount":0,
        "athleteCount":1,
        "photoCount":0,
        "totalPhotoCount":1,
        "map":{
           "id":"a4938837586",
           "polyline":null,
           "summaryPolyline":"qml`Axc`wJv@EfAY{@oGN{Ap@yB?i@ToCr@mFIcAgA}CEk@LiBM_APgCG{@HkCGq@Hu@BgDz@gDd@wC?i@v@uEjA}Av@oCp@aHAkBMq@eAgB_@uASGo@aAg@QY_@aAk@qC_@aCX{@NSJO`@{@Pa@o@SAy@Tk@b@OIQRk@NQKOPUAIIIJa@I_@FELUCQa@YQ@\\Ig@[Q_@AEJWSYNMUa@Oa@Cg@?k@f@SAOb@]\\WOGHMKKFIM_@BSQOBGVy@MOLGLIIDg@IPF?O@UR?MHOBDEEETKJQq@KFAKWhAAQ@Fk@i@FFBGKXWUMLs@e@URYDSQi@\\QCe@k@SGI]WYmBR[SK@[k@e@JSGEOJ?SUPIRc@ISFGYq@Gy@DOO@c@l@YGSSSk@Sw@MKKHs@GOKK]?i@XY}@SOoAUOWo@c@g@E[GB\\Mu@I]YEOFOd@_@M?S_@g@a@CQPa@O]DM[HWOJYT?k@@_@_@jAYJKBJGGHIf@SZUGAHGYY\\_AFFEk@FKK]To@Bq@LKR{@BeAIOGsAQU}Bv@y@jAs@NcAUs@c@IDq@Ma@LIKy@F_Af@g@F]?m@_@gBB]RmAxAc@LOI[F[Iu@TU`@Iv@g@j@C`@w@b@@TOD?Ri@r@cEpBM\\RtBSn@BPPPA^ZZb@|@@pBJ|@Kb@IlBp@rC?z@Pj@En@?p@\\t@ElALbARn@AbALjAOf@y@d@MCW^u@b@Qh@Ex@WNDPWj@i@lC@\\W~B^PJ`@b@`@BhBGPs@v@iAn@S?mAl@gDxBo@RWAHTE`@KLa@rAURCnAYNOE@JT?Rp@Dl@MHCXHPAR}AfBs@VSRw@Ng@d@a@jCEvCO`@D^]hDA`BOn@J~@EjAl@pANh@AxASlHSfAaA|@]hA?xBUdAGpARp@xAbBX`A?ZQr@@xBUbAJl@dAM~@b@p@jAVdBl@bAVxEOzAJlBEt@LZP@D_@Xc@Du@|@aB|@eCX_AIi@NsCEu@R_Ab@k@`@aAfAs@lC_@`BGfG@nFlArBp@VI`Cn@f@BhAj@hA~@^t@LBrA]xAKn@JjBr@^?tAa@p@q@hFaDfAgAxAw@p@WbG}D|IiEpGy@jEcAlC[`GgAnGm@tB]"
        },
        "trainer":false,
        "commute":false,
        "manual":false,
        "private":false,
        "flagged":false,
        "workoutType":0,
        "uploadIdStr":"5267938941",
        "averageSpeed":2.135,
        "maxSpeed":6.8,
        "hasKudoed":false,
        "gearId":"g6625739",
        "kilojoules":null,
        "averageWatts":null,
        "deviceWatts":null,
        "maxWatts":null,
        "weightedAverageWatts":null,
        "id":4938837586
     },
     {
        "externalId":"67A30DD0-89FE-4B13-8283-0B8786115500-activity.fit",
        "uploadId":5090303343,
        "athlete":{
           "id":39662027
        },
        "name":"Phillynet’s Fleet-footed #Fusion Flyers Fight Falls For #Chanolo!  #F4",
        "distance":13033,
        "movingTime":6858,
        "elapsedTime":6867,
        "totalElevationGain":803.3,
        "elevHigh":618.6,
        "elevLow":45.4,
        "type":19,
        "startDate":"2021-02-11T10:00:13Z",
        "startDateLocal":"2021-02-11T06:00:13Z",
        "timezone":"(GMT-04:00) America/Port_of_Spain",
        "startLatlng":[
           10.69,
           -61.51
        ],
        "endLatlng":[
           10.69,
           -61.51
        ],
        "achievementCount":8,
        "kudosCount":20,
        "commentCount":1,
        "athleteCount":2,
        "photoCount":0,
        "totalPhotoCount":1,
        "map":{
           "id":"a4769714224",
           "polyline":null,
           "summaryPolyline":"_cf`AvrlvJOz@[f@EZ}@lAjAq@LHBZUh@ZYbAHHR?d@QlBQl@DHd@?fBi@h@[t@{@pAWvA_Bv@[|BgCdAmBLm@TWj@UdAMjD@v@^vBf@XWjAsBl@{AZKv@Rl@^`@^bBfC\\PWy@Gk@b@qBf@gAFc@oAEq@_@oAwBe@[Y}@a@a@qBc@iCoASm@EiAS}@Wm@o@y@}@yBQw@c@]eAaFS]m@]i@s@E_AFwCYw@QwD]iB@gA[wAIgBo@{BHmBIsDcAgEUqAY{@eAcC{@uAmBcBi@W{@sAyBkBWe@uCmDiDuBsDuCwFiCcBqCkB}Bi@iAuAyAOm@o@cAa@mAgAgBIq@y@_Dc@e@^gAA_@b@qAMyA@a@q@oB[mBU[c@KU[CMRuAQw@S]o@]i@gBYY[IKF@VQLi@CELo@He@M[DIKAHW@mAAaAQcACOHGGDAOCGE_AIo@~@Ut@m@z@o@fB]f@?Xs@h@o@dAYTiBRo@Te@fAMHm@`AaAlCBpBStBJzAOxBDfAYvA@xBw@fD@z@O|@FbAEfA?nADb@d@z@zB~@FRG`@e@^aA^i@v@?v@Kv@Sf@G|@Uv@WVw@^sATu@C{Bc@}Ah@o@@sAl@kA~Bi@dBBv@f@p@F\\?v@S^@b@]bAeAdBw@TsA`Ba@TE`B`@|@PNTx@`@PXv@RJx@fAZNPp@RPb@?x@hBGr@l@OXZdAAHFb@|@PLV`A?r@Tj@IZFJG@\\BV]pAHt@]x@B\\^HdA?GNAXJ\\p@@IJGb@@f@RLp@R?h@LPKVAz@p@@ECFMo@BYv@Gp@Sl@AJ[EYHKbBKHOCYNUdAVj@BTPXOBUb@e@\\DbA[x@Tb@p@l@HRRt@lBD`@l@r@Tt@JnAOlA`Bd@x@l@TQhBe@t@Ir@f@V@f@e@bAb@r@NPZ?f@m@rAk@|@ECLOXJVGfB|@LREj@KNuB|AN\\TPH`@TTVz@B\\G`AD`ANJCp@r@[d@Nr@Y~@AJRBjAXJVd@NFp@Ux@\\tAJRJ|@vA@r@Wl@gAv@GT_@Xe@~@IMFKb@B^Lz@jAfB|@f@lAbAKdCmAlBq@tBi@h@Ed@HGK"
        },
        "trainer":false,
        "commute":false,
        "manual":false,
        "private":false,
        "flagged":false,
        "workoutType":0,
        "uploadIdStr":"5090303343",
        "averageSpeed":1.9,
        "maxSpeed":5.9,
        "hasKudoed":false,
        "gearId":"g6625739",
        "kilojoules":null,
        "averageWatts":null,
        "deviceWatts":null,
        "maxWatts":null,
        "weightedAverageWatts":null,
        "id":4769714224
     },
     {
        "externalId":"7A39AD35-CF7A-4A19-B6D6-E1340FB7A9F2-activity.fit",
        "uploadId":5051357188,
        "athlete":{
           "id":39662027
        },
        "name":"Channa-Channa-Chanolo! #Fusion ",
        "distance":13191.5,
        "movingTime":7011,
        "elapsedTime":8331,
        "totalElevationGain":796.7,
        "elevHigh":618.5,
        "elevLow":45.4,
        "type":19,
        "startDate":"2021-02-04T09:05:30Z",
        "startDateLocal":"2021-02-04T05:05:30Z",
        "timezone":"(GMT-04:00) America/Port_of_Spain",
        "startLatlng":[
           10.69,
           -61.51
        ],
        "endLatlng":[
           10.69,
           -61.51
        ],
        "achievementCount":4,
        "kudosCount":23,
        "commentCount":3,
        "athleteCount":1,
        "photoCount":0,
        "totalPhotoCount":3,
        "map":{
           "id":"a4732170502",
           "polyline":null,
           "summaryPolyline":"obf`A~rlvJ_AtBkAtAFHAG~Ak@A\\OXBRBGhBMM`Cg@`BJFt@B^ElGgDdCkBDQz@a@Nk@x@cA|@qCPSjBO`DFtDhAR?vAiCv@wBLSPCn@b@~CrEp@Z@Qa@uAAm@^eBp@oAB_@EI_BBWMo@kAICM[i@o@OCm@wAu@[gAO{BaAa@_AM}AQq@kBcD_@yAcAwCg@cCS]s@c@g@y@Ew@LgA@eAa@_AYgDBMY{ABq@EKFQa@yABg@Gs@q@_CLkBEcCe@oC}@oDyAaEgAaB_Aq@g@m@WK}AgB_BwAcA}Ay@s@o@gAqBkAe@c@g@Uu@q@gEoCcA[_@Y_A_@kAcBsA_C{@_A]cAgCsCs@kCgAwACk@M{@QWQmAWSa@IAYn@o@EOD]`@}@K_BBi@_AsCU{ASUW@SK[B\\yBc@mAiAu@Cq@Se@cAe@FLQT@Jm@AIRuBACGg@LmC[e@Dy@MeAIk@v@Oj@WZOb@MHk@lB[R@H{AfCm@VwAT_@BGIFBEA?HYHq@bBy@l@Gr@w@zAE~@FxAQjAPjBYdCB|AKNKv@BhA_@nB]pAAjAJdCElBL`@El@FRn@l@vAh@XX?XiBh@m@j@]jDAp@Or@MVqAt@gA\\c@MoBSuCLmA^[^mB~CUp@Hx@`@nA?|@SnAu@|A[z@_AZUj@q@^u@~@EZPlAr@nARd@\\THXX^rAhAPr@T\\b@B\\b@\\|@@r@I@jATVAn@N~@x@\\z@?p@Px@CRFJCFBEM@LE@Hb@@jBKTHj@U\\@ZVHXBNQH?Ef@Vh@?AFJJKFFAGRF?EBHMd@In@XPf@d@JLP|@GLJT?CPASL_@l@]JS~@Bj@w@`@Ob@ATu@xAEdAXLOd@]f@IVWhA?VZ^t@j@CZRXb@RxAv@dARn@RzAOd@PF^d@f@Jf@VDL`@O~@ERQp@Ml@TLC?HZPNBTWZFLKd@Rb@@`@ZFZA\\Ut@w@vAQMFIbAP`Ab@ZZJZ@ZQXyA`A[`@PRTn@PJ`@rAFvCJp@CZV]XK`@Ff@YfA@HFTvAd@PVTTCxDb@X`@n@fBBRId@wAz@Sd@SDa@j@CX[EDQb@O`@D|@zAjA^\\RVdALJDEhAi@dA{@x@[nBe@nBG~@L"
        },
        "trainer":false,
        "commute":false,
        "manual":false,
        "private":false,
        "flagged":false,
        "workoutType":0,
        "uploadIdStr":"5051357188",
        "averageSpeed":1.882,
        "maxSpeed":7,
        "hasKudoed":false,
        "gearId":"g6625739",
        "kilojoules":null,
        "averageWatts":null,
        "deviceWatts":null,
        "maxWatts":null,
        "weightedAverageWatts":null,
        "id":4732170502
     },
     {
        "externalId":"8A898E50-DFDB-4133-9E86-A8C1C7299CCA-activity.fit",
        "uploadId":4904989108,
        "athlete":{
           "id":39662027
        },
        "name":"#Fusion #Paragrant #5MilesOfForest #F3",
        "distance":7748.3,
        "movingTime":4209,
        "elapsedTime":5392,
        "totalElevationGain":650,
        "elevHigh":578,
        "elevLow":10.1,
        "type":19,
        "startDate":"2021-01-09T10:59:12Z",
        "startDateLocal":"2021-01-09T06:59:12Z",
        "timezone":"(GMT-04:00) America/Port_of_Spain",
        "startLatlng":[
           10.75,
           -61.51
        ],
        "endLatlng":[
           10.75,
           -61.51
        ],
        "achievementCount":0,
        "kudosCount":20,
        "commentCount":0,
        "athleteCount":1,
        "photoCount":0,
        "totalPhotoCount":1,
        "map":{
           "id":"a4591664699",
           "polyline":null,
           "summaryPolyline":"etq`A|}lvJGh@M?MEAYEK?UQu@a@kA]cBUc@MKEBy@QCy@IG]Cw@Vq@hA[LU?IPEBi@?SDkBd@e@Dk@Vs@FSP_@FOPa@Fg@b@k@BkBKcAq@Yo@m@K{Ab@AF]Vk@@MFi@C_@Fi@Gw@JcAGu@QcAa@e@Ea@Ue@Qs@OWWi@MWUI@GEKBYQYDUOIDw@Ic@a@J]KODIEG?KBGS[E]QY[m@FSc@u@GQDEEKSKC]YYBEOEBOAQW[Z_@Na@AGJULg@?MFOKaAAo@Hm@d@c@P?LGP[O_@Ae@Jm@We@DEIIAIZw@H@TQJATk@f@m@NIAEFEBMIIBGLMB@EDH?GIBBCBAEF@MJ?DL?BOKKHQBACCJ?GCXK?WDMB[\\_A@c@PQAYJu@AEVsAOi@DOGUJ{@CCAGFKEe@Dc@IB@KKA?DIFBDAJEB?ZHh@LR`@CECG?CDRNWAHKfAKf@UB?BVCGYPOCS]B]TQ^IB@TKd@?FSGMB[C@LUC@F??DBEd@IJMHAAHPEFFPB~@@DHG?AIG?QSGSDe@UKIMLUr@?VJXANLRUJAPg@DNAIQAOIE@YSF_@?Sb@]?BH[c@COFKQ?EQB?GKHCIc@C_@]ICCIE@b@AZKCF@DDCGDGCGo@G?AGODMISDIMI@ACEKAe@O_@HECCDEAIS[BKCKIAKy@KWDIEE@KLAFMPGLBAFJV?TP\\JBh@MHD@E`@@b@Xv@Rl@Ap@KHIl@QX?@JEBAPKTJHH@z@EHDV@`@E\\BFATWVI^Cp@UrACPGt@Il@BzA@|@a@Tq@D?BMFEJDDI?BI?KEU@QOEM?g@QKG]a@IIS?a@BBDKTI^HJLj@CTIh@E\\MRDFD?DGBM[GEW?EIMG]Ck@e@OSASHE`AIvAb@PJf@Bd@Gn@TVCPJTXNDFLNHJLt@RHPJBJLd@X^`@NHBHNRLFj@jAp@p@Zp@J@RVF?PPTDJJHPBCXN\\`@XHVVDJGNALSXAR_@z@Mn@e@h@AH]`@Yh@Gt@LfCAr@GNIt@@NCD@LCR?f@Qr@Cr@Gh@GNE`AMd@BlAo@lBGt@@H[~AG|@Q~@Ad@BXAp@EFIj@@XCJAj@Hp@?fAFTTZ@VMT?HSj@MnBKd@LrATnACPHZCl@CNXnDD\\Xx@BNYxBFQHm@DACE"
        },
        "trainer":false,
        "commute":false,
        "manual":false,
        "private":false,
        "flagged":false,
        "workoutType":1,
        "uploadIdStr":"4904989108",
        "averageSpeed":1.437,
        "maxSpeed":4.9,
        "hasKudoed":false,
        "gearId":"g6625739",
        "kilojoules":null,
        "averageWatts":null,
        "deviceWatts":null,
        "maxWatts":null,
        "weightedAverageWatts":null,
        "id":4591664699
     },
     {
        "externalId":"85AEE221-D472-474D-AB48-B6078ECDCC05-activity.fit",
        "uploadId":4848700470,
        "athlete":{
           "id":39662027
        },
        "name":"#Fusion #MissionBreezy #AnotherOne #F2",
        "distance":4345.5,
        "movingTime":2328,
        "elapsedTime":2897,
        "totalElevationGain":498.8,
        "elevHigh":539.7,
        "elevLow":198.4,
        "type":19,
        "startDate":"2020-12-30T10:24:23Z",
        "startDateLocal":"2020-12-30T06:24:23Z",
        "timezone":"(GMT-04:00) America/Port_of_Spain",
        "startLatlng":[
           10.69,
           -61.51
        ],
        "endLatlng":[
           10.69,
           -61.51
        ],
        "achievementCount":0,
        "kudosCount":14,
        "commentCount":0,
        "athleteCount":1,
        "photoCount":0,
        "totalPhotoCount":1,
        "map":{
           "id":"a4538220069",
           "polyline":null,
           "summaryPolyline":"}cf`AnslvJCBGEa@@MHWFO@OJEAQJm@HMDULADi@NCLI@MLU^OHMRIFEBUAWFCDCPQ@[UQEWa@AKMQUMSAWMQE]e@MIIMMIGCQAq@WG?WJGGCG?GBA@CB?FICIF[\\i@XSt@Y`@[TWB_@AI@[EIAOGGCAG@S?GBKLKD@@IDUDKDE?C@?DGC_@Ja@AGEI?c@LUDCFGDAAABMCCBG?ABI@ABQCEDEA?@ID?BM?AFC?MBGEQ?KH]JOCCDIEGBQ?IEOAAK@ENEFWDMD@?KFI?SCIBMAIDABGFY?QLY?EFKDQD?DELEBEFAJK?CJKFCJOt@SBE_@C]JQHM@GEQAMHO`@C?E@ECGBS@EAAKGOWOGQEUISAMJs@FMDSC_@COIEQYKQ?GIQc@q@AOBAAEGECe@JENQD?JORELKb@OHIDMRGKCO@QGM?Q@MFSGk@IOBM?WH[@WDKAU@YOa@Ai@QK?KDWCGECDG?KACEBFICA@@@M@@@C@_@COKE?ACK?K^_AJQDSLEEA@EGELWRAHSHEJEBMD[BYGABQ?ELAAM?GCCPIEGAKNQCQTCAQLi@FKAQJIAKHOBABUJABANFL`@XBHBZNV?FB?NXJJ`@HHTHBXTVl@HLLHZHLN`@VP^Z^DNTZR\\dAhAT\\FVLLBLJL?JHDLTTTJNAFBD\\NNPTNLPbA~@\\b@LHP\\h@ZJJNBb@\\JFXV\\V\\J^\\ZNJHFBbAt@d@VFLTNLTNLfAf@\\JhAl@PDTJVPHBJG?CFGBMCUBGFAZBFADE@GL@LLH?HOC_@JIPBJEBEBc@LMTQf@o@VQNWRSP]BIDERMBG^MPKVUHMZOLQ^QROLGLKz@QPMFKHEX?JM?IFA"
        },
        "trainer":false,
        "commute":false,
        "manual":false,
        "private":false,
        "flagged":false,
        "workoutType":0,
        "uploadIdStr":"4848700470",
        "averageSpeed":1.867,
        "maxSpeed":5.8,
        "hasKudoed":false,
        "gearId":"g6625739",
        "kilojoules":null,
        "averageWatts":null,
        "deviceWatts":null,
        "maxWatts":null,
        "weightedAverageWatts":null,
        "id":4538220069
     },
     {
        "externalId":"BC8D4503-05D3-4AAB-90E8-1B4D2C94EF37-activity.fit",
        "uploadId":4767853458,
        "athlete":{
           "id":39662027
        },
        "name":"#Fusion #MissionBreezy #FollowTheWhiteFlag #ButDontSurrender",
        "distance":4385.4,
        "movingTime":2408,
        "elapsedTime":3659,
        "totalElevationGain":497.1,
        "elevHigh":539.9,
        "elevLow":193.2,
        "type":19,
        "startDate":"2020-12-12T10:48:09Z",
        "startDateLocal":"2020-12-12T06:48:09Z",
        "timezone":"(GMT-04:00) America/Port_of_Spain",
        "startLatlng":[
           10.69,
           -61.51
        ],
        "endLatlng":[
           10.69,
           -61.51
        ],
        "achievementCount":0,
        "kudosCount":7,
        "commentCount":0,
        "athleteCount":1,
        "photoCount":0,
        "totalPhotoCount":0,
        "map":{
           "id":"a4461737545",
           "polyline":null,
           "summaryPolyline":"edf`AlslvJACMAQ@YJM?OCMDm@BIAa@Nm@f@EJMJS\\IBOASFs@j@SJMJGLCBeA]MMQ[k@SgAw@USk@SOAUISAYM?CHI?SN_@b@a@^IFIXQNUb@c@@MEQBMEECe@FSCA@AE?a@P?@U?KDE?EDGA?BGCCFGAADA?CBECGBKC?DG@MEM?_AFUVUFGJODSIG?KH@?EHG@@BG@QAED]@WHM?IBCA?DQEGBIIIA?ECC@EVo@@K@AAMBEFICMAIDCBG?KBKF?CMHKAKDGDQJGNUHA?GNERSLC`@]LABC?ESMWCW?EBAJE@i@EOPMA?HUT?BKUKGIACCM_@AQGI?GDEAQJWBm@I_@O[GCSY?UU_@AKQOEO@SOCLC`AeAD@VMTEPYBMFCACq@?G@EDYAI@a@GM@KCi@?WEGDUBEDG?ABCEOGC@BBE?ABEAG?GGM@EEEDEAABGGGLEQAFE@EMKCG@ECQCEBE@MCCBECCBIECDCCE@MCI@EAC@ECEBIOECS@EAGDCRGCSBGHYLGASH?ABAODB?IDGAODU^s@TADUDYAKBAA?@KBKCINM@KFC?A@ACWPOFYDYLG?QDGACBMBSLWD@HDDBJAADF\\X?F@FCDDLFF@ND?HHLXF@BHRHJ@BFD@DJNDNLB?Lh@LRD?@DACH@DDPDp@n@^l@PRd@z@n@l@DLPRZn@@PJJHVDDD?TXHBJJFL?JNVVLNPJCDFLBFNZRLL\\p@TRDHBTFJXLBHDAJPFBFE\\JZZLVB?HJNJD?JJPDJLh@Rd@Xb@L`@Rr@n@v@fALH`@JDDx@LZPj@b@d@PRTB@DGDBBAJi@?GCMFGHCN@J@BBFOHELHJBHOCYDENEJ?AAT?CGDCGSBUXM`@i@TKZa@BKVURk@NOPGBGJCH@HGb@[HM`@WNSLEBCTEJORAh@WFSLERCP@PFCOLM@KBCJ?HFL@"
        },
        "trainer":false,
        "commute":false,
        "manual":false,
        "private":false,
        "flagged":false,
        "workoutType":0,
        "uploadIdStr":"4767853458",
        "averageSpeed":1.821,
        "maxSpeed":5.6,
        "hasKudoed":false,
        "gearId":"g6625739",
        "kilojoules":null,
        "averageWatts":null,
        "deviceWatts":null,
        "maxWatts":null,
        "weightedAverageWatts":null,
        "id":4461737545
     },
     {
        "externalId":"97FABA9A-4074-451B-9BE7-CCDAAF38A7A7-activity.fit",
        "uploadId":4703815549,
        "athlete":{
           "id":39662027
        },
        "name":"#Fusion #MissionAlpha #PhillyNet #Stush #F1",
        "distance":8891.7,
        "movingTime":3564,
        "elapsedTime":3806,
        "totalElevationGain":269.8,
        "elevHigh":201.8,
        "elevLow":28.1,
        "type":19,
        "startDate":"2020-11-28T09:53:45Z",
        "startDateLocal":"2020-11-28T05:53:45Z",
        "timezone":"(GMT-04:00) America/Port_of_Spain",
        "startLatlng":[
           10.65,
           -61.37
        ],
        "endLatlng":[
           10.65,
           -61.37
        ],
        "achievementCount":0,
        "kudosCount":12,
        "commentCount":2,
        "athleteCount":2,
        "photoCount":0,
        "totalPhotoCount":9,
        "map":{
           "id":"a4401006666",
           "polyline":null,
           "summaryPolyline":"sh~_AnvpuJyACQFSA]Bo@CEBWCMGYAcB?UGu@Iw@[OBc@@[CS?KCeBAg@Ck@S[i@CW@sBBKCg@@_@Ei@@_@DY@cDHc@CSM]U_@KCm@?WBYHmADcADe@GUMWIWPG?cAz@KPg@`@QVMHCFQLWZ[Vq@H_AEs@F]?]Cm@Ug@Yq@IaAI_A@GDw@@}EmA_@@SCMGKQ[SKMD@s@m@eAqBOOo@_@SqA?_@LOZQb@CDCFQGGEK]]iAuBa@g@Kk@Uo@Ae@@WBAJBlAMt@?XC\\S\\ILGd@Kv@e@fBy@t@o@@IBCFSHOVy@Vk@d@e@Xe@z@eAh@aARQPGnAQV?^Kz@Gv@OjAI^BtAGnA[`@APBVATERDrABbA^v@?r@PN?DBKG@GSGUAk@[QQI[IOWSWIIGu@QYAaBAg@Ko@o@s@_@w@s@UOs@QKKGUa@c@e@O_@?[Kw@k@OGMO[IU?WE]@UCWBI@SXMFGLQBCBa@EeA][ESDONg@RsBT[@g@MOYI_@EGKAWPW?MD]Tg@NSJ]ZIBEFAHQPQ`@GBCFw@v@]PY`@GVKLAFOR]Vs@^U@EDYDoA`@[Pa@FQJW@I?KQ?EDKAGBKHMHa@HQLa@RWD[AUMi@By@E_@EKMMMEMKAMTk@?[MSGCk@ASIeA@MCSBGCC@@JP`@?RERU^AA?POV?HBTHPHHHT?`@EPGDETAXEP[^e@Re@v@k@v@MFa@HkAn@GHMBWPKLoAV@AJDFHRDl@APIj@Ap@BfAPrAIr@ZRBf@Zd@LDDb@BZCh@YZIjACRLTFLLRDDb@DNNPTHt@FXHLZJDDP?PEHFJFb@N\\DRJNH`@FPBB?DDBNBj@Xj@HPJBDHl@FRLp@JR`@h@PZ@FP^NNDJv@|@BNKZy@VIJG^Dn@FNf@\\DL^l@Rf@PVt@v@V`@^L^A|@JtAEPEFGPBh@I\\B\\J\\TJ@tFvBRBb@GPBICp@Dh@EB@TIn@CLEz@o@^a@ZSJA`@[\\_@NGHGRCZDz@Gh@DNAJDV?lAGl@MJB\\N`@^Fl@At@D^@tAGl@@d@GfBBVAh@El@DZHL^PDAn@Hh@Ah@FJCVFf@A~@Zv@F~@L|@Bd@HjABf@FhB@|@NHRB?"
        },
        "trainer":false,
        "commute":false,
        "manual":false,
        "private":false,
        "flagged":false,
        "workoutType":1,
        "uploadIdStr":"4703815549",
        "averageSpeed":2.336,
        "maxSpeed":12.2,
        "hasKudoed":false,
        "gearId":"g6625739",
        "kilojoules":null,
        "averageWatts":null,
        "deviceWatts":null,
        "maxWatts":null,
        "weightedAverageWatts":null,
        "id":4401006666
     }
  ];
  
  activities.sort(function(a, b) { 
     if (a.startDate < b.startDate) {
        return 1;
    }
    if (a.startDate > b.startDate) {
        return -1;
    }
    return 0;
  });
  var activityDisplay =[];
  for (var i=0;i<activities.length;i++)
    {
       
     activities[i].index = i;
     activities[i].displayindex = i*20;
     activities[i].image_location = `#fusion-result-${i+1}`;
  
      activities[i].ogName = activities[i].name;
      activities[i].displayName = activities[i].name.replace("#Fusion", "").trim();
      if (activities[i].displayName.toLowerCase().indexOf("archion") > -1)
        {
          activities[i].displayName = "Archion (6)";
        }
      else if (activities[i].displayName.toLowerCase().indexOf("paragrant") > -1)
        {
          activities[i].displayName = "Paragrant (3)";
        }
          else if (activities[i].displayName.toLowerCase().indexOf("breezy") > -1)
        {
          activities[i].displayName = "Breezy (2)";
        }
          else if (activities[i].displayName.toLowerCase().indexOf("alpha") > -1)
        {
          activities[i].displayName = "Alpha (1)";
        }
          else if (activities[i].displayName.toLowerCase().indexOf("chanolo") > -1)
        {
          activities[i].displayName = "Chanolo (4)";
        }
          else if (activities[i].displayName.toLowerCase().indexOf("covigne") > -1)
        {
          activities[i].displayName = "Covigne (5)";
        }
  
     activityDisplay[activities[i].displayName] = activities[i].displayindex;
     activityDisplay[i+1] = activities[i].displayindex;
        
      
      activities[i].index = -i;
    }
  
    var key="AIzaSyBSlQcsEjU_sR6kajerqEA-a_4gSFKFIB8";
  
  activities.forEach((element) => {
    var points = decode(element.map.summaryPolyline);
    var markers = "";
    for (var i = 0; i < points.length; i++)
      markers += `${points[i].latitude},${points[i].longitude}|`;
    markers = "color:red%7Csize:tiny%7C"+markers;
      element.markers = markers;
    element.center = points[0].latitude + "," + points[0].longitude;
  
    element.google_image_location = 
        `https://maps.googleapis.com/maps/api/staticmap?center=${element.center}&scale=2&zoom=14&size=1280x1280&maptype=hybrid&markers=${element.markers}&key=${key}`;
  
    //console.log(markers);
  });
  
  
  var sampleGeoJson = {"type":"LineString","coordinates":[[-61.60976,10.71847],[-61.60995,10.71905],[-61.61013,10.71982],[-61.61018,10.72022],[-61.61068,10.72196],[-61.61089,10.72289],[-61.61112,10.72351],[-61.61129,10.72458],[-61.61144,10.72509],[-61.61068,10.72494],[-61.6103,10.72447],[-61.61003,10.7242],[-61.6094,10.72396],[-61.60878,10.7235],[-61.60852,10.72312],[-61.60836,10.72292],[-61.60805,10.72273],[-61.6082,10.72258],[-61.60837,10.72276],[-61.6088,10.72342],[-61.60934,10.72414],[-61.60971,10.72457],[-61.60993,10.72461],[-61.61008,10.72459],[-61.61024,10.72444],[-61.61041,10.72399],[-61.61053,10.72363],[-61.61073,10.72349],[-61.61091,10.72312],[-61.61154,10.72277],[-61.6119,10.72194],[-61.6123,10.72134],[-61.61315,10.72084],[-61.61333,10.71947],[-61.6133,10.71907],[-61.61289,10.71902],[-61.6128,10.7188],[-61.61281,10.71871],[-61.61272,10.71835],[-61.61228,10.71824],[-61.61198,10.71815],[-61.61185,10.71816],[-61.61144,10.71821],[-61.61159,10.71806],[-61.61159,10.71839],[-61.61163,10.7185],[-61.61169,10.71858],[-61.61191,10.71871],[-61.6123,10.7191],[-61.61249,10.71948],[-61.61264,10.71963],[-61.61188,10.71948],[-61.61146,10.71927],[-61.61109,10.71933],[-61.61099,10.71926],[-61.61088,10.71907],[-61.61067,10.71898],[-61.61039,10.7186],[-61.61049,10.71837],[-61.61056,10.7182],[-61.61054,10.71796],[-61.61043,10.71786],[-61.61031,10.7178],[-61.61033,10.71762],[-61.61045,10.71741],[-61.61051,10.71725],[-61.61066,10.7171],[-61.61064,10.71697],[-61.61075,10.7169],[-61.61078,10.71683],[-61.611,10.71666],[-61.61116,10.71662],[-61.61122,10.71646],[-61.61129,10.71639],[-61.61134,10.7164],[-61.6116,10.71623],[-61.61174,10.71621],[-61.61206,10.71618],[-61.61217,10.71623],[-61.61235,10.7162],[-61.61252,10.71625],[-61.61255,10.71631],[-61.61308,10.71634],[-61.61336,10.71654],[-61.61348,10.71652],[-61.61386,10.71633],[-61.61407,10.71617],[-61.61416,10.71616],[-61.61424,10.71622],[-61.61429,10.71621],[-61.61475,10.7158],[-61.61476,10.71576],[-61.61496,10.71565],[-61.61505,10.71551],[-61.61518,10.71544],[-61.6152,10.71536],[-61.61533,10.71526],[-61.61542,10.71523],[-61.61557,10.71501],[-61.61578,10.71486],[-61.61602,10.71482],[-61.61616,10.71483],[-61.61618,10.7148],[-61.61661,10.71475],[-61.61676,10.71478],[-61.61671,10.71463],[-61.61663,10.71444],[-61.61667,10.71408],[-61.61676,10.71406],[-61.61701,10.7138],[-61.6172,10.71372],[-61.61735,10.71357],[-61.61759,10.71347],[-61.61786,10.71344],[-61.61789,10.71332],[-61.61779,10.71325],[-61.61788,10.71321],[-61.61803,10.71306],[-61.61821,10.71303],[-61.61836,10.71291],[-61.61863,10.71276],[-61.61907,10.71267],[-61.61916,10.71232],[-61.61951,10.71229],[-61.61991,10.71237],[-61.62026,10.71233],[-61.62051,10.71222],[-61.62068,10.7122],[-61.62081,10.71224],[-61.62102,10.7121],[-61.62117,10.71206],[-61.6213,10.71191],[-61.62137,10.71188],[-61.62155,10.71188],[-61.62164,10.71191],[-61.62185,10.7119],[-61.62214,10.71166],[-61.62259,10.71153],[-61.62286,10.71136],[-61.62291,10.7113],[-61.62344,10.71111],[-61.62379,10.71077],[-61.62386,10.71057],[-61.62418,10.71037],[-61.62442,10.71003],[-61.62442,10.70996],[-61.62451,10.70983],[-61.62458,10.70981],[-61.62458,10.70977],[-61.62452,10.70978],[-61.62448,10.70971],[-61.62441,10.7097],[-61.62438,10.70951],[-61.62432,10.70945],[-61.6242,10.70938],[-61.6241,10.70942],[-61.62414,10.70932],[-61.62415,10.7092],[-61.62409,10.70908],[-61.62415,10.70882],[-61.62422,10.70883],[-61.62433,10.70891],[-61.62429,10.70892],[-61.6244,10.70886],[-61.62456,10.70869],[-61.62471,10.70854],[-61.62479,10.7085],[-61.62492,10.70838],[-61.62492,10.70832],[-61.62497,10.70829],[-61.62526,10.70836],[-61.62535,10.70841],[-61.62541,10.70832],[-61.62589,10.70848],[-61.62597,10.70886],[-61.62601,10.70898],[-61.62623,10.70917],[-61.62629,10.70943],[-61.62649,10.70949],[-61.62664,10.70955],[-61.6265,10.7094],[-61.62623,10.70918],[-61.62611,10.70895],[-61.62608,10.70877],[-61.62582,10.70832],[-61.62587,10.70818],[-61.62583,10.70807],[-61.62591,10.70749],[-61.62599,10.70723],[-61.62614,10.70708],[-61.62628,10.70715],[-61.6264,10.70715],[-61.62656,10.70722],[-61.62678,10.70724],[-61.62688,10.70749],[-61.62692,10.70755],[-61.62711,10.70764],[-61.62724,10.7078],[-61.62734,10.70799],[-61.62745,10.70806],[-61.62752,10.70822],[-61.6276,10.70824],[-61.62766,10.70837],[-61.62765,10.7084],[-61.62773,10.70845],[-61.6278,10.7086],[-61.628,10.7086],[-61.62834,10.70885],[-61.62889,10.70917],[-61.62882,10.70955],[-61.62884,10.70961],[-61.62886,10.70966],[-61.62883,10.70968],[-61.62894,10.70959],[-61.62907,10.70956],[-61.62947,10.70965],[-61.62956,10.70981],[-61.62956,10.70995],[-61.62963,10.71007],[-61.62959,10.71028],[-61.62967,10.71042],[-61.62965,10.71056],[-61.62967,10.71068],[-61.62949,10.7107],[-61.62939,10.71127],[-61.62928,10.71148],[-61.62916,10.71198],[-61.62889,10.71213],[-61.62866,10.71223],[-61.62863,10.71244],[-61.62876,10.7131],[-61.629,10.71338],[-61.62916,10.71371],[-61.62933,10.71387],[-61.62953,10.71423],[-61.62972,10.71439],[-61.63002,10.71474],[-61.63002,10.7152],[-61.63008,10.71532],[-61.63023,10.71539],[-61.62988,10.71524],[-61.62981,10.71526],[-61.6297,10.71522],[-61.62963,10.71526],[-61.62949,10.71526],[-61.62914,10.71513],[-61.62898,10.71512],[-61.62882,10.71517],[-61.62877,10.71515],[-61.62858,10.71521],[-61.6284,10.71535],[-61.62842,10.71537],[-61.62843,10.71557],[-61.62824,10.71564],[-61.62839,10.7157],[-61.62822,10.71555],[-61.62822,10.71573],[-61.62816,10.71563],[-61.6281,10.71551],[-61.62804,10.71545],[-61.62772,10.71546],[-61.62768,10.71569],[-61.62773,10.71576],[-61.62769,10.7157],[-61.6276,10.7157],[-61.62761,10.71584],[-61.62761,10.71576],[-61.62756,10.7158],[-61.62752,10.71578],[-61.62746,10.71585],[-61.6274,10.7158],[-61.62738,10.71587],[-61.62734,10.71605],[-61.62723,10.71612],[-61.62706,10.71618],[-61.627,10.71617],[-61.62697,10.71623],[-61.62682,10.71621],[-61.62676,10.7163],[-61.62669,10.71626],[-61.62665,10.71648],[-61.62654,10.71639],[-61.62631,10.71645],[-61.62626,10.71647],[-61.62614,10.71653],[-61.62613,10.71649],[-61.62607,10.71652],[-61.62602,10.71651],[-61.62597,10.71655],[-61.62602,10.71666],[-61.62586,10.71668],[-61.62572,10.71674],[-61.62567,10.71695],[-61.62549,10.71693],[-61.62532,10.71699],[-61.62491,10.71694],[-61.62443,10.71708],[-61.62418,10.71715],[-61.624,10.71729],[-61.62377,10.71729],[-61.62366,10.71742],[-61.62346,10.71741],[-61.62331,10.71749],[-61.62326,10.71763],[-61.62332,10.71775],[-61.62354,10.71799],[-61.62381,10.7181],[-61.62384,10.71816],[-61.62397,10.71824],[-61.62409,10.71834],[-61.62406,10.71834],[-61.62417,10.71839],[-61.62449,10.71851],[-61.62459,10.71847],[-61.62459,10.71853],[-61.62463,10.71848],[-61.6246,10.71851],[-61.62472,10.71848],[-61.62484,10.71872],[-61.62503,10.7187],[-61.62517,10.71874],[-61.62525,10.71885],[-61.6254,10.71899],[-61.62536,10.71884],[-61.6252,10.71882],[-61.6252,10.7183],[-61.62514,10.71805],[-61.62533,10.7178],[-61.62532,10.71761],[-61.62551,10.7172],[-61.62544,10.71698],[-61.62547,10.71661],[-61.62543,10.71647],[-61.62553,10.71626],[-61.62552,10.71616],[-61.6256,10.71604],[-61.62559,10.71606],[-61.62558,10.71601],[-61.62545,10.71597],[-61.62536,10.71578],[-61.62525,10.71573],[-61.62523,10.71552],[-61.62528,10.71548],[-61.6252,10.71546],[-61.62517,10.71541],[-61.62485,10.71534],[-61.62474,10.71535],[-61.62455,10.71521],[-61.62443,10.7152],[-61.62458,10.71505],[-61.62459,10.7154],[-61.62465,10.71567],[-61.62462,10.71587],[-61.62461,10.71594],[-61.62463,10.71626],[-61.62471,10.7164],[-61.62479,10.71661],[-61.62473,10.71673],[-61.62478,10.71687],[-61.62472,10.71708],[-61.62468,10.71719],[-61.62459,10.71747],[-61.62458,10.71761],[-61.62453,10.71778],[-61.62442,10.71792],[-61.62426,10.71794],[-61.62427,10.71826],[-61.62418,10.71859],[-61.62413,10.71877],[-61.6241,10.71878],[-61.62411,10.71892],[-61.62395,10.71909],[-61.6239,10.71945],[-61.6238,10.71947],[-61.62383,10.71998],[-61.62406,10.72011],[-61.62423,10.72055],[-61.62422,10.72075],[-61.62427,10.72096],[-61.62426,10.72104],[-61.6243,10.72131],[-61.6242,10.72161],[-61.62415,10.72225],[-61.62419,10.72242],[-61.62414,10.72275],[-61.62416,10.723],[-61.62425,10.7232],[-61.62419,10.72344],[-61.62422,10.72385],[-61.62428,10.72413],[-61.62422,10.72424],[-61.62408,10.72442],[-61.62399,10.72457],[-61.624,10.72486],[-61.62393,10.7251],[-61.62356,10.72518],[-61.62293,10.72546],[-61.62259,10.72573],[-61.62224,10.72571],[-61.62211,10.72563],[-61.62187,10.72555],[-61.62139,10.72556],[-61.62039,10.72547],[-61.61968,10.72523],[-61.61911,10.72511],[-61.61911,10.72492]]};