Measuring the local matter density using Gaia DR2A. WidmarkA&A, 623 (2019) A30DOI: https://doi.org/10.1051/0004-6361/201834718