Distance measurement

Have you tried this library?

I found that with Google in under a minute.