Minimal length in quantum space and integrations of the line element in noncommutative geometry