This article takes homestay in Shanghai's central city as the research object,, mainly using the literature method, induction method and the adjacent analysis, multiple factors regression analysis, kernel density analysis are studied, based on baidu map data of a home stay facility, research center of Shanghai urban agglomeration mode of a home stay facility, through the visual expression of ArcGIS geographic information system, And through the regression analysis to study the influencing factors of the distribution of B&B, it is found that the distribution of B&B in downtown Shanghai is conical from southwest to northeast. With Huangpu District, Jingan District and Xuhui District as the core areas, B&B has formed a trend of dense inside and sparse outside. The number of star hotels in the southwest is more than that in the northeast, and the distribution of B&B in the periphery is uneven. By analyzing the relationship between the influencing factors and the distribution of B&B, this paper finds that the denser the surrounding scenic spots, the more clustered the B&B will be. When the distance of transportation hub is closer, the distribution of B&B is more intensive. The distribution of B&B in town is close to the commercial circle. The higher the regional economic level, the more the number of home stay is also easy to produce agglomeration; High housing prices will affect the quality and quantity of surrounding supporting facilities and improve the development foundation of B&B.