A geometric distance measurement to the Galactic center black hole with 0.3% uncertainty