Detailed Description
In order to make those skilled in the art better understand the technical solutions in one or more embodiments of the present disclosure, the technical solutions in one or more embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in one or more embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the scope of protection of the present specification.
In this specification, the current location of the terminal may be located by obtaining location characterizing information of the terminal, where an execution subject for implementing location of the terminal may be a server, a service platform, and the like, and the following will describe the whole location process by taking the server as an example only.
Fig. 1 is a schematic diagram of a positioning process provided in this specification, specifically including the following steps:
s100: and acquiring the position representation information of the terminal.
In this specification, a terminal may send position characterizing information currently stored by itself to a server, so that the server performs positioning on the terminal through the obtained position characterizing information, or when a user invokes an Application (App) specified in the terminal, the App obtains the position characterizing information of the terminal through a preset interface, and then sends the obtained position characterizing information to the server.
For example, when the App monitors that the terminal fails to be positioned in a preset positioning mode, the App can acquire the position representation information from the terminal through a preset interface. The preset positioning method mentioned herein may refer to a conventional positioning method such as GPS, base station positioning, WiFi positioning, etc. For another example, when it is monitored that the user executes the specified service through the App, the location representation information may be acquired from the terminal through a preset interface. Other triggering schemes are not illustrated here.
In this specification, the location characterizing information included in the terminal may refer to information that can characterize the current location of the user, such as a mobile device country Code (MCC), current time zone information included in the terminal, and an IP address currently used by the terminal.
For a user activating international roaming service, as the user accesses mobile communication networks of different countries through a terminal, MCC in the terminal may change correspondingly. For example, when the user is at home, the user accesses a home mobile communication network, and the MCC included in the terminal is 460, and when the user holds the terminal and leaves the country, the user accesses a foreign mobile communication network, and the MCC included in the terminal may be changed accordingly to become the MCC corresponding to the country where the user is currently located. Based on this, the server can determine the current position of the terminal through the current MCC of the terminal.
In addition, if the user is located abroad and replaces a Subscriber Identity Module (SIM) card of the foreign and local place, the MCC contained in the terminal will also be changed to the MCC of the foreign and local place, so the server can locate the current location of the terminal by acquiring the MCC currently contained in the terminal.
In practical application, if the user does not perform positioning authorization on the App, the App cannot perform positioning on the current position of the user. For a system of the terminal, even if the user does not perform positioning authorization on the App, the system can still perform positioning on the current position of the user, and further can update time zone information in the system according to the positioned position.
Based on this, in this specification, the App can determine the current time zone information included in the terminal through a preset interface, and then send the current time zone information to the server. Because different time zone information corresponds to different geographical positions, the server can subsequently query the geographical position corresponding to the current time zone information, and further position the current position of the user.
In practical application, the positions of the terminals are different, and the IP addresses used by the App are also different, so that in this specification, the App can send the currently used IP address to the server through the terminal as the position representation information, so that the server can position the current position of the user according to the currently used IP address of the App.
Typically, the address of the business object under those lines that performs the business with the user will reflect where the user is currently located. Based on this, in this specification, the App may send, as location representation information, identification information of a service object that is stored in the terminal and on which a service has been executed by the user within a preset time period, to the server, and the server may query an address of the service object through the identification information, and then locate the terminal based on the address of the service object.
For example, the App may send merchant information of a merchant (i.e., a business object) that has performed a transaction with the user on the last three days (i.e., within a preset time period) included in the terminal to the server as location characterizing information, and the server may query the address of the merchant through the merchant information of the merchant, and further perform positioning on the location where the user is currently located based on the address of the merchant.
Certainly, the App may also send a user identifier (such as an identity card number, a mobile phone number, a user account number, and other information) of the user to the server as the position characterizing information, and the server may query a service record of the user in a preset time period according to the user identifier, determine a service object that has performed a service with the user in the preset time period through the service record, and then locate the current position of the terminal (i.e., the user) by querying an address of the service object.
S102: and inquiring the position information corresponding to the position representation information.
After the server acquires the position representation information sent by the terminal, the server can inquire out the position information corresponding to the position representation information and position the terminal. The process of positioning the current position of the terminal by the server is different for different position representation information. For example, when the location attribute information is MCC, the server may determine a country corresponding to the MCC according to a pre-stored correspondence between each MCC and each country, and then locate the terminal according to the determined country. For another example, when the location characterization information is current time zone information, the server may determine, through a pre-stored correspondence between each time zone information and each zone, an area corresponding to the current time zone information, and then locate the terminal through the determined area.
As for other position representation information, the server may determine the position information corresponding to the position representation information in a similar manner as described above, and then locate the terminal, which is not described in detail herein.
S104: and positioning the terminal according to the position information.
After the server determines the position information corresponding to the position representation information, the actual position corresponding to the position information can be used as the current position of the terminal, and then the service information related to the position is pushed to the terminal or the App for the user to check.
In this specification, the server may also send a positioning notification to the terminal at set time intervals, so as to position the current position of the terminal through the positioning notification, as shown in fig. 2.
Fig. 2 is a schematic diagram of a server for performing positioning on a terminal by sending a positioning notification to the terminal, provided in the present specification.
And after receiving the positioning notification sent by the server, the terminal can display the positioning notification. And if the terminal monitors that the user clicks the positioning notification, the terminal can call a corresponding App, and the App can acquire position representation information from the terminal through a preset interface and send the position representation information to the server, so that the server can position the current position of the user through the position representation information. The server may then push service information related to the located location to the App for viewing by the user.
In this specification, the server may also locate the terminal by using the location characterization information in the terminal and combining the location result obtained by the preset location mode, as shown in fig. 3.
Fig. 3 is a schematic diagram of positioning a terminal according to position characterizing information and a preset positioning manner provided in this specification.
After the terminal (or App) successfully locates the current position of the terminal through preset positioning modes such as a GPS, base station positioning, WiFi positioning, and the like, the located position information and the position representation information in the terminal can be sent to the server. The server may use the position information located by the preset location manner as the first position information, and use the position information located by the position characterizing information as the second position information. Since the types of the position representation information are different, the terminal can determine a plurality of second position information through different types of position representation information. The server may compare each determined second location information with the first location information, determine second location information that is the same as the first location information, and may further locate the terminal according to the determined second location information and/or the first location information.
The server positions the terminal according to the determined second position information and/or the determined first position information, which may have different situations.
After the server determines second position information which is the same as the first position information, the server can determine that the first position information or the position corresponding to the second position information is the current position of the terminal, and then the terminal can be positioned directly according to the first position information or the second position information.
Because there are multiple preset positioning modes, there may be multiple position information obtained by different preset positioning modes, and correspondingly, there may be multiple first position information determined by the server. In this case, after the server determines each piece of second location information, the server may further determine, for each piece of first location information, the number of pieces of second location information that is the same as the number of pieces of first location information, and further select appropriate pieces of first location information and/or second location information based on the determined numbers to locate the terminal.
For example, assume that the server obtains three different pieces of location information through three preset location manners, i.e., GPS, base station location, and WiFi location, and takes the three different pieces of location information as A, B, C three different pieces of first location information. Meanwhile, the server determines four pieces of second position information through four different pieces of position representation information acquired from the terminal. By comparing each piece of first location information with each piece of second location information, it is found that there are 1 piece of second location information that is the same as the first location information a, 3 pieces of second location information that is the same as the first location information B, and no piece of second location information that is the same as the first location information C, and the server may determine the location corresponding to the first location information B (i.e., the number of the same second location information is the largest) as the location where the terminal is currently located.
If the server determines that the second position information which is the same as the first position information does not exist, the server can send a positioning inquiry to the terminal, and the terminal can display the positioning inquiry to the user, so that the user can input the actual position information of the user to the terminal according to the positioning inquiry and send the actual position information to the server through the terminal. The server can position the terminal according to the actual position information sent by the user, and pushes the service information related to the positioned position to the terminal for the user to check.
Meanwhile, the terminal can record the position information positioned in the preset positioning mode and the actual position information input by the user, and report the record to the server, so that the staff can adjust the preset positioning mode through the record received by the server, and the positioning accuracy of the preset positioning mode is improved.
In addition, after the server positions the terminal according to the first position information and/or the second position information, the server can send the obtained positioning result to the terminal for the user to check. If the positioning result sent by the user is not in accordance with the actual positioning result, the actual position information can be sent to the server through the terminal, so that the server can position the current position of the user according to the actual position information sent by the user.
It can be seen from the above method that, since the terminal can be located by the location characterizing information, such as the current Mobile device Country Code (MCC), the current time zone information, the service information of the user, etc., contained in the terminal, even if the conventional locating manners, such as GPS, base station location, WiFi location, etc., fail, the current location of the terminal can still be effectively located, thereby bringing great convenience to the user using the terminal.
Based on the same idea, the positioning method provided for one or more embodiments of the present specification further provides a corresponding positioning device, as shown in fig. 4 and 5.
Fig. 4 is a schematic diagram of a positioning apparatus provided in this specification, which specifically includes:
the obtaining module 401 obtains location characterizing information of a terminal, where the location characterizing information includes: at least one of a country code MCC of the mobile equipment currently contained by the terminal, current time zone information contained by the terminal and service information of a user contained by the terminal;
the query module 402 is configured to query the location information corresponding to the location characterization information;
and a positioning module 403, configured to position the terminal according to the location information.
The query module 402, configured to query, when the location attribute information is service information of a user, an address of a service object included in the service information and having performed a service within a preset time period by the user;
the positioning module 403 positions the terminal according to the address of the service object.
The obtaining module 401 obtains the location characterizing information of the terminal when it is monitored that the terminal is not successfully located through a preset locating mode, where the preset locating mode includes: at least one of a Global Positioning System (GPS), a base station location, and a wireless fidelity (WiFi) location.
The obtaining module 401 sends a positioning notification to the terminal, where the positioning notification is used to notify a user to invoke an application APP specified in the terminal; and acquiring the position representation information of the terminal through the called APP.
The positioning module 403, when it is monitored that the terminal is successfully positioned in a preset positioning manner, takes the position information of the terminal determined in the preset positioning manner as first position information; the preset positioning mode comprises the following steps: at least one of a Global Positioning System (GPS), base station positioning and wireless fidelity (WiFi) positioning;
the positioning module 403, using the location information of the terminal determined by the location certificate information as second location information; and determining second position information which is the same as the first position information from the second position information, and positioning the terminal according to the determined second position information and/or the first position information.
The positioning module 403, if there is no second location information that is the same as the first location information, sends a positioning query to the terminal, so as to obtain, through the positioning query, actual location information sent by the user through the terminal; and positioning the terminal according to the actual position information.
The pushing module 404 is configured to push service information related to the current location of the terminal to the terminal according to the located current location of the terminal.
Fig. 5 is a schematic diagram of a positioning apparatus provided in the present specification, which specifically includes:
an obtaining module 501, configured to obtain location attribute information of a terminal from the terminal, where the location attribute information includes: at least one of a country code MCC of the mobile equipment currently contained by the terminal, current time zone information contained by the terminal and service information of a user contained by the terminal;
the sending module 502 sends the location characterizing information to a server through the terminal, so that the server locates the terminal by querying the location information corresponding to the location characterizing information.
Based on the above-described positioning method, the present specification further provides a server for positioning, as shown in fig. 6. The server includes one or more memories and a processor, the memories storing programs and configured to perform the following steps by the one or more processors:
acquiring position representation information of a terminal, wherein the position representation information comprises: at least one of a country code MCC of the mobile equipment currently contained by the terminal, current time zone information contained by the terminal and service information of a user contained by the terminal;
inquiring position information corresponding to the position representation information;
and positioning the terminal according to the position information.
In one or more embodiments of the present description, the server may query location information corresponding to location characterizing information by obtaining the location characterizing information of the terminal, and then locate the terminal based on the location information. Because the terminal can be located by the current Mobile device Country Code (MCC), the current time zone information, the user service information and other location representation information contained in the terminal, even if the conventional location modes such as GPS, base station location, WiFi location and the like fail, the current location of the terminal can still be effectively located, thereby bringing great convenience to the user using the terminal.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing an integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as ABEL (Advanced Boolean Expression Language), AHDL (alternate Hardware Description Language), traffic, CUPL (core universal Programming Language), HDCal, jhddl (Java Hardware Description Language), Lava, Lola, HDL, PALASM, rhyd (Hardware Description Language), and the like, which are currently used in the field-Hardware Language. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the various elements may be implemented in the same one or more software and/or hardware implementations of the present description.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to one or more embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The above description is merely one or more embodiments of the present disclosure and is not intended to limit the present disclosure. Various modifications and alterations to one or more embodiments of the present description will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of one or more embodiments of the present specification should be included in the scope of the claims of the present specification.