Geography helped the Union win the Battle of Gettysburg in many ways. The elevation, distance, terrain, climate of Gettysburg on July 1-3, 1863 were all key factors in helping the Union win the battle, along with the roads and buildings of Gettysburg at the time.
Position of the Union and Confederate armies, sunset, June 30, 1863