You don't "walk in Mecca" generally. During Hajj or Umrah, pilgrims perform Tawaf: 7 counterclockwise circuits around the Kaaba (cubic building in Masjid al-Haram). This is a mandatory rite. Additional voluntary Tawaf can be done. The Sa'i (walking between Safa and Marwah) is 7 laps (3.5 km total).