It depends on where you start. See, Baja is a pretty long peninsula that stretches 1,250 Kilometers (775 miles) from the San Diego-Tijuana border down to Cabo San Lucas. Therefore, "Baja" is as close...
I think you mean the town of Dolores, in the Mexican state of Hidalgo, where the cry for the independence of Mexico took place. In that case it is some 317 Km (Some 197 miles) north of Mexico City.