Implementation of a system of the mobile terminal position tracking using Google Maps



Similar documents
USING GOOGLE MAP API FUNCTIONS TO CREATE APPLICATIONS USING GEOGRAPHIC SPATIAL DATA.

GPS and GPRS Based Cost Effective Human Tracking System Using Mobile Phones

Implementing a Web-based Transportation Data Management System

Data Visualization Using Google Maps: the Hard Way and the Easy Way

Cost Effective GPS-GPRS Based Object Tracking System

Using the Google Maps API for Flow Visualization Where on Earth is my Data?

Vehicle Tracking system with GPS GSM Interface and Self Created Map

Android Application for Vehicle Theft Prevention and Tracking System

A Cost Effective GPS-GPRS Based Women Tracking System and Women Safety Application using Android Mobile

Design and Implementation of Web-Based GPS-GPRS Vehicle Tracking System

Arm Hardware Platform for Vehicle Monitoring and Tracking System Using GPRS

Taxi Service Design Description

A framework for Itinerary Personalization in Cultural Tourism of Smart Cities

How To Test Your Web Site On Wapt On A Pc Or Mac Or Mac (Or Mac) On A Mac Or Ipad Or Ipa (Or Ipa) On Pc Or Ipam (Or Pc Or Pc) On An Ip

Documentation for Online Travel Site. Ashish Khullar Dushyant Bansal Saurabh Gupta Vianyak Bhavnani

Bitrix Site Manager 4.1. User Guide

VEHICLE TRACKING SYSTEM USING GPS. 1 Student, ME (IT) Pursuing, SCOE, Vadgaon, Pune. 2 Asst. Professor, SCOE, Vadgaon, Pune

International Journal of Scientific & Engineering Research, Volume 6, Issue 5, May-2015 ISSN

EBOX Digital Content Management System (CMS) User Guide For Site Owners & Administrators

GPStrack/GPSalarm Track and alarm system. Abdelbasset Benguelloula Concours de la Meilleure Innovation dans le Domaine des TIC

Certified PHP/MySQL Web Developer Course

SUBJECT CODE : 4074 PERIODS/WEEK : 4 PERIODS/ SEMESTER : 72 CREDIT : 4 TIME SCHEDULE UNIT TOPIC PERIODS 1. INTERNET FUNDAMENTALS & HTML Test 1

How To Track A Car With Gps And Gsp/Gsm/Gprs Technology

An Android Application for Tracking College Bus Using Google Map

GPS Tracking. Product Manual

Advanced Web Development SCOPE OF WEB DEVELOPMENT INDUSTRY

Web Design Specialist

WEB DEVELOPMENT COURSE (PHP/ MYSQL)

RealTime Implementation of RTOS based Vehicle Tracking System

ArcGIS online Introduction Module 1: How to create a basic map on ArcGIS online Creating a public account with ArcGIS online...

AUTOMATED CONFERENCE CD-ROM BUILDER AN OPEN SOURCE APPROACH Stefan Karastanev

RFID Based 3D Indoor Navigation System Integrated with Smart Phones

Application note: Connecting the to a Database

NASSI-SCHNEIDERMAN DIAGRAM IN HTML BASED ON AML

Designing and Implementing an Online Bookstore Website

Short notes on webpage programming languages

Adding Panoramas to Google Maps Using Ajax

Location-Based Services Using HTML5 Geolocation and Google Maps APIs

Development and Implementation of Location Based Native Mobile Application

SYSTEM DEVELOPMENT AND IMPLEMENTATION

User Manual GPS Travelling System (Produced By: Bonrix Software System)

GpsGate VehicleTracker

Mobile Web Design with HTML5, CSS3, JavaScript and JQuery Mobile Training BSP-2256 Length: 5 days Price: $ 2,895.00

Smart Home Security System Based on Microcontroller Using Internet and Android Smartphone

Build it with Drupal 8

Load testing with. WAPT Cloud. Quick Start Guide

TIME SCHEDULE OBJECTIVES

WebLink 3 rd Party Integration Guide

Vehicle Tracking And Monitoring Using ARM Hardware

999GPS Tracking Platform Operation Guide

Operational Decision Manager Worklight Integration

Applying Web Based GPS/GPRS Ticketing and Tracking Mechanism to Reduce Traffic Violation in Developing Countries

