The biggest source of error is actually the variation in the speed of sound. It increases around 2% when the temperature increases 10°C. Then there is a source of error because it seems the clock frequency of the ADC/DAC on the iPhone is not 100% accurate. If you recalibrate the app with a known distance (by moving the temp. slider until the displayed distance matches the actual distance) it should be pretty precise. No warranties, however. If the noise level is too high, it usually just doesn't show the measurement. There's one other source of error, that was actually the hardest to filter out: The sound doesn't only travel on the shortest path (line-of-sight) but on many paths. And often the sound from the longer paths arrive amplified, compared to the shortest path.
In theory it would be possible to tell the temperature if you have a know distance. The only problem seems to be that the clock of the ADC/DAC is often not running exactly at its nominal frequency. So, if you have a known distance, slide the temperature slider until the result matches (this works even after the measurement is complete). I've thought about this problem but decided against having an additional slider for the clock calibration, because I think that would have been to difficult to understand.
I'd also love to try this, we're working on indoor positioning here and this is a solution we had been considering. Have you done any test with ultra sounds?
yep, no luck. i have a good friend just finishing up his phd in a the field and working on applications for similar technology for european automakers.