You are on page 1of 6

> REPLACE THIS LINE WITH YOUR PAPER IDENTIFICATION NUMBER (DOUBLE-CLICK HERE TO EDIT) < 1

Design and Implementation of a Google Maps Application for Visualizing the


Operational Status of Distribution Network

Sajith Nawarathne 1, Kalindu Wijesundara 2, M. A. M. Ziyan 3, Gayan Wijendrasiri 4


and Nalin Wickramarachchi 5
1, 2, 3, 4 5
Department of Electrical Engineering Department of Electrical Engineering
University of Moratuwa, Sri Lanka University of Moratuwa
1
sajithbavnav15@hotmail.com, 2 kalindu.sachintha@gmail.com, 3 Sri Lanka
ziyanthebest@gmail.com, 4 krishantha.wijendrasiri@gmail.com wick@elect.mrt.ac.lk

 ability to view the network in geographical standpoint. They


Abstract— Today there are a number of power distribution usually have a single line diagram that is difficult to interpret.
companies around the world; there are two in Sri Lanka. With a Another disadvantage is the system can only be monitored and
growing customer base, companies should look for better controlled remotely from a single control center. Another
methods to gain advantage in their business. Companies are
always looking for efficient, cost-effective methods to achieve
method that is employed by some distribution companies is
their goals. Most companies use outdated equipment, which can the use of a mimic board to represent the network. Single line
lead to errors in day to day operations. Technicians at any time diagrams are shown on the board with different colors which
do not have a clear picture of what parts of the network have represent the different distribution lines. The switches are
power and what parts do not, due to the lack of real-time GIS represented by pins which are removed and inserted into the
facilities. Some companies use a mimic board to represent the board when switching operations are done. Small World
network; this is a single line diagram that is operated manually,
Electric Office; it is an application that is developed by Digital
which is a cumbersome process and can lead to errors. This
system will help operators to map the distribution network and Energy (a division of General Electric)[1]. It combines the
keep track of all the equipment and expand the network. It use of their application with Google maps services to visualize
should provide means to monitor and control the operational the network and display details such as outage time to
status of the network. The research methods used are: literature customers. The application can be accessed online just as in
review and data analysis and gathering. The system will be our program and there will be a user interface that allows users
implemented using JavaScript and PHP programming languages,
to control the layers, search for information and seamlessly
and the DBMS will be MySQL.
move through the interface.
Index Terms— Geographical Information System, Google
Maps, Google Maps API
II. METHODOLOGY
This section will focus on the methodology used in the
I. INTRODUCTION development of a Google Maps application for visualizing the
Geographical Information Systems are used in a wide range of operational status of the network.
applications such as mapping networks. The GIS can be easily
A. Definition of Google Maps
extended to an electricity distribution network that can be
advantageous to electricity distributors, as well as consumers. Google maps is a web-mapping application founded by
There can be many ways of implementing a GIS, but this Google. It allows users to view any part of the world in
project serves to accomplish this through the use of Google different views such as road map or satellite view. Google
Maps API. The use of the API in web applications has sky- Maps satellite images are not updated in real time; however,
rocketed in the past few years due to its wide range of features Google adds data to their Primary Database on a regular basis.
that provide flexibility for developers, its simplicity in use Like many other Google web applications, Google Maps uses
which can easily be grasped by people of all ages and/or JavaScript extensively. Some end users have reverse-
computer literacy backgrounds and finally its cost- engineered the tool and produced client-side scripts and
effectiveness which is great advantage to the end-users. server-side hooks which allowed a user or website to introduce
expanded or customized features into the Google Maps
A. Literature Survey interface. This led to the introduction of Google Maps API.[2]
Most GIS currently in use are based online; the use has
accelerated recently due to the applications such as Google B. Definition of Google Maps API
maps and Open Street maps. Many SCADA systems (e.g. 11 Google maps Application Programming Interface (API) is a
kV underground network of Colombo) do not feature the free service that allows any user to use Google maps on their
website. It also allows customization of the Google maps. The
Google maps API features a range of functions, most of which
> REPLACE THIS LINE WITH YOUR PAPER IDENTIFICATION NUMBER (DOUBLE-CLICK HERE TO EDIT) < 2

will be used to develop the application such as Zoom, Pan,


Scale, Maptype, and Rotate, Custom Controls, Events, Styles,
Layers, Markers, InfoWindows, Shapes Overlays.[3]
The advantage of using Google Maps is that there is no
need to create a digital map, as the map is loaded from Google
each time using the API key which is unique to that
application.

C. Programming Tools and Data used


Net beans is the IDE used for developing the software, it
supports PHP, JavaScript and HTML languages. Coding was
done using PHP and JavaScript languages. HTML is used to
design the user interfaces, PHP is used to code the server side
functions and JavaScript is used to code the client-side
functions.[4]
To implement the application, data for mapping various
components such as high voltage poles, low voltage poles, Figure 1. Database table design
transformers and switches are essential. The main data
requirements are the GPS coordinates of the components The 13 tables are:
which are used to locate the components. For the prototype,  user table used to store user name and password of all
actual GPS coordinates of components in the 11 kV
users
distribution network of the Moratuwa South Region of Sri
Lanka were used.  switches table used to store details of all switches in the
network
 poles_lv table used to store details of all LV poles in the