A Geographic Interactive Supply Chain Management System for Construction Projects

Outline. CIW Web Design Specialist. Course Content

ADMIN'S GUIDE DRAFT GpsGate AB

Please note: no personal information is stored in cookies and they cannot contain viruses.

Google Analytics for Robust Website Analytics. Deepika Verma, Depanwita Seal, Atul Pandey

ADVANCED VEHICLE TRACKING SYSTEM USING ARM7

Resco CRM Guide. Get to know Resco CRM

Keywords LBS, Continuous Query, Range Query, Google API s, GPS.

OpenStreetMap for the Web

Enduring Understandings: Web Page Design is a skill that grows and develops throughout the careful planning and study of software and design.

How To Build A Gps Vehicle Tracking System On Android App.Com

Dreamweaver CS5. Module 2: Website Modification

Build an ArcGIS Online Application

Shipbeat Magento Module. Installation and user guide

Real time vehicle tracking and driver behaviour monitoring using cellular handset based accelerometer and GPS data

Virto Pivot View for Microsoft SharePoint Release User and Installation Guide

MANAGEMENT SYSTEM FOR A FLEET OF VEHICLES BASED ON GPS. João André Correia Telo de Oliveira

Comparative Analysis of Several Real-Time Systems for Tracking People and/or Moving Objects using GPS

A Low Cost Vehicle Monitoring System for Fixed Routes Using Global Positioning System (GPS)

Vehicle GPS Tracker GP268. GP268 Vehicle GPS/GPRS Tracking and Monitoring System Presentation July, 2009

manage content manage images change your password manage services manage meta tags keywords

Pakhtunkhwa, Pakistan 1 salman@awkum.edu.pk

CS587 Project final report

How To Create A Website In Drupal 2.3.3

Effective System for Pregnant Women using Mobile GIS

Online sales management software Quick store setup. v 1.1.3

Maps & Directions App

Challenges in Android Application Development: A Case Study

Team Members: Christopher Copper Philip Eittreim Jeremiah Jekich Andrew Reisdorph. Client: Brian Krzys

DIPLOMA IN GRAPHIC WEB DESIGN AND WEB DEVELOPMENT COURSE INFO PACK

Software Requirements Specification For Real Estate Web Site

WordPress Security Scan Configuration

User Guide. Vehicle Diagnostics by Delphi

VOL. 2, NO. 1, January 2012 ISSN ARPN Journal of Science and Technology ARPN Journals. All rights reserved

Accident Detection System Independent of In-Vehicle Detection System

Tutorial: Building a Dojo Application using IBM Rational Application Developer Loan Payment Calculator

shweclassifieds v 3.3 Php Classifieds Script (Joomla Extension) User Manual (Revision 2.0)

DYNAMIC GOOGLE REMOTE DATA COLLECTION

The Development of Mobile Client Application in Yogyakarta Tourism and Culinary Information System Based on Social Media Integration

Transcription:

Computer Applications in Electrical Engineering Implementation of a system of the mobile terminal position tracking using Google Maps Sławomir Pluta Opole University of Technology 45-758 Opole, ul. Prószkowska 76, e-mail: s.pluta@po.opole.pl The article describes how to implement part of the tasks of geolocation system and mobile data terminal registration related to servicing tasks by a central node. The entire system consists of two parts. The first part - mobile node, is situated on the side of the user, who uses the mobile data terminal equipped with GPS module and connected to the Internet, e.g. through GPRS system. The second part of the system (central node) is responsible for collecting essential data from the database, processing it, and displaying current position of the device along with additional information (time, speed) on a map from Google Maps resources. The article describes the rules of implementing Google Maps API - programming interface which allows using Google Maps on websites. Google Maps API allows for integrating a fully functional map on a website, including the features for handling events connected with the mobile data terminals geolocation process. KEYWORDS: positioning system, tracking system, GPS, Google Maps, GPRS 1. Introduction Lately, the increase in demand for the systems enabling remote registration of mobile device position has been noticed. Nowadays a lot of solutions enabling positioning and registration of the mobile vehicles for the transport companies are being implemented. This paper presents a real time tracking system that provides accurate geolocation of the tracked mobile device. The tracking systems described in [1 4] are designed to track and monitor automobiles status. However, when it comes to person geolocation by mobile phone position, there are not so many solutions. By implementing monitoring systems using GPS tracker it is possible to monitor e.g. employees doing field work. Using mobile device positioning systems or built in positioning systems in company cars has not been clearly regulated. When using this monitoring system one needs to strictly follow regulations in civil code, constitution and labour laws. The law does not regulate how to inform employees about using geolocation. It is assumed that this information should be given clearly, so that everyone could be familiarized with it. The development of geolocation system and mobile data terminal registration required using web design methods with the use of HTML and PHP, creating scripts in JavaScript language and interacting website with database. Thanks to using Google Maps API it is possible to precisely and quickly put on markers indicating the position of mobile devices [5 7]. 478

