GPS monitoring system for Android + webserver (assumption)

Suddenly there was an idea to establish a system. It can be used to monitor the current position of the person holding the mobile device (the device has GPS function). It's a bit like monitoring the escape position of "just bad guys" in the movie. stay

The current position of the monitored person is displayed with small red dots on the map of the large screen. Because the car drives very fast, the little red dot moves very fast (of course, we don't have such real-time monitoring, and we don't need such real-time monitoring, OK

Set a time to update, such as half an hour).

The envisaged platform is based on Android (use it instead of windows mobile or IOS, just to compete for attention. Ha ha. Because Android is very popular in the garden).

The first is a web page system, which is based on user mechanism. The user is the object to be monitored. Data fields are defined as follows:

ID system self increment ID

In the userguid field, each registered account generates a new unique code in the universe. We use this code to match the monitored mobile phone (don't ask me why I don't use the user ID. it's very simple. It's easy for others to guess)

Username name of the monitored person

Password word login password

The above is the user table, and then there is a table to record the coordinate position of the monitored person. The field structure is as follows

ID system self increment ID

Userid ID of temporary controller

Coordinate records the user's current coordinates, such as 213822 (scribbled, not familiar with the world coordinate system)

Then the server can use Google map API plus the obtained coordinate values to locate on the map. You will know the specific location of the current mobile phone persistence person. What about? Isn't it sy?

Finally, let's talk about Android. Is a program that can run in the background. Enter the registered guid. Then use the GPS system of the mobile phone to obtain the current coordinates. Set a time. Regularly communicate this token to the web server. Specific mining

You can communicate in any way (such as post, web services, TCP, etc.).

What about? In this way, a monitoring service providing system can be realized in theory. Is it a good idea?

Reproduced at: https://www.cnblogs.com/assion/archive/2010/08/13/1798656.html

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>