Toronto police say they have arrested a man in his 20s after a transit bus was hijacked by a man possibly jonesing for Tim Hortons.

Investigators say the suspect boarded the bus just before midnight Thursday in York Region, north of Toronto, and forced the driver at knifepoint to bypass several stops before eventually demanding to be dropped off at a Tim Hortons.

Officers arrested the man at the restaurant a short time later.

Police say neither the driver nor anyone else on the bus was injured.

The Toronto Transit Commission said the bus driver was "shaken" by what it called a "brazen crime."

It thanked police for their quick action and said it would offer the bus driver any assistance needed.