converted to km, changed api endpoint