III. FEATURES network
 poles_hv table used to store details of all HV poles in the
The application requires an internet connection. Once the user network
is logged in they should be able to:  lv_poles_con table used to store current and next pole
IDs which are used to draw the LV distribution line
 Visualize the network based on its geographical
 hv_poles_con table used to store current and next pole
location
IDs which are used to draw the HV distribution line
 Use the application as a mapping tool to expand the
 bulk_trans table used to store details of all bulk
network
transformers in the network
 Store data related to all equipment in a database,
 distribution_trans table used to store details of all bulk
where the data can be retrieved simply by clicking
transformers in the network
icons on the map.
 mixed_trans table used to store details of all bulk
 Simulate real-time switch operations and show
transformers in the network
live/dead sections of the network
 primary table used to store details of all primary
 Locate where faults have occurred by identifying the
substations
live/dead sections of the map
 section_status table used to store status of the sections in
 Find alternate ways of supplying power through
the network
switching operations
 switch_section table used to store switch and section
IV. DESIGN connection details
 transformer_section table links transformer and section
This section will cover the database design, algorithm
design and user interface design. details

A. Database design B. Algorithm Design


The database is designed using MySQL which is a free, The raw data must be interpreted on the map visually, for this
open-source RDBMS. The database consists of 14 tables. The purpose we need to design algorithms. The Google Maps API
tables hold static data which is used to map the components allows the developer to set properties to markers and polylines
and display static information. It is also used to hold real-time such as color, size, thickness and opacity. These tools can be
data such as the operational status of the distribution lines. used to differentiate between several components of the map.
> REPLACE THIS LINE WITH YOUR PAPER IDENTIFICATION NUMBER (DOUBLE-CLICK HERE TO EDIT) < 3

The algorithm will be designed to carry out various tasks in


the application. Algorithms must be created for handling data
within the databases. The various data handling operations are:

 Adding a new component to the network such as a


transformer, HV or LV pole
 Editing data related to an existing component in the
network.
 Deleting a component from the network
 Draw the connection between two HV poles or two LV
Figure 2. Graph network representing distribution network
poles
When a switch is operated, the edge corresponding to the
Switch operations are an integral part of the application. The switch is removed and the graph is updates as shown below
network is filled with load break switches. When these are (switch 3 and 5 are operated):
operated, a part of the network should be isolated. The part of
the distribution line that is de-energized must be shown on the
map. In order to do this a suitable and efficient algorithm
should be developed.

The algorithm requires 3 important pre-requisites:

1. The network must be split into sections. A section would


be defined as a region of the distribution network that is
surrounded by 2 switches. Each section will have a
unique ID. The section will contain medium voltage
Figure 3. Resulting graph network when switches are turned off
poles, each MV pole ID is linked to a Section ID, so we
can identify the MV network that belongs to that section.
The logic behind the algorithm is that if the graph network
2. Each section will contain transformers; therefore each can be traversed from the primary to any other node; that
Transformer ID is linked with a Section ID, to identify section is energized or else it is de-energized. For this purpose
the section that the transformer is found in. a simple BFS (breadth-first search) from the primary to all
3. Each transformer will be connected to a series of LV other nodes, i.e. sections will be done. The result will return
poles; therefore each LV pole ID is linked to a all sections that are energized. In this manner, the sections that
are de-energized can be found.
Transformer ID, so that we can identify the LV network
that is supplied by the transformer. After identifying the sections that are live/dead, we can
distinguish between the live and dead components on the map
The algorithm works in stages; first it will identify the by displaying them in different colors. This can be set through
sections that do not have power, Secondly it will identify all the Google Maps API. Below is the BFS algorithm used [5]:
the transformers and high voltage poles that belong to that
section and thirdly it will identify the low voltage poles that procedure BFS (G,v)
are being supplied by the transformers. This algorithm can be Create a queue Q
used to identify all the components (transformers, high voltage enqueue primary onto Q
poles and low voltage poles) that are energized and de- array_visited = primary
energized. while Q is not empty;
dequeue an item from Q into v
The switching algorithm works using the data from the for each node connected to v by incident
switch_section table. The data is transferred from the database edge e in Graph;
into an array. The array is used to create a graph network as let w be the new node
shown in Figure 2, where the nodes are sections and the edges if w not in array_visited
are switches. array_visited = w
enqueue w onto Q
return array_visited
> REPLACE THIS LINE WITH YOUR PAPER IDENTIFICATION NUMBER (DOUBLE-CLICK HERE TO EDIT) < 4

C. User interface design


The user interface is an important part of the application.
Since, it is accessible online; the goal is to make it available
for both operators and customers. For this reason, there must
be several user levels with different security levels and access
rights. While the operator has the ability to make real-time
switching operations and manipulate the databases, the
customer has only the option of viewing the network and its
operational status.

Figure 6. Main interface with satellite view

Figure shows the main interface after login. There are several
menus available to Add, Delete and Edit components in the
network

