Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the schematic flow sheet of an embodiment of the method for urgent call of the present invention.As shown in Figure 1, the implementation method of the alarm clock of the embodiment of the present invention can comprise:
Step S110, when receiving the emergency numbers call request of user's input, determines the class of establishment of the service organization that described emergency numbers is corresponding.
In specific implementation, different emergency numbers corresponds to different service organizations, such as: 110 corresponding robber and polices (class of establishment comprises: public security, local police station etc.); 119 corresponding fire alarms (class of establishment comprises: fire brigade etc.); 120 corresponding first-aid centres (class of establishment comprises: hospital, community service station etc.).Therefore, in step S110 after user inputs emergency numbers, just can determine according to emergency numbers and the corresponding relation of service organization the class of establishment that described emergency numbers is corresponding, such as, when user's input " 110 " makes a call request, can determine that service organization corresponding to " 110 " is robber and police, and the class of establishment that robber and police comprises can be public security, local police station etc.
Step S111, locates the current location of described user.
In specific implementation, position by the current location of positioner to user such as global positioning systems (GlobalPositioningSystem, GPS).Such as, suppose that user inputs 110 requests of making a call near the bamboo woods bus station of Enterprises of Futian District, then can start the GPS module in terminal and locate the current location of user, such as, the result of location can be " Enterprises of Futian District bamboo woods ".
In specific implementation, when navigating to the current location of described user, described current location can be shown on dialing interface.To facilitate user to report the accurate location information of described user to partner, improve the reliability of position data.
Step S112, according to the position of locating and the class of establishment determined, inquires about the title of service organization and the actual phone number of described service organization of mating with described position and class of establishment.
Step S113, sends call request with the actual phone number of the described service organization inquired.
In specific implementation, on the terminal local made a call user or far-end server, the data of magnanimity can be gathered, generating mechanism information database, the position of all service organizations that described mechanism information database comprises in specified scope (such as, the whole of China or Shenzhen or Futian District), class of establishment, the title of service organization and the actual phone number of service organization.With the hospital near the bamboo woods of Enterprises of Futian District and send example of doing, the mechanism information database shown in table 1 can be formed.
Table 1:
Then, specifically according to the position of location and the class of establishment determined, the title of service organization of mating with described position and class of establishment and the actual phone number of described service organization can be inquired about from mechanism information database in step S112.Such as, associative list 1, when the emergency numbers of input is " 110 ", the position of location is " bamboo woods bus station, Enterprises of Futian District ", when the class of establishment determined is for " local police station ", the Query Result of " bamboo woods local police station " and " 0755-83820110 " can be inquired from mechanism information database.Then send call request with " 0755-83820110 " that inquire to " bamboo woods local police station " in step S113.
In the execution mode that some are feasible, the title of multiple service organization of mating with the position of locating and the class of establishment determined can be inquired in step S112, then, can according to the optimum principle service organization that described in chosen distance, the current location of user is nearest from multiple service organization of distance, and send call request with the actual phone number of described nearest service organization, when judging distance can the distance on foot of reality between service organization and the current location of user, the range of driving or other standards as the foundation judged.Such as, associative list 1, when the emergency numbers of input is " 120 ", the position of location is " bamboo woods bus station, Enterprises of Futian District ", when the class of establishment determined is for " hospital ", the Query Result of " bamboo woods united family hospital " and " 0755-83820120 " can be inquired from mechanism information database, also can inquire the Query Result of " Renhe hospital " and " 0755-83820118 ".Then can judge that the position " bamboo woods bus station, Enterprises of Futian District " of " bamboo woods united family hospital " and " Renhe hospital " which distance users is nearer according to GPS further, then call request is sent with the actual phone number of nearest hospital, such as, nearer through the position " bamboo woods bus station, Enterprises of Futian District " that " Renhe hospital " distance users is determined in judgement, then the actual phone " 0755-83820118 " of " Renhe hospital " calling can be sent to " Renhe hospital " in step S113.
In specific implementation, after sending call request with the actual phone number of the described service organization inquired, method of the present invention also can comprise: the corresponding relation preserving the actual phone number of described service organization and the position of described location; When determining that user initiates urgent call again at the emergency numbers that the service organization preserved described in the Position input of described preservation is corresponding, the actual phone number calling the service organization of described preservation sends call request.Such as, associative list 1, when user still dials emergency numbers " 110 " in " bamboo woods bus station, Enterprises of Futian District " next time, when being determined that by step S110 service organization's type that the emergency numbers of user's incoming call is corresponding is " local police station ", and when being " bamboo woods bus station, Enterprises of Futian District " by the position of step S111 consumer positioning, step S112 can be performed, and the actual phone " 0755-83820110 " directly calling out " bamboo woods local police station " sends call request.
In the embodiment of the present invention, when receiving the emergency numbers call request of user's input, automatically determine the class of establishment of the service organization that described emergency numbers is corresponding; And locate the current location of described user, and according to the position of locating and the class of establishment determined, inquire about the title of service organization and the actual phone number of described service organization of mating with described position and class of establishment; Call request is sent with the actual phone number of the described service organization inquired.Its positional information provided is accurate, and can directly call final service organization, improves the reliability of urgent call and ageing.
Fig. 2 is the structure composition schematic diagram of an embodiment of terminal equipment of the present invention.As shown in Figure 2, terminal equipment of the present invention can comprise: determination module 21, locating module 22, enquiry module 23 and calling module 24, wherein:
Determination module 21, for when receiving the emergency numbers call request of user's input, determines the class of establishment of the service organization that described emergency numbers is corresponding.
In specific implementation, different emergency numbers corresponds to different service organizations, such as: 110 corresponding robber and polices (class of establishment comprises: public security, local police station etc.); 119 corresponding fire alarms (class of establishment comprises: fire brigade etc.); 120 corresponding first-aid centres (class of establishment comprises: hospital, community service station etc.).Therefore, after user inputs emergency numbers, determination module 21 just can determine according to emergency numbers and the corresponding relation of service organization the class of establishment that described emergency numbers is corresponding, such as, when user's input " 110 " makes a call request, determination module 21 can determine that the service organization of " 110 " correspondence is robber and police, and the class of establishment that robber and police comprises can be public security, local police station etc.
Locating module 22, for locating the current location of described user.
In specific implementation, locating module 22 of the present invention can be the positioners such as global positioning system (GlobalPositioningSystem, GPS).Such as, suppose that user inputs 110 requests of making a call near the bamboo woods bus station of Enterprises of Futian District, then can start the GPS module in terminal and locate the current location of user, such as, the result of location can be " Enterprises of Futian District bamboo woods ".
In specific implementation, as shown in Figure 3, in other embodiments of terminal equipment, terminal equipment of the present invention also can comprise display module 26, for when described locating module 22 navigates to the current location of described user, dialing interface shows described current location.To facilitate user to report the accurate location information of described user to partner, improve the reliability of position data.
Enquiry module 23, for the class of establishment determined according to position and the described determination module 21 of described locating module 22 location, inquires about the title of service organization and the actual phone number of described service organization of mating with described position and class of establishment.
Calling module 24, the actual phone number for the described service organization inquired with enquiry module 23 sends call request.
In specific implementation, on the terminal local made a call user or far-end server, gather the data of magnanimity, generating mechanism information database (embodiment as shown in Figure 4, memory module 27 can be comprised for storing mechanism information database) in terminal equipment, the position of all service organizations that described mechanism information database comprises in specified scope (such as, the whole of China or Shenzhen or Futian District), class of establishment, the title of service organization and the actual phone number of service organization.With the hospital near the bamboo woods of Enterprises of Futian District and send example of doing, the mechanism information database shown in table 1 can be formed.
Table 1:
Then, enquiry module 23 specifically according to the position of location and the class of establishment determined, can inquire about the title of service organization of mating with described position and class of establishment and the actual phone number of described service organization from mechanism information database.Such as, associative list 1, when the emergency numbers of input is " 110 ", the position of location is " bamboo woods bus station, Enterprises of Futian District ", when the class of establishment determined is for " local police station ", the Query Result of " bamboo woods local police station " and " 0755-83820110 " can be inquired from mechanism information database." 0755-83820110 " that then calling module 24 can inquire sends call request to " bamboo woods local police station ".
In the execution mode that some are feasible, enquiry module 23 can inquire the title of multiple service organization of mating with the position of locating and the class of establishment determined, then, can according to the optimum principle service organization that described in chosen distance, the current location of user is nearest from multiple service organization of distance, and send call request with the actual phone number of described nearest service organization, when judging distance can the distance on foot of reality between service organization and the current location of user, the range of driving or other standards as the foundation judged.Such as, associative list 1, when the emergency numbers of input is " 120 ", the position of location is " bamboo woods bus station, Enterprises of Futian District ", when the class of establishment determined is for " hospital ", the Query Result of " bamboo woods united family hospital " and " 0755-83820120 " can be inquired from mechanism information database, also can inquire the Query Result of " Renhe hospital " and " 0755-83820118 ".Then can judge that the position " bamboo woods bus station, Enterprises of Futian District " of " bamboo woods united family hospital " and " Renhe hospital " which distance users is nearer according to GPS further, then call request is sent with the actual phone number of nearest hospital, such as, nearer through the position " bamboo woods bus station, Enterprises of Futian District " that " Renhe hospital " distance users is determined in judgement, then calling module 24 the actual phone " 0755-83820118 " of " Renhe hospital " can send calling to " Renhe hospital ".
In specific implementation, embodiment as shown in Figure 5, terminal equipment also can comprise memory module 28, after sending call request when described calling module 24 with the actual phone number of the described service organization inquired, preserve the corresponding relation of the actual phone number of described service organization and the position of described location; And, calling module 29, know that the position that described locating module 22 is determined is identical with the position that described memory module 28 is preserved for working as, when the type of the service organization that the emergency numbers that the user that described determination module 21 is determined inputs is corresponding is identical with the type of the service organization that described memory module 28 is preserved, the actual phone number calling the service organization that described memory module 28 is preserved sends to described calling module 24 to send call request.
Such as, associative list 1, when user still dials emergency numbers " 110 " in " bamboo woods bus station, Enterprises of Futian District " next time, when being determined that by determination module 21 service organization's type that the emergency numbers of user's incoming call is corresponding is " local police station ", and when be " bamboo woods bus station, Enterprises of Futian District " by the position of locating module 22 consumer positioning, the actual phone " 0755-83820110 " that directly can call " the bamboo woods local police station " of storage in memory module 28 by calling module 29 sends to calling module 24 to send call request.
It can thus be appreciated that, in the embodiment of the present invention, when receiving the emergency numbers call request of user's input, automatically determine the class of establishment of the service organization that described emergency numbers is corresponding; And locate the current location of described user, and according to the position of locating and the class of establishment determined, inquire about the title of service organization and the actual phone number of described service organization of mating with described position and class of establishment; Call request is sent with the actual phone number of the described service organization inquired.Its positional information provided is accurate, and can directly call final service organization, improves the reliability of urgent call and ageing.The module of the embodiment of the present invention or submodule, universal integrated circuit can be passed through, such as CPU (CentralProcessingUnit, central processing unit), or realized by ASIC (ApplicationSpecificIntegratedCircuit, application-specific integrated circuit (ASIC)).
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly the interest field of the present invention can not be limited with this, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and according to the equivalent variations that the claims in the present invention are done, still belong to the scope that invention is contained.