Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
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 is corresponding to different service organizations, such as: 110 corresponding robber and polices (class of establishment comprises: public security, local police station etc.); (class of establishment comprises: fire brigade etc.) in 119 corresponding fire alarms; 120 corresponding first-aid centres (class of establishment comprises: hospital, community service station etc.).Therefore, at step S110 after the user inputs emergency numbers, just can determine class of establishment corresponding to described emergency numbers according to emergency numbers and the corresponding relation of service organization, 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, the described user's in location current location.
In specific implementation, can pass through the positioners such as global positioning system (Global Positioning System, GPS) user's current location is positioned.Such as, suppose near user's input 110 the making a call requests bamboo woods bus station of Enterprises of Futian District, the GPS module that can start on terminal is located user's current location, such as, the result of location can be " Enterprises of Futian District bamboo woods ".
In specific implementation, when navigating to described user's current location, can show described current location on dialing interface.To facilitate the user to the described user's of partner report accurate location information, improve the reliability of position data.
Step S112, according to the position of location and the class of establishment of determining, inquiry and the title of the service organization of described position and class of establishment coupling and the actual phone number of described service organization.
Step S113 sends call request with the actual phone number of the described service organization that inquires.
In specific implementation, on terminal this locality or far-end server that the user makes a call, can gather the data of magnanimity, generate the mechanism information database, described mechanism information database comprise in specified scope (such as, the whole of China or Shenzhen or Futian District) position, class of establishment, the title of service organization and the actual phone number of service organization of all service organizations.With near the hospital Enterprises of Futian District bamboo woods and send the example of doing, can form the mechanism information database shown in table 1.
Table 1:
, specifically can be according to the position of location and the class of establishment of determining at step S112, inquiry and the title of the service organization of described position and class of establishment coupling and the actual phone number of described service organization from mechanism's information database.Such as, associative list 1, when the emergency numbers of inputting is " 110 ", the position of location is " Enterprises of Futian District bamboo woods bus station ", when the class of establishment of determining is " local police station ", can inquire the Query Result that " bamboo woods local police station " reaches " 0755-83820110 " from mechanism's information database.Send call request with " 0755-83820110 " that inquires to " bamboo woods local police station " at step S113.
In some feasible execution modes, can inquire the title of a plurality of positions with locating and the service organization of the class of establishment coupling of determining at step S112,, can be according to the optimum principle described user's of chosen distance from a plurality of service organizations of distance the nearest service organization of current location, and send call request with the actual phone number of described nearest service organization, can service organization when judging distance and user's current location between distance on foot, the range of driving or the other standards of reality as the foundation of judgement.Such as, associative list 1, when the emergency numbers of inputting is " 120 ", the position of location is " Enterprises of Futian District bamboo woods bus station ", when the class of establishment of determining is " hospital ", can inquire the Query Result that " bamboo woods united family hospital " reaches " 0755-83820120 " from mechanism's information database, also can inquire the Query Result that " Renhe hospital " reaches " 0755-83820118 ".Can be further nearer according to the position " Enterprises of Futian District bamboo woods bus station " of GPS judgement " bamboo woods united family hospital " and " Renhe hospital " which distance users, then send call request with the actual phone number of nearest hospital, such as, the position " Enterprises of Futian District bamboo woods bus station " of determining " Renhe hospital " distance users through judgement is nearer, step S113 can " Renhe hospital " actual phone " 0755-83820118 " send calling to " Renhe hospital ".
In specific implementation, after sending call request with the actual phone number of the described service organization that inquires, method of the present invention also can comprise: the corresponding relation of preserving the position of the actual phone number of described service organization and described location; , call the actual phone number of the service organization of described preservation and send call request when emergency numbers corresponding to the service organization of the described preservation of Position input of described preservation initiated urgent call again as definite user.Such as, associative list 1, as the user next time still in " Enterprises of Futian District bamboo woods bus station " when dialing emergency numbers " 110 ", when service organization's type corresponding to the emergency numbers of determining user's incoming call by step S110 is " local police station ", and the position by step S111 consumer positioning is when being " Enterprises of Futian District bamboo woods bus station ", can be without execution in step S112, and the actual phone " 0755-83820110 " that directly calls 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 the current location of locating described user, and according to the position of location and the class of establishment of determining, inquiry and the title of the service organization of described position and class of establishment coupling and the actual phone number of described service organization; Actual phone number with the described service organization that inquires is sent call request.Its positional information that provides is accurate, and can directly call final service organization, has improved the reliability of urgent call and ageing.
Fig. 2 is that the structure of an embodiment of terminal equipment of the present invention forms schematic diagram.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 is used for determining the class of establishment of the service organization that described emergency numbers is corresponding when receiving the emergency numbers call request of user's input.
In specific implementation, different emergency numbers is corresponding to different service organizations, such as: 110 corresponding robber and polices (class of establishment comprises: public security, local police station etc.); (class of establishment comprises: fire brigade etc.) in 119 corresponding fire alarms; 120 corresponding first-aid centres (class of establishment comprises: hospital, community service station etc.).Therefore, after the user inputs emergency numbers, determination module 21 just can be determined class of establishment corresponding to described emergency numbers according to emergency numbers and the corresponding relation of service organization, such as, when user's input " 110 " makes a call request, determination module 21 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.
Locating module 22 is for the current location of locating described user.
In specific implementation, locating module 22 of the present invention can be the positioners such as global positioning system (Global Positioning System, GPS).Such as, suppose near user's input 110 the making a call requests bamboo woods bus station of Enterprises of Futian District, the GPS module that can start on terminal is located user's current location, such as, the result of location can be " Enterprises of Futian District bamboo woods ".
In specific implementation, as shown in Figure 3, in other embodiment of terminal equipment, terminal equipment of the present invention also can comprise display module 26, is used for when described locating module 22 navigates to described user's current location, shows described current location on dialing interface.To facilitate the user to the described user's of partner report accurate location information, improve the reliability of position data.
Enquiry module 23 is used for position and the definite class of establishment of described determination module 21 according to described locating module 22 location, inquiry and the title of the service organization of described position and class of establishment coupling and the actual phone number of described service organization.
Calling module 24 sends call request for the actual phone number of the described service organization that inquires with enquiry module 23.
In specific implementation, on terminal this locality or far-end server that the user makes a call, gather the data of magnanimity, generate mechanism information database (embodiment as shown in Figure 4, can comprise in terminal equipment that memory module 27 is used for the storing mechanism information database), described mechanism information database comprise in specified scope (such as, the whole of China or Shenzhen or Futian District) position, class of establishment, the title of service organization and the actual phone number of service organization of all service organizations.With near the hospital Enterprises of Futian District bamboo woods and send the example of doing, can form the mechanism information database shown in table 1.
Table 1:
, enquiry module 23 specifically can be according to the position of location and the class of establishment of determining, inquiry and the title of the service organization of described position and class of establishment coupling and the actual phone number of described service organization from mechanism's information database.Such as, associative list 1, when the emergency numbers of inputting is " 110 ", the position of location is " Enterprises of Futian District bamboo woods bus station ", when the class of establishment of determining is " local police station ", can inquire the Query Result that " bamboo woods local police station " reaches " 0755-83820110 " from mechanism's information database.Calling module 24 " 0755-83820110 " that can inquire sends call request to " bamboo woods local police station ".
In some feasible execution modes, enquiry module 23 can inquire the title of a plurality of positions with locating and the service organization of the class of establishment coupling of determining,, can be according to the optimum principle described user's of chosen distance from a plurality of service organizations of distance the nearest service organization of current location, and send call request with the actual phone number of described nearest service organization, can service organization when judging distance and user's current location between distance on foot, the range of driving or the other standards of reality as the foundation of judgement.Such as, associative list 1, when the emergency numbers of inputting is " 120 ", the position of location is " Enterprises of Futian District bamboo woods bus station ", when the class of establishment of determining is " hospital ", can inquire the Query Result that " bamboo woods united family hospital " reaches " 0755-83820120 " from mechanism's information database, also can inquire the Query Result that " Renhe hospital " reaches " 0755-83820118 ".Can be further nearer according to the position " Enterprises of Futian District bamboo woods bus station " of GPS judgement " bamboo woods united family hospital " and " Renhe hospital " which distance users, then send call request with the actual phone number of nearest hospital, such as, the position " Enterprises of Futian District bamboo woods bus station " of determining " Renhe hospital " distance users through judgement is nearer, and the actual phone " 0755-83820118 " that calling module 24 can " Renhe hospital " sends calling to " Renhe hospital ".
In specific implementation, embodiment as shown in Figure 5, terminal equipment also can comprise memory module 28, be used for after described calling module 24 sends call request with the actual phone number of the described service organization that inquires the corresponding relation of the actual phone number of preservation described service organization and the position of described location; And, calling module 29, be used for when knowing that the position that described locating module 22 is determined is identical with the position of described memory module 28 preservations, when the type of the service organization that the emergency numbers of user's input that described determination module 21 is determined is corresponding was identical with the type of the service organization of described memory module 28 preservations, the actual phone number of calling the service organization of described memory module 28 preservations sent to described calling module 24 to send call request.
Such as, associative list 1, as the user next time still in " Enterprises of Futian District bamboo woods bus station " when dialing emergency numbers " 110 ", when determining that by determination module 21 service organization's type corresponding to emergency numbers of user's incoming call is " local police station ", and the position by locating module 22 consumer positionings is when be " Enterprises of Futian District bamboo woods bus station ", and the actual phone " 0755-83820110 " that can be directly calls by calling module 29 " the bamboo woods local police station " that store in memory module 28 sends to calling module 24 to send call request.
Hence one can see that, in the embodiment of the present invention, when receiving the emergency numbers call request of user's input, automatically determines the class of establishment of the service organization that described emergency numbers is corresponding; And the current location of locating described user, and according to the position of location and the class of establishment of determining, inquiry and the title of the service organization of described position and class of establishment coupling and the actual phone number of described service organization; Actual phone number with the described service organization that inquires is sent call request.Its positional information that provides is accurate, and can directly call final service organization, has improved the reliability of urgent call and ageing.The module of the embodiment of the present invention or submodule, can pass through universal integrated circuit, for example CPU (Central Processing Unit, central processing unit), or realize by ASIC (Application Specific Integrated Circuit, application-specific integrated circuit (ASIC)).
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in above-described embodiment method, to come the relevant hardware of instruction to complete by computer program, described program can be stored in a computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, one of ordinary skill in the art will appreciate that all or part of flow process that realizes above-described embodiment, and according to the equivalent variations that claim of the present invention is done, still belong to the scope that invention is contained.