2. Description of the positioning system The system consists of two parts. The first part, mobile node, is a user who uses the mobile data terminal equipped with GPS module and connected to the Internet, e.g. through mobile network. The mobile device sends data on the geographical position, time and speed to the database server. The second part of the system - central node created on the Client s computer is responsible for collecting essential data from the database and then processing it and displaying current position of the device along with additional information (time, speed) on a computer screen. In figure 1 the block diagram is presented showing the general scheme of the positioning system. Fig. 1. The general scheme of the geolocation system The tasks of the central system are collecting data from the mobile device and registering it in database as well as data processing. In this part of the system the application installed on the system administrator computer establishes the connection with the database server through Internet connection and then downloads data from server. The next step is processing downloaded data and displaying it. A main part of creating central positioning system is the website. The website is written in accordance to HTML language specification. JavaScript language is used to call Google Maps API functions. Database is created using MySQL system. 479

480 S. Pluta / Implementation of a system of the mobile terminal position 3. Implementation of Google Maps API Google Maps API is a tool created by Google company to allow inserting any map to a website. Access to API is possible from JavaScript, ActionScript 3 (Google Maps API for Flash) or through an image (Google Static Maps API). The service is free of charge. Google Maps API allows for integrating on a website a fully functional map including the private data and functions for servicing events. Early implementations of Google Maps API did not provide some of the advanced features, available only on Google Maps website. The newest version supports almost all of the features, including geocoding, drawing, creating polylines and filling with color, getting directions with mid points and list of steps, Street View, etc. The content of the map is generated automatically and the data is downloaded from MySQL database. Data is read by a browser from the file dane.php, the content of which is generated with the use of the script written in PHP. Marker tags are between markers <dane> and </dane>. Each marker is represented by a single tag <marker/>, each marker tag contains attributes: lat, lon, ikona, predkosc, kategoria, wspolrzedna_id, and nazwa corresponding to, respectively: latitude, longitude, Icon URL, speed, individual ID for each coordinate, and username. When downloading is complete, the function with two arguments is called - dane, meaning the content of the file and kododpowiedzi (response code). If the response code is 200 (the correct completion of data download) the code responsible for parsing will be executed. If the kododpowiedzi is different, (e.g error 404), the appropriate error message will be displayed. The next step is data parsing. Parsing is the conversion of text chain into the instructions understandable for the given programming language. Data is parsed using the GXml.parse() function, presented below: var xml = GXml.parse(data); The variable markery is created and all objects with the marker tag are set to it. var markery = xml.documentelement.getelementsbytagname("marker"); for(var i=0; i<markery.length; i++) { var lat = parsefloat(markery[i].getattribute("lat")); var lon = parsefloat(markery[i].getattribute("lon")); var ikona_url = markery[i].getattribute("ikona"); var nazwa = markery[i].getattribute("nazwa"); var czas = markery[i].getattribute("czas"); var kategoria = markery[i].getattribute("kategoria"); Then the function inserting marker on a map with necessary attributes is being called: var marker = dodajmarker(kategoria,lat,lon,ikona_url,nazwa,czas); odswiezsidebar(); The message informing of the number of loaded markers is shown below:

alert('wczytano '+markery.length+' markerów'). Initiating the map is a simple action, the difficulties appear when the application is being expanded by new features. It would be useful to put indicators simplifying using and moving around the map. The typical view of the map is presented in the figure 2. The following indicators were used. 1 navigation control, class GLargeMapControl, 2 map type control, class GMapTypeControl, 3 information window, class GInfoWindow, 4 position marker, class GMarker, 5 Mini-map, class GOverviewMapControl. The next element used in the process of creating application is the map initiating function: function mapastart(). Next, the check of browser compatibility is being performed: if(gbrowseriscompatible and creating the map object in the element of HTML code with the ID mapka : mapa = new GMap2(document.getElementById("mapka"). Centering the map in the place of given coordinates and given zoom is made by the function: mapa.setcenter(newglatlng(53.41935400090768,14.58160400390625),10). Adding map controls is ensured by the commands: mapa.addcontrol(new GLargeMapControl()); mapa.addcontrol(new GMapTypeControl()); mapa.addcontrol(new GOverviewMapControl()); mapa.addcontrol(new GScaleControl()); Thanks to the use of the above functions, the basic map can be called and embedded in the application written in HTML. Additionally, a sidebar will be added to the map with the information on markers currently displayed on map. Markers not displayed on map will not be displayed in sidebar. The reference mark will be the name of the user tagged on map. The presented positioning system also has a very useful feature - displaying an approximate address of the chosen point using geocoding. Execution of the script connected to this process allows for displaying address in the information window next to the chosen map point. Figure 3 presents the example screenshot documenting the process of registration of mobile data terminal movement. Picture 4 presents the example screenshot documenting the process of registration of mobile data terminal movement for pedestrian with one second registration period. Figure 5 shows the live location of an automobile with five second registration period. 481

Fig. 2. Screenshot of generated map Fig. 3. Client/administrator interface view 482

Fig. 4. Google Maps Snapshot showing the live location of the tracked pedestrian Fig.5. Google Maps Snapshot showing the live location of the tracked automobile 4. Summary Thanks to the implementation of Google Maps API, mobile users positioning system easily allows for such features as: adding and deleting users, adding localisations based of collected data, the selection of user visibility, displaying only the last registered position of user, showing approximate address for the chosen point, switching to the point on map marked in the sidebar, searching for the 483

location according to inputted address and displaying information on any point, such as: time of sending information, username, temporary speed of device movement, coordinates, approximate address. The system project allows to implement further extensions with new features and possibilities allowing to create reports and statistics based on collected data. System does not need specialized database servers. During the tests, mobile system sent the position data with the minimum step of 0.5 s. Here we can expect the position error of 1 step which is acceptable for pedestrian objects. Pedestrian moves 0.5 m in 0.5 s. It shows that the inaccuracy is about 10 times smaller than the standard GPS error. In current form system can have many uses. The main use can be controlling the position of the employees, children, disabled and elderly people. The functionality of the system in the present form is limited to putting the current position on map as well as presenting and processing basic information - time and speed of the device. After implementing necessary modifications, the system could be a basis for creating mobile telemetric system. References [1] El-Medany W., Al-Omary A., Al-Hakim R.,Al- Irhayim S.,Nusaif M.,A Cost Effective Real Time Tracking System Prototype Using Integrated GPS/ GPRS Module, Wireless and Mobile Communications (ICWMC), 6th International Conference on, ISBN:978-1-4244-8021-0, 2010. [2] Al-Khedher M., Hybrid GPS-GSM Localization of Automobile Tracking System, Int. Journal of Computer Science & Information Technology (IJCSIT), Vol 3, Number 6, Dec 2011. [3] Ambade Shruti Dinkar, Shaikh S.A.,Design and implementation of vehicle tracking tystem using GPS, Journal of Information Engineering and Applications, Vol 1, Number 3, ISSN: 2224-5782,2011. [4] Khondker S.H., Rahman M., Haque A.L.,Rahman M.A., Rahman T.,Rasheed M.,Cost Effective GPS-GPRS Based Object Tracking System, Proc. of the International MultiConference of Engineers and Computer Scientists 2009, Vol I, IMECS 2009, March 18-20, Hong Kong, 2009. [5] Purvis M., Sambells J., Turner C.: Google Maps Aplications with PHP and AJAX: From Novice to Professional, Apress, 2010. [6] Svennerberg G., Beginning Google Maps API 3. Apress, 2010. [7] GOOGLE MAPS: Documentation of Google Maps Api. http://code.google.com/intl/plpl/apis/maps/documentation/javascript/v2/basics.html. 484