I don't think you can calculate the circumference of the Earth to within a few inches that easily because earth's topology isn't perfectly smooth. It has ups and downs all over.
Not BS, take the equator as the circumference and a weighted average between sea level and the highest point on that line for the constant circular path and you'll have a measurement relative to pi.