1. Technical Field
Embodiments of the present disclosure relate to information managing technology, and particularly to a Voice over Internet Protocol (VoIP) server and method for managing geographical information.
2. Description of Related Art
Users of VoIP terminal devices such as computers, mobile phones and other mobile devices may obtain information from a VoIP server. However, the VoIP terminal device does not send its location information to the VoIP server. Therefore, the VoIP server cannot obtain location information and status information of other users of VoIP terminal devices and correlate them for the benefit of all users. It limits the range of the VoIP use.
All of the processes described below may be embodied in, and fully automated via, functional code modules executed by one or more general purpose electronic devices or processors. The code modules may be stored in any type of non-transitory computer-readable medium or other storage device. Some or all of the methods may alternatively be embodied in specialized hardware. Depending on the embodiment, the non-transitory computer-readable medium may be a hard disk drive, a compact disc, a digital video disc, a tape drive or other suitable storage medium.
The VoIP server 1 further includes a display device 11, at least one processor 12 and a storage device 13. The VoIP server 1 may be a computer, a server, or any other computing device. In one embodiment, the VoIP server 1 provides a VoIP communication protocol to receive information sent by each of the VoIP terminal devices 3 as to their respective current locations (location information). The location information identifies location of the VoIP terminal device 3, and includes a latitude and a longitude.
In one embodiment, the storage device 13 stores a data sheet which contains a plurality of data rows. Each of data rows records user information of each user of the VoIP terminal device 3, login information (“login time”) of each user of the VoIP terminal device 3, status information of each user of the VoIP terminal device 3 and the location information of the VoIP terminal device 3. The user information identifies the user of the VoIP terminal device 3, and may include a name, and an identifier (ID) of the user. The status information identifies the user's status, for example, online or offline. The data sheet may be in the form of a XML format file, or a XLS format file. The storage device 13 also stores an electronic map (e.g., a GOOGLE map) comprising different locations. The display device 11 displays the electronic map that is populated with the location information and the status information.
In one embodiment, the management system 10 may include computerized instructions in the form of one or more programs that are executed by the at least one processor 12 and stored in the storage device 13 (or memory). A detailed description of the management system 10 will be given in the following paragraphs.
In step S10, the receiving module 100 receives the location information sent by each of the VoIP terminal devices 3. In one embodiment, the receiving module 100 receives the location information through the VoIP communication protocol. In one embodiment, the VoIP terminal device 3 has several ways of sending the location information. For example, a first way may be sending the location information when the change of the location information is out of a defined range, or a second way may be sending the location information at specific time intervals (e.g., ten minutes). The defined range includes a latitude range (e.g., one degree) and a longitude range (e.g., one degree).
In step S12, the storing module 101 creates a data sheet in the storage device 13, and stores geographical information of each of the VoIP terminal devices 3 into the data sheet. The geographical information comprises the status information and the location information. When the user of the VoIP terminal device 3 first logs into the VoIP server 1, the storing module 101 records the user information, the login information, the status information and the location information in the data sheet. When the user of the VoIP terminal device 3 has previously logged into the VoIP server 1, the storing module 101, after successfully searching for the user information of the VoIP terminal device 3 in the data sheet, adds a data row into the data sheet corresponding to the user information, and records the login information, the status information and the location information to the data row.
Once the VoIP server 1 detects a change of the status information, for example, the status information of the VoIP terminal device 3 from online going to offline, the storing module 101 searches the user information of the VoIP terminal device 3, and updates the status information recorded in the most recent data row.
In step S14, the detecting module 102 detects a query from one of the VoIP terminal devices 3. Queries may be of three types. A first type is used to obtain the geographical information of the users of the VoIP terminal devices in an appointed group (e.g., “friend” group). A second type is used to reveal the geographical information of the VoIP terminal devices which are nearby, within a default search range (e.g., radius of a certain number of kilometers). A third type is used to obtain the location information for an appointed duration related to an appointed user of the VoIP terminal device 3 (e.g., user A on one particular day).
In step S16, the populating module 103 retrieves the geographical information from the data sheet according to the detected query, and obtains an electronic map (e.g., a GOOGLE map) from the storage device 13, and populates the retrieved geographical information on the electronic map. In the embodiment, the populating module 103 marks a point on the electronic map according to a latitude and a longitude of the location information of the VoIP terminal devices 3 that are the subject of the query, and distinguishes the color of each of the points in relation to the status information.
As mentioned above, the query types include the first type, the second type and the third type. The electronic map as populated according to the first type and the second type is shown as
In step S18, the sending module 104 sends the electronic map to the VoIP terminal device 3 corresponding to the location information, and displays the electronic map of the VoIP terminal device 3 on the display device 11.
It should be emphasized that the above-described embodiments of the present disclosure, particularly, any embodiments, are merely possible examples of implementations, set forth for a clear understanding of the principles of the disclosure. Many variations and modifications may be made to the above-described embodiment(s) of the disclosure without departing substantially from the spirit and principles of the disclosure. All such modifications and variations are intended to be included herein within the scope of this disclosure and the present disclosure is protected by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
201110181824.X | Jun 2011 | CN | national |