The diffusion of AEVs (alternative energy vehicles) and their refueling stations are a complex process involving various actors interacting with each other.Current agent-based models for analyzing this process did not consider the real road networks and the distributions of the driving routes.This paper explores a technical solution for the integration of ABM (agent-based modeling) and GIS ( geographic information systems). The core idea of the solution is establishing communications with ArcGIS ( a popular GIS software platform) by using Repast ( a popular ABM simulation software platform) interface to shape files and thus a vector-based loose coupling is realized.With this solution,a simulation platform was developed to study the codiffusion of alternative energy vehicles and their refueling stations based on the real road networks,with Shanghai as an example for simulation.