private async Task <object> GetGroupTypeDistances(int groupTypeId, string address) { RockContext rockContext = new RockContext(); GroupService groupService = new GroupService(rockContext); var groups = groupService.Queryable().Where(g => g.IsActive && !g.IsArchived && g.IsPublic && g.GroupTypeId == groupTypeId); var output = await GroupUtilities.GetGroupsDestinations(address, groups.AsQueryable <Group>(), rockContext); return(output.ToDictionary(d => d.EntityId.ToString(), d => d.TravelDistance.ToString())); }