Added distance api