Education in Sustainable Development Goals is a basic step in attaining its objectives, and, therefore, it has been undertaken by broad sectors of the teaching community. Nevertheless, the “sustainability curriculum” derived from the Sustainable Development Goals, in this case based on the data of the Spatial Data Infrastructures, in spite of its teaching and research potential, is something with which the teaching body is not yet familiar. The results of the fieldwork carried out (questionnaires and Delphi technique) prove this to be the case. For this reason, in order to educate geographically in reflection and collaboration with the aims of the Sustainable Development Goals, the viewing, in a GIS on the Cloud (WebGIS) of indicators of interest is proposed for the Sustainable Development Goals taken from the Spatial Data Infrastructures within the framework of the TPACK (Technological Pedagogical Content Knowledge) model. To facilitate all these learning objectives, a proposal for good practices in the classrooms of secondary schools and another proposal for university lectures have been designed, and the results applied and analyzed. These examples demonstrate empirically that, with adequate pedagogical tools, an education in geography for global understanding by integrating Sustainable Development Goals and Spatial Data Infrastructures can be achieved, which is what the TPACK model pursues.