She left London on 1 January 1829 for Sydney via Madras .
She left London on 1 January 1829 via Madras to Sydney .

Do these sentences mean the same thing?
yes