If you flag down a vehicle, especially a taxi, you wave at it as a signal for the driver to stop.
They flagged down a passing family who stopped to help them...
Marlette was already out of the door, flagging down a taxi.
= hail
PHRASAL VERB : V P n (not pron) , V n P