Improving the distances of post-AGB objects in the Milky Way