Figure 4. Overview of user interface

Apart from providing all the features, the user interface must
be easy to use. It should be clear to the user and must be user-
friendly.

V. EXPERIMPENTS AND RESULTS


Once, the application was designed and the prototype was
implemented. It was tested using various test cases. The
testing is a trial and error process that gives the programmer
time to develop or improve the application before it is
Figure 7. Level of detail decreases at lower zoom level
available to users as a final product.
Figure shows a Zoomed out view of the map, as it can be seen
A. Map Interactions the level of detail is smaller as the zoom level decrease.
The user has the ability to choose between the map and
satellite mode.

Figure 8. Level of detail increases at higher zoom level

Figure shows that when the zoom level increases, the level of
detail also increases. The low voltage poles are shown in small
Figure 5. Main interface with road map view
dark blue circles. The high voltage poles are shown in light
blue circle and the transformers are shown in a black circle
with a larger diameter.
> REPLACE THIS LINE WITH YOUR PAPER IDENTIFICATION NUMBER (DOUBLE-CLICK HERE TO EDIT) < 5

C. Add Connections
After adding HV or LV poles, the user has the freedom to
make the connections, such as in a mapping application. The
user can also delete these connections by deleting their
respective poles, after which the new poles must be added
again and the connection must be reset. This is a better process
because the user is prone to mistakes and it gives them the
ability to rectify these mistakes.

Figure 9. Pop-up window containing details are shown when component


clicked

As shown in figure , when a component is clicked, the


details regarding that component is shown in a pop-up
window. In this example, the transformer is shown with
Figure 11. Before adding a new connection between two poles
Transformer ID and Capacity. The search box allows the user
to search for any component in the network using its ID. The
interface will zoom in on the component and centre in on its
location.

B. Add/Edit/Delete Components
The application can be used to expand the network by adding
new LV poles, HV poles, transformers and switches. The
interfaces were created for each of the operations with the
necessary validations. Figure shows a typical interface for
adding an LV pole to the network.

Figure 12. After adding a new connection between two poles

D. Switch Operations
To simulate switch operations, a switch will either be turned
on or off.
 Live distribution lines will be Red color
 Dead distribution lines will be Blue color
 On switches are in Green color
 Off switches are in Black color

It is worth noting that we are only simulating the switch


operations, by changing the switch status in the database. In
reality some external data acquisition system will update the
database. This triggers the algorithm and the live/dead sections
Figure 10. Add LV pole interface
are shown on the map. The operation should work the other
way around as well. When the switch is deliberately operated
using the application, the database is updated and the map will
be updated as well.
> REPLACE THIS LINE WITH YOUR PAPER IDENTIFICATION NUMBER (DOUBLE-CLICK HERE TO EDIT) < 6

VI. CONCLUSION
The objective of this research is to determine how effective
a Google Maps application can be in mapping an electricity
distribution network and to what extent it can be improved to
show the operational status of the network. After
implementing a small area of the actual distribution network
of Sri Lanka, it can be said that Google Maps API is an
excellent tool due to its fast loading speeds, the accuracy of
the maps and the fact that Google Maps are free to use. Only,
open-source software were used in the implementation,
because of this the end-product is commercially viable.
However, during testing it was realized that map loading
and query times could be improved by optimizing the
algorithms that were used to construct the functions.
Figure 13. Before switch is turned off Finally, it is important to note that this research explores
only a small amount of potential in Google Maps as a basis for
Figure 13 shows the switch operation interface, the prompt a Distribution Management System. It is expected that this
says “Are you sure you want to switch off BT223?” When application works hand in hand with a data acquisition system.
“OK” is clicked, the map is updated. Therefore, this application can be an alternative to expensive
supervisory control software that is accompanied with some
SCADA systems. Further improvements can be made to show
outage times, and calculate SAIFI or SAIDI values.

ACKNOWLEDGEMENT
Our thanks go to Lanka Electricity Company Pvt. Ltd. for
providing us with the data necessary to make this research a
success.

REFERENCES

[1] Small World Electric Office, GE Digital Energy, [online] 2012,


Figure 14. After switch is turned off Available:
http://www.gedigitalenergy.com/geospatial/catalog/smallworld_office.h
Figure 14 shows that after the switch is closed, the part of the tm#sa1 [March 19, 2014]
line is de-energized. This is seen by the blue colored line
between the two black circles. [2 Google Maps, Wikipedia, [online] 2014,
Available:
http://en.wikipedia.org/wiki/Google_Maps [March 19, 2014]
As explained earlier, this interface can be used to simulate
the network switching operations. It can also be used for [3] Google Maps JavaScript API v3, Google Developers, [online] 2014,
finding alternate ways of supplying power to the consumers by Available:
https://developers.google.com/maps/documentation/javascript/tutorial
bypassing faulty areas. [March 19, 2014]

[4] ORACLE, NetBeans IDE 8.0, [online], Available: https://netbeans.org/

[5] Breadth-first search, Wikipedia, [online] 2014,


Available: http://en.wikipedia.org/wiki/Breadth-first_search

Figure 15. Simulation of real-time switch operations

You might also like