Android Based GIS Terminal Design in Tobacco Distribution

With the development of intelligent devices, Android smart device is widely used in daily life. Based on android smart device, this paper aims to implement a multifunctional GIS mobile terminal which integrates Internet communication, bar-code scanning, and LBS (Location Based Service) technologies. The GIS terminal, based on Android application designing, make it possible to optimize the management in tobacco distribution. At last, test results prove that the design of the application development can meet the expected functional requirements of the GIS system.


Introduction
With the development of intelligent devices, a variety of portable intellectual equipment has been applied to various industries, especially Android based intelligent terminals.Since the open source of Android system, it has been widely used and further developed.The lower cost and easy operation advantages of the Android device make it possible for integrating Android based device into the tobacco distribution GIS system.
Based on Android platform, GIS mobile terminal can extend many function modules, and provides unique functions integrated with real-time positioning, route navigation, network communication, and bar-code scanning [1].All the functions, as is described above, depend on the wireless network technology, especially 3G or 4G network.
In conclusion, this paper designs a GIS terminal software on Android platform.The main content of this paper is summarized in the following three sections.The section two introduces mobile positioning, wireless network, bar-code recognition, and database technology.The section three presents the software application designing.In section four, it introduces the potential problem and challenge in the design.

Mobile positioning technology
Mobile positioning technology uses satellite and wireless network techniques to calculate current position, by receiving signals of the satellite or base-station [1,2,3].It's an indispensable part of the GIS system.Mobile GPS technology needs multiple satellites to get device location.Via at least four satellites signal, it can calculate the target's location information by a specific algorithm [4].Similarly, wireless network positioning uses the destination between client and base-station, computing the target location.
Compared with the traditional GPS positioning technology, Baidu Map could provide a more precise location service.Using Baidu Map service, the terminal can combine GPS and GPRS to get location.It can not only improve the positioning accuracy, but also reduce the power waste of the device.Using the Baidu Map can design a comprehensive, real-time monitoring program for GIS system.As shown in Figure .1, the Baidu Map can provide multiple features for user.

Wireless network technology
Mobile terminal usually utilizes wireless network connect to the Internet [5].The digital cellular network is the mainstream technology of mobile network.
Mature 3G and 4G network have been quite popular, especially 4G wireless network.With the development of network speed and signal quality, the wireless network technology can provide a very good environment for using of mobile GIS terminal.

Image processing technology
Camera equipment, providing photograph function, is usually integrated into Android devices.Native Android system contains camera software, which can open the camera to capture image or video information.
To start a camera hardware, software application calls camera interfaces in the Android system, and calls the camera driver to start the camera device, realizing image capture capability.Combined with image processing technology, the Android device enables to realize image recognition feature, identifying information from bar-codes or QR codes.

Database technology
Database technology uses a lightweight database to cache network data and geographical information data.Database cache technology will speed up data reload, and resolve the problem that data cannot be accessed from the Internet under the condition of network broken.Database designing in this paper will help improve work efficiency, facilitating data access for the user [1,3].
In this design, the terminal software uses the database operation method add data to the database, after converting network data into a special data model.To read and upload data, the terminal will query data from database and package the data into special format, then using mobile network send data to the server.

Basic map service
Based on Android system, the GIS terminal can realize basic map service by using Baidu Map API.Baidu Map SDK offers rich functions such as map display and positioning, route planning, etc.Meanwhile, it provides query and playback method of historical data, that includes geographical information and customization data.
By combining GPS, GPRS, and Wi-Fi technology, the Baidu Map can obtain location information of the device.Based on this function, GIS terminal can get real-time location data of the device, then upload those data to the supervision and management system [5].

Route navigation
Traditional vehicle navigation system depends on the GPS technology.And the navigation software can analyze route data, providing route planning and guidance between current location and destination address.
Combined with basic road information and real-time traffic condition, Baidu Map navigation, depending on cloud computing, can provide users with various navigation plans under different constraints [6,7].Using the Baidu Map navigation function, GIS terminal can recalculate navigation route under the condition of avoiding traffic congestion [8,9].In the design of GIS software, a detection method is implemented to estimate whether the vehicle needs to recalculate navigation route.In Figure .2, it briefly shows the process of Baidu Map navigation.

IST2017
In order to test the efficiency of the terminal, we made a comparison about the cost of the time and distance, delivering from Shop A to Shop B. In Table 1, we could see a clear cut down, compared with previous condition.

Time Cost
Traveling Distance Previous 35min 13.3km Now 25min 12.8km

Wireless network communication
Utilizing Android wireless network module and the Http network protocol, delivery personnel could transmit personal information to the supervision and management system [10,11].Meanwhile, the terminal will start background service process to upload vehicle location information.GIS terminal calls map positioning function to get current position information of the vehicle, and applies database operation method get local delivery state data.This information will be packaged into Json data format, and uploaded to the system server.To meet the requirement of real-time monitoring, GIS terminal device needs uninterrupted send data to the back-end server.
The terminal design uses the Http protocol to access the network data.The application software would package related information, and add working condition, geographical location and other information to the Http request.With wireless network data transmission technology, the terminal can transmit various information to the system, which will help back-end system get real-time distribution state and manage distribution process.

Bar-code scanning
Bar-code scanning technology is widely used in the logistics system to facilitate receipting of the order form.In this design, using the camera model, the terminal can parse digital information from bar-code image, that is taken by the terminal [12].
Utilizing digital image analysis technology, bar-code scanning device based on Android is different from traditional bar-code scanner.First, camera model of the device get the bar-code image.And then scanner passes over the image to produce a special stream.Through several steps decoding the stream, it will produce a stream of completely decoded symbol data.The decoded data result is extracted from the image.And finally, the result is passed to the user interface display.According to the result data, terminal can query database to get detail information of order form.The Figure .3shows the process of bar-code decoding.When signing for the order, it usually spends about half an hour to completely confirm the order from.By using the function of bar-code scanning, it can be more easier and faster to finish this process.In Table 2, it shows a decrease of average time cost, during checking an order.4 The challenge for GIS technology on android device GIS terminal applies wireless network to access to the back-end system, which will bring some network security risks.During data transmission, vehicle location and customer information could be leaked, that may cause huge economic losses to the operators and customers.In addition, the GIS terminals need uninterruptedly access to the network, leading to power consumption increase of the device.In summary, it requires application designers to optimize program design to overcome these challenges.

Conclusion
The conclusion of this paper can be summarized as following points.Using Baidu Map development tools, the terminal can provide positioning, route navigation and real-time guidance of route planning.
Based on wireless network technology, this design implements real-time information interacting with the back-end system.And a local database is designed to cache the network data.It also integrates bar-code scanning technique to get order number from images.After completed and tested the terminal functions, the results show that the Android based GIS terminal is able to meet the expected requirements of GIS system.

Figure 1 .
Figure 1.Some features of Baidu Map

Figure 3 .
Figure 3.The process of bar-code decoding

Table 1 .
The comparison of time and distance.

Table 2 .
An average decrease of time cost.