In this work we will describe EGA (educational geosimulation architecture), an architecture for the development of pedagogical tools for training in urban activities based on MABS (multi-agent based simulation), GIS (geographic information systems), and ITS (intelligent tutoring systems). EGA came as a proposal for the lack of appropriate tools for the training of urban activities with high risk and/or high cost. As a case study, EGA was used for the development of a training tool for the area of public safety, the ExpertCop system. ExpertCop is a geosimulator of criminal dynamics in urban environments that aims to train police officers in the activity of preventive policing allocation. ExpertCop intends to induce students to reflect about their actions regarding resources allocation and to understand the relationship between preventive policing and crime.