The streets of Edinburgh have been transported back in time to 1870s London as filming for a TV series gets under way.