Please check if these have the same meaning. Select from:
a). no.
b). yes.
She left Sydney on 1 January 1829 for London via Madras .
She left Sydney on 1 January 1829 via Madras to London .
b).