{
  "schema": 1,
  "id": "crazy-cairo-real-streets",
  "published": "2026-11-10",
  "updated": "2026-11-10",
  "category": "behind",
  "games": ["crazy-cairo"],
  "cover": {
    "src": "/art/blog/cairo-cover-1280.webp",
    "width": 1280,
    "height": 720
  },
  "ar": {
    "title": "إزاي حطينا وسط البلد الحقيقية جوه لعبة تاكسي",
    "seoTitle": "كريزي كايرو: إزاي بنينا وسط البلد الحقيقية في لعبة",
    "description": "كريزي كايرو مش مدينة متخيلة: شوارع وسط البلد وميادينها ومحلاتها جاية من خريطة حقيقية. بالأرقام، إيه اللي جه من الخريطة وإيه اللي عملناه بإيدينا.",
    "coverAlt": "التاكسي الأبيض والأسود في تقاطع من وسط البلد في كريزي كايرو",
    "intro": "لما تلف بالتاكسي في كريزي كايرو وتلاقي طلعت حرب بيوصّل للميدان اللي المفروض يوصّل له، ده مش صدفة. الشوارع في اللعبة هي الشوارع الحقيقية، جاية من خريطة مفتوحة. بس الخريطة لوحدها مش لعبة، ودي حكاية الفرق.",
    "blocks": [
      { "type": "h2", "text": "البداية: خريطة بجد", "id": "map" },
      {
        "type": "p",
        "text": "بدأنا من [OpenStreetMap](https://www.openstreetmap.org/copyright)، الخريطة المفتوحة اللي بيكتبها متطوعين حوالين العالم. نزّلنا منها منطقة وسط البلد كلها: مساحة حوالي ٢٫٧٥ في ٣ كيلومتر، من كورنيش النيل لرمسيس والعتبة."
      },
      {
        "type": "image",
        "src": "/art/blog/cairo-map-ar-1280.webp",
        "width": 1280,
        "height": 1120,
        "alt": "خريطة وسط القاهرة زي ما اللعبة بتستخدمها: النيل والشوارع والمباني، وعليها التحرير وطلعت حرب ورمسيس والعتبة",
        "caption": "الخريطة اللي اللعبة بتتبني منها: المباني الفاتحة جاية من الخريطة نفسها، والغامقة عملناها إحنا. بيانات الخريطة © مساهمي OpenStreetMap."
      },
      {
        "type": "p",
        "text": "دي الأرقام اللي طلعت في الآخر في ملف الخريطة بتاع اللعبة:"
      },
      {
        "type": "table",
        "head": ["الحاجة", "العدد"],
        "rows": [
          ["حتت شوارع", "٢٬٢٦٤"],
          ["مباني من الخريطة نفسها", "٣٬٦٧٩"],
          ["مباني عملناها علشان نملا الفراغ", "١٣٬١٣٧"],
          ["أسامي شوارع وأماكن", "١٬٨٢٥"],
          ["أماكن حقيقية عليها علامة", "٢٩٩"],
          ["تقاطعات ونقط في شبكة الطرق", "٢٥٬٠٧٠"]
        ]
      },
      { "type": "h2", "text": "اللي الخريطة مقالتوش", "id": "gaps" },
      {
        "type": "p",
        "text": "أول ما رسمنا الخريطة زي ما هي، وسط البلد طلعت فاضية. الشوارع موجودة، بس أغلب العماير مش مرسومة عليها، والبلوكات اللي بين الشوارع فاضية. عشان كده كتبنا كود بيبص على كل بلوك فاضي ويملاه بعماير على واجهة الشارع. يعني من كل خمس عماير بتشوفها تقريبًا، أربعة اتولدوا بالكود وواحدة بس جاية من الخريطة."
      },
      {
        "type": "p",
        "text": "وفي العكس كمان: فيه عماير مرسومة على الخريطة كأنها بلوك كامل حتة واحدة. دي كنا بنقسّمها لأسطح منفصلة، علشان تبان عماير جنب بعض زي وسط البلد الحقيقية. والكورنيش كان محتاج إيد لوحده، لأن المولّد كان بيحط عماير ناحية النيل، فقلنالو إن ده ممشى مش مكان مباني."
      },
      {
        "type": "image",
        "src": "/art/blog/cairo-street-1280.webp",
        "width": 1280,
        "height": 720,
        "alt": "لقطة من فوق لشارع في كريزي كايرو: أسطح عماير عليها خزانات مية وغسيل، وتاكسي وعربيات",
        "caption": "الأسطح اترسمت عشان تبان زي بجد: خزانات مية، أطباق، وغسيل."
      },
      { "type": "h2", "text": "حاجات صغيرة بتفرق", "id": "details" },
      {
        "type": "ul",
        "items": [
          "**المحلات في أماكنها:** الخريطة فيها ٦٥ مطعم و٦٢ فندق و٣٨ قهوة و٢٥ بنك و١٢ سينما، واللعبة بترسم يافطاتهم في أماكنهم الحقيقية.",
          "**معالم مرسومة بالإيد:** الأماكن المشهورة ليها أسطح اترسمت مخصوص، ويافطة سياحي بني توريك إنت فين.",
          "**الأسامي بالعربي:** أماكن كتير موجودة على الخريطة بالإنجليزي بس، فكتبنا أساميها بالعربي بإيدينا. فلفلة هي فلفلة، مش Felfela.",
          "**مداخل المترو** في أماكنها، ١١ مدخل."
        ]
      },
      { "type": "h2", "text": "الشارع الاتجاه الواحد", "id": "one-way" },
      {
        "type": "p",
        "text": "الشوارع الاتجاه الواحد حقيقية في اللعبة، والعربيات التانية بتلتزم بيها. بس لما جينا نعمل الـGPS اللي بيوريك الطريق للزبون، خليناه يتجاهلها. فيه تعليق في كود اللعبة بيشرح السبب في سطر واحد: سواق التاكسي في القاهرة مش بيعمل حساب الاتجاه الواحد."
      },
      {
        "type": "image",
        "src": "/art/blog/cairo-corner-1280.webp",
        "width": 1280,
        "height": 720,
        "alt": "تقاطع في كريزي كايرو عليه خط الـGPS الأخضر لحد الزبون وزرع وعلامات عبور",
        "caption": "خط الـGPS الأخضر. لو الطريق ده عكس الشارع، فده بالقصد."
      },
      { "type": "h2", "text": "وبعدين؟", "id": "next" },
      {
        "type": "p",
        "text": "الخريطة بتدي اللعبة حاجة صعب تتزيّف: إحساس إنك عارف المكان. لو عشت في القاهرة هتلاقي نفسك بتاخد طريق حافظه. ولو عمرك ما شفتها، تبقى لفيت في وسطها الحقيقي."
      },
      {
        "type": "p",
        "text": "لف بنفسك: [العب كريزي كايرو](/play/crazy-cairo) على المتصفح. واللعبة بتذكر مصدر الخريطة في شاشة البداية، لأن كل ده ما كانش هيحصل من غير شغل مساهمي OpenStreetMap."
      }
    ]
  },
  "en": {
    "title": "How we put real downtown Cairo inside a taxi game",
    "seoTitle": "Crazy Cairo: Building Real Downtown Cairo in a Game",
    "description": "Crazy Cairo isn't an invented city: its streets, squares and shops come from a real map. In numbers, what came from the map and what we had to build ourselves.",
    "coverAlt": "The black-and-white cab at a downtown junction in Crazy Cairo",
    "intro": "When you drive your cab in Crazy Cairo and Talaat Harb leads to the square it's supposed to lead to, that's no accident. The streets in the game are the real streets, taken from an open map. But a map alone isn't a game, and this is the story of the difference.",
    "blocks": [
      { "type": "h2", "text": "It started with a real map", "id": "map" },
      {
        "type": "p",
        "text": "We started from [OpenStreetMap](https://www.openstreetmap.org/copyright), the open map written by volunteers around the world. From it we took the whole of downtown: an area of roughly 2.75 by 3 kilometres, from the Nile Corniche to Ramses and Ataba."
      },
      {
        "type": "image",
        "src": "/art/blog/cairo-map-en-1280.webp",
        "width": 1280,
        "height": 1120,
        "alt": "The map of central Cairo as the game uses it: the Nile, streets and buildings, with Tahrir, Talaat Harb, Ramses and Ataba marked",
        "caption": "The map the game is built from. Light buildings come from the map itself, dark ones we generated. Map data © OpenStreetMap contributors."
      },
      {
        "type": "p",
        "text": "These are the numbers that ended up in the game's map file:"
      },
      {
        "type": "table",
        "head": ["Item", "Count"],
        "rows": [
          ["Street segments", "2,264"],
          ["Buildings from the map itself", "3,679"],
          ["Buildings we generated to fill the gaps", "13,137"],
          ["Street and place names", "1,825"],
          ["Real places marked", "299"],
          ["Points in the road network", "25,070"]
        ]
      },
      { "type": "h2", "text": "What the map didn't say", "id": "gaps" },
      {
        "type": "p",
        "text": "The first time we drew the map as it was, downtown came out empty. The streets were all there, but most of the buildings weren't, and the blocks between the roads sat empty. So we wrote code that looks at every empty block and fills it with buildings along the street front. Of every five buildings you see, roughly four were generated and only one comes from the map."
      },
      {
        "type": "p",
        "text": "The opposite happened too: some buildings on the map were whole city blocks drawn as a single shape. We split those into separate roofs so they read as neighbouring buildings, like the real downtown. The Corniche needed its own attention, because the generator kept placing buildings on the river side until we told it that was a promenade."
      },
      {
        "type": "image",
        "src": "/art/blog/cairo-street-1280.webp",
        "width": 1280,
        "height": 720,
        "alt": "A top-down view of a street in Crazy Cairo: rooftops with water tanks and laundry, a cab and traffic",
        "caption": "Rooftops are painted to look lived in: water tanks, satellite dishes and laundry."
      },
      { "type": "h2", "text": "Small things that matter", "id": "details" },
      {
        "type": "ul",
        "items": [
          "**Shops where they really are:** the map has 65 places to eat, 62 hotels, 38 cafés, 25 banks and 12 cinemas, and the game paints their signs in their real locations.",
          "**Hand-drawn landmarks:** famous places get rooftops drawn especially for them, and a brown tourist sign to tell you where you are.",
          "**Names in Arabic:** many places are only on the map in English, so we wrote their Arabic names by hand. Felfela is فلفلة.",
          "**Metro entrances** are where they should be, all 11 of them."
        ]
      },
      { "type": "h2", "text": "The one-way street", "id": "one-way" },
      {
        "type": "p",
        "text": "One-way streets are real in the game, and the other traffic respects them. But when we built the GPS that shows you the way to your fare, we made it ignore them. There's a comment in the game's code that explains why in one line: a Cairo cabbie ignores one-ways."
      },
      {
        "type": "image",
        "src": "/art/blog/cairo-corner-1280.webp",
        "width": 1280,
        "height": 720,
        "alt": "A junction in Crazy Cairo with the green GPS line leading to the fare, trees and pedestrian crossings",
        "caption": "The green GPS line. If it runs the wrong way down a street, that's on purpose."
      },
      { "type": "h2", "text": "So what?", "id": "next" },
      {
        "type": "p",
        "text": "A map gives a game something that's hard to fake: the feeling that you know the place. If you've lived in Cairo you'll catch yourself taking a route you know by heart. If you've never seen it, you've still driven around its real centre."
      },
      {
        "type": "p",
        "text": "Take a drive yourself: [play Crazy Cairo](/play/crazy-cairo) in your browser. The game credits its map on the title screen, because none of this would exist without the work of OpenStreetMap's contributors."
      }
    ]
  }
}
