Full text
Citation: Miranda, R.; Alves, C.; Sousa, R.; Chaves, A.; Montenegro, L.; Peixoto, H.; Durães, D.; Machado, R.; Abelha, A.; Novais, P.; et al. Revolutionising the Quality of Life: The Role of Real-Time Sensing in Smart Cities. Electronics 2024,13, 550. https://doi.org/10.3390/ electronics13030550 Academic Editor: Ivan Ganchev Received: 24 September 2023 Revised: 4 December 2023 Accepted: 18 December 2023 Published: 30 January 2024 Copyright: © 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https:// creativecommons.org/licenses/by/ 4.0/). electronics Article Revolutionising the Quality of Life: The Role of Real-Time Sensing in Smart Cities Rui Miranda 1, Carlos Alves 1, Regina Sousa 1, António Chaves 1, Larissa Montenegro 1, Hugo Peixoto 1, Dalila Durães 1,* , Ricardo Machado 2, António Abelha 1, Paulo Novais 1 and José Machado 1,* 1Algoritmi Research Centre/LASI, University of Minho, 4800-058 Guimarães, Portugal; [email protected] (R.M.); [email protected] (C.A.); [email protected] (R.S.); [email protected] (A.C.); [email protected] (L.M.); [email protected] (H.P.); [email protected] (A.A.); [email protected] (P.N.) 2Câmara Municipal de Guimarães, 4804-534 Guimarães, Portugal; [email protected] *Correspondence: [email protected] (D.D.); [email protected] (J.M.) Abstract: To further evolve urban quality of life, this paper explores the potential of crowdsensing and crowdsourcing in the context of smart cities. To aid urban planners and residents in understanding the nuances of day-to-day urban dynamics, we actively pursue the improvement of data visualisation tools that can adapt to changing conditions. An architecture was created and implemented that ensures secure and easy connectivity between various sources, such as a network of Internet of Things (IoT) devices, to merge with crowdsensing data and use them efficiently. In addition, we expanded the scope of our study to include the development of mobile and online applications, emphasizing the integration of autonomous and geo-surveillance. The main findings highlight the importance of sensor data in urban knowledge. Their incorporation via Tepresentational State Transfer (REST) Application Programming Interface (APIs) improves data access and informed decision-making, and dynamic data visualisation provides better insights. The geofencing of the application encourages community participation in urban planning and resource allocation, supporting sustainable urban innovation. Keywords: smart cities; crowdsensing; geofencing; data visualisation; mobile applications 1. Introduction A smart city is an urban environment that integrates Information and Communication Technology (ICT) and the Internet of Things (IoT) to enhance the quality of life for its inhabitants, optimise resource efficiency, and improve overall sustainability through interconnected infrastructure, data-driven decision-making, and citizen engagement [ 1 ]. Urban centres increasingly depend on IoT and its expanding domains, as they attract the attention of academia, industry, and civil society [ 2 ]. Today, the main focus is on promoting citizens’ quality of life, assessing the impact of intelligent technologies, and ensuring the social, economic, and environmental sustainability of cities [ 3 ]. At the heart of this urban transformation are two fundamental technological components: crowdsourcing and crowdsensing. Crowdsourcing allows citizens to participate actively in collecting data and evaluating services. At the same time, crowdsensing takes advantage of the ubiquity of sensors and mobile devices to facilitate the exchange of large amounts of valuable information in urban environments. Active community participation is essential in developing plans for managing municipalities [ 4 ]. Despite the advances in sensorization and the use of mobile devices, some urban areas do not fully exploit these technologies. These devices could be interconnected by implementing a comprehensive platform that provides diverse solutions operating Electronics 2024,13, 550. https://doi.org/10.3390/electronics13030550 https://www.mdpi.com/journal/electronics
Electronics 2024,13, 550 2 of 17 at multiple levels and dimensions. The level of community involvement in the process is correlated with effectiveness in addressing relevant community concerns. Research results indicate that communities with abundant physical resources, highly skilled human capital, and strong social networks demonstrate greater competence when encouraged and included in the process [4]. This work followed the Design Science Research (DSR) methodology [ 5 ]. DSR is commonly used in information systems and related fields. It involves developing and evaluating novel artefacts to address identified issues or enhance existing procedures. This approach contrasts with other research paradigms, such as behavioral science, which seek to understand and explain events through observation and analysis [ 5 ]. The DSR process included the following steps: problem identification, aimed at providing a clear and concise definition of the problem; objectives definition, outlining the specific goals and outcomes sought in resolving the problem; design and development, involving the creation of a platform to solve the identified problem; demonstration, presenting the platform and its practical application in a tangible context; evaluation, conducting assessments to evaluate the platform’s (artefact’s) effectiveness in addressing the problem using empirical methodologies, simulations, or case studies; communication, presenting the findings, namely in this manuscript, among others. Along with DSR, this article also implements a systematic literature review on the implementation of crowdsensing and geofencing technologies in smart cities [ 6 ]. This review aimed to identify the purpose, strategies, and tools using relevant articles from the Scopus database. Overall, these steps are intended to aid in the development of an innovative platform for the seamless integration of sensing technologies into the complex framework of smart cities, supported by solid knowledge and background. By merging crowdsourcing and crowdsensing, it could be possible to redefine the operational dynamics of urban centres, effectively meeting the needs of their residents with unparalleled efficiency [7]. This work uses crowdsensing and crowdsourcing, in which individuals actively contribute data via their networked devices, to provide a real-time view of the urban environment [ 8 ]. We propose and test an architecture to build a robust communication framework that efficiently collects data from various sources within the IoT ecosystem and across various sensing devices. This architecture ensures an efficient and secure data flow between these different sources. The fundamental basis of our work lies in developing interactive dashboards, which allow urban planners and citizens to visually represent and understand the extensive data collection created by IoT [ 2 ]. This visualisation not only improves the effectiveness of decision-making processes but also facilitates the development of a deeper understanding of urban dynamics [ 9 ]. In addition, a smartphone application has been created that integrates autonomous geofencing functionality using data collected through crowd-sensing. Through crowd-sourcing, our app allows users to actively participate in establishing geographical boundaries and improving resource allocation. This research is a groundbreaking strategy for urban life in smart cities owing to its diverse influence on urban living, planning, and governance dynamics. The main characteristics this platform exhibits are: • Integration of technologies: The platform establishes an extensive network of data points by integrating crowdsensing, crowdsourcing, and IoT technologies [ 10 ]. Crowdsensing enables the acquisition of huge quantities of data from many individuals, effectively using the collective capabilities of citizen sensors. When combined with the accuracy of IoT devices, these data become further enhanced in terms of their robustness and reliability [ 11 ]. The use of an integrated approach facilitates comprehension of urban surroundings, hence potentially revolutionising the field of city planning and operations. • Real-time responsiveness: One of the primary functionalities of the platform is its capacity to effectively analyse and present data in real time. The ability to respond promptly is of utmost importance in urban environments, where circumstances undergo rapid transformations, and the timely dissemination of information can sub-
Electronics 2024,13, 550 3 of 17 stantially impact the overall well-being of individuals [ 3 ]. For example, real-time traffic and pollution data can enable individuals to make more informed choices regarding their travel routes and outdoor engagements, fostering a lifestyle promoting improved well-being. • Enhanced citizen engagement: The prioritisation of mobile and online applications that incorporate geofencing and notification functionalities aims to enhance citizen participation. By engaging inhabitants in data gathering and dissemination, the platform improves the sense of communal belonging [ 12 ]. Citizens who possess knowledge and are actively involved are more willing to participate in municipal governance and projects, thus enhancing the democratic framework of the city. • Data-driven decision-making: The usage and examination of data via this platform facilitate decision-making based on empirical evidence. City planners and politicians can discern recurring patterns, generate anticipatory projections, and optimise resource allocation more effectively [ 8 ]. For instance, identifying regions experiencing significant traffic congestion can facilitate the implementation of specific infrastructure modifications. In contrast, comprehension of utility consumption patterns can enhance the efficacy of energy management strategies. • Sustainability and quality of life improvements: The knowledge obtained from the platform’s data has the potential to drive sustainability endeavors. By monitoring environmental factors, urban areas can devise strategies to mitigate carbon footprints, effectively manage waste, and enhance the quality of green spaces. These actions directly impact the citizens’ quality of life by promoting the development of a healthier and more sustainable urban environment [13]. The platform embodies a paradigm-shifting methodology as it engenders a change in urban existence, fostering enhanced connectivity, responsiveness, and sustainability. This framework offers a pragmatic approach to using technology to address the many issues associated with modern urban life. Its ultimate goal is to enhance smart cities’ intelligence, sustainability, and livability. This study presents a vision of a future in which smart cities are interconnected and enhanced by their residents’ collective intelligence. By integrating crowd detection, REST API architecture, data visualisation, and mobile application development, we aim to facilitate a paradigm shift in urban innovation and sustainability. This manuscript is structured into six different sections. The article begins by introducing the need for innovative approaches in urban management and infrastructure development, emphasising the importance of the smart cities movement. It highlights the research focus on crowdsensing and crowdsourcing in the context of smart cities, underlining the potential to revolutionise the quality of urban life. Section 2delves into core concepts, such as utilizing sensed data from a vast network of IoT devices and their integration with crowd-sourced data. This sets the stage for the study by discussing the architectural foundation for efficient data. Section 3details the architecture created and implemented in the study to ensure safe and easy connectivity among diverse IoT data sources. It outlines the technical aspects of the architecture, highlighting its role in facilitating the integration of sensor data and crowd-sourced data. Section 4presents the primary findings and showcases the critical role of sensor-collected data in enhancing urban knowledge and decision-making. It discusses the benefits of incorporating sensor data through REST API and the adaptability of cities through dynamic data visualisation. Section 5offers a comprehensive analysis of the results, including the implications for city planning and the potential of dynamic data visualisation technology. It explores the role of the smartphone app’s geofencing feature in promoting community involvement in urban planning and resource distribution. Finally, the manuscript summarises the key insights and the importance of sustainable urban innovation. It reiterates the goal of improving the standard of living and the flexibility of future cities through the collaborative use of expertise and cutting-edge technologies.
Electronics 2024,13, 550 4 of 17 2. Background In recent years, collective intelligence—characterised by rapid advances in digital technology—has emerged as a crucial factor in promoting creativity and solving complex problems. This section explores the fundamental principles and methodologies that form the basis of the dynamic domains of crowdsensing, crowdsourcing, API standards, data visualisation, and mobile applications. The interrelated subjects discussed have significantly influenced the methods by which data are collected, shared, and interpreted in our proposed architecture and platform, thus promoting the development of new ideas, cooperative efforts, and well-informed choices. 2.1. Crowdsensing and Crowdsourcing Mobile crowdsensing has emerged as a highly favored approach to urban sensing, offering the ability to accumulate and disseminate significant amounts of data while monitoring and detecting the habits and movements of city dwellers in urban environments [ 14 ]. Crowdsensing is a method in which many individuals use mobile devices equipped with sensors to collaboratively share sensory data to quantify, examine, or deduce issues of common interest [ 7 ]. In the context of smart cities, crowdsourcing initiatives facilitate the active and passive participation of citizens in collecting data on various aspects of a city’s operations, services, quality of life, and environment. Mobile crowdsourcing utilises the synergy between sensor technology and human input and analysis. This synergy proves especially valuable when assessing concerns related to the urban environment, such as the quality of municipal services and the ramifications of political decisions on residents’ quality of life [15]. Shahrour et al. [ 15 ] state that crowdsourcing contributes to three critical success factors in smart city projects. The first factor concerns data acquisition, with mobile crowdsourcing enabling the development of cost-effective, high-caliber monitoring systems for urban infrastructures, services, and the environment. In addition, user feedback based on sensorderived data is proving indispensable for capturing the needs and preferences of the population, as well as for understanding the genuine impact of smart city initiatives on resident’s quality of life. The second factor revolves around involving citizens in local development and activities. Through mobile crowdsourcing, local authorities can access citizens’ ideas and feelings about smart city initiatives and their tangible consequences. The third factor is the creation of smart applications supported by crowdsourcing, including, but not limited to, smart navigation, real-time public transportation services, ride-sharing arrangements, risk alerts, emergency responses, and disturbance notifications. By establishing cost-effective, crowdsourcing-driven monitoring systems as a viable alternative to traditional smart city monitoring devices, mobile crowdsourcing has the potential to accelerate the implementation of smart city projects. This research has identified a myriad of crowdsourcing methodologies applicable to smart cities. These cover the orchestration and management of crowdsensing campaigns and experiences, the collaborative selection of geographical boundary locations for bike sharing, emotional mapping to facilitate public discourse in shared spaces, the provision of information about the city and user satisfaction through mobile platforms, mobile crowdsensing with the ability to use extremities for potentially dangerous crowd situations, the use of social media data to monitor large-scale crowd events, the detection of on-street parking spaces through mobile crowdsourcing, and the evaluation of sound environments through crowdsourcing data. These methodologies use mobile devices, sensors, and community participation to collect and analyse data for smart city applications. 2.2. API Standards There are several API standards used for various smart city applications, such as 1. Traffic data APIs: These APIs usually adhere to communication standards based on REST or the Simple Object Access Protocol (SOAP). They provide endpoints for accessing traffic data, such as information on congestion, accidents, and road
Electronics 2024,13, 550 5 of 17 conditions, often in JavaScript Object Notation (JSON) or eXtended Markup Language (XML) format [16]. 2. Public transport APIs: Public transport APIs often follow open standards, such as the General Transit Feed Specification (GTFS), which defines a standard format for sharing information about public transport timetables, routes, and stops. These APIs often use REST to access real-time data, such as the location of vehicles [17]. 3. Parking APIs: Parking APIs may vary in their standards, but they often use REST to provide real-time information on the availability of parking spaces. They may adhere to secure communication protocols to guarantee data integrity [18]. 4. Air quality APIs: APIs that monitor air quality usually use REST communication protocols to provide up-to-date information on air quality at different locations in the city. Data can be transmitted in formats such as JSON or XML [13]. 5. Public lighting APIs: Public lighting or street lighting APIs can use communication standards such as Message Queuing Telemetry Transport (MQTT) to control lights based on light and motion sensors. This enables effective communication between sensors and control systems [19]. 6. Emergency service APIs: These APIs generally follow secure communication protocols like Hypertext Text Transfer Protocol Secure (HTTPS) to ensure the security of emergency-related information. They can provide real-time data about accidents, fires, and other critical situations [20]. In summary, the standards of APIs in smart city applications can vary. However, they often include REST, specific protocols for data types (e.g., GTFS for public transport), and security measures to protect sensitive information [ 9 ]. These standards ensure the interoperability and reliability of the APIs used to enhance efficiency and quality of life in smart cities. One significant area for improvement in this implementation is the absence of standardised practices in the sensitisation initiatives commonly used in smart cities, which is not uncommon, and to mitigate the absence of established criteria in the accessible data, the suggested framework incorporates a RESTful API to tackle this concern. 2.3. Data Visualisation Data visualisation is paramount to comprehending, evaluating, and conveying the extensive and intricate datasets produced within smart cities; by data visualisation techniques, it is possible to process and present the data. Urban planning facilitates city development, land-use planning, and infrastructure optimisation. For public transportation, real-time transit data visualisation helps commuters with route planning, enhancing the overall efficiency of transit systems. Environmental monitoring leverages visualisations to track air quality, weather patterns, and energy consumption, bolstering sustainability initiatives [ 11 , 21 , 22 ]. In emergency response, geographic information system-based visualisations enable rapid, data-driven responses to disasters and emergencies. Moreover, data visualisation contributes to citizen engagement by empowering residents with insights and encouraging their participation in local governance. It further extends to gamification techniques to engage and inform the population effectively [12,23]. Significant progress has been made in data visualisation approaches to effectively handle the increasing complexity and volume of data in smart city contexts; such advances include the use of dashboards that offer real-time insights via interactive visual representations such as charts, maps, and interfaces [ 24 ]. By implementing such tools, policymakers and citizens can actively explore data while incorporating machine learning algorithms to assist in identifying patterns, anomalies, and correlations within extensive datasets. Consequently, it facilitates the decision-making process. Moreover, using data visualisation methods to depict information chronologically serves to augment comprehension of patterns, facilitate the ability to predict future events, and aid in improving municipal operations, among various other advantages [25]. A plethora of software tools and platforms have emerged to facilitate data visualisation in the context of smart cities. Tableau is widely used to construct dynamic dashboards
Electronics 2024,13, 550 6 of 17 and reports, link disparate data sources, and provide real-time visualisation. Microsoft’s Power BI software allows its customers to visualize data and access various business intelligence features. The software in question also facilitates effortless linkage to IoT data sources. QlikView and Qlik Sense are other applications with associative data modeling capabilities that let users explore data relationships interactively [ 26 , 27 ]. Furthermore, while pre-made solutions are prevalent, it is occasionally feasible to develop one’s software by incorporating customisation and parameterization. Integrating a graphical library (ChartJS, LineJS, Google Charts, Leaflet) with a JavaScript framework (e.g., Angular, ReactJS, VueJS) is the prevailing method. Despite the substantial advancements in data visualisation in smart city contexts, several persistent challenges continue to shape this field. These challenges include the delicate balance between data privacy and accessibility, the imperative for scalability to manage ever-expanding. 2.4. Mobile Apps The development of crowdsensing involves integrating sensory data collection through users’ mobile devices, allowing citizens to contribute to the collective through their devices. It provides personalised, intelligent information to each citizen, empowering them to make informed decisions and leverage community resources [28]. Previous literature on enhancing the quality of life within smart cities by incorporating crowdsensing, crowdsourcing, and geofences in mobile applications is evaluated. Devices and applications can use geofences to give helpful information to citizens when they are near an area of interest. The expansion of crowdsensing users and the development and implementation of smart cities share the objective of integrating citizens into intelligent environments via personalised information that is context-sensitive and transmitted via mobile applications. According to Amaxilatis et al. [ 8 ], integrating IoT devices with smartphone applications is crucial for fostering and enhancing creative ecosystems in urban regions since this empowers users to verify and embrace new services. The authors concluded that the pervasive and routine smartphone usage among individuals provides a substantial opportunity for researchers to collect detailed and perceptive observations of urban surroundings. Fernandes et al. [ 10 ], developed a mobile device platform that enables users to access comprehensive information about the current and future state of the city. The platform also provides context-aware smart notifications with relevant information. The platform incorporates a gamification mechanism incorporating user perception, evaluation, and satisfaction with their city to encourage continued usage. Meanwhile, Foschini et al. [ 14 ] presented ParticipAct, a mobile crowdsensing platform that uses edge nodes to identify potential hazardous crowd scenarios. This platform is particularly useful in emergencies, such as the ongoing COVID-19 pandemic, as it allows individuals to avoid dangerous crowd situations and receive suggestions for safer routes or places. ParticipAct has users install a sensing client application on their smartphones, which sends the collected information to a centralised cloud server. Researchers and platform administrators create these targeted sensing campaigns. In summary, smart cities utilise information and communication technology to maximize infrastructure, facilitate cooperation, and promote innovation, all while ensuring efficient services. Active citizen participation in crowdsensing solutions can improve emergency management, environmental monitoring, healthcare and well-being, e-commerce, and other facets of smart cities. Mobile crowdsensing is an excellent method for gathering data in smart cities. Several methods can be implemented to promote public engagement, such as monetary incentives, entertainment, and service. 3. Architecture The proposed methodology involves several technologies to create a crowdsensing platform for smart cities. Overall, the architecture presented in Figure 1enables the
Electronics 2024,13, 550 7 of 17 implementation of a framework aimed at improving the quality of life for citizens using IoT devices and crowdsensing data. First, data are collected from various sensors strategically placed in Guimarães. These data are then analysed and classified to extract valuable insights and identify patterns. The insights obtained are then used to automatically create geofences in specific locations relevant to citizens, such as areas with high traffic congestion or areas prone to natural disasters. Thus, the platform comprises three main components: web services, dashboards, and mobile apps. Web services integrate data from the IoT ecosystem to feed the data visualisation and Mobile app in real time. The mobile app allows citizens to interact with the platform by exploring the city map and receiving notifications when they enter a geofence. Finally, the back-office is a web application that allows platform administrators to manage the geofences created. Figure 1. Overview of the platform’s architecture. Several tools and services from Firebase were used to develop these components. Firebase is a mobile and web development platform by Google that provides app developers with easy-to-use and scalable back-end tools and services. The tools and services used in this project include Cloud Functions, Cloud Firestore, Firebase Hosting, and Firebase Authentication. Cloud Firestore is a cloud-hosted NoSQL database that allows developers to store and sync data in real time across multiple clients and platforms. It was used to store the geofences created by administrators and external applications. Cloud Functions allow developers to run code responding to events triggered by Firebase features and HTTP requests. They were used to develop the RESTful web services that will enable external applications to interact with the platform. Firebase Hosting is a web hosting service that allows developers to deploy web apps and static content to a global content delivery network. It was used to host a back-office web application. Finally, Firebase Authentication was used in the back office, providing an easy-to-use and secure authentication system [ 29 ]. 3.1. API An API is a fundamental component in modern data collection services within urban environments. Specifically, within a city’s data collection system, an API is the essential link that enables various software applications and systems to communicate and exchange data seamlessly [30]. The purpose of the designed API is to simplify the retrieval and sharing of data related to various aspects of urban life, including transportation, environmental quality, and municipal services. It empowers developers to programmatically access and manipulate the data, thereby enhancing the efficiency of data collection, analysis, and utilisation. APIs
Electronics 2024,13, 550 8 of 17 developed for urban data collection provide a standardised set of functions and endpoints that grant authorised applications access to specific datasets. These APIs adhere to strict specifications and documentation to ensure consistency and reliability in data retrieval and transmission processes. Moreover, they are often compatible with multiple data formats, making them adaptable to various software systems. The API represents the intersection of technology and urban governance, optimising data-driven insights for the benefit of both city residents and administrators [31]. In our research, we developed the API in NodeJS, an open-source JavaScript framework. Our initial steps involved rigorous testing of external APIs for data collection to ensure the appropriate number of requests were made. Given the nature of the collected data, we determined that fetching data once daily would suffice for timely information. Equally important was the alignment of data types retrieved with each external API call. This information was subsequently organised into a proprietary ontology, enabling data storage in a MongoDB database, with separate documents for each type of reading and day. A similar process was applied to information available in text documents, which were parsed and stored according to the same rules. How data were consumed by each service developed within the ecosystem influenced the definition of routing within the API. For instance, the web dashboard application benefited from mathematical operations applied to raw data, reducing the size of requests and visual information to enhance performance, necessitating the creation of specific routes for average or cumulative operations to ensure data remained relevant. Other services that did not require these routes could retrieve data in their raw states. We achieved deployment through Docker containers, which facilitated service management operations, including horizontal scaling, status management, and log persistence. 3.1.1. Dashboards Web App The primary audience for the web application is urban corporations so that they can manage and monitor the data collected by the installed sensors in real time. The platform was built using ReactJS and NodeJS, with data from the API described in Section 3.1. The choice of ReactJS and NodeJS brings several benefits to the platform. Firstly, ReactJS ensures an efficient and responsive user interface, providing a smooth user experience, which is crucial for urban corporations that require real-time data monitoring. Additionally, NodeJS offers non-blocking I/O operations, which can significantly enhance the platform’s overall performance, especially when dealing with real-time data. Furthermore, ReactJS and NodeJS are highly scalable technologies, capable of accommodating a growing number of sensors and data points over time. Their extensive developer communities provide access to a wealth of resources, libraries, and third-party modules, making it easier to address evolving needs and maintain the platform effectively. By accessing this platform, the offices responsible for administering and monitoring history and predictive analysis will discover three monitoring screens, each with a distinct function. 3.1.2. Mobile App The designed mobile application enables users to interact with the created geofences. Users can explore the city map and receive notifications on their phones when they enter a geofence. This application, developed using React Native, supports the two most commonly used mobile operating systems—Android and iOS—using the same code, saving time and resources. Furthermore, it utilised the Expo platform, which offers a comprehensive suite of tools and services for React Native, to develop the application. We employed the InVision Studio screen design tool to create prototypes for the mobile application. InVision Studio allows teams to design, prototype, and animate within a unified application while utilising the InVision platform for seamless collaboration and teamwork.
Electronics 2024,13, 550 9 of 17 4. Results 4.1. API Examples The first example demonstrates a request to the external API for fetching sensor information. This request generates a list of all available sensors, providing relevant details about their type, GPS position, and the associated metrics. GET / public / api / cways / latest / sensors HTTP /1.1 Host : https :// api -sc .cm - guimaraes . pt/ Accept : */* Content - Type : application / json ApiKey: --- Request line: The first line specifies the HTTP method, path and protocol version. Host: Indicates the target server’s hostname. Accept: Lists the types of responses the client can handle. Content type: Specifies the original media type of the resource. API key: Secret authentication token. The response, in JSON format, would include the following information, which was used to create various documents in the database. With recurring requests, values associated with each metric would be added to their respective documents, ensuring the retention of all pertinent information. [ { "name": "Fafe Norte", "id": "GUIM-FAFE-NORTE", "class": "mobility", "metrics": [ "ligeirossaidacidade", "veiculossaidamais40km", "pesadossaidacidade", "peaonapassadeira" ], "latitude": 41.451333, "longitude": -8.280557 }, (...) ] To obtain data from our API, the following request would provide a count of pedestrians crossing crosswalks in the city. GET / reading / bydate ? reading = peoes & start =1695312816954& end =1695313829193 HTTP/1.1 Accept : */* Content - Type : application / json ApiKey: --- Request line: The first line specifies the HTTP method, path, query parameters, and protocol version. Accept: Lists the types of responses the client can handle. Content type: Specifies the original media type of the resource. API key: Secret authentication token. The following section illustrates an example response from the server. In this instance, the structured information is the raw data obtained from the database.
Electronics 2024,13, 550 16 of 17 Acknowledgments: We would like to thank the Guimarães city hall for making the multiple datasets available. Conflicts of Interest: The authors declare no conflict of interest. References 1. Caragliu, A.; Del Bo, C.; Nijkamp, P. Smart Cities in Europe. J. Urban Technol. 2011,18, 65–82. [CrossRef] 2. Nižeti´c, S.; Šoli´c, P.; de-Ipiña González-de Artaza, D.L.; Patrono, L. Internet of Things (IoT): Opportunities, issues and challenges towards a smart and sustainable future. J. Clean. Prod. 2020,274, 122877. [CrossRef] [PubMed] 3. Sousa, R.; Lopes, D.; Silva, A.; Durães, D.; Peixoto, H.; Machado, J.; Novais, P. Sustainable and Social Energy on Smart Cities: Systematic Review. In Communications in Computer and Information Science; Springer Nature Switzerland: Berlin/Heidelberg, Germany, 2022; pp. 72–84. [CrossRef] 4. Hsiao, H. ICT-mixed community participation model for development planning in a vulnerable sandbank community: Case study of the Eco Shezi Island Plan in Taipei City, Taiwan. Int. J. Disaster Risk Reduct. 2021,58, 102218. [CrossRef] 5. Dresch, A.; Lacerda, D.P.; Antunes, J.A.V. Design Science Research. In Design Science Research: A Method for Science and Technology Advancement; Springer International Publishing: Cham, Switzerland, 2015; pp. 67–102. [CrossRef] 6. Miranda, R.; Ribeiro, E.; Durães, D.; Peixoto, H.; Machado, R.; Abelha, A.; Machado, J. Smart Cities Using Crowdsensing and Geoferenced Notifications. In Trends in Sustainable Smart Cities and Territories; Castillo Ossa, L.F., Isaza, G., Cardona, Ó., Castrillón, O.D., Corchado Rodriguez, J.M., De la Prieta Pintado, F., Eds.; Springer: Cham, Switzerland, 2023; pp. 97–110. 7. Yang, M.; Zhu, T.; Liang, K.; Zhou, W.; Deng, R.H. A blockchain-based location privacy-preserving crowdsensing system. Future Gener. Comput. Syst. 2019,94, 408–418. [CrossRef] 8. Amaxilatis, D.; Mylonas, G.; Diez, L.; Theodoridis, E.; Gutiérrez, V.; Muñoz, L. Managing pervasive sensing campaigns via an experimentation-as-a-service platform for smart cities. Sensors 2018,18, 2125. [CrossRef] [PubMed] 9. Alves, C.; Chaves, A.; Rodrigues, C.; Ribeiro, E.; Silva, A.; Durães, D.; Machado, J.; Novais, P. Survey for Big Data Platforms and Resources Management for Smart Cities. In Hybrid Artificial Intelligent Systems; García Bringas, P., Pérez García, H., Martínez de Pisón, F.J., Villar Flecha, J.R., Troncoso Lora, A., de la Cal, E.A., Herrero, Á., Martínez Álvarez, F., Psaila, G., Quintián, H., et al., Eds.; Springer: Cham, Switzerland, 2022; pp. 393–404. 10. Fernandes, B.; Neves, J.; Analide, C. SafeCity: A Platform for Safer and Smarter Cities. In Advances in Practical Applications of Agents, Multi-Agent Systems, and Trustworthiness, Proceedings of the 18th International Conference, PAAMS 2020, L’Aquila, Italy, 7–9 October 2020; Springer: Cham, Switzerland, 2020; Volume 12092, pp. 412–416. [CrossRef] 11. Pal, D.; Triyason, T.; Padungweang, P. Big data in smart-cities: Current research and challenges. Indones. J. Electr. Eng. Inform. (IJEEI) 2018,6, 351–360. 12. Zica, M.; Ionica, A.C.; Leba, M. Gamification in the context of smart cities. In IOP Conference Series: Materials Science and Engineering; IOP Publishing: Bristol, UK, 2018; Volume 294, p. 012045. 13. Schulte, K. ‘Real-time’ air quality channels: A technology review of emerging environmental alert systems. Big Data Soc. 2022, 9, 20539517221101346. [CrossRef] 14. Foschini, L.; Martuscelli, G.; Montanari, R.; Solimando, M. Edge-enabled Mobile Crowdsensing to Support Effective Rewarding for Data Collection in Pandemic Events. J. Grid Comput. 2021,19, 28. [CrossRef] [PubMed] 15. Shahrour, I.; Xie, X. Role of internet of things (IoT) and crowdsourcing in smart city projects. Smart Cities 2021,4, 1276–1292. [CrossRef] 16. Wagner, J.M.; Eschbach, M.; Vosseberg, K.; Gennat, M. Travel Time Estimation by means of Google API Data. IFAC-PapersOnLine 2020,53, 15434–15439. [CrossRef] 17. Ge, L.; Sarhani, M.; Voß, S.; Xie, L. Review of Transit Data Sources: Potentials, Challenges and Complementarity. Sustainability 2021,13, 11450. [CrossRef] 18. Biyik, C.; Allam, Z.; Pieri, G.; Moroni, D.; O’Fraifer, M.; O’Connell, E.; Olariu, S.; Khalid, M. Smart Parking Systems: Reviewing the Literature, Architecture and Ways Forward. Smart Cities 2021,4, 623–642. [CrossRef] 19. Kuncicky, R.; Kolarik, J.; Soustek, L.; Kuncicky, L.; Martinek, R. IoT Approach to Street Lighting Control Using MQTT Protocol. In AETA 2018—Recent Advances in Electrical Engineering and Related Sciences: Theory and Application; Zelinka, I., Brandstetter, P., Trong Dao, T., Hoang Duy, V., Kim, S.B., Eds.; Springer: Cham, Switzerland, 2020; pp. 429–438. 20. Fraga-Lamas, P.; Fernández-Caramés, T.M.; Suárez-Albela, M.; Castedo, L.; González-López, M. A Review on Internet of Things for Defense and Public Safety. Sensors 2016,16, 1644. [CrossRef] [PubMed] 21. Burch, M.; Staudt, Y.; Frommer, S.; Uttenweiler, J.; Grupp, P.; Hähnle, S.; Scheytt, J.; Kloos, U. Pasvis: Enhancing public transport maps with interactive passenger data visualizations. In Proceedings of the 13th International Symposium on Visual Information Communication and Interaction, Eindhoven, The Netherlands, 8–10 December 2020; pp. 1–8. 22. Kiani, A.; Azhar, S.; Riaz, Z. Real-time environmental monitoring, visualization, and notification system for construction H&S management. J. Inf. Technol. Constr. 2014,19, 72–91. 23. Latifi, G.R.; Monfared, M.P.; Khojasteh, H.A. Gamification and citizen motivation and vitality in smart cities: A qualitative meta-analysis study. GeoJournal 2022,87, 1217–1230. [CrossRef]
Electronics 2024,13, 550 17 of 17 24. Gorodov, E.Y.; Gubarev, V.V. Analytical review of data visualization methods in application to big data. J. Electr. Comput. Eng. 2013,2013, 969458. [CrossRef] 25. Park, S.; Bekemeier, B.; Flaxman, A.; Schultz, M. Impact of data visualization on decision-making and its implications for public health practice: A systematic literature review. Inform. Health Soc. Care 2022,47, 175–193. [CrossRef] [PubMed] 26. Zeferino, E.F.; Mpofu, K.; Makinde, O.; Ramatsetse, B. Establishment of an Appropriate Data Analytic Platform for Developing a Wisdom Manufacturing System Using Decision Techniques. In Proceedings of the Global Conference on Sustainable Manufacturing, Berlin, Germany, 5–7 October 2022; pp. 622–629. 27. Muntean, M. Considerations Regarding Business Intelligence in Cloud Context. Inform. Econ. 2015,19, 55–67. [CrossRef] 28. Pereira, P.; Linhares Silva, A.; Machado, R.; Silva, J.; Durães, D.; Machado, J.; Novais, P.; Monteiro, J.; Melo-Pinto, P.; Fernandes, D. Comparison of Different Deployment Approaches of FPGA-Based Hardware Accelerator for 3D Object Detection Models. In Proceedings of the Progress in Artificial Intelligence: 21st EPIA Conference on Artificial Intelligence, EPIA 2022, Lisbon, Portugal, 31 August–2 September 2022; pp. 285–296. 29. Moroney, L. The Definitive Guide to Firebase: Build Android Apps on Google’s Mobile Platform; Apress: New York, NY, USA, 2017. 30. Boateng, R.; Ofoeda, J.; Effah, J. Application Programming Interface (API) Research: A Review of the Past to Inform the Future. Int. J. Enterp. Inf. Syst. 2019,15, 76–95. [CrossRef] 31. Wahyuni, F.; Fitriati, R. Why is the Application Programming Interface the backbone of a Smart City? J. Phys. Conf. Ser. 2021, 1783, 012029. [CrossRef] Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.