Professional Documents
Culture Documents
Google Map para El Tráfico
Google Map para El Tráfico
Google Map para El Tráfico
4
Intelligent Transportation Systems Conference
Seattle, WA, USA, Sept. 30 - Oct. 3, 2007
Abstract— Web-based mapping technologies have been flow map for Seattle area freeways since early 1990s. Similar
utilized for traffic information systems. However, most such applications were implemented in other DOTs over the past
systems are for freeways and very few of them focus on arterials decands, such as TransStar (Texas DOT), Caltrans Real-time
or urban streets. This paper presents a real-time Freeway (California DOT) and CoTrip (Colorado DOT) [1].
Google-map-based Arterial Traffic Information (GATI) system
As for the arterial or urban street ATIS, little work has been
for urban streets in the City of Bellevue, Washington State.
Open source web tools and emerging web technologies, such as done. The City of Bellevue’s traffic flow map is one of the
Ajax, are used in implementing the system to ensure its few arterial traveler information systems developed to date
performance and minimize its cost. Convenient administrative [2]. The design of this system contained several creative ideas
functions are enabled through advanced database design and such as the one using inductive loop data for arterial
the Model-View-Controller (MVC) application. This GATI performance measurement. Despite its achievements in
system, though presented and demonstrated by using Bellevue’s
on-line traffic information display, the system suffers from
data, is a general technology that can be applied to any arterial
network. two main drawbacks. The first drawback is that it is difficult
to locate positions on Bellevue’s traffic flow map. This is
I. INTRODUCTION caused by the online map that is not drawn in scale. No point
on such a map can serve as a reference point and this creates
W ITH the new technology developments in Intelligent
Transportation Systems (ITS), more effective solutions
to transportation problems become available. For instance,
difficulties in estimating link length and travel time. The
second drawback, which is common to most ATIS, refers to
the lack of interactivity between users and the system. Even
increased deployments of traffic sensing technologies can
though these web-based mapping systems were designed to
easily provide a large amount of live traffic data necessary for
interact with users, changing scale and/or panning to a new
real-time incident detection, traffic operations, and
spot may not be supported or requires a significant amount of
performance measurement. Since raw data from traffic
time because of the less-responsive web designs. Therefore,
sensors require further process to produce useful results for
some traffic flow map applications started using web-based
traffic management and traveler information systems, it has
mapping engines to increase the interactivity. For example,
become a challenging issue to manage and utilize traffic
the Dallas transportation management center (DalTrans)
sensor data effectively. For example, traffic sensor data must
recently developed a Google-based mapping system with
be processed before being transferred to Advanced Traveler
improved web navigation capability to replace their previous
Information Systems (ATIS). Well designed ATIS should
dynamic freeway traffic information website [1].
present traveler information in an efficient way so that ATIS
Within a highly competitive marketplace, online mapping
can help improve personal mobility, safety, and the
technologies have received popularity. Google Maps plays an
productivity of transportation systems. An efficient and
indispensable role in the web-based mapping world.
effective approach for traveler information organization and
Hundreds of Google-map-based web applications can be
presentation is crucial for the success of ATIS.
easily accessed via any web browsers with an Internet
In the past a few years, more and more private and public
connection [3][4]. In the field of transportation, Google-map
transportation organizations have published their online
is also increasingly utilized. On Feb. 28, 2007, Google
traveler information systems to provide road users prompt
introduced an embedded real-time traffic program that allows
access to real-time traffic network information for better
users to glance at the congestion conditions on major state
travel decisions. The Washington State Department of
routes and freeways in over 30 major US metropolitan areas,
Transportation (WSDOT) has published a real-time traffic
including Seattle [5]. At the current stage, most mapping
Manuscript received April 2, 2007. This work was supported in part by systems focus on freeway applications and few address issues
Transportation Northwest (TransNow), the US Department of Transportation on urban streets. Moreover, these applications typically do
University Center for Federal Region 10, at the University of Washington. not have archive systems that could be used to support future
Yao-Jan Wu is with the Department of Civil and Environmental
Engineering, University of Washington, Seattle, WA 98195-2700, USA. transportation research.
(Corresponding author: +1(206)685-6817; fax: +1(206) 543-5965; e-mail: This paper presents a Google-map-based Arterial Traffic
yaojan@u.washington.edu). Information (GATI) system which operates in the Apache
Yinhai Wang, Ph.D., is with the Department of Civil and Environmental
Engineering, University of Washington, Seattle, WA 98195-2700, USA
server equipped with MySQL database powered by PHP
(e-mail: yinhai@u.washington.edu)
Dalin Qian, Ph.D., is with the School of Traffic and Transportation,
Beijing Jiaotong University, China (e-mail: qiandalin@jtys.bjtu.edu.cn)
XML
II. SYSTEM ARCHITECTURE
Google
The GATI system was developed to incorporate different Maps API
types of data retrieved from the City of Bellevue. In addition Web Brower
Data Server
969
(http://trafficmap.cityofbellevue.net/) since April 17, 2006. It folders in an organized manner. A webpage written in PHP
has received broad attention because, at that time, few cities script can be accessed the database and inserted into every
in the U.S. provided real-time traffic information for local row into the traffic data table after parsing the CSV files. All
arterials. More details can be found in [2]. tasks were completed in our system server. In the GATI
The CSV file contains the real-time information for each system, a whole month of data was imported into this table.
roadway section, which is referred to as “link”. Fig. 2 shows More data can be imported using the same manner.
the first six out of 469 link data in the one-minute CSV file 3) Constructing an Intersection Table: According to the
displayed in MS Excel. From the left to the right are the link signalized intersections map, a physical map provided by the
numbers, link IDs, smooth volumes, cycle lengths, cycle plan City of Bellevue, the locations of each intersection can be
numbers, color codes, and incident codes. In the GATI manually input by using the Google-map based intersection
system, columns A, B and G are adopted. Additional locator developed in this system. This web program
information is also stored in the database for future use. employed the GXmlHttp object to enable asynchronous
interactive locating tasks. Fig. 3 shows an example of input
Link ID Smooth Occupancy Plan # running Incident code
data for Intersection 26, the intersection of 8th Street and 112th
Link No. Smooth Volume Cycle length Color code Street in the downtown Bellevue. The user clicks the center of
the specific intersection on the Google Map and an
information window will appear that requests further
information. After clicking the “save” button, a green traffic
light icon will appear. Subsequently, the input data as well as
the longitude and latitude information will be saved to an
Fig. 2. Data format XML file in the server.
B. Data Tables
Before representing the flow condition on the Google Map,
a database has to be built up in advance. Keeping all data in
flat text files will not be efficient for constructing flow maps
since it will take a long time to parse the files and might also
flood memory buffers. As a result, the traffic data table has to Fig. 3. Locating intersections for constructing an Intersection Table
first be imported. This table lacks location information for
each link and for drawing a link between the start node and As shown in Fig. 4, when the user clicks a specific traffic
end node. The second and third table will support this idea. light icon, the related information about the intersection will
The following are the procedures used to create and import be retrieved from the XML in the server. The whole process
these tables and how they related to one another. utilizes the so-called Ajax technologies.
1) Assumption: We assume every link is straight since over
90% of links are visually straight on the map. Therefore, the
link-node concept is adopted in this research. Herein, the
node means the intersection. This assumption can smooth the
progress of displaying flow maps and creating further
applications, such as routing implementation. Note that if
curved roads must be rendered on the map, the Google Maps
API also allows us to represent curved lines or paths using
encoded polylines, which specify a series of points within a
GPolyline using a compressed format of ASCII characters
[7].
2) Constructing a Traffic Data Table: In order to import all
the data into MySQL database, the most common approach is
to use the server-side scripting language, PHP. Data
downloaded from the FTP server has been stored in dated
970
Fig. 4. Retrieved intersection data from the XML file in the system application as it is more efficient than other storage engines
server using GXmlHttp object such as InnoDB, the most popular transactional storage
In the GATI system, 150 intersections need to be located. engine.
When all the intersections are located, the XML file can be Indexing is another significant issue in performance
transferred into a CSV file by using MS Excel. Thereafter, the enhancement. Since the flow map is shown with varying time,
same PHP script will be executed to import all data into the column “time stamp” is the first index column. The index
Intersection Table. type is B-tree. Based on these parameters, querying 469-row
4) Constructing an Intersection-Link Relationship Table: link data for a specific minute requires around 0.05 seconds
The purpose of constructing this table is to assemble the within which nearly nineteen million rows of data are
link-node relationships between every two intersections searched.
located in the previous step. The flow map data table has to be
utilized to locate this link. Essentially, our application
followed the naming convention of the City of Bellevue. Take
the first two rows in column B in Fig. 2 for example. Link 15
is the eastbound link that ends at Intersection 1 and Link 16 is
westbound link that also ends at same intersection. According
to the signalized intersection map, we can further locate their
starting intersections (a.k.a. nodes). For link 16, obviously it
is Intersection 2. However, for Link 15, there was no
intersection in its western side. Therefore, a pseudo-node has
to be created and thus 6, 7, 8 and 9 are added to the first digit
of each intersection number to represent the starting node of
southbound link, eastbound link, northbound link, westbound
link respectively. For example, the pseudo-node for Link 15
Fig. 5. E/R-Diagram
is 7001 since it is an eastbound link ending at Intersection 1.
If Link 15 is south-east bound, the starting
IV. IMPLEMENTATION
pseudo-intersection will be 67001.
5) Entity-Relationship (E/R) Diagram: Although it seems After building up the database, a user-friendly interface
convenient to have to three tables in the database, when was created to acquire users’ input. Next, the mechanism of
querying, it is not efficient because of redundancy and the the database-driven process will be explained.
additional time needed in searching. Building an ER-diagram A. Interface Design
can be helpful in deciding how many tables we should keep in
As shown in Fig. 6, a user-oriented interface has been
order to limit redundancy.
constructed. The map controls located in the top-left corner
As shown in Fig. 5, after merging the Traffic Data Table,
allow users to choose the level of detail by zooming in and
the Intersection Table and the Intersection-Link Relationship
out. Users can drag the map to any places of interest to see the
Table, the results showed that a link is composed of a
variation of flow maps in detail after the query process. In the
from-node and an end-node. The rounded arrow entering the
top-right corner, users can choose different modes of maps,
intersection entity from the link entity can be seen in the
including the map mode, satellite mode and hybrid mode.
diagram. This arrow expresses the referential integrity
Each mode has its advantages of visualizing data to users.
constraint that every link has a front-node and end-node that
The rectangular sidebar on the right is the control panel that
exist in the Intersection entity set.
can handle the input from the user. It is divided into two parts.
5) Joining Tables: In order to display the data on the
The upper part is used to display the original Bellevue Google
Google Map, one can join tables by creating views and
Map, the Intersection Locator introduced in the Section III
inserting all data into a new table. For demonstration, the new
and the real-time flow map. The lower part is the historical
table contains the following columns: Link number, link ID,
flow map query interface. After selecting the specific time of
end node, end-node latitude, end-node longitude, from-node,
day on the panel, by clicking on the button “show” the query
from-node latitude, from-node longitude, color code and time
process will be activated. One can view the flow map directly
stamp.
on the Google Map when the query is finished. Users can then
6) Performance Enhancement: Database performance is a
easily refer to the traffic congestion legend to distinguish the
crucial issue. During the developmental stage, the
congestion levels of each link.
performance is improved step by step. Without enhancing the
Another feature is the Google Maps build-in geocoder
performance, it would take over an hour to finish the query
engine used to locate the address of interest. Geocoder is used
process for the whole city.
to translate physical addresses into latitude and longitude
Choosing the right table engine is the first solution. In
coordinates. Basically, the user can either input the exact
terms of querying performance, MyISAM is chosen for our
address or the zip code to locate a specific spot promptly.
971
The lower-left corner is the message board that can show 2) View: It is the root file displaying the GATI system
the XML-type query results or error messages. control components that users can interact with.
3) Controller: This file can handle the request sent by the
remote client from the UI. Essentially, the UI is the “view”
component of MVC pattern.
The advantage of this design pattern is that it allows the
developer to make updates very easily without changing
every class while it also allows individual part very simple
and self-contained. In future applications, more functions can
be incorporated into the system in an orderly manner.
972
zoom and pan the Google Map. algorithms should include travel time prediction, intersection
Engineers can use the system to see the variation in traffic performance measurement methods and urban street or
conditions on the specific link in the city. By using this GATI arterial performance measurements. We can envision a more
system, the bottlenecks in urban streets can be easily comprehensive GATI system.
identified by changing the time of day. After querying
several times, we can observe that Intersection 26 (112th AVE ACKNOWLEDGMENT
& NE 8th Street) has recurrent congestion. Some The authors gratefully acknowledge the City of Bellevue
malfunctioning detectors can also be visually identified. For for providing the real-time traffic flow data. We thank Mike
example, the loop detectors on 8th Street between 116th AVE Whiteaker, Mark Poch and Fred Liang for valuable
and 112th AVE malfunctioned frequently during peak hours. assistance.
REFERENCES
[1] E. J. Seymour, B. Miller, “Google-Based Mapping System for Traffic
Management Center Web Navigation,” presented at the 86th
Transportation Research Board Annual Meeting, Washington, DC,
January 21-25, 2007, Paper #07-3384.
[2] Liang, F. "Development of Bellevue Real Time Arterial Flow Map,”
presented at the ITE District 6 Annual Meeting, Honolulu, Hawaii,
2006.
[3] M. Pegg. (2007, March, 13). Google Maps Mania. [Online].
Available: http://googlemapsmania.blogspot.com/
[4] M. Purvis , J. Sambells, C. Turner, “Beginning Google Maps
Applicationswith PHP and AJAX: From Novice to Professional,”
Apress, 2006
[5] E. Malykhina (2007, February, 28).Google Mashup Helps You Avoid
Traffic Backups [Online]. Available:
http://www.informationweek.com/news/showArticle.jhtml?articleID=
Fig. 8. Traffic flow map displayed in the GATI system 197700147
[6] J. J. Garrett, (2005, February, 18). Ajax: A New Approach to Web
Applications [Online]. Available:
http://www.adaptivepath.com/publications/essays/archives/000385.ph
V. CONCLUSION AND FUTURE WORK p
This study focuses on displaying and organizing traffic [7] Google Maps API, (2007, March, 13), [Online]. Available:
http://www.google.com/apis/maps/.
flow data using the up-to-date web technologies driven by the
[8] J. Loter, (2007,January, 30), Lecture 6 [Online], Available:
database. The GATI system is presented by using Bellevue’s https://faculty.washington.edu/loter/info344/calendar.php
data. It also demonstrates a general technology that can be
applied to any arterial network. The GATI system shows
detailed information for all urban streets and it allows traffic
engineers to query the data of interest to observe day-to-day
or minute-to-minute variations in traffic conditions. The
GATI system also allows users to smoothly manipulate the
map while the query is processing in the background. Overall,
the system is fairly robust and effective for querying data and
displaying information.
Some issues were encountered when the system was being
developed. First, if the user turns off the JavaScript
interpreter in the browser, interactive functions on the Google
Map will not be able to work. So far all we can do is to notify
the user if he/she doesn’t turn on the JavaScript.
The current state of this GATI system is not complete.
Other features on the map also need to be improved or added.
These features include drawing turning movements, plotting
curved roads, showing construction site information, and
displaying the direction of each traffic flow. As for the query
part, more query options on the interface should be added to
the system even though complicated queries can be
conducted by editing the PHP script on the server side.
In the long term, adding routing information based on the
historical and real-time traffic data is necessary. These
973