Blog · Behind the scenes
How we put real downtown Cairo inside a taxi game
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.
The 1Gamed team ·
It started with a real map
We started from OpenStreetMap, 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.

These are the numbers that ended up in the game's map file:
| Item | Count |
|---|---|
| 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 |
What the map didn't say
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.
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.

Small things that matter
- 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.
The one-way street
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.

So what?
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.
Take a drive yourself: 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.