The city of Port St. Lucie has reached a $24 million settlement with its former trash collector.