added runtime location into to distance calculator