We present our approach on how smart city technologies may enhance the learning process. We have developed the CLIO urban computing system, which invites people to share personal memories and interact the collective city memory. Various educational scenarios and activities were performed exploiting CLIO; in this paper we present the methodology we followed and the experience we gained. Learning has always been the cognitive process of acquiring skills or knowledge, while teachers are often eager to experiment with novel technological means and methods; our aim was to explore the effect that urban computing could have to the learning process. We applied our methodology in the city of Corfu inviting schools to engage their students in learning through the collective city memory while exploiting urban computing. Results from our experience demonstrate the potential of exploiting urban computing in the learning process and the benefits of learning out of the classroom