Hyperbolic inverse problem with data on disjoint sets