Quantum interference of distinguishable photons based on spatially resolved measurements