City planning safer routes for public transportation