What sort of accuracy are you expecting? The UARTs sampling alone could introduce an error of many tens of metres.