Transit visa for canada

Am traveling to India from San Francisco via Canada (Air Canada). Do I need a transit visa? I looked into Transit without a visa in Canada website (If you plan to arrive from the United States) I am qualifying for travel with a participating airline point

Do I need to take visa? How do I apply for a visa and how many days will it get to process. Canada visa website is very confusing information is not straight forward. For transit visa they re asking me to apply as temporary resident application.