Gaia Data Release 2. Using Gaia parallaxes