In view of the transactional and textual features on issue handling in mega-event traffic contingency plan, this paper gives a quantitative method for emergency resources location and allocation. Given that the requirement on safeguards in the sports mega-events is temporary and stringent, we first divide the facilities into temporary emergency facilities and fixed emergency facilities and the resources into material resources and human resources. Considering the uncertainty of emergency incidents, we then construct a mixed integer linear programming model. To solve this model, the bisection method is used to import the material quantity placed in each emergency facility, and the shortest path algorithm is used to import the rescue time matrix. Considering the slowness of convergence rate when the road network is large, a modified matrix real-coded genetic algorithm is designed with the crossover operator based on a greedy algorithm. The application of the model and algorithms is validated by the case based on 2022 Beijing Winter Olympics. Sensitivity analysis of some important parameters is also conducted to provide insights for traffic emergency resources management in sports mega-event.