added support for distance in km