DSO carthesian coordinate estimations
There are many cosmological distance measures and what you need depends on what you want to do. If you want to position the object in 3D space where it is today, you need its proper distance. If you want to e.g. display the object with a certain angular size on the sky, and you want to figure that size out from how far away the object is, you need the angular diameter distance.

To calculate any of the measures, you need the object's redshift $z$. You will probably need to store the comoving distance (= proper distance today) and redshift so that you can convert to other distance measures quickly without redoing the integral.