starting distance api