In order to facilitate users to switch batteries, starting from the trajectory of electric vehicles, rationally arrange the location of electric vehicle switch stations. First, determine the service radius of the swap station from the consideration of the driver's driving preference, the service target of the swap station and the cruising range of electric vehicles; secondly, use the grid method to divide the Jinjiang District into 42 sub-regions. Through the analysis of massive driving data, combined with power exchange demand and median center theory, the candidate site for the power exchange station in Jinjiang District was initially selected. Finally, the location allocation model is used to select the distribution of the replacement stations when the number of stations is the smallest and the coverage is the largest, and sensitivity analysis is carried out. The conclusion shows that: when the service radius is 3.03km, 12 substations can meet 93.21% of the points.