7 | db.events.find( {"aggregate":[{"$geoNear":{"near":[-71.20130157470703,42.788299560546875],"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 | 46 |
10 | db.events_cache.insert( {"_id":"a1779aeff432421ab9e72cc07569d9ce","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":43.35599667586388,"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":"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":17.451250226767236,"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":[]}},{"Event":{"_id":{"title":"Smuttynose Rockfest Half Marathon and 5K","venue_name":"","city":"Hampton","state":"NH"},"id":ObjectId ("687938cb384bf9134e011d89"),"city":"Hampton","cvent_id":null,"cvent_status":null,"date_string":"Sunday, Oct 5, 2025 at 8:00am","time_string":"8:00 AM","distance":21.64733984192862,"end":"","event_id":74323314,"featured":"","geo":[-70.82330322265625,42.933799743652344],"group_key":"74323314","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Hampton, NH","repeat_id":"","search_text":"Smuttynose Rockfest Half Marathon and 5K, , Ashworth Blvd & B Street, Hampton, smuttynose rockfest half marathon amp returns hamptonschedulehalf runners should prepared start with starting am course infohalf marathonwith elevation gain only feet flattest fastest most scenic half marathon course englandcourse begins thrilling loops around downtown hampton beach thousands spectators cheering on next yoursquohead north ocean boulevard right along beach before turning inland loop through treelined roads coming back ocean mile yoursquofinish threemile stretch ending famous shell stage welldeserved partyrace starts designated pace corrals measured according usatf standards certification viewed here view detailed herepacer groups provided hrs this very spectator friendly great views start mile finish every marker corners have least arrow race marshals police will stationed confusing cornersclick mapk courserunners line street comprised first miles which means yoursquocheered beside beautiful atlantic oceanafter crossing finish head over where afterparty awaits experience same food band beer garden they just party started little earlierclick mapthe after partyyoursquonever experienced like this after race features massive festival people descend town cheer day bring your friends family ready hampshirersquobiggest festivalsstart inside boardwalk find live bands performing classic hits yoursquoable enjoy while listening englandrsquofavorite cover bandsknow yoursquohungry more than music when run thankfully smorgasbord clam chowder granola bars well vegetarian options waiting postrace plus yoursquocomplimentary craft beers wash downcostprice increase june th must years older participatehalf participatevirtual virtual click register","sef_tail":"\/event\/smuttynose-rockfest-half-marathon-and-5k-2025-10-05-1-hampton-nh.html","start":"MongoDate(0.00000000 1759651200)","state":"NH","tags":["step-outside","aarp","running","5ks","half-marathon","festival","other-festival","seasonal","october","suggestions-step-outside","sports-and-recreation"],"title":"Smuttynose Rockfest Half Marathon and 5K","town_sef_url":"hampton-nh","venue_name":"","dates":[]}}],"params":"{\"title\":\"Upcoming 5Ks, 10Ks, Marathons and more Near Salem NH\",\"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.788299560546875,\"lng\":-71.20130157470703,\"latlng\":\"42.788299560547,-71.201301574707\",\"count\":1}","modified":"MongoDate(0.74100000 1756613122)","created":"MongoDate(0.74100000 1756613122)"} , true) | | 0 | 0 | 2 |