RFID enabled wireless sensor networks are attracting intensive interests of intelligent transportation applications. This paper proposes a dynamic infrastructure for vehicular communications built upon the RFID enabled delay tolerant wireless sensor networks named mobile relay network (MRN) for the communication in the intelligent transportation system. A group-sequence based routing protocol is developed to support the MRN. Based on the MRN, the Ubiquitous Intelligence for Data Query (UIDQ) service platform is proposed to provide information access, relay, search and delivery among the drivers on the move. The computing results validate the UIDQ scheme.