The aim of this study is to analyze and compare the patterns of behavior of tourists and residents from Location-Based Social Network (LBSN) data in Shanghai, China using various spatiotemporal analysis techniques at different venue categories. The paper presents the applications of location-based social network’s data by exploring the patterns in check-ins over a period of six months. We acquired the geo-location information from one of the most famous Chinese microblogs called Sina-Weibo (Weibo). The extracted data is translated into the Geographical Information Systems (GIS) format, and compared with the help of temporal statistical analysis and kernel density estimation. The venue classification is done by using information regarding the nature of physical locations. The findings reveal that the spatial activities of tourists are more concentrated as compared to those of residents, particularly in downtown, while the residents also visited suburban areas and the temporal activities of tourists varied significantly while the residents’ activities showed relatively stable behavior. These results can be applied in destination management, urban planning, and smart city development.