8 | db.events.find( {"aggregate":[{"$geoNear":{"near":[-71.58779907226562,42.560298919677734],"distanceField":"distance","distanceMultiplier":3963.2,"maxDistance":0.01135446104158256,"spherical":true,"query":{"start":{"$gte":"MongoDate(0.00000000 1756530000)"},"tags":"running"}}},{"$sort":{"start":1,"id":1}},{"$group":{"_id":{"title":"$title","venue_name":"$venue_name","city":"$city","state":"$state"},"id":{"$first":"$_id"},"city":{"$first":"$city"},"cvent_id":{"$first":"$cvent_id"},"cvent_status":{"$first":"$cvent_status"},"date_string":{"$first":"$date_string"},"time_string":{"$first":"$time_string"},"distance":{"$first":"$distance"},"end":{"$first":"$end"},"event_id":{"$first":"$event_id"},"featured":{"$first":"$featured"},"geo":{"$first":"$geo"},"group_key":{"$first":"$group_key"},"image_url":{"$first":"$image_url"},"location_string":{"$first":"$location_string"},"repeat_id":{"$first":"$repeat_id"},"search_text":{"$first":"$search_text"},"sef_tail":{"$first":"$sef_tail"},"start":{"$first":"$start"},"state":{"$first":"$state"},"tags":{"$first":"$tags"},"title":{"$first":"$title"},"town_sef_url":{"$first":"$town_sef_url"},"venue_name":{"$first":"$venue_name"},"dates":{"$push":{"start":"$start","date_string":"$date_string","sef_tail":"$sef_tail"}}}},{"$sort":{"start":1,"id":1}},{"$sort":{"start":1,"id":1}},{"$skip":0},{"$limit":15}]}, [] ).sort( {"start":1,"id":1} ).limit( 15 ).skip( 0 ) | | 0 | 3 | 51 |
11 | db.events_cache.insert( {"_id":"ec56ecd081cec0f0daaa944253363cb9","data":[{"Event":{"_id":{"title":"Stag Stampede 5K and Fun Run","venue_name":"","city":"Dublin","state":"NH"},"id":ObjectId ("68793957384bf9134e034374"),"city":"Dublin","cvent_id":null,"cvent_status":null,"date_string":"Saturday, Aug 30, 2025 at 9:00am","time_string":"9:00 AM","distance":32.899690977747326,"end":"","event_id":75948214,"featured":"","geo":[-72.04280090332031,42.89870071411133],"group_key":"75948214","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Dublin, NH","repeat_id":"","search_text":"Stag Stampede 5K and Fun Run, , 106 Page Road, Dublin, generations stags have been running ldquolooprdquo legendary training that become rite passage athletes this year test your mettle same course honed champions inaugural stag stampede run join run walk push kids stroller stay postrace refreshments sponsored parent connect proceeds from this community will benefit dublin christian academy athletics programs soccer volleyball basketball event kick school pricesk runwalkearly bird special through july standard august race registrationnbsp milesfree shirt included click here register","sef_tail":"\/event\/stag-stampede-5k-and-fun-run-2025-08-30-dublin-nh.html","start":"MongoDate(0.00000000 1756544400)","state":"NH","tags":["step-outside","aarp","running","fun-run","5ks","sports-and-recreation"],"title":"Stag Stampede 5K and Fun Run","town_sef_url":"dublin-nh","venue_name":"","dates":[]}},{"Event":{"_id":{"title":"Swanzey Covered Bridges Half Marathon","venue_name":"Monadnock Regional School District","city":"Swanzey","state":"NH"},"id":ObjectId ("68793957384bf9134e03437f"),"city":"Swanzey","cvent_id":null,"cvent_status":null,"date_string":"Sunday, Aug 31, 2025 at 8:00am","time_string":"8:00 AM","distance":41.36797247164369,"end":"","event_id":75948228,"featured":"","geo":[-72.27999877929688,42.875],"group_key":"75948228","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Swanzey, NH","repeat_id":"","search_text":"Swanzey Covered Bridges Half Marathon, Monadnock Regional School District, 600 Old Homestead Highway, Swanzey, swanzey covered bridges half marathon held each year memory founder elijah barrett organized event donate proceeds help students monadnock regional middlehigh school attended mrmhs eventually coached runners therenbsp race itself mostly flat fast terrain with gentle rolling hills thrown course along also called elijahrace honor local runner started all this showcases signature landmarks southwestern hampshire town located just over miles from borders massachusetts vermontnbsp between feet elevation gain features views scenery that captures perfectly quaint authentic feel england taking through bridges names thompson carlton cresson most which date precivil era participants across made paved roads though shortly after start participants will enter section improved railroad about mile dirt trailsnbsp thereafter returns follows counter clockwise loop area back finish schoolnbsp after have crossed line there post barbecue withnbsp hamburgers hotdogs pasta salad watermelon runners joggers skill levels welcomenbsp being allows bathrooms locker rooms showers there water stations spread throughout every other table supplying gatorade click here register","sef_tail":"\/event\/swanzey-covered-bridges-half-marathon-2025-08-31-swanzey-nh.html","start":"MongoDate(0.00000000 1756627200)","state":"NH","tags":["step-outside","aarp","running","half-marathon","sports-and-recreation"],"title":"Swanzey Covered Bridges Half Marathon","town_sef_url":"swanzey-nh","venue_name":"Monadnock Regional School District","dates":[]}},{"Event":{"_id":{"title":"Annual Chelmsford Steps Against Melanoma","venue_name":"Byam Elementary School","city":"Chelmsford","state":"MA"},"id":ObjectId ("6879393b384bf9134e02f125"),"city":"Chelmsford","cvent_id":null,"cvent_status":null,"date_string":"Sunday, Sep 7, 2025 at 10:30am","time_string":"10:30 AM","distance":10.514793955292731,"end":"","event_id":75837555,"featured":"","geo":[-71.382227,42.5739147],"group_key":"75837555","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Chelmsford, MA","repeat_id":"","search_text":"Annual Chelmsford Steps Against Melanoma, Byam Elementary School, 25 Maple Rd, Chelmsford, annual chelmsford steps against melanoma journey cure starts with single step every step take walk hope unity determination whether yousurvivor caregiver advocate your presence matters each raises vital awareness funds research supports those affected melanoma registering youjust joining eventyoursquotaking action show patients families they alone while supporting aimrsquocritical initiatives like international tissue bank consortium join us together inspire change move closer world without walk support make difference event schedule am registration checkam opening remarks runwalk click here register now","sef_tail":"\/event\/annual-chelmsford-steps-against-melanoma-2025-09-07-chelmsford-ma.html","start":"MongoDate(0.00000000 1757241000)","state":"MA","tags":["aarp","suggestion-aarp","running","step-outside","fun-run","walking","sports-and-recreation"],"title":"Annual Chelmsford Steps Against Melanoma","town_sef_url":"chelmsford-ma","venue_name":"Byam Elementary School","dates":[]}}],"params":"{\"title\":\"Upcoming 5Ks, 10Ks, Marathons and more Near Ayer MA\",\"tags\":\"running\",\"keyword\":\"\",\"radius\":45,\"limit\":15,\"page\":1,\"sef\":\"\",\"tags_logical\":\"\",\"terms\":\"\",\"show\":15,\"show_limit\":3,\"sort\":\"\",\"days\":365,\"images\":\"yes\",\"max-days\":365,\"max-miles\":45,\"message\":\"\",\"min\":20,\"prompt\":\"\",\"height\":\"\",\"width\":\"\",\"more\":\"yes\",\"autoshowmore\":\"no\",\"link\":\"\",\"showdesc\":\"yes\",\"rankby\":\"distance\",\"type\":\"\",\"ad_slots\":\"\",\"see-more-title\":\"\",\"searchdate\":\"\",\"lat\":42.560298919677734,\"lng\":-71.58779907226562,\"latlng\":\"42.560298919678,-71.587799072266\",\"count\":1}","modified":"MongoDate(0.05700000 1756604817)","created":"MongoDate(0.05700000 1756604817)"} , true) | | 0 | 0 | 3 |