A Methodology For The Optimization Of Autonomous Public Transportation