WO2020042810A1 - Method and device for positioning internet transaction, and server - Google Patents

Method and device for positioning internet transaction, and server Download PDF

Info

Publication number
WO2020042810A1
WO2020042810A1 PCT/CN2019/096469 CN2019096469W WO2020042810A1 WO 2020042810 A1 WO2020042810 A1 WO 2020042810A1 CN 2019096469 W CN2019096469 W CN 2019096469W WO 2020042810 A1 WO2020042810 A1 WO 2020042810A1
Authority
WO
WIPO (PCT)
Prior art keywords
transaction
terminal
address
internet
address segment
Prior art date
Application number
PCT/CN2019/096469
Other languages
French (fr)
Chinese (zh)
Inventor
徐俊虎
刘苏苏
周庆岳
Original Assignee
阿里巴巴集团控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2020042810A1 publication Critical patent/WO2020042810A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Definitions

  • the embodiments of the present specification relate to the field of Internet technologies, and in particular, to a method, device, and server for positioning Internet transactions.
  • Internet transactions are transactions that occur between information-based enterprises, between enterprises and individuals, and between individuals and individuals through network communications. With the rapid development of information technology and network technology, Internet transactions have brought convenience and speed to people's lives. At the same time, there are also higher potential risks. Performing a risk assessment of Internet transactions can guide risk management and control based on the results of the risk assessment. The area where transactions are conducted is an important reference factor for the risk assessment of Internet transactions. Accurately positioning the areas where transactions are conducted can significantly improve the risk management and control capabilities of Internet transactions.
  • the embodiments of the present specification provide a method, device and server for positioning Internet transactions.
  • an embodiment of the present specification provides an Internet transaction positioning method, including:
  • the stable IP address segment is an IP address segment distributed in a fixed area determined according to multiple first Internet transactions within a first preset historical time period
  • the stable IP address segment is an address segment corresponding to the first M bits of the IP address of the transaction terminal involved in the plurality of first Internet transactions, where M is a positive integer
  • a fixed area in which the stable IP address segment is distributed is determined as a transaction area where the to-be-positioned transaction is performed.
  • an Internet transaction positioning device including:
  • a positioning information extraction module configured to extract an IP address of a terminal to be located from transaction information of a transaction to be located, where the terminal to be located is a transaction terminal that performs the transaction to be located;
  • a first determining module configured to determine whether the IP address of the terminal to be located belongs to a stable IP address segment, where the stable IP address segment is a distribution determined according to multiple first Internet transactions within a first preset historical time period An IP address segment in a fixed area, and the stable IP address segment is an address segment corresponding to the first M bits of the IP address of the transaction terminal involved in the plurality of first Internet transactions, where M is a positive integer;
  • a first determining module is configured to determine, when the IP address of the terminal to be located belongs to the stable IP address segment, a fixed area where the stable IP address segment is distributed as a transaction area where the to-be-positioned transaction is performed.
  • an embodiment of the present specification provides a server including a memory, a processor, and a computer program stored in the memory and executable on the processor.
  • the processor executes the program, the method for positioning the Internet transaction described above is implemented. step.
  • an embodiment of the present specification provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the foregoing Internet transaction positioning method are implemented.
  • the stable IP address segment is distributed.
  • the fixed area is determined as a transaction area where the to-be-positioned transaction is performed. Since the stable IP address segment is an IP address segment distributed in the fixed area determined according to multiple first Internet transactions within a first preset historical time period, the transaction area where the first Internet transaction is performed is generally based on Obtain satellite positioning signals, store information for transactions, or base station information connected to transaction terminals. When a certain IP address distribution area changes dynamically relative to the initial allocation, the dynamic change occurs through satellite positioning signals, store information or transactions for transactions.
  • the base station information and the like connected to the terminal can be reflected in the multiple first Internet transactions. Therefore, the IP address distribution determined according to the multiple first Internet transactions is more accurate than the initial allocation, and the stable IP address segment is distributed.
  • the fixed area determined as the transaction area where the transaction to be located is more accurate, and the accuracy of positioning the transaction to be located is improved.
  • the first preset historical time period is set to a historical time period corresponding to the time from the first preset historical time to the time when the transaction to be located is performed, that is, each time an Internet transaction is located Both update the first stable IP address segment and the fixed area where the first stable IP address segment is distributed, further improving the accuracy of positioning the transaction to be located.
  • FIG. 1 is a schematic diagram of an application scenario of an Internet transaction positioning method according to an embodiment of the present specification
  • FIG. 2 is a flowchart of an Internet transaction positioning method according to an embodiment of the present specification
  • FIG. 3 is a flowchart of determining a fixed area of a stable IP address segment distribution according to an embodiment of the present specification
  • FIG. 4 is a flowchart of obtaining a last transaction area of a terminal to be located according to an embodiment of the present specification
  • FIG. 5 is a schematic structural diagram of a server according to an embodiment of the present specification.
  • FIG. 1 is a schematic diagram of an application scenario of Internet transaction positioning according to an embodiment of the present specification.
  • the transaction terminal 100 is located on the user side and communicates with the server 200 on the network side.
  • the transaction processing client 101 in the transaction terminal 100 may be an APP or website that implements services based on the Internet, provides a transaction operation interface for users, and provides transaction information of Internet transactions to the network side for processing; the Internet in the server 200
  • the transaction positioning device 201 is configured to locate an Internet transaction involved in the transaction processing client 101.
  • the transaction terminal 100 may be a smart terminal such as a smart phone, a notebook computer, a tablet computer, and an all-in-one computer.
  • a smart terminal such as a smart phone, a notebook computer, a tablet computer, and an all-in-one computer.
  • the trading area of the Internet transaction can be obtained through satellite positioning signals received by the smart phone or tablet.
  • the embodiments of the present specification perform positioning for Internet transactions completed on a transaction terminal such as a notebook or an all-in-one without a positioning function, or on a transaction terminal such as a smart phone or a tablet that has a positioning function but the positioning function is turned off.
  • FIG. 2 is a flowchart of the Internet transaction positioning method, and the Internet transaction positioning method includes steps S201 to S203.
  • the terminal to be located is a transaction terminal that performs the transaction to be located.
  • the transaction terminal that conducts the Internet transaction will generate corresponding transaction information and provide the transaction information to the network side for processing.
  • the transaction information includes, but is not limited to, the time of the transaction, the amount of the transaction, Store information for transactions, the IP address of the transaction terminal, satellite positioning signals received by the transaction terminal, the identity of the transaction terminal, the base station information connected to the transaction terminal, and the WIFI information connected to the transaction terminal.
  • the corresponding transaction information is also different.
  • the corresponding transaction information does not include Satellite positioning signals received by transaction terminals;
  • the corresponding transaction information does not include the store information for the transaction;
  • the corresponding transaction information does not include the transaction WIFI information connected to the terminal;
  • the corresponding transaction information does not include the base station information connected to the transaction terminal.
  • the transaction information of each Internet transaction includes the IP address of the transaction terminal and the identity of the transaction terminal.
  • the IP address of the transaction terminal that performs the transaction to be located is extracted from the transaction information of the transaction to be located, and the transaction to be located is performed according to the IP address of the transaction terminal that is to be located. Positioning.
  • a transaction terminal that performs the transaction to be located is defined as the terminal to be located.
  • S202 Determine whether the IP address of the terminal to be located belongs to a stable IP address segment, where the stable IP address segment is an IP distributed in a fixed area determined according to multiple first Internet transactions within a first preset historical time period.
  • An address segment, and the stable IP address segment is an address segment corresponding to the first M bits of the IP address of the transaction terminal involved in the plurality of first Internet transactions, where M is a positive integer.
  • All IP addresses will be initially allocated according to administrative regions such as provinces, municipal cities, county cities or districts, and each province, municipal city, county city or district will be the area where each IP address is distributed. However, after the initial allocation of all IP addresses, the allocation scheme may not be strictly enforced due to various reasons, and there are dynamic changes in some IP address distribution areas. Therefore, the accuracy of the existing positioning results through GeoIP not tall.
  • a large number of Internet transactions have occurred before the transaction to be located.
  • Most of the transaction information of the Internet transactions that have occurred include the store information of the transaction, the satellite positioning signals received by the transaction terminal, the base station information connected to the transaction terminal, or the transaction terminal. Positioning information such as connected WIFI information that can be accurately located.
  • the IP address distribution obtained based on these positioning information is more accurate than positioning through GeoIP. Therefore, the embodiment of the present specification determines the stable IP address segment and the fixed area where the stable IP address segment is distributed according to the multiple first Internet transactions.
  • FIG. 3 is a flowchart of determining a fixed area of the stable IP address segment distribution according to an embodiment of the present specification.
  • the determining of the fixed area of the stable IP address segment distribution includes steps S301 to S305.
  • the first preset historical time period can be divided as follows: since the time attribute is a continuous value, time can be discretized, that is, the time is segmented. For example, the first preset historical time period is segmented according to natural days. Is a certain day or a certain day; if segmented according to the natural month, the first preset historical time period is a certain month or a certain number of months. The longer the first preset historical time period is set, the larger the total amount of the first Internet transaction extracted, and the more accurately the fixed area of the stable IP address segment distribution determined according to the multiple first Internet transactions is. However, the data processing speed becomes slower accordingly, and the length of the first preset historical time period may be specifically set according to actual requirements.
  • the first preset historical time period is a historical time period corresponding to the first preset historical time and the time when the transaction to be located is performed, and the first preset historical time is Any time before the time when the transaction to be located is performed.
  • the plurality of first Internet transactions obtained are latest That is, the fixed area of the stable IP address segment distribution is determined according to the latest Internet transaction that has occurred. It is equivalent to update the fixed area of the first stable IP address segment distribution each time an Internet transaction is located, so that the IP address distribution can be updated in real time, which further improves the accuracy of positioning the transaction to be located.
  • the selection of the first Internet transaction may be the Internet where the transaction information includes the store information of the transaction, the satellite positioning signal received by the transaction terminal, the base station information connected by the transaction terminal, or the WIFI information connected by the transaction terminal, which can perform accurate positioning. transaction.
  • the transaction information of the first Internet transaction extracted in the embodiments of this specification includes the IP address of the transaction terminal that conducted the first Internet transaction and the first Internet transaction Satellite positioning signals received by transaction terminals for Internet transactions.
  • the satellite positioning signal may be a GPS signal, a GLONASS signal, a GALILEO signal, or a Beidou satellite signal.
  • the transaction information of the first Internet transaction may further include a transaction time and a positioning time, and the absolute value of the difference between the transaction time and the positioning time is less than a preset time difference
  • the transaction time is a time when the first Internet transaction is performed
  • the positioning time is a time when a transaction terminal that performs the first Internet transaction receives a satellite positioning signal.
  • the transaction area where each of the first Internet transactions is performed will be obtained.
  • the transaction area of each first Internet transaction is described as the only area in which the IP addresses of the transaction terminals performing each first Internet transaction are distributed.
  • the IP address segment to be determined is An address segment corresponding to the first M bits of the IP address of the transaction terminal of each first Internet transaction.
  • the value of M can be set according to factors such as the administrative level of the area to be positioned, the accuracy of the positioning, and the coverage of the positioning.
  • the embodiment of the present specification takes as an example the positioning of the city-level city of the transaction to be located. When the value of M is 24, the positioning accuracy and coverage obtained are relatively high.
  • the value of M may be smaller; if a county-level urban area to which the transaction to be located is located is lower, etc. Level administrative area, the value of M can be larger.
  • the first M bits of the IP address of the transaction terminal for each first Internet transaction are obtained, and the same first M bits correspond to an IP address segment to be determined. According to the unique area of the IP address distribution of the transaction terminal performing each first Internet transaction, each area of each IP address segment distribution to be determined and the proportion of each area are calculated.
  • the IP addresses of the transaction terminals corresponding to the five first Internet transactions are 223.85.221.198, 223.85.221.101, 223.85.221.20, 223.85.221.30, and 182.132.23.97.
  • the only areas where the aforementioned five IP addresses are distributed are Chengdu, Chengdu, Chengdu, Mianyang, and Deyang.
  • the IP address segment to be determined is 223.85 .221 and the IP address segment to be determined is 182.132.23.
  • the IP address segment to be judged 223.85.221 is distributed in Chengdu and Mianyang, and Chengdu accounts for 75% and Mianyang City accounts for 25%; the IP address segment to be judged 182.132.23 is distributed in Deyang, And Deyang City accounts for 100%.
  • S304 Determine whether the highest proportion of the proportions of the regions corresponding to the IP address segment to be judged is greater than the first preset percentage.
  • the highest proportion of the proportion of each region is compared with the first preset percentage. If an IP address segment to be judged does not change after the initial allocation, ideally there is only one distribution area, and the corresponding maximum ratio is 100%.
  • the IP address of the transaction terminal that conducts the first Internet transaction may be a roaming IP address or a proxy IP address, etc., in the embodiment of this specification, when the maximum ratio is greater than the first preset percentage , Determining the IP address segment to be determined as the stable IP address segment.
  • the first preset percentage may be set according to actual conditions such as a data collection error, a roaming IP address, or a proxy IP address, which is not limited in the embodiments of this specification.
  • step S305 is executed to determine that the IP address segment to be determined is the stable IP address segment, and the area corresponding to the highest percentage is determined to be the A fixed area where stable IP address segments are distributed.
  • the highest proportion 75% corresponding to the IP address segment 223.85.221 to be determined is greater than the first preset percentage 70%, so the IP address segment to be determined 223.85.221 is the stable IP address segment, and the region corresponding to the highest proportion of 75% is Chengdu, which is a fixed area where the stable IP address segment 223.85.221 is distributed; the IP address segment to be determined corresponds to 182.132.23.
  • the highest percentage is 100% greater than the first preset percentage of 70%, so the IP address segment to be determined 182.132.23 is the stable IP address segment, and the area corresponding to the highest percentage 100% is Deyang.
  • the IP address of the terminal to be located is compared with each stable IP address segment to determine whether the IP address of the terminal to be located belongs to a stable IP address segment, that is, the pending Whether the first M bits of the IP address of the bit terminal are the same as the stable IP address segment. Still taking the aforementioned stable IP address segment 223.85.221 and the stable IP address segment 182.132.23 as examples, if the IP address of the terminal to be located is 223.85.221.35, the IP address of the terminal to be located is 223.85. 221.35 belongs to the stable IP address segment 223.85.221.
  • step S203 is executed to determine a fixed area where the stable IP address segment is distributed as a transaction area where the to-be-positioned transaction is performed.
  • the stable IP address segment is distributed in the fixed area, which indicates that all IP addresses included in the stable IP address segment are distributed in the fixed area. Therefore, if the IP address of the terminal to be located belongs to the stable IP address segment, the IP address of the terminal to be located is also distributed in the fixed area, that is, the fixed area is a transaction for performing the transaction to be located. region.
  • the stable IP address segment is an IP address segment distributed in the fixed area determined according to the multiple first Internet transactions
  • the transaction area where the first Internet transaction is performed is usually based on satellites. Positioning signals, store information for transactions, or base station information connected to transaction terminals are obtained.
  • the area of an IP address distribution dynamically changes relative to the initial allocation, the dynamic change is through satellite positioning signals, store information for transactions, or transaction terminals.
  • the information of the connected base stations can be reflected in the multiple first Internet transactions. Therefore, the IP address distribution determined according to the multiple first Internet transactions is more accurate than the initial allocation.
  • the fixed area is determined as the transaction area where the transaction to be located is more accurate, and the accuracy of positioning the transaction to be located is improved.
  • the transaction information of Internet transactions includes, but is not limited to, the time of the transaction, the amount of the transaction, the store information of the transaction, the IP address of the transaction terminal, the satellite positioning signal received by the transaction terminal, the identity of the transaction terminal, Information about the base station connected to the transaction terminal and WIFI information connected to the transaction terminal, etc., the information of the store where the transaction is performed, the IP address of the transaction terminal, the satellite positioning signal received by the transaction terminal, the identity of the transaction terminal, The base station information connected to the transaction terminal and the WIFI information connected to the transaction terminal are positioning information that can be located.
  • the to-be-positioned transaction may also be combined with the information of the store where the transaction is performed, the satellite positioning signal received by the The identity of the transaction terminal, the base station information connected to the transaction terminal, and the WIFI information connected to the transaction terminal locate the transaction to be located.
  • the Internet transaction positioning method provided by the embodiment of the present specification further includes steps S204 and S205.
  • S204 Determine, according to a preset priority order of various types of positioning information, whether there is positioning information in the transaction information of the to-be-positioned transaction that has a higher priority than the IP address of the terminal to be located.
  • the positioning information includes at least one of information about the store where the transaction is performed, the IP address of the transaction terminal, the satellite positioning signal received by the transaction terminal, the identity of the transaction terminal, the base station information connected to the transaction terminal, and the WIFI information connected to the transaction terminal.
  • the priority order of the various types of positioning information is set. For example, if the accuracy of locating using the information of the transaction store is higher than the accuracy of locating using the IP address of the transaction terminal, set the priority of the information of the transaction store to be higher than the IP address of the transaction terminal; The accuracy of locating the store information combined with the base station information connected to the transaction terminal is higher than the location accuracy of the store information used for the transaction.
  • the priority of the store information combined with the base station information connected with the transaction terminal is set to Higher than the information of the store where the transaction took place.
  • step S201 is executed to extract the terminal-to-be-positioned from the transaction information of the to-be-positioned transaction. IP address; otherwise, execute step S205, extract the highest priority positioning information from the transaction information of the transaction to be positioned, and determine the transaction area where the transaction to be positioned is performed according to the highest priority positioning information.
  • Positioning the to-be-positioned transaction according to the IP address of the transaction terminal of the to-be-positioned transaction refer to the foregoing steps S201 to S203, and determine the transaction area where the to-be-positioned transaction is performed according to the highest priority positioning information, depending on the priority Depending on the highest level of positioning information.
  • the positioning information with the highest priority is information of a store where a transaction is performed, determining the location of the store where the transaction to be located is a transaction area where the transaction to be located is performed; If the positioning information is information of the base station connected to the transaction terminal, the position of the base station connected to the transaction terminal that performs the transaction to be located is determined as the transaction area where the transaction to be located is performed; if the positioning information with the highest priority is a transaction
  • the WIFI information connected to the terminal determines the WIFI position connected to the transaction terminal that performs the transaction to be located as the transaction area where the transaction to be located is performed.
  • the IP address of the terminal to be located may not belong to any stable IP address segment.
  • the embodiments of the present specification locate the transaction to be located in combination with the last transaction area of the terminal to be located.
  • the Internet transaction positioning method provided by the embodiment of the present specification further includes steps S206 to S208.
  • step S206 is performed to determine whether the IP address of the terminal to be located belongs to an unstable IP address segment, where the unstable IP address segment is The IP address segments distributed in more than two areas determined according to the multiple first Internet transactions, and the unstable IP address segments correspond to the first M bits of the IP addresses of the transaction terminals involved in the multiple first Internet transactions Address segment.
  • step S306 is performed to determine that the IP address segment to be determined is the unstable IP address.
  • An address segment and determine an area that satisfies a preset condition among the regions of the distribution of the IP address segments to be determined as two or more regions of the unstable IP address segment distribution.
  • the preset condition includes that the proportion is higher than the second preset percentage and / or the area corresponding to the highest proportion belongs to the same higher administrative area, and the second preset percentage is smaller than the first preset percentage. Taking the first preset percentage as 90% as an example, the highest percentage 75% corresponding to the IP address segment 223.85.221 is less than the first preset percentage 90%, so the IP address segment to be determined 223.85.221 is the unstable IP address segment. If the preset condition includes a proportion higher than the second preset percentage and the area corresponding to the highest percentage belongs to the same higher administrative area, the second preset percentage is 20%, because Chengdu's proportion It is 75% and Mianyang City is 25%, both of which are higher than the second preset percentage. Chengdu and Mianyang both belong to Sichuan province. Therefore, Chengdu and Mianyang are determined as the unstable IP address segment 223.85. .221 area of distribution.
  • the IP address of the terminal to be located is compared with each unstable IP address segment to determine whether the IP address of the terminal to be located belongs to an unstable IP address segment, that is, to determine Whether the first M bits of the IP address of the terminal to be located are the same as the unstable IP address segment. Still using the aforementioned unstable IP address segment 223.85.221 as an example, if the IP address of the terminal to be located is 223.85.221.35, the IP address of the terminal to be located 223.85.221.35 belongs to the unstable IP address segment 223.85. 221.
  • step S207 is executed to determine whether two or more areas distributed by the unstable IP address segment include the last transaction area of the terminal to be located.
  • FIG. 4 is a flowchart of obtaining a last transaction area of the terminal to be located according to an embodiment of the present specification.
  • the obtaining the last transaction area of the terminal to be located includes steps S401 to S404.
  • the transaction information of the second Internet transaction includes an identity of a transaction terminal performing the second Internet transaction, a satellite positioning signal received by the transaction terminal performing the second Internet transaction, and performing the first Second Internet transaction time.
  • the second preset historical time is any time before the time when the transaction to be located is performed, and the length of the second preset historical time period can be set according to actual needs, as long as a sufficient number of the extracted Second internet transaction.
  • the second Internet transaction may also include transaction store information, satellite positioning signals received by the transaction terminal, base station information connected by the transaction terminal, or WIFI information connected by the transaction terminal, etc. Internet transactions that allow accurate positioning of positioning information.
  • the transaction information of the second Internet transaction extracted in the embodiments of this specification includes the identity of the transaction terminal that conducted the second Internet transaction, and the second Internet transaction. The satellite positioning signal received by the transaction terminal of the Internet transaction and the time when the second Internet transaction is performed.
  • S402. Determine each of the second terminal based on the identity of the transaction terminal that performed each second Internet transaction, the time when each second Internet transaction was performed, and the satellite positioning signal received by the transaction terminal that performed each second Internet transaction. The last transaction area of the transaction terminal corresponding to the identity.
  • the transaction area where each second Internet transaction is performed will be obtained.
  • the transaction area of each second Internet transaction is described as the only area in which the IP addresses of the transaction terminals performing each second Internet transaction are distributed.
  • the final transaction area of each transaction terminal involved in the plurality of second Internet transactions is obtained by combining the identity of the transaction terminal performing each of the second Internet transactions and the time of performing each second Internet transaction. That is, the last transaction area corresponding to each identity involved in the multiple second Internet transactions.
  • the identity of the terminal to be located is a credential that can prove the identity of the terminal to be located.
  • the IP address 223.85.221.35 of the terminal to be located is determined whether the area where the unstable IP address segment 223.85.221 is distributed includes the last of the terminal to be located.
  • the transaction area that is, the last transaction area of the terminal to be located is compared with the area of the unstable IP address segment 223.85.221.
  • step S208 is executed to determine the last transaction area of the terminal to be located as a transaction for performing the transaction to be located region.
  • Taking the IP address of the terminal to be located 223.85.221.35 belongs to the unstable IP address segment 223.85.221 as an example, if the last transaction area of the terminal to be located is Chengdu, because the unstable IP address segment 223.85.
  • the area of 221 distribution is Chengdu City and Mianyang City, including Chengdu, the last trading area of the terminal to be located. Therefore, Chengdu, the last trading area of the terminal to be located, is determined as the trading area where the to-be-located transaction is performed.
  • the last transaction area of the terminal to be located is determined according to the identity of the terminal to be located, and the two or more areas distributed in the unstable IP address segment include the to be located
  • the last transaction area of the terminal to be located is determined as the transaction area where the to-be-positioned transaction is performed, supplementing the situation where the stable IP address segment cannot be located, greatly improving the Accuracy and coverage of positioning transactions.
  • the Internet transaction positioning method provided by the embodiment of the present specification further includes step S209.
  • step S209 is executed to allocate the highest proportion of the two or more areas of the unstable IP address segment distribution.
  • the area is determined as a transaction area where the transaction to be located is performed.
  • Taking the IP address of the terminal to be located 223.85.221.35 belongs to the unstable IP address segment 223.85.221 as an example, if the last transaction area of the terminal to be located is Nanchong City, because the unstable IP address segment 223.85.
  • the 221 distribution area is Chengdu and Mianyang, excluding Nanchong, the last trading area of the terminal to be located. Therefore, the unstable IP address segment 223.85.221 is distributed in Chengdu and Mianyang, which have the highest proportion.
  • the city is determined as the transaction area where the transaction to be located is performed.
  • an Internet transaction positioning device including:
  • a positioning information extraction module configured to extract an IP address of a terminal to be located from transaction information of a transaction to be located, where the terminal to be located is a transaction terminal that performs the transaction to be located;
  • a first determining module configured to determine whether the IP address of the terminal to be located belongs to a stable IP address segment, where the stable IP address segment is a distribution determined according to multiple first Internet transactions within a first preset historical time period An IP address segment in a fixed area, and the stable IP address segment is an address segment corresponding to the first M bits of the IP address of the transaction terminal involved in the plurality of first Internet transactions, where M is a positive integer;
  • a first determining module is configured to determine, when the IP address of the terminal to be located belongs to the stable IP address segment, a fixed area where the stable IP address segment is distributed as a transaction area where the to-be-positioned transaction is performed.
  • the internet transaction positioning device further includes:
  • a second determination module configured to determine, according to a preset priority order of various types of positioning information, whether there is positioning information in the transaction information of the transaction to be located having a priority higher than the IP address of the terminal to be located;
  • the positioning information extraction module is configured to extract the transaction information of the to-be-positioned transaction information when the positioning information of the to-be-positioned transaction does not have positioning information with a priority higher than the IP address of the terminal to be located.
  • the IP address of the terminal to be located otherwise, the highest priority positioning information is extracted from the transaction information of the to-be-positioned transaction, and the transaction area where the to-be-positioned transaction is performed is determined according to the highest-priority positioning information.
  • the internet transaction positioning device further includes:
  • a first transaction extraction module configured to extract the multiple-to-first Internet transaction from all Internet transactions in the first preset historical time period, and the transaction information of the first Internet transaction includes performing the first Internet transaction The IP address of the transaction terminal of the transaction and the satellite positioning signal received by the transaction terminal of the first Internet transaction;
  • An address distribution obtaining module configured to obtain a unique area of the IP address distribution of the transaction terminal performing each first Internet transaction according to the satellite positioning signal received by the transaction terminal performing each first Internet transaction;
  • the address segment distribution obtaining module is configured to obtain each region of each IP address segment distribution to be determined and the proportion of each region according to the unique region of the IP address distribution of the transaction terminal performing each first Internet transaction. Determine that the IP address segment is an address segment corresponding to the first M bits of the IP address of the transaction terminal that conducts each first Internet transaction;
  • a third determining module configured to determine whether the highest proportion of the proportions of the regions corresponding to the IP address segment to be judged is greater than a first preset percentage
  • a second determining module configured to determine that the IP address segment to be determined is the stable IP address segment when the highest proportion is greater than the first preset percentage, and determine an area corresponding to the highest proportion A fixed area distributed for the stable IP address segment.
  • the internet transaction positioning device further includes:
  • a fourth determining module is configured to determine whether the IP address of the terminal to be located belongs to an unstable IP address segment when the IP address of the terminal to be located does not belong to the stable IP address segment, and the unstable IP
  • the address segment is an IP address segment distributed in more than two areas determined according to the multiple first Internet transactions, and the unstable IP address segment is in front of the IP addresses of the transaction terminals involved in the multiple first Internet transactions M bit corresponding address segment;
  • a fifth judgment module is configured to determine whether the two or more regions of the unstable IP address segment distribution include the last of the terminal to be located when the IP address of the terminal to be located belongs to the one unstable IP address segment.
  • a third determining module configured to determine the last transaction area of the terminal to be located when the two or more areas of the unstable IP address segment distribution include the last transaction area of the terminal to be located The transaction area of the transaction.
  • the internet transaction positioning device further includes:
  • a fourth determining module configured to determine that the IP address segment to be determined is the unstable IP address segment when the maximum ratio is not greater than the first preset percentage, and to use the IP address segment to be determined
  • the areas satisfying the preset conditions in each area of the distribution are determined as two or more areas of the unstable IP address segment distribution.
  • the positioning information extraction module is further configured to extract the identity of the terminal to be located from the transaction information of the transaction to be located.
  • the Internet transaction positioning device further includes:
  • a second transaction extraction module configured to extract multiple second Internet transactions from all Internet transactions within a second preset historical time period, where the second preset historical time period is from the second preset historical time to the The historical time period corresponding to the time of the transaction to be located, the transaction information of the second Internet transaction includes the identity of the transaction terminal performing the second Internet transaction, and satellite positioning received by the transaction terminal performing the second Internet transaction. The signal and the time when the second Internet transaction is performed;
  • a fifth determination module configured to determine the satellite positioning received by the transaction terminal that performed each second Internet transaction according to the identity of the transaction terminal that performed each second Internet transaction, the time when each second Internet transaction was performed, and Signal to determine the last transaction area of the transaction terminal corresponding to each identity;
  • a sixth determining module is configured to determine a last transaction area of the terminal to be located according to the identity of the terminal to be located and a last transaction area of the transaction terminal corresponding to each identity.
  • the internet transaction positioning device further includes:
  • a seventh determining module configured to: when the two or more areas of the unstable IP address segment distribution do not include the last transaction area of the terminal to be located, occupy the two or more areas of the unstable IP address segment distribution The region with the highest ratio is determined as the transaction region where the to-be-positioned transaction is performed.
  • the present invention also provides a server, as shown in FIG. 5, including a memory 504, a processor 502, and stored in the memory 504 and can be processed.
  • a server as shown in FIG. 5, including a memory 504, a processor 502, and stored in the memory 504 and can be processed.
  • a computer program running on the processor 502, and when the processor 502 executes the program, the steps of the foregoing Internet transaction positioning method are implemented.
  • the bus architecture (represented by the bus 500).
  • the bus 500 may include any number of interconnected buses and bridges.
  • the bus 500 will include one or more processors represented by the processor 502 and memory 504.
  • the various circuits of the memory are linked together.
  • the bus 500 can also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art, and therefore, they are not described further herein.
  • the bus interface 505 provides an interface between the bus 500 and the receiver 501 and the transmitter 503.
  • the receiver 501 and the transmitter 503 may be the same element, that is, a transceiver, providing a unit for communicating with various other devices on a transmission medium.
  • the processor 502 is responsible for managing the bus 500 and general processing, and the memory 504 may be used to store data used by the processor 502 when performing operations.
  • the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the aforementioned Internet transaction positioning. A step of.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to work in a particular manner such that the instructions stored in the computer-readable memory produce a manufactured article including the instruction device, the instructions
  • the device implements the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing device, so that a series of steps can be performed on the computer or other programmable device to produce a computer-implemented process, which can be executed on the computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Signal Processing (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Medical Informatics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

Embodiments of the present description provide a method for positioning an Internet transaction, comprising: determining whether an IP address of a terminal to be positioned is in a stable IP address section; and when the IP address of said terminal is in the stable IP address section, determining the fixed region where the stable IP address section is distributed as a transaction region where the transaction to be positioned is made. The stable IP address section is an IP address section which is distributed in the fixed region and is determined according to multiple first Internet transactions within a first preset historical period of time. Therefore, the IP address distribution determined according to the multiple first Internet transactions is more accurate than the original allocation, thereby improving the accuracy of positioning the transaction to be positioned.

Description

互联网交易定位方法、装置及服务器Internet transaction positioning method, device and server 技术领域Technical field
本说明书实施例涉及互联网技术领域,尤其涉及一种互联网交易定位方法、装置及服务器。The embodiments of the present specification relate to the field of Internet technologies, and in particular, to a method, device, and server for positioning Internet transactions.
背景技术Background technique
互联网交易是发生在信息网络中企业与企业之间、企业与个人之间以及个人与个人之间,通过网络通信手段缔结的交易。随着信息技术和网络技术的迅猛发展,互联网交易给人们生活带来方便和快捷的同时,也存在着较高的潜在风险。对互联网交易进行风险评估,可以根据风险评估结果引导风险管控。进行交易的区域是对互联网交易进行风险评估的一个重要参考因素,准确地定位进行交易的区域能够显著提升对互联网交易的风险管控能力。Internet transactions are transactions that occur between information-based enterprises, between enterprises and individuals, and between individuals and individuals through network communications. With the rapid development of information technology and network technology, Internet transactions have brought convenience and speed to people's lives. At the same time, there are also higher potential risks. Performing a risk assessment of Internet transactions can guide risk management and control based on the results of the risk assessment. The area where transactions are conducted is an important reference factor for the risk assessment of Internet transactions. Accurately positioning the areas where transactions are conducted can significantly improve the risk management and control capabilities of Internet transactions.
发明内容Summary of the Invention
本说明书实施例提供及一种互联网交易定位方法、装置及服务器。The embodiments of the present specification provide a method, device and server for positioning Internet transactions.
第一方面,本说明书实施例提供一种互联网交易定位方法,包括:In a first aspect, an embodiment of the present specification provides an Internet transaction positioning method, including:
从待定位交易的交易信息中提取待定位终端的IP地址,所述待定位终端为进行所述待定位交易的交易终端;Extracting the IP address of the terminal to be located from the transaction information of the transaction to be located, where the terminal to be located is a transaction terminal that performs the transaction to be located;
判断所述待定位终端的IP地址是否属于一稳定IP地址段,所述稳定IP地址段为根据第一预设历史时间段内的多笔第一互联网交易确定的分布在固定区域的IP地址段,且所述稳定IP地址段为所述多笔第一互联网交易涉及的交易终端的IP地址前M位对应的地址段,M为正整数;Determine whether the IP address of the terminal to be located belongs to a stable IP address segment, and the stable IP address segment is an IP address segment distributed in a fixed area determined according to multiple first Internet transactions within a first preset historical time period And the stable IP address segment is an address segment corresponding to the first M bits of the IP address of the transaction terminal involved in the plurality of first Internet transactions, where M is a positive integer;
若所述待定位终端的IP地址属于所述一稳定IP地址段,则将所述稳定IP地址段分布的固定区域确定为进行所述待定位交易的交易区域。If the IP address of the terminal to be located belongs to the stable IP address segment, a fixed area in which the stable IP address segment is distributed is determined as a transaction area where the to-be-positioned transaction is performed.
第二方面,本说明书实施例提供一种互联网交易定位装置,包括:In a second aspect, an embodiment of the present specification provides an Internet transaction positioning device, including:
定位信息提取模块,用于从待定位交易的交易信息中提取待定位终端的IP地址,所述待定位终端为进行所述待定位交易的交易终端;A positioning information extraction module, configured to extract an IP address of a terminal to be located from transaction information of a transaction to be located, where the terminal to be located is a transaction terminal that performs the transaction to be located;
第一判断模块,用于判断所述待定位终端的IP地址是否属于一稳定IP地址段,所述稳定IP地址段为根据第一预设历史时间段内的多笔第一互联网交易确定的分布在固定区域的IP地址段,且所述稳定IP地址段为所述多笔第一互联网交易涉及的交易终端的IP地址前M位对应的地址段,M为正整数;A first determining module, configured to determine whether the IP address of the terminal to be located belongs to a stable IP address segment, where the stable IP address segment is a distribution determined according to multiple first Internet transactions within a first preset historical time period An IP address segment in a fixed area, and the stable IP address segment is an address segment corresponding to the first M bits of the IP address of the transaction terminal involved in the plurality of first Internet transactions, where M is a positive integer;
第一确定模块,用于在所述待定位终端的IP地址属于所述一稳定IP地址段时,将所述稳定IP地址段分布的固定区域确定为进行所述待定位交易的交易区域。A first determining module is configured to determine, when the IP address of the terminal to be located belongs to the stable IP address segment, a fixed area where the stable IP address segment is distributed as a transaction area where the to-be-positioned transaction is performed.
第三方面,本说明书实施例提供一种服务器,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述互联网交易定位方法的步骤。According to a third aspect, an embodiment of the present specification provides a server including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method for positioning the Internet transaction described above is implemented. step.
第四方面,本说明书实施例提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述互联网交易定位方法的步骤。In a fourth aspect, an embodiment of the present specification provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the foregoing Internet transaction positioning method are implemented.
本说明书实施例有益效果如下:The beneficial effects of the embodiments of this specification are as follows:
本说明书实施例中,通过判断待定位终端的IP地址是否属于一稳定IP地址段,在所述待定位终端的IP地址属于所述一稳定IP地址段时,将所述稳定IP地址段分布的固定区域确定为进行所述待定位交易的交易区域。由于所述稳定IP地址段为根据第一预设历史时间段内的多笔第一互联网交易确定的分布在所述固定区域的IP地址段,进行所述第一互联网交易的交易区域通常是根据卫星定位信号、交易的门店信息或者交易终端连接的基站信息等获得,当某个IP地址分布的区域相对于初始分配发生了动态变化时,该动态变化通过卫星定位信号、交易的门店信息或者交易终端连接的基站信息等可以在所述多笔第一互联网交易中体现,因此根据所述多笔第一互联网交易确定的IP地址分布相对于初始分配更为准确,将所述稳定IP地址段分布的固定区域确定为进行所述待定位交易的交易区域更为准确,提高了对所述待定位交易进行定位的准确性。In the embodiment of the present specification, by determining whether the IP address of the terminal to be located belongs to a stable IP address segment, when the IP address of the terminal to be located belongs to the stable IP address segment, the stable IP address segment is distributed. The fixed area is determined as a transaction area where the to-be-positioned transaction is performed. Since the stable IP address segment is an IP address segment distributed in the fixed area determined according to multiple first Internet transactions within a first preset historical time period, the transaction area where the first Internet transaction is performed is generally based on Obtain satellite positioning signals, store information for transactions, or base station information connected to transaction terminals. When a certain IP address distribution area changes dynamically relative to the initial allocation, the dynamic change occurs through satellite positioning signals, store information or transactions for transactions. The base station information and the like connected to the terminal can be reflected in the multiple first Internet transactions. Therefore, the IP address distribution determined according to the multiple first Internet transactions is more accurate than the initial allocation, and the stable IP address segment is distributed. The fixed area determined as the transaction area where the transaction to be located is more accurate, and the accuracy of positioning the transaction to be located is improved.
在一个可选方式中,将所述第一预设历史时间段设置为从第一预设历史时间至进行所述待定位交易的时间对应的历史时间段,即每次对互联网交易进行定位时,都更新所述第一稳定IP地址段以及所述第一稳定IP地址段分布的固定区域,进一步提高对所述待定位交易进行定位的准确性。In an optional manner, the first preset historical time period is set to a historical time period corresponding to the time from the first preset historical time to the time when the transaction to be located is performed, that is, each time an Internet transaction is located Both update the first stable IP address segment and the fixed area where the first stable IP address segment is distributed, further improving the accuracy of positioning the transaction to be located.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本说明书实施例的互联网交易定位方法应用场景示意图;FIG. 1 is a schematic diagram of an application scenario of an Internet transaction positioning method according to an embodiment of the present specification; FIG.
图2为本说明书实施例的互联网交易定位方法的流程图;2 is a flowchart of an Internet transaction positioning method according to an embodiment of the present specification;
图3为本说明书实施例的确定稳定IP地址段分布的固定区域的流程图;FIG. 3 is a flowchart of determining a fixed area of a stable IP address segment distribution according to an embodiment of the present specification; FIG.
图4为本说明书实施例的获得待定位终端的最后交易区域的流程图;4 is a flowchart of obtaining a last transaction area of a terminal to be located according to an embodiment of the present specification;
图5为本说明书实施例的服务器的结构示意图。FIG. 5 is a schematic structural diagram of a server according to an embodiment of the present specification.
具体实施方式detailed description
为了更好地理解上述技术方案,下面通过附图以及具体实施例对本说明书实施例的技术方案做详细的说明,应当理解本说明书实施例以及实施例中的具体特征是对本说明书实施例技术方案的详细的说明,而不是对本说明书技术方案的限定,在不冲突的情况下,本说明书实施例以及实施例中的技术特征可以相互组合。In order to better understand the above technical solutions, the technical solutions of the embodiments of the present specification will be described in detail through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present specification and the specific features in the embodiments are the technical solutions of the embodiments of the present specification. The detailed description is not a limitation on the technical solutions of the present specification. In the case of no conflict, the embodiments of the present specification and the technical features in the embodiments can be combined with each other.
请参见图1,为本说明书实施例的互联网交易定位应用场景示意图。交易终端100位于用户侧,与网络侧的服务器200进行通信。所述交易终端100中的交易处理客户端101可以是基于互联网实现业务的APP或网站,为用户提供交易操作界面并将互联网交易的交易信息提供给网络侧进行处理;所述服务器200中的互联网交易定位装置201用于对所述交易处理客户端101中涉及的互联网交易进行定位。Please refer to FIG. 1, which is a schematic diagram of an application scenario of Internet transaction positioning according to an embodiment of the present specification. The transaction terminal 100 is located on the user side and communicates with the server 200 on the network side. The transaction processing client 101 in the transaction terminal 100 may be an APP or website that implements services based on the Internet, provides a transaction operation interface for users, and provides transaction information of Internet transactions to the network side for processing; the Internet in the server 200 The transaction positioning device 201 is configured to locate an Internet transaction involved in the transaction processing client 101.
所述交易终端100可以为智能手机、笔记本电脑、平板电脑以及一体机等智能终端。对于在智能手机或者平板电脑等具有定位功能且定位功能开启的交易终端上完成的互联网交易,通过智能手机或者平板电脑等接收的卫星定位信号可以获得互联网交易的交易区域。本说明书实施例针对在笔记本、一体机等不具有定位功能的交易终端,或者在智能手机、平板电脑等具有定位功能但定位功能关闭的交易终端上完成的互联网交易进行定位。The transaction terminal 100 may be a smart terminal such as a smart phone, a notebook computer, a tablet computer, and an all-in-one computer. For Internet transactions completed on a transaction terminal with a positioning function such as a smart phone or tablet and the positioning function is turned on, the trading area of the Internet transaction can be obtained through satellite positioning signals received by the smart phone or tablet. The embodiments of the present specification perform positioning for Internet transactions completed on a transaction terminal such as a notebook or an all-in-one without a positioning function, or on a transaction terminal such as a smart phone or a tablet that has a positioning function but the positioning function is turned off.
第一方面,本说明书实施例提供一种互联网交易定位方法。图2是所述互联网交易定位方法的流程图,所述互联网交易定位方法包括步骤S201-步骤S203。In a first aspect, an embodiment of the present specification provides a method for positioning an Internet transaction. FIG. 2 is a flowchart of the Internet transaction positioning method, and the Internet transaction positioning method includes steps S201 to S203.
S201,从待定位交易的交易信息中提取待定位终端的IP地址,所述待定位终端为进行所述待定位交易的交易终端。S201. Extract the IP address of the terminal to be located from the transaction information of the transaction to be located. The terminal to be located is a transaction terminal that performs the transaction to be located.
对于每笔互联网交易,进行互联网交易的交易终端会产生相应的交易信息,并将所述交易信息提供给网络侧进行处理,所述交易信息包括但不限于进行交易的时间、进行交易的金额、进行交易的门店信息、交易终端的IP地址、交易终端接收的卫星定位信号、交易终端的身份标识、交易终端连接的基站信息以及交易终端连接的WIFI信息等。For each Internet transaction, the transaction terminal that conducts the Internet transaction will generate corresponding transaction information and provide the transaction information to the network side for processing. The transaction information includes, but is not limited to, the time of the transaction, the amount of the transaction, Store information for transactions, the IP address of the transaction terminal, satellite positioning signals received by the transaction terminal, the identity of the transaction terminal, the base station information connected to the transaction terminal, and the WIFI information connected to the transaction terminal.
需要说明的是,对于不同交易场景的互联网交易,其对应的交易信息也不相同。例如,对于前述在笔记本、一体机等不具有定位功能的交易终端,或者在智能手机、平板电脑等具有定位功能但定位功能关闭的交易终端上完成的互联网交易,其对应的交易信息中不包括交易终端接收的卫星定位信号;对于在小型商铺进行的互联网交易,其对应的交易信息中不包括进行交易的门店信息;对于采用GPRS方式联网进行的互联网交易,其对应的交易信息中不包括交易终端连接的WIFI信息;对于采用WIFI方式联网进行的互联网交易,其对应的交易信息中不包括交易终端连接的基站信息。It should be noted that, for Internet transactions in different transaction scenarios, the corresponding transaction information is also different. For example, for the aforementioned Internet transactions completed on a transaction terminal that does not have a positioning function, such as a notebook or an all-in-one, or on a transaction terminal that has a positioning function but has a positioning function turned off, such as a smart phone or tablet, the corresponding transaction information does not include Satellite positioning signals received by transaction terminals; For Internet transactions in small shops, the corresponding transaction information does not include the store information for the transaction; For Internet transactions using GPRS networking, the corresponding transaction information does not include the transaction WIFI information connected to the terminal; for Internet transactions using WIFI networking, the corresponding transaction information does not include the base station information connected to the transaction terminal.
但是,互联网交易必须在联网的状态下进行,而进行互联网交易的交易终端都具有唯一的身份标识,因而每笔互联网交易的交易信息均包括交易终端的IP地址和交易终端的身份标识。在本说明书实施例中,从所述待定位交易的交易信息中提取进行所述待定位交易的交易终端的IP地址,根据所述待定位交易的交易终端的IP地址对所述待定位交易进行定位。为方便描述,将进行所述待定位交易的交易终端定义为待定位终端。However, Internet transactions must be conducted in a networked state, and transaction terminals that conduct Internet transactions have unique identifications. Therefore, the transaction information of each Internet transaction includes the IP address of the transaction terminal and the identity of the transaction terminal. In the embodiment of the present specification, the IP address of the transaction terminal that performs the transaction to be located is extracted from the transaction information of the transaction to be located, and the transaction to be located is performed according to the IP address of the transaction terminal that is to be located. Positioning. For ease of description, a transaction terminal that performs the transaction to be located is defined as the terminal to be located.
S202,判断所述待定位终端的IP地址是否属于一稳定IP地址段,所述稳定IP地址段为根据第一预设历史时间段内的多笔第一互联网交易确定的分布在固定区域的IP地址段,且所述稳定IP地址段为所述多笔第一互联网交易涉及的交易终端的IP地址前M位对应的地址段,M为正整数。S202. Determine whether the IP address of the terminal to be located belongs to a stable IP address segment, where the stable IP address segment is an IP distributed in a fixed area determined according to multiple first Internet transactions within a first preset historical time period. An address segment, and the stable IP address segment is an address segment corresponding to the first M bits of the IP address of the transaction terminal involved in the plurality of first Internet transactions, where M is a positive integer.
所有IP地址会按照省份、市级城市、县级城市或者区等行政区域进行初始分配,各个省份、市级城市、县级城市或者区作为每个IP地址分布的区域。然而,在对所有IP地址进行初始分配后,由于各种原因导致分配方案可能不会被严格执行,某些IP地址分布的区域存在动态变化的情况,因而现有通过GeoIP进行定位的结果准确性不高。All IP addresses will be initially allocated according to administrative regions such as provinces, municipal cities, county cities or districts, and each province, municipal city, county city or district will be the area where each IP address is distributed. However, after the initial allocation of all IP addresses, the allocation scheme may not be strictly enforced due to various reasons, and there are dynamic changes in some IP address distribution areas. Therefore, the accuracy of the existing positioning results through GeoIP not tall.
在进行所述待定位交易之前已有大量的互联网交易发生,绝大部分已发生的互联网交易的交易信息包括交易的门店信息、交易终端接收的卫星定位信号、交易终端连接的基站信息或者交易终端连接的WIFI信息等可以准确定位的定位信息,根据这些定位信息获得的IP地址分布相对于通过GeoIP进行定位更加精准。因此,本说明书实施例根据所述多笔第一互联网交易确定所述稳定IP地址段以及所述稳定IP地址段分布的固定区域。A large number of Internet transactions have occurred before the transaction to be located. Most of the transaction information of the Internet transactions that have occurred include the store information of the transaction, the satellite positioning signals received by the transaction terminal, the base station information connected to the transaction terminal, or the transaction terminal. Positioning information such as connected WIFI information that can be accurately located. The IP address distribution obtained based on these positioning information is more accurate than positioning through GeoIP. Therefore, the embodiment of the present specification determines the stable IP address segment and the fixed area where the stable IP address segment is distributed according to the multiple first Internet transactions.
图3是本说明书实施例确定所述稳定IP地址段分布的固定区域的流程图,所述确定所述稳定IP地址段分布的固定区域包括步骤S301-步骤S305。FIG. 3 is a flowchart of determining a fixed area of the stable IP address segment distribution according to an embodiment of the present specification. The determining of the fixed area of the stable IP address segment distribution includes steps S301 to S305.
S301,从所述第一预设历史时间段内的所有互联网交易中提取所述多比第一互联网 交易,所述第一互联网交易的交易信息包括进行所述第一互联网交易的交易终端的IP地址和进行所述第一互联网交易的交易终端接收的卫星定位信号。S301. Extract the Dolby first Internet transaction from all Internet transactions in the first preset historical time period, and the transaction information of the first Internet transaction includes an IP of a transaction terminal that performs the first Internet transaction. An address and a satellite positioning signal received by a transaction terminal conducting the first Internet transaction.
所述第一预设历史时间段可以按照如下方式划分:由于时间属性为连续值,可以将时间离散化,即将时间进行分段,如按照自然天分段,所述第一预设历史时间段为某一天或某几天;如按照自然月分段,所述第一预设历史时间段为某一个月或某几个月。所述第一预设历史时间段设置得越长,提取的所述第一互联网交易总量越大,根据所述多笔第一互联网交易确定的所述稳定IP地址段分布的固定区域更加准确,但相应地数据处理速度变慢,所述第一预设历史时间段的长度具体可根据实际需求进行设置。The first preset historical time period can be divided as follows: since the time attribute is a continuous value, time can be discretized, that is, the time is segmented. For example, the first preset historical time period is segmented according to natural days. Is a certain day or a certain day; if segmented according to the natural month, the first preset historical time period is a certain month or a certain number of months. The longer the first preset historical time period is set, the larger the total amount of the first Internet transaction extracted, and the more accurately the fixed area of the stable IP address segment distribution determined according to the multiple first Internet transactions is. However, the data processing speed becomes slower accordingly, and the length of the first preset historical time period may be specifically set according to actual requirements.
在一种可选实现方式中,所述第一预设历史时间段为从第一预设历史时间至进行所述待定位交易的时间对应的历史时间段,所述第一预设历史时间为进行所述待定位交易的时间之前的任意时间。通过将所述第一预设历史时间段设置为从所述第一预设历史时间至进行所述待定位交易的时间对应的历史时间段,获得的所述多笔第一互联网交易是最新的,即根据最新已发生的互联网交易确定所述稳定IP地址段分布的固定区域。相当于每次对互联网交易进行定位时,都更新所述第一稳定IP地址段分布的固定区域,因而可以较为实时地更新IP地址分布,进一步提高对所述待定位交易进行定位的准确性。In an optional implementation manner, the first preset historical time period is a historical time period corresponding to the first preset historical time and the time when the transaction to be located is performed, and the first preset historical time is Any time before the time when the transaction to be located is performed. By setting the first preset historical time period to a historical time period corresponding to the time from the first preset historical time to the time when the transaction to be located is performed, the plurality of first Internet transactions obtained are latest That is, the fixed area of the stable IP address segment distribution is determined according to the latest Internet transaction that has occurred. It is equivalent to update the fixed area of the first stable IP address segment distribution each time an Internet transaction is located, so that the IP address distribution can be updated in real time, which further improves the accuracy of positioning the transaction to be located.
所述第一互联网交易的选取,可以是交易信息包括交易的门店信息、交易终端接收的卫星定位信号、交易终端连接的基站信息或者交易终端连接的WIFI信息等可以进行准确定位的定位信息的互联网交易。考虑到所有互联网交易的交易信息中卫星定位信号最为丰富,本说明书实施例提取的所述第一互联网交易的交易信息包括进行所述第一互联网交易的交易终端的IP地址和进行所述第一互联网交易的交易终端接收的卫星定位信号。进一步,所述卫星定位信号可以为GPS信号、GLONASS信号、GALILEO信号或者北斗卫星信号等。The selection of the first Internet transaction may be the Internet where the transaction information includes the store information of the transaction, the satellite positioning signal received by the transaction terminal, the base station information connected by the transaction terminal, or the WIFI information connected by the transaction terminal, which can perform accurate positioning. transaction. Considering that the satellite positioning signals are the most abundant in the transaction information of all Internet transactions, the transaction information of the first Internet transaction extracted in the embodiments of this specification includes the IP address of the transaction terminal that conducted the first Internet transaction and the first Internet transaction Satellite positioning signals received by transaction terminals for Internet transactions. Further, the satellite positioning signal may be a GPS signal, a GLONASS signal, a GALILEO signal, or a Beidou satellite signal.
考虑到交易区域和卫星定位地点存在不一致的情况,所述第一互联网交易的交易信息还可以包括交易时间和定位时间,且所述交易时间与所述定位时间之差的绝对值小于预设时间差,所述交易时间为进行所述第一互联网交易的时间,所述定位时间为进行所述第一互联网交易的交易终端接收卫星定位信号的时间。通过将所述交易时间与所述定位时间之差的绝对值设置为小于所述预设时间差,可以过滤掉交易区域和卫星定位地点不一致的互联网交易,进一步提高对所述待定位交易进行定位的准确性。所述预设时间差可根据实际经验进行设置,本说明书实施例对此不进行限定。Considering the inconsistency between the transaction area and the satellite positioning location, the transaction information of the first Internet transaction may further include a transaction time and a positioning time, and the absolute value of the difference between the transaction time and the positioning time is less than a preset time difference The transaction time is a time when the first Internet transaction is performed, and the positioning time is a time when a transaction terminal that performs the first Internet transaction receives a satellite positioning signal. By setting the absolute value of the difference between the transaction time and the positioning time to be smaller than the preset time difference, it is possible to filter out Internet transactions where the transaction area and the satellite positioning location are inconsistent, and further improve the positioning of the transaction to be located. accuracy. The preset time difference may be set according to actual experience, which is not limited in the embodiment of the present specification.
S302,根据进行每笔第一互联网交易的交易终端接收的卫星定位信号,获得进行所述每笔第一互联网交易的交易终端的IP地址分布的唯一区域。S302. Obtain a unique area of the IP address distribution of the transaction terminal that performs each first Internet transaction according to the satellite positioning signal received by the transaction terminal that performs each first Internet transaction.
提取到所述多笔第一互联网交易后,根据卫星定位原理和进行每笔第一互联网交易的交易终端接收的卫星定位信号,获得进行所述每笔第一互联网交易的交易区域,将进行所述每笔第一互联网交易的交易区域作为进行所述每笔第一互联网交易的交易终端的IP地址分布的唯一区域。After extracting the plurality of first Internet transactions, according to the satellite positioning principle and the satellite positioning signal received by the transaction terminal that conducts each first Internet transaction, the transaction area where each of the first Internet transactions is performed will be obtained. The transaction area of each first Internet transaction is described as the only area in which the IP addresses of the transaction terminals performing each first Internet transaction are distributed.
S303,根据进行所述每笔第一互联网交易的交易终端的IP地址分布的唯一区域,获得每个待判断IP地址段分布的各个区域以及各个区域占比,所述待判断IP地址段为进行所述每笔第一互联网交易的交易终端的IP地址前M位对应的地址段。S303. According to the unique area of the IP address distribution of the transaction terminal where each first Internet transaction is performed, obtain each area of each IP address segment to be determined and the proportion of each area. The IP address segment to be determined is An address segment corresponding to the first M bits of the IP address of the transaction terminal of each first Internet transaction.
所述M的取值可根据需要定位的区域行政级别、定位的准确率以及定位的覆盖率等因素进行设置。本说明书实施例以定位所述待定位交易的市级城市为例,所述M的取值为24时,获得的定位准确率以及覆盖率都比较高。当然,在其他实施例中,若定位所述待定位交易的省份等更高级别的行政区域,则所述M的取值可以更小;若定位所述待定位交易的县级城区等更低级别的行政区域,则所述M的取值可以更大。The value of M can be set according to factors such as the administrative level of the area to be positioned, the accuracy of the positioning, and the coverage of the positioning. The embodiment of the present specification takes as an example the positioning of the city-level city of the transaction to be located. When the value of M is 24, the positioning accuracy and coverage obtained are relatively high. Of course, in other embodiments, if a higher-level administrative region such as a province to which the transaction to be located is located, the value of M may be smaller; if a county-level urban area to which the transaction to be located is located is lower, etc. Level administrative area, the value of M can be larger.
所述M的取值确定后,获得进行所述每笔第一互联网交易的交易终端的IP地址前M位,相同前M位对应为一个待判断IP地址段。根据进行所述每笔第一互联网交易的交易终端的IP地址分布的唯一区域,统计出每个待判断IP地址段分布的各个区域以及各个区域占比。After the value of M is determined, the first M bits of the IP address of the transaction terminal for each first Internet transaction are obtained, and the same first M bits correspond to an IP address segment to be determined. According to the unique area of the IP address distribution of the transaction terminal performing each first Internet transaction, each area of each IP address segment distribution to be determined and the proportion of each area are calculated.
以M的取值为24、从所述第一预设历史时间段内提取出五笔第一互联网交易为例,若所述五笔第一互联网交易对应的交易终端的IP地址分别为223.85.221.198、223.85.221.101、223.85.221.20、223.85.221.30以及182.132.23.97,前述五个IP地址分布的唯一区域分别为成都市、成都市、成都市、绵阳市以及德阳市,则获得待判断IP地址段223.85.221和待判断IP地址段182.132.23。所述待判断IP地址段223.85.221分布在成都市和绵阳市,且成都市占比为75%,绵阳市占比为25%;所述待判断IP地址段182.132.23分布在德阳市,且德阳市占比为100%。Taking the value of M as 24 and extracting five first Internet transactions from the first preset historical time period as an example, if the IP addresses of the transaction terminals corresponding to the five first Internet transactions are 223.85.221.198, 223.85.221.101, 223.85.221.20, 223.85.221.30, and 182.132.23.97. The only areas where the aforementioned five IP addresses are distributed are Chengdu, Chengdu, Chengdu, Mianyang, and Deyang. The IP address segment to be determined is 223.85 .221 and the IP address segment to be determined is 182.132.23. The IP address segment to be judged 223.85.221 is distributed in Chengdu and Mianyang, and Chengdu accounts for 75% and Mianyang City accounts for 25%; the IP address segment to be judged 182.132.23 is distributed in Deyang, And Deyang City accounts for 100%.
S304,判断所述待判断IP地址段对应的各个区域占比中最高占比是否大于第一预设百分比。S304: Determine whether the highest proportion of the proportions of the regions corresponding to the IP address segment to be judged is greater than the first preset percentage.
获得所述待判断IP地址段对应的各个区域占比后,将所述各个区域占比中最高占比与所述第一预设百分比进行比较。若某个待判断IP地址段在初始分配后未有变化,理 想情况下其分布的区域只有一个,其对应的最高占比为100%。考虑到数据采集误差、进行所述第一互联网交易的交易终端的IP地址可能为漫游IP地址或者代理IP地址等因素,本说明书实施例在所述最高占比大于所述第一预设百分比时,将所述待判断IP地址段确定为所述稳定IP地址段。所述第一预设百分比可根据数据采集误差、漫游IP地址或者代理IP地址等实际情况进行设置,本说明书实施例对此不进行限定。After obtaining the proportion of each region corresponding to the IP address segment to be determined, the highest proportion of the proportion of each region is compared with the first preset percentage. If an IP address segment to be judged does not change after the initial allocation, ideally there is only one distribution area, and the corresponding maximum ratio is 100%. Considering the data collection error, the IP address of the transaction terminal that conducts the first Internet transaction may be a roaming IP address or a proxy IP address, etc., in the embodiment of this specification, when the maximum ratio is greater than the first preset percentage , Determining the IP address segment to be determined as the stable IP address segment. The first preset percentage may be set according to actual conditions such as a data collection error, a roaming IP address, or a proxy IP address, which is not limited in the embodiments of this specification.
若所述最高占比大于所述第一预设百分比,则执行步骤S305,确定所述待判断IP地址段为所述稳定IP地址段,并将所述最高占比对应的区域确定为所述稳定IP地址段分布的固定区域。If the highest percentage is greater than the first preset percentage, step S305 is executed to determine that the IP address segment to be determined is the stable IP address segment, and the area corresponding to the highest percentage is determined to be the A fixed area where stable IP address segments are distributed.
以所述第一预设百分比为70%为例,所述待判断IP地址段223.85.221对应的最高占比75%大于所述第一预设百分比70%,因而所述待判断IP地址段223.85.221为所述稳定IP地址段,所述最高占比75%对应的区域成都市为所述稳定IP地址段223.85.221分布的固定区域;所述待判断IP地址段182.132.23对应的最高占比100%大于所述第一预设百分比70%,因而所述待判断IP地址段182.132.23为所述稳定IP地址段,所述最高占比100%对应的区域德阳市为所述稳定IP地址段182.132.23分布的固定区域。Taking the first preset percentage as 70% as an example, the highest proportion 75% corresponding to the IP address segment 223.85.221 to be determined is greater than the first preset percentage 70%, so the IP address segment to be determined 223.85.221 is the stable IP address segment, and the region corresponding to the highest proportion of 75% is Chengdu, which is a fixed area where the stable IP address segment 223.85.221 is distributed; the IP address segment to be determined corresponds to 182.132.23. The highest percentage is 100% greater than the first preset percentage of 70%, so the IP address segment to be determined 182.132.23 is the stable IP address segment, and the area corresponding to the highest percentage 100% is Deyang. A fixed area with a stable IP address segment 182.132.23.
确定所述稳定IP地址段之后,将所述待定位终端的IP地址与各个稳定IP地址段进行比对,判断所述待定位终端的IP地址是否属于一稳定IP地址段,即判断所述待定位终端的IP地址前M位与所述稳定IP地址段是否相同。仍以前述所述稳定IP地址段223.85.221和所述稳定IP地址段182.132.23为例,若所述待定位终端的IP地址为223.85.221.35,则所述待定位终端的IP地址223.85.221.35属于所述稳定IP地址段223.85.221。After determining the stable IP address segment, the IP address of the terminal to be located is compared with each stable IP address segment to determine whether the IP address of the terminal to be located belongs to a stable IP address segment, that is, the pending Whether the first M bits of the IP address of the bit terminal are the same as the stable IP address segment. Still taking the aforementioned stable IP address segment 223.85.221 and the stable IP address segment 182.132.23 as examples, if the IP address of the terminal to be located is 223.85.221.35, the IP address of the terminal to be located is 223.85. 221.35 belongs to the stable IP address segment 223.85.221.
若所述待定位终端的IP地址属于所述一稳定IP地址段,则执行步骤S203,将所述稳定IP地址段分布的固定区域确定为进行所述待定位交易的交易区域。If the IP address of the terminal to be located belongs to the stable IP address segment, step S203 is executed to determine a fixed area where the stable IP address segment is distributed as a transaction area where the to-be-positioned transaction is performed.
所述稳定IP地址段分布在所述固定区域,表明所述稳定IP地址段包括的所有IP地址都分布在所述固定区域。因此,若所述待定位终端的IP地址属于所述稳定IP地址段,则所述待定位终端的IP地址也分布在所述固定区域,即所述固定区域为进行所述待定位交易的交易区域。The stable IP address segment is distributed in the fixed area, which indicates that all IP addresses included in the stable IP address segment are distributed in the fixed area. Therefore, if the IP address of the terminal to be located belongs to the stable IP address segment, the IP address of the terminal to be located is also distributed in the fixed area, that is, the fixed area is a transaction for performing the transaction to be located. region.
本说明书实施例中,由于所述稳定IP地址段为根据所述多笔第一互联网交易确定的分布在所述固定区域的IP地址段,进行所述第一互联网交易的交易区域通常是根据卫星定位信号、交易的门店信息或者交易终端连接的基站信息等获得,当某个IP地址分 布的区域相对于初始分配发生了动态变化时,该动态变化通过卫星定位信号、交易的门店信息或者交易终端连接的基站信息等可以在所述多笔第一互联网交易中体现,因此根据所述多笔第一互联网交易确定的IP地址分布相对于初始分配更为准确,将所述稳定IP地址段分布的固定区域确定为进行所述待定位交易的交易区域更为准确,提高了对所述待定位交易进行定位的准确性。In the embodiment of the present specification, since the stable IP address segment is an IP address segment distributed in the fixed area determined according to the multiple first Internet transactions, the transaction area where the first Internet transaction is performed is usually based on satellites. Positioning signals, store information for transactions, or base station information connected to transaction terminals are obtained. When the area of an IP address distribution dynamically changes relative to the initial allocation, the dynamic change is through satellite positioning signals, store information for transactions, or transaction terminals. The information of the connected base stations can be reflected in the multiple first Internet transactions. Therefore, the IP address distribution determined according to the multiple first Internet transactions is more accurate than the initial allocation. The fixed area is determined as the transaction area where the transaction to be located is more accurate, and the accuracy of positioning the transaction to be located is improved.
如前所述,互联网交易的交易信息包括但不限于进行交易的时间、进行交易的金额、进行交易的门店信息、交易终端的IP地址、交易终端接收的卫星定位信号、交易终端的身份标识、交易终端连接的基站信息以及交易终端连接的WIFI信息等,所述进行交易的门店信息、所述交易终端的IP地址、所述交易终端接收的卫星定位信号、所述交易终端的身份标识、所述交易终端连接的基站信息以及所述交易终端连接的WIFI信息都是可以进行定位的定位信息。因此,除前述仅根据所述待定位交易的交易终端的IP地址对所述待定位交易进行定位外,还可以结合所述进行交易的门店信息、所述交易终端接收的卫星定位信号、所述交易终端的身份标识、所述交易终端连接的基站信息以及所述交易终端连接的WIFI信息对所述待定位交易进行定位。在一种可选实现方式中,本说明书实施例提供的互联网交易定位方法还包括步骤S204和步骤S205。As mentioned earlier, the transaction information of Internet transactions includes, but is not limited to, the time of the transaction, the amount of the transaction, the store information of the transaction, the IP address of the transaction terminal, the satellite positioning signal received by the transaction terminal, the identity of the transaction terminal, Information about the base station connected to the transaction terminal and WIFI information connected to the transaction terminal, etc., the information of the store where the transaction is performed, the IP address of the transaction terminal, the satellite positioning signal received by the transaction terminal, the identity of the transaction terminal, The base station information connected to the transaction terminal and the WIFI information connected to the transaction terminal are positioning information that can be located. Therefore, in addition to locating the to-be-positioned transaction based only on the IP address of the to-be-positioned transaction terminal, the to-be-positioned transaction may also be combined with the information of the store where the transaction is performed, the satellite positioning signal received by the The identity of the transaction terminal, the base station information connected to the transaction terminal, and the WIFI information connected to the transaction terminal locate the transaction to be located. In an optional implementation manner, the Internet transaction positioning method provided by the embodiment of the present specification further includes steps S204 and S205.
S204,根据预先设置的各类定位信息的优先级顺序,判断所述待定位交易的交易信息中是否存在优先级高于所述待定位终端的IP地址的定位信息。S204. Determine, according to a preset priority order of various types of positioning information, whether there is positioning information in the transaction information of the to-be-positioned transaction that has a higher priority than the IP address of the terminal to be located.
所述定位信息包括进行交易的门店信息、交易终端的IP地址、交易终端接收的卫星定位信号、交易终端的身份标识、交易终端连接的基站信息以及交易终端连接的WIFI信息中的至少一种。根据采用各类定位信息进行定位的准确性高低,设置所述各类定位信息的优先级顺序。例如,若采用进行交易的门店信息进行定位的准确性高于采用交易终端的IP地址进行定位的准确性,则将进行交易的门店信息的优先级设置为高于交易终端的IP地址;若采用进行交易的门店信息结合交易终端连接的基站信息进行定位的准确性高于采用进行交易的门店信息进行定位的准确性,则将进行交易的门店信息结合交易终端连接的基站信息的优先级设置为高于进行交易的门店信息。The positioning information includes at least one of information about the store where the transaction is performed, the IP address of the transaction terminal, the satellite positioning signal received by the transaction terminal, the identity of the transaction terminal, the base station information connected to the transaction terminal, and the WIFI information connected to the transaction terminal. According to the accuracy of positioning using various types of positioning information, the priority order of the various types of positioning information is set. For example, if the accuracy of locating using the information of the transaction store is higher than the accuracy of locating using the IP address of the transaction terminal, set the priority of the information of the transaction store to be higher than the IP address of the transaction terminal; The accuracy of locating the store information combined with the base station information connected to the transaction terminal is higher than the location accuracy of the store information used for the transaction. The priority of the store information combined with the base station information connected with the transaction terminal is set to Higher than the information of the store where the transaction took place.
若所述待定位交易的交易信息中不存在优先级高于所述待定位终端的IP地址的定位信息,则执行步骤S201,从所述待定位交易的交易信息中提取所述待定位终端的IP地址;否则则执行步骤S205,从所述待定位交易的交易信息中提取优先级最高的定位信息,并根据优先级最高的定位信息确定进行所述待定位交易的交易区域。If there is no positioning information in the transaction information of the to-be-positioned transaction that has a higher priority than the IP address of the terminal to be located, step S201 is executed to extract the terminal-to-be-positioned from the transaction information of the to-be-positioned transaction. IP address; otherwise, execute step S205, extract the highest priority positioning information from the transaction information of the transaction to be positioned, and determine the transaction area where the transaction to be positioned is performed according to the highest priority positioning information.
根据所述待定位交易的交易终端的IP地址对所述待定位交易进行定位参考前述步 骤S201-步骤S203,根据优先级最高的定位信息确定进行所述待定位交易的交易区域具体视所述优先级最高的定位信息而定。例如,若所述优先级最高的定位信息为进行交易的门店信息,则将所述进行所述待定位交易的门店位置确定为进行所述待定位交易的交易区域;若所述优先级最高的定位信息为交易终端连接的基站信息,则将所述进行所述待定位交易的交易终端连接的基站位置确定为进行所述待定位交易的交易区域;若所述优先级最高的定位信息为交易终端连接的WIFI信息,则将所述进行所述待定位交易的交易终端连接的WIFI位置确定为进行所述待定位交易的交易区域。Positioning the to-be-positioned transaction according to the IP address of the transaction terminal of the to-be-positioned transaction, refer to the foregoing steps S201 to S203, and determine the transaction area where the to-be-positioned transaction is performed according to the highest priority positioning information, depending on the priority Depending on the highest level of positioning information. For example, if the positioning information with the highest priority is information of a store where a transaction is performed, determining the location of the store where the transaction to be located is a transaction area where the transaction to be located is performed; If the positioning information is information of the base station connected to the transaction terminal, the position of the base station connected to the transaction terminal that performs the transaction to be located is determined as the transaction area where the transaction to be located is performed; if the positioning information with the highest priority is a transaction The WIFI information connected to the terminal determines the WIFI position connected to the transaction terminal that performs the transaction to be located as the transaction area where the transaction to be located is performed.
在本说明书前述实施例中,所述待定位终端的IP地址可能并不属于任何一个稳定IP地址段。针对这种情况,本说明书实施例结合所述待定位终端的最后交易区域对所述待定位交易进行定位。在一种可选实现方式中,本说明书实施例提供的互联网交易定位方法还包括步骤S206-步骤S208。In the foregoing embodiments of the present specification, the IP address of the terminal to be located may not belong to any stable IP address segment. In view of this situation, the embodiments of the present specification locate the transaction to be located in combination with the last transaction area of the terminal to be located. In an optional implementation manner, the Internet transaction positioning method provided by the embodiment of the present specification further includes steps S206 to S208.
若所述待定位终端的IP地址不属于所述一稳定IP地址段,则执行步骤S206,判断所述待定位终端的IP地址是否属于一不稳定IP地址段,所述不稳定IP地址段为根据所述多笔第一互联网交易确定的分布在两个以上区域的IP地址段,且所述不稳定IP地址段为所述多笔第一互联网交易涉及的交易终端的IP地址前M位对应的地址段。If the IP address of the terminal to be located does not belong to the stable IP address segment, step S206 is performed to determine whether the IP address of the terminal to be located belongs to an unstable IP address segment, where the unstable IP address segment is The IP address segments distributed in more than two areas determined according to the multiple first Internet transactions, and the unstable IP address segments correspond to the first M bits of the IP addresses of the transaction terminals involved in the multiple first Internet transactions Address segment.
所述不稳定IP地址段的具体确定方式参考图3,若所述最高占比不大于所述第一预设百分比,则执行步骤S306,确定所述待判断IP地址段为所述不稳定IP地址段,并将所述待判断IP地址段分布的各个区域中满足预设条件的区域确定为所述不稳定IP地址段分布的两个以上区域。For a specific determination manner of the unstable IP address segment, refer to FIG. 3. If the maximum ratio is not greater than the first preset percentage, step S306 is performed to determine that the IP address segment to be determined is the unstable IP address. An address segment, and determine an area that satisfies a preset condition among the regions of the distribution of the IP address segments to be determined as two or more regions of the unstable IP address segment distribution.
所述预设条件包括占比高于第二预设百分比和/或与所述最高占比对应的区域属于同一上级行政区域,所述第二预设百分比小于所述第一预设百分比。以所述第一预设百分比为90%为例,所述待判断IP地址段223.85.221对应的最高占比75%小于所述第一预设百分比90%,因而所述待判断IP地址段223.85.221为所述不稳定IP地址段。若所述预设条件包括占比高于所述第二预设百分比且与所述最高占比对应的区域属于同一上级行政区域,所述第二预设百分比为20%,由于成都市占比为75%、绵阳市占比为25%,均高于所述第二预设百分比,且成都市和绵阳市同属于四川省,因而将成都市和绵阳市确定为所述不稳定IP地址段223.85.221分布的区域。The preset condition includes that the proportion is higher than the second preset percentage and / or the area corresponding to the highest proportion belongs to the same higher administrative area, and the second preset percentage is smaller than the first preset percentage. Taking the first preset percentage as 90% as an example, the highest percentage 75% corresponding to the IP address segment 223.85.221 is less than the first preset percentage 90%, so the IP address segment to be determined 223.85.221 is the unstable IP address segment. If the preset condition includes a proportion higher than the second preset percentage and the area corresponding to the highest percentage belongs to the same higher administrative area, the second preset percentage is 20%, because Chengdu's proportion It is 75% and Mianyang City is 25%, both of which are higher than the second preset percentage. Chengdu and Mianyang both belong to Sichuan Province. Therefore, Chengdu and Mianyang are determined as the unstable IP address segment 223.85. .221 area of distribution.
确定所述不稳定IP地址段之后,将所述待定位终端的IP地址与各个不稳定IP地址段进行比对,判断所述待定位终端的IP地址是否属于一不稳定IP地址段,即判断所述待定位终端的IP地址前M位与所述不稳定IP地址段是否相同。仍以前述不稳定IP地 址段223.85.221为例,若所述待定位终端的IP地址为223.85.221.35,则所述待定位终端的IP地址223.85.221.35属于所述不稳定IP地址段223.85.221。After determining the unstable IP address segment, the IP address of the terminal to be located is compared with each unstable IP address segment to determine whether the IP address of the terminal to be located belongs to an unstable IP address segment, that is, to determine Whether the first M bits of the IP address of the terminal to be located are the same as the unstable IP address segment. Still using the aforementioned unstable IP address segment 223.85.221 as an example, if the IP address of the terminal to be located is 223.85.221.35, the IP address of the terminal to be located 223.85.221.35 belongs to the unstable IP address segment 223.85. 221.
若所述待定位终端的IP地址属于所述一不稳定IP地址段,则执行步骤S207,判断所述不稳定IP地址段分布的两个以上区域是否包括所述待定位终端的最后交易区域。If the IP address of the terminal to be located belongs to the one unstable IP address segment, step S207 is executed to determine whether two or more areas distributed by the unstable IP address segment include the last transaction area of the terminal to be located.
图4是本说明书实施例提供的获得所述待定位终端的最后交易区域的流程图,所述获得所述待定位终端的最后交易区域包括步骤S401-步骤S404。FIG. 4 is a flowchart of obtaining a last transaction area of the terminal to be located according to an embodiment of the present specification. The obtaining the last transaction area of the terminal to be located includes steps S401 to S404.
S401,从第二预设历史时间段内的所有互联网交易中提取多笔第二互联网交易,所述第二预设历史时间段为从第二预设历史时间至进行所述待定位交易的时间对应的历史时间段,所述第二互联网交易的交易信息包括进行所述第二互联网交易的交易终端的身份标识、进行所述第二互联网交易的交易终端接收的卫星定位信号以及进行所述第二互联网交易的时间。S401. Extract multiple second Internet transactions from all Internet transactions in a second preset historical time period, where the second preset historical time period is from the second preset historical time to the time when the transaction to be located is performed Corresponding historical time period, the transaction information of the second Internet transaction includes an identity of a transaction terminal performing the second Internet transaction, a satellite positioning signal received by the transaction terminal performing the second Internet transaction, and performing the first Second Internet transaction time.
所述第二预设历史时间为进行所述待定位交易的时间之前的任意时间,所述第二预设历史时间段的长度可根据实际需求进行设置,只要保证能够提取出足够数量的所述第二互联网交易。与所述第一互联网交易的选取类似,所述第二互联网交易也可以是交易信息包括交易的门店信息、交易终端接收的卫星定位信号、交易终端连接的基站信息或者交易终端连接的WIFI信息等可以进行准确定位的定位信息的互联网交易。考虑到所有互联网交易的交易信息中卫星定位信号最为丰富,本说明书实施例提取的所述第二互联网交易的交易信息包括进行所述第二互联网交易的交易终端的身份标识、进行所述第二互联网交易的交易终端接收的卫星定位信号以及进行所述第二互联网交易的时间。The second preset historical time is any time before the time when the transaction to be located is performed, and the length of the second preset historical time period can be set according to actual needs, as long as a sufficient number of the extracted Second internet transaction. Similar to the selection of the first Internet transaction, the second Internet transaction may also include transaction store information, satellite positioning signals received by the transaction terminal, base station information connected by the transaction terminal, or WIFI information connected by the transaction terminal, etc. Internet transactions that allow accurate positioning of positioning information. Considering that the satellite positioning signals are the most abundant in the transaction information of all Internet transactions, the transaction information of the second Internet transaction extracted in the embodiments of this specification includes the identity of the transaction terminal that conducted the second Internet transaction, and the second Internet transaction. The satellite positioning signal received by the transaction terminal of the Internet transaction and the time when the second Internet transaction is performed.
S402,根据进行每笔第二互联网交易的交易终端的身份标识、进行所述每笔第二互联网交易的时间以及进行所述每笔第二互联网交易的交易终端接收的卫星定位信号,确定每个身份标识对应的交易终端的最后交易区域。S402. Determine each of the second terminal based on the identity of the transaction terminal that performed each second Internet transaction, the time when each second Internet transaction was performed, and the satellite positioning signal received by the transaction terminal that performed each second Internet transaction. The last transaction area of the transaction terminal corresponding to the identity.
提取到所述多笔第二互联网交易后,根据卫星定位原理和进行每笔第二互联网交易的交易终端接收的卫星定位信号,获得进行所述每笔第二互联网交易的交易区域,将进行所述每笔第二互联网交易的交易区域作为进行所述每笔第二互联网交易的交易终端的IP地址分布的唯一区域。结合进行所述每笔第二互联网交易的交易终端的身份标识和进行所述每笔第二互联网交易的时间,获得所述多笔第二互联网交易涉及的每个交易终端的最后交易区域,亦即所述多笔第二互联网交易涉及的每个身份标识对应的最后交易区域。After extracting the plurality of second Internet transactions, according to the satellite positioning principle and the satellite positioning signal received by the transaction terminal that conducts each second Internet transaction, the transaction area where each second Internet transaction is performed will be obtained. The transaction area of each second Internet transaction is described as the only area in which the IP addresses of the transaction terminals performing each second Internet transaction are distributed. The final transaction area of each transaction terminal involved in the plurality of second Internet transactions is obtained by combining the identity of the transaction terminal performing each of the second Internet transactions and the time of performing each second Internet transaction. That is, the last transaction area corresponding to each identity involved in the multiple second Internet transactions.
S403,从所述待定位交易的交易信息中提取所述待定位终端的身份标识。S403. Extract the identity of the terminal to be located from the transaction information of the transaction to be located.
所述待定位终端的身份标识是能够证明所述待定位终端身份的凭证,以所述待定位终端为智能手机为例,所述待定位终端的身份标识可以为智能手机的序列号。提取所述待定位终端的身份标识可以是在提取所述待定位终端的IP地址时进行,也可以是在提取所述待定位终端的IP地址之后进行,本说明书实施例对此不作限定。The identity of the terminal to be located is a credential that can prove the identity of the terminal to be located. Taking the smartphone to be located as an example, the identity of the terminal to be located may be the serial number of the smartphone. Extracting the identity of the terminal to be located may be performed when extracting the IP address of the terminal to be located, or may be performed after extracting the IP address of the terminal to be located, which is not limited in this embodiment of the present specification.
S404,根据所述待定位终端的身份标识和所述每个身份标识对应的交易终端的最后交易区域,确定所述待定位终端的最后交易区域。S404. Determine the last transaction area of the terminal to be located according to the identity of the terminal to be located and the last transaction area of the transaction terminal corresponding to each identity.
将所述待定位终端的身份标识与所述多笔第二互联网交易涉及的所有身份标识进行比对,在所述多笔第二互联网交易涉及的所有身份标识中找到所述待定位终端的身份标识,从而获得所述待定位终端的最后交易区域。Compare the identity of the terminal to be located with all the identities involved in the multiple second internet transactions, and find the identity of the terminal to be located among all the identities involved in the multiple second internet transactions Identification to obtain the last transaction area of the terminal to be located.
以所述待定位终端的IP地址223.85.221.35属于所述不稳定IP地址段223.85.221为例,则判断所述不稳定IP地址段223.85.221分布的区域是否包括所述待定位终端的最后交易区域,即将所述待定位终端的最后交易区域与所述不稳定IP地址段223.85.221分布的区域进行比对。Taking the IP address 223.85.221.35 of the terminal to be located as an example of the unstable IP address segment 223.85.221, it is determined whether the area where the unstable IP address segment 223.85.221 is distributed includes the last of the terminal to be located. The transaction area, that is, the last transaction area of the terminal to be located is compared with the area of the unstable IP address segment 223.85.221.
若所述不稳定IP地址段分布的两个以上区域包括所述待定位终端的最后交易区域,则执行步骤S208,将所述待定位终端的最后交易区域确定为进行所述待定位交易的交易区域。If more than two areas of the unstable IP address segment distribution include the last transaction area of the terminal to be located, step S208 is executed to determine the last transaction area of the terminal to be located as a transaction for performing the transaction to be located region.
以所述待定位终端的IP地址223.85.221.35属于所述不稳定IP地址段223.85.221为例,若所述待定位终端的最后交易区域为成都市,由于所述不稳定IP地址段223.85.221分布的区域为成都市和绵阳市,包括所述待定位终端的最后交易区域成都市,因而将所述待定位终端的最后交易区域成都市确定为进行所述待定位交易的交易区域。Taking the IP address of the terminal to be located 223.85.221.35 belongs to the unstable IP address segment 223.85.221 as an example, if the last transaction area of the terminal to be located is Chengdu, because the unstable IP address segment 223.85. The area of 221 distribution is Chengdu City and Mianyang City, including Chengdu, the last trading area of the terminal to be located. Therefore, Chengdu, the last trading area of the terminal to be located, is determined as the trading area where the to-be-located transaction is performed.
本说明书实施例的步骤S206-步骤S208,根据所述待定位终端的身份标识确定所述待定位终端的最后交易区域,在所述不稳定IP地址段分布的两个以上区域包括所述待定位终端的最后交易区域时,将所述待定位终端的最后交易区域确定为进行所述待定位交易的交易区域,对所述稳定IP地址段无法定位的情况进行补充,大幅度提高了对所述待定位交易进行定位的准确率和覆盖率。In step S206 to step S208 in the embodiment of the present specification, the last transaction area of the terminal to be located is determined according to the identity of the terminal to be located, and the two or more areas distributed in the unstable IP address segment include the to be located When the terminal's last transaction area is determined, the last transaction area of the terminal to be located is determined as the transaction area where the to-be-positioned transaction is performed, supplementing the situation where the stable IP address segment cannot be located, greatly improving the Accuracy and coverage of positioning transactions.
在一种可选实现方式中,本说明书实施例提供的互联网交易定位方法还包括步骤S209。In an optional implementation manner, the Internet transaction positioning method provided by the embodiment of the present specification further includes step S209.
若所述不稳定IP地址段分布的两个以上区域不包括所述待定位终端的最后交易区 域,则执行步骤S209,将所述不稳定IP地址段分布的两个以上区域中占比最高的区域确定为进行所述待定位交易的交易区域。If the two or more areas of the unstable IP address segment distribution do not include the last transaction area of the terminal to be located, step S209 is executed to allocate the highest proportion of the two or more areas of the unstable IP address segment distribution. The area is determined as a transaction area where the transaction to be located is performed.
以所述待定位终端的IP地址223.85.221.35属于所述不稳定IP地址段223.85.221为例,若所述待定位终端的最后交易区域为南充市,由于所述不稳定IP地址段223.85.221分布的区域为成都市和绵阳市,不包括所述待定位终端的最后交易区域南充市,因而将所述不稳定IP地址段223.85.221分布的成都市和绵阳市中占比最高的成都市确定为进行所述待定位交易的交易区域。Taking the IP address of the terminal to be located 223.85.221.35 belongs to the unstable IP address segment 223.85.221 as an example, if the last transaction area of the terminal to be located is Nanchong City, because the unstable IP address segment 223.85. The 221 distribution area is Chengdu and Mianyang, excluding Nanchong, the last trading area of the terminal to be located. Therefore, the unstable IP address segment 223.85.221 is distributed in Chengdu and Mianyang, which have the highest proportion. The city is determined as the transaction area where the transaction to be located is performed.
第二方面,基于同一发明构思,本说明书实施例提供一种互联网交易定位装置,包括:In a second aspect, based on the same inventive concept, an embodiment of the present specification provides an Internet transaction positioning device, including:
定位信息提取模块,用于从待定位交易的交易信息中提取待定位终端的IP地址,所述待定位终端为进行所述待定位交易的交易终端;A positioning information extraction module, configured to extract an IP address of a terminal to be located from transaction information of a transaction to be located, where the terminal to be located is a transaction terminal that performs the transaction to be located;
第一判断模块,用于判断所述待定位终端的IP地址是否属于一稳定IP地址段,所述稳定IP地址段为根据第一预设历史时间段内的多笔第一互联网交易确定的分布在固定区域的IP地址段,且所述稳定IP地址段为所述多笔第一互联网交易涉及的交易终端的IP地址前M位对应的地址段,M为正整数;A first determining module, configured to determine whether the IP address of the terminal to be located belongs to a stable IP address segment, where the stable IP address segment is a distribution determined according to multiple first Internet transactions within a first preset historical time period An IP address segment in a fixed area, and the stable IP address segment is an address segment corresponding to the first M bits of the IP address of the transaction terminal involved in the plurality of first Internet transactions, where M is a positive integer;
第一确定模块,用于在所述待定位终端的IP地址属于所述一稳定IP地址段时,将所述稳定IP地址段分布的固定区域确定为进行所述待定位交易的交易区域。A first determining module is configured to determine, when the IP address of the terminal to be located belongs to the stable IP address segment, a fixed area where the stable IP address segment is distributed as a transaction area where the to-be-positioned transaction is performed.
在一种可选实现方式中,所述互联网交易定位装置还包括:In an optional implementation manner, the internet transaction positioning device further includes:
第二判断模块,用于根据预先设置的各类定位信息的优先级顺序,判断所述待定位交易的交易信息中是否存在优先级高于所述待定位终端的IP地址的定位信息;A second determination module, configured to determine, according to a preset priority order of various types of positioning information, whether there is positioning information in the transaction information of the transaction to be located having a priority higher than the IP address of the terminal to be located;
所述定位信息提取模块用于在所述待定位交易的交易信息中不存在优先级高于所述待定位终端的IP地址的定位信息时,从所述待定位交易的交易信息中提取所述待定位终端的IP地址;否则从所述待定位交易的交易信息中提取优先级最高的定位信息,并根据优先级最高的定位信息确定进行所述待定位交易的交易区域。The positioning information extraction module is configured to extract the transaction information of the to-be-positioned transaction information when the positioning information of the to-be-positioned transaction does not have positioning information with a priority higher than the IP address of the terminal to be located. The IP address of the terminal to be located; otherwise, the highest priority positioning information is extracted from the transaction information of the to-be-positioned transaction, and the transaction area where the to-be-positioned transaction is performed is determined according to the highest-priority positioning information.
在一种可选实现方式中,所述互联网交易定位装置还包括:In an optional implementation manner, the internet transaction positioning device further includes:
第一交易提取模块,用于从所述第一预设历史时间段内的所有互联网交易中提取所述多比第一互联网交易,所述第一互联网交易的交易信息包括进行所述第一互联网交易的交易终端的IP地址和进行所述第一互联网交易的交易终端接收的卫星定位信号;A first transaction extraction module, configured to extract the multiple-to-first Internet transaction from all Internet transactions in the first preset historical time period, and the transaction information of the first Internet transaction includes performing the first Internet transaction The IP address of the transaction terminal of the transaction and the satellite positioning signal received by the transaction terminal of the first Internet transaction;
地址分布获得模块,用于根据进行每笔第一互联网交易的交易终端接收的卫星定位信号,获得进行所述每笔第一互联网交易的交易终端的IP地址分布的唯一区域;An address distribution obtaining module, configured to obtain a unique area of the IP address distribution of the transaction terminal performing each first Internet transaction according to the satellite positioning signal received by the transaction terminal performing each first Internet transaction;
地址段分布获得模块,用于根据进行所述每笔第一互联网交易的交易终端的IP地址分布的唯一区域,获得每个待判断IP地址段分布的各个区域以及各个区域占比,所述待判断IP地址段为进行所述每笔第一互联网交易的交易终端的IP地址前M位对应的地址段;The address segment distribution obtaining module is configured to obtain each region of each IP address segment distribution to be determined and the proportion of each region according to the unique region of the IP address distribution of the transaction terminal performing each first Internet transaction. Determine that the IP address segment is an address segment corresponding to the first M bits of the IP address of the transaction terminal that conducts each first Internet transaction;
第三判断模块,用于判断所述待判断IP地址段对应的各个区域占比中最高占比是否大于第一预设百分比;A third determining module, configured to determine whether the highest proportion of the proportions of the regions corresponding to the IP address segment to be judged is greater than a first preset percentage;
第二确定模块,用于在所述最高占比大于所述第一预设百分比时,确定所述待判断IP地址段为所述稳定IP地址段,并将所述最高占比对应的区域确定为所述稳定IP地址段分布的固定区域。A second determining module, configured to determine that the IP address segment to be determined is the stable IP address segment when the highest proportion is greater than the first preset percentage, and determine an area corresponding to the highest proportion A fixed area distributed for the stable IP address segment.
在一种可选实现方式中,所述互联网交易定位装置还包括:In an optional implementation manner, the internet transaction positioning device further includes:
第四判断模块,用于在所述待定位终端的IP地址不属于所述一稳定IP地址段时,判断所述待定位终端的IP地址是否属于一不稳定IP地址段,所述不稳定IP地址段为根据所述多笔第一互联网交易确定的分布在两个以上区域的IP地址段,且所述不稳定IP地址段为所述多笔第一互联网交易涉及的交易终端的IP地址前M位对应的地址段;A fourth determining module is configured to determine whether the IP address of the terminal to be located belongs to an unstable IP address segment when the IP address of the terminal to be located does not belong to the stable IP address segment, and the unstable IP The address segment is an IP address segment distributed in more than two areas determined according to the multiple first Internet transactions, and the unstable IP address segment is in front of the IP addresses of the transaction terminals involved in the multiple first Internet transactions M bit corresponding address segment;
第五判断模块,用于在所述待定位终端的IP地址属于所述一不稳定IP地址段时,判断所述不稳定IP地址段分布的两个以上区域是否包括所述待定位终端的最后交易区域;A fifth judgment module is configured to determine whether the two or more regions of the unstable IP address segment distribution include the last of the terminal to be located when the IP address of the terminal to be located belongs to the one unstable IP address segment. Trading area
第三确定模块,用于在所述不稳定IP地址段分布的两个以上区域包括所述待定位终端的最后交易区域时,将所述待定位终端的最后交易区域确定为进行所述待定位交易的交易区域。A third determining module, configured to determine the last transaction area of the terminal to be located when the two or more areas of the unstable IP address segment distribution include the last transaction area of the terminal to be located The transaction area of the transaction.
在一种可选实现方式中,所述互联网交易定位装置还包括:In an optional implementation manner, the internet transaction positioning device further includes:
第四确定模块,用于在所述最高占比不大于所述第一预设百分比时,确定所述待判断IP地址段为所述不稳定IP地址段,并将所述待判断IP地址段分布的各个区域中满足预设条件的区域确定为所述不稳定IP地址段分布的两个以上区域。A fourth determining module, configured to determine that the IP address segment to be determined is the unstable IP address segment when the maximum ratio is not greater than the first preset percentage, and to use the IP address segment to be determined The areas satisfying the preset conditions in each area of the distribution are determined as two or more areas of the unstable IP address segment distribution.
在一种可选实现方式中,所述定位信息提取模块还用于从所述待定位交易的交易信息中提取所述待定位终端的身份标识,所述互联网交易定位装置还包括:In an optional implementation manner, the positioning information extraction module is further configured to extract the identity of the terminal to be located from the transaction information of the transaction to be located. The Internet transaction positioning device further includes:
第二交易提取模块,用于从第二预设历史时间段内的所有互联网交易中提取多笔第二互联网交易,所述第二预设历史时间段为从第二预设历史时间至进行所述待定位交易的时间对应的历史时间段,所述第二互联网交易的交易信息包括进行所述第二互联网交易的交易终端的身份标识、进行所述第二互联网交易的交易终端接收的卫星定位信号以及进行所述第二互联网交易的时间;A second transaction extraction module, configured to extract multiple second Internet transactions from all Internet transactions within a second preset historical time period, where the second preset historical time period is from the second preset historical time to the The historical time period corresponding to the time of the transaction to be located, the transaction information of the second Internet transaction includes the identity of the transaction terminal performing the second Internet transaction, and satellite positioning received by the transaction terminal performing the second Internet transaction. The signal and the time when the second Internet transaction is performed;
第五确定模块,用于根据进行每笔第二互联网交易的交易终端的身份标识、进行所述每笔第二互联网交易的时间以及进行所述每笔第二互联网交易的交易终端接收的卫星定位信号,确定每个身份标识对应的交易终端的最后交易区域;A fifth determination module, configured to determine the satellite positioning received by the transaction terminal that performed each second Internet transaction according to the identity of the transaction terminal that performed each second Internet transaction, the time when each second Internet transaction was performed, and Signal to determine the last transaction area of the transaction terminal corresponding to each identity;
第六确定模块,用于根据所述待定位终端的身份标识和所述每个身份标识对应的交易终端的最后交易区域,确定所述待定位终端的最后交易区域。A sixth determining module is configured to determine a last transaction area of the terminal to be located according to the identity of the terminal to be located and a last transaction area of the transaction terminal corresponding to each identity.
在一种可选实现方式中,所述互联网交易定位装置还包括:In an optional implementation manner, the internet transaction positioning device further includes:
第七确定模块,用于在所述不稳定IP地址段分布的两个以上区域不包括所述待定位终端的最后交易区域时,将所述不稳定IP地址段分布的两个以上区域中占比最高的区域确定为进行所述待定位交易的交易区域。A seventh determining module, configured to: when the two or more areas of the unstable IP address segment distribution do not include the last transaction area of the terminal to be located, occupy the two or more areas of the unstable IP address segment distribution The region with the highest ratio is determined as the transaction region where the to-be-positioned transaction is performed.
第三方面,基于与前述实施例中互联网交易定位方法同样的发明构思,本发明还提供一种服务器,如图5所示,包括存储器504、处理器502及存储在存储器504上并可在处理器502上运行的计算机程序,所述处理器502执行所述程序时实现前述互联网交易定位方法的步骤。In a third aspect, based on the same inventive concept as the Internet transaction positioning method in the foregoing embodiment, the present invention also provides a server, as shown in FIG. 5, including a memory 504, a processor 502, and stored in the memory 504 and can be processed. A computer program running on the processor 502, and when the processor 502 executes the program, the steps of the foregoing Internet transaction positioning method are implemented.
其中,在图5中,总线架构(用总线500来代表),总线500可以包括任意数量的互联的总线和桥,总线500将包括由处理器502代表的一个或多个处理器和存储器504代表的存储器的各种电路链接在一起。总线500还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口505在总线500和接收器501和发送器503之间提供接口。接收器501和发送器503可以是同一个元件,即收发机,提供用于在传输介质上与各种其他装置通信的单元。处理器502负责管理总线500和通常的处理,而存储器504可以被用于存储处理器502在执行操作时所使用的数据。Among them, in FIG. 5, the bus architecture (represented by the bus 500). The bus 500 may include any number of interconnected buses and bridges. The bus 500 will include one or more processors represented by the processor 502 and memory 504. The various circuits of the memory are linked together. The bus 500 can also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art, and therefore, they are not described further herein. The bus interface 505 provides an interface between the bus 500 and the receiver 501 and the transmitter 503. The receiver 501 and the transmitter 503 may be the same element, that is, a transceiver, providing a unit for communicating with various other devices on a transmission medium. The processor 502 is responsible for managing the bus 500 and general processing, and the memory 504 may be used to store data used by the processor 502 when performing operations.
第四方面,基于与前述实施例中互联网交易定位的发明构思,本发明还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现前文所述互联网交易定位的步骤。In a fourth aspect, based on the inventive concept of Internet transaction positioning in the foregoing embodiments, the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the aforementioned Internet transaction positioning. A step of.
本说明书是参照根据本说明书实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的设备。This specification is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the specification. It should be understood that each process and / or block in the flowcharts and / or block diagrams, and combinations of processes and / or blocks in the flowcharts 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 device to produce a machine, so that the instructions generated by the processor of the computer or other programmable data processing device are used to generate instructions A device for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令设备的制造品,该指令设备实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to work in a particular manner such that the instructions stored in the computer-readable memory produce a manufactured article including the instruction device, the instructions The device implements the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device, so that a series of steps can be performed on the computer or other programmable device to produce a computer-implemented process, which can be executed on the computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.
尽管已描述了本说明书的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本说明书范围的所有变更和修改。Although the preferred embodiments of the present specification have been described, those skilled in the art can make other changes and modifications to these embodiments once they know the basic inventive concepts. Therefore, the following claims are intended to be construed to include the preferred embodiments and all changes and modifications that fall within the scope of this description.
显然,本领域的技术人员可以对本说明书进行各种改动和变型而不脱离本说明书的精神和范围。这样,倘若本说明书的这些修改和变型属于本说明书权利要求及其等同技术的范围之内,则本说明书也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various modifications and variations to this specification without departing from the spirit and scope of this specification. In this way, if these modifications and variations of this specification belong to the scope of the claims of this specification and their equivalent technologies, this specification also intends to include these modifications and variations.

Claims (26)

  1. 一种互联网交易定位方法,包括:An Internet transaction positioning method includes:
    从待定位交易的交易信息中提取待定位终端的IP地址,所述待定位终端为进行所述待定位交易的交易终端;Extracting the IP address of the terminal to be located from the transaction information of the transaction to be located, where the terminal to be located is a transaction terminal that performs the transaction to be located;
    判断所述待定位终端的IP地址是否属于一稳定IP地址段,所述稳定IP地址段为根据第一预设历史时间段内的多笔第一互联网交易确定的分布在固定区域的IP地址段,且所述稳定IP地址段为所述多笔第一互联网交易涉及的交易终端的IP地址前M位对应的地址段,M为正整数;Determine whether the IP address of the terminal to be located belongs to a stable IP address segment, and the stable IP address segment is an IP address segment distributed in a fixed area determined according to multiple first Internet transactions within a first preset historical time period And the stable IP address segment is an address segment corresponding to the first M bits of the IP address of the transaction terminal involved in the plurality of first Internet transactions, where M is a positive integer;
    若所述待定位终端的IP地址属于所述一稳定IP地址段,则将所述稳定IP地址段分布的固定区域确定为进行所述待定位交易的交易区域。If the IP address of the terminal to be located belongs to the stable IP address segment, a fixed area in which the stable IP address segment is distributed is determined as a transaction area where the to-be-positioned transaction is performed.
  2. 根据权利要求1所述的方法,在所述从待定位交易的交易信息中提取待定位终端的IP地址之前,还包括:The method according to claim 1, before the extracting the IP address of the terminal to be located from the transaction information of the transaction to be located, further comprising:
    根据预先设置的各类定位信息的优先级顺序,判断所述待定位交易的交易信息中是否存在优先级高于所述待定位终端的IP地址的定位信息;Determining, according to a preset priority order of various types of positioning information, whether there is positioning information in the transaction information of the transaction to be positioned that has a higher priority than the IP address of the terminal to be positioned;
    若所述待定位交易的交易信息中不存在优先级高于所述待定位终端的IP地址的定位信息,则从所述待定位交易的交易信息中提取所述待定位终端的IP地址;否则从所述待定位交易的交易信息中提取优先级最高的定位信息,并根据优先级最高的定位信息确定进行所述待定位交易的交易区域。If there is no positioning information in the transaction information of the to-be-located transaction having a priority higher than the IP address of the terminal to be located, then extract the IP address of the to-be-located terminal from the transaction information of the to-be-located transaction; otherwise Extract the positioning information with the highest priority from the transaction information of the to-be-positioned transaction, and determine the transaction area for performing the to-be-positioned transaction according to the positioning information with the highest priority.
  3. 根据权利要求2所述的方法,所述定位信息包括进行交易的门店信息、交易终端的IP地址、交易终端接收的卫星定位信号、交易终端的身份标识、交易终端连接的基站信息以及交易终端连接的WIFI信息中的至少一种。The method according to claim 2, wherein the positioning information includes information of a store where the transaction is performed, an IP address of the transaction terminal, a satellite positioning signal received by the transaction terminal, an identity of the transaction terminal, information of a base station connected to the transaction terminal, and a connection of the transaction terminal. At least one of the WIFI information.
  4. 根据权利要求1所述的方法,所述第一预设历史时间段为从第一预设历史时间至进行所述待定位交易的时间对应的历史时间段。The method according to claim 1, wherein the first preset historical time period is a historical time period corresponding to a time from the first preset historical time to a time when the transaction to be located is performed.
  5. 根据权利要求1所述的方法,所述固定区域为市级城市,M的取值为24。The method according to claim 1, wherein the fixed area is a city-level city, and the value of M is 24.
  6. 根据权利要求1所述的方法,在所述判断所述待定位终端的IP地址是否属于一稳定IP地址段之前,还包括:The method according to claim 1, before the determining whether the IP address of the terminal to be located belongs to a stable IP address segment, further comprising:
    从所述第一预设历史时间段内的所有互联网交易中提取所述多比第一互联网交易,所述第一互联网交易的交易信息包括进行所述第一互联网交易的交易终端的IP地址和进行所述第一互联网交易的交易终端接收的卫星定位信号;Extracting the Dobby first Internet transaction from all Internet transactions in the first preset historical time period, the transaction information of the first Internet transaction includes an IP address of a transaction terminal performing the first Internet transaction and A satellite positioning signal received by a transaction terminal performing the first Internet transaction;
    根据进行每笔第一互联网交易的交易终端接收的卫星定位信号,获得进行所述每笔第一互联网交易的交易终端的IP地址分布的唯一区域;Obtaining the unique area of the IP address distribution of the transaction terminal that performs each first Internet transaction according to the satellite positioning signal received by the transaction terminal that performs each first Internet transaction;
    根据进行所述每笔第一互联网交易的交易终端的IP地址分布的唯一区域,获得每个待判断IP地址段分布的各个区域以及各个区域占比,所述待判断IP地址段为进行所述每笔第一互联网交易的交易终端的IP地址前M位对应的地址段;According to the unique area of the IP address distribution of the transaction terminal performing each first Internet transaction, each area of each IP address segment distribution to be determined and the proportion of each area are obtained, and the IP address segment to be determined is the An address segment corresponding to the first M bits of the IP address of the transaction terminal of each first Internet transaction;
    判断所述待判断IP地址段对应的各个区域占比中最高占比是否大于第一预设百分比;Determining whether the highest proportion of the proportions of the regions corresponding to the IP address segment to be judged is greater than a first preset percentage;
    若所述最高占比大于所述第一预设百分比,则确定所述待判断IP地址段为所述稳定IP地址段,并将所述最高占比对应的区域确定为所述稳定IP地址段分布的固定区域。If the highest ratio is greater than the first preset percentage, determining that the IP address segment to be determined is the stable IP address segment, and determining an area corresponding to the highest ratio as the stable IP address segment A fixed area of the distribution.
  7. 根据权利要求6所述的方法,所述第一互联网交易的交易信息还包括交易时间和定位时间,且所述交易时间与所述定位时间之差的绝对值小于预设时间差,所述交易时间为进行所述第一互联网交易的时间,所述定位时间为进行所述第一互联网交易的交易终端接收卫星定位信号的时间。The method according to claim 6, wherein the transaction information of the first Internet transaction further includes a transaction time and a positioning time, and an absolute value of a difference between the transaction time and the positioning time is less than a preset time difference, and the transaction time For the time of performing the first Internet transaction, the positioning time is the time when the transaction terminal performing the first Internet transaction receives a satellite positioning signal.
  8. 根据权利要求6所述的方法,在所述判断所述待定位终端的IP地址是否属于一稳定IP地址段之后,还包括:The method according to claim 6, after the determining whether the IP address of the terminal to be located belongs to a stable IP address segment, further comprising:
    若所述待定位终端的IP地址不属于所述一稳定IP地址段,则判断所述待定位终端的IP地址是否属于一不稳定IP地址段,所述不稳定IP地址段为根据所述多笔第一互联网交易确定的分布在两个以上区域的IP地址段,且所述不稳定IP地址段为所述多笔第一互联网交易涉及的交易终端的IP地址前M位对应的地址段;If the IP address of the terminal to be located does not belong to the stable IP address segment, determine whether the IP address of the terminal to be located belongs to an unstable IP address segment, and the unstable IP address segment is based on the multiple IP addresses. The IP address segments distributed in more than two areas determined by the first Internet transaction, and the unstable IP address segment is an address segment corresponding to the first M bits of the IP address of the transaction terminal involved in the multiple first Internet transactions;
    若所述待定位终端的IP地址属于所述一不稳定IP地址段,则判断所述不稳定IP地址段分布的两个以上区域是否包括所述待定位终端的最后交易区域;If the IP address of the terminal to be located belongs to the unstable IP address segment, determining whether two or more regions distributed by the unstable IP address segment include the last transaction area of the terminal to be located;
    若所述不稳定IP地址段分布的两个以上区域包括所述待定位终端的最后交易区域,则将所述待定位终端的最后交易区域确定为进行所述待定位交易的交易区域。If more than two areas of the unstable IP address segment distribution include the last transaction area of the terminal to be located, the last transaction area of the terminal to be located is determined as the transaction area where the to-be-positioned transaction is performed.
  9. 根据权利要求8所述的方法,在所述判断所述待判断IP地址段对应的各个区域占比中最高占比是否大于第一预设百分比之后,还包括:The method according to claim 8, after the determining whether the highest proportion of the proportions of the regions corresponding to the IP address segment to be judged is greater than a first preset percentage, further comprising:
    若所述最高占比不大于所述第一预设百分比,则确定所述待判断IP地址段为所述不稳定IP地址段,并将所述待判断IP地址段分布的各个区域中满足预设条件的区域确定为所述不稳定IP地址段分布的两个以上区域。If the maximum ratio is not greater than the first preset percentage, determine that the IP address segment to be determined is the unstable IP address segment, and satisfy the pre- The conditional region is determined as two or more regions of the unstable IP address segment distribution.
  10. 根据权利要求9所述的方法,所述预设条件包括占比高于第二预设百分比和/或与所述最高占比对应的区域属于同一上级行政区域,所述第二预设百分比小于所述第一预设百分比。The method according to claim 9, wherein the preset condition comprises a proportion higher than a second preset percentage and / or an area corresponding to the highest proportion belongs to the same higher administrative region, and the second preset percentage is less than The first preset percentage.
  11. 根据权利要求8所述的方法,在所述判断所述不稳定IP地址段分布的两个以上区域是否包括所述待定位终端的最后交易区域之前,还包括:The method according to claim 8, before the determining whether two or more regions of the unstable IP address segment distribution include a last transaction region of the terminal to be located, further comprising:
    从第二预设历史时间段内的所有互联网交易中提取多笔第二互联网交易,所述第二预设历史时间段为从第二预设历史时间至进行所述待定位交易的时间对应的历史时间段,所述第二互联网交易的交易信息包括进行所述第二互联网交易的交易终端的身份标识、进行所述第二互联网交易的交易终端接收的卫星定位信号以及进行所述第二互联网交易的时间;Extracting a plurality of second Internet transactions from all Internet transactions within a second preset historical time period, the second preset historical time period corresponding to the time from the second preset historical time to the time when the transaction to be located is performed In the historical time period, the transaction information of the second Internet transaction includes an identity of a transaction terminal performing the second Internet transaction, a satellite positioning signal received by the transaction terminal performing the second Internet transaction, and performing the second Internet transaction. The time of the transaction;
    根据进行每笔第二互联网交易的交易终端的身份标识、进行所述每笔第二互联网交易的时间以及进行所述每笔第二互联网交易的交易终端接收的卫星定位信号,确定每个身份标识对应的交易终端的最后交易区域;Determine each identity according to the identity of the transaction terminal that conducted each second internet transaction, the time at which each second internet transaction was performed, and the satellite positioning signal received by the transaction terminal at which each second internet transaction was performed The last trading area of the corresponding trading terminal;
    从所述待定位交易的交易信息中提取所述待定位终端的身份标识;Extracting the identity of the terminal to be located from the transaction information of the transaction to be located;
    根据所述待定位终端的身份标识和所述每个身份标识对应的交易终端的最后交易区域,确定所述待定位终端的最后交易区域。Determining the last transaction area of the terminal to be located according to the identity of the terminal to be located and the last transaction area of the transaction terminal corresponding to each identity.
  12. 根据权利要求8所述的方法,在所述判断所述不稳定IP地址段分布的两个以上区域是否包括所述待定位终端的最后交易区域之后,还包括:The method according to claim 8, after determining whether two or more regions of the unstable IP address segment distribution include a last transaction region of the terminal to be located, further comprising:
    若所述不稳定IP地址段分布的两个以上区域不包括所述待定位终端的最后交易区域,则将所述不稳定IP地址段分布的两个以上区域中占比最高的区域确定为进行所述待定位交易的交易区域。If the two or more areas of the unstable IP address segment distribution do not include the last transaction area of the terminal to be located, the area with the highest proportion among the two or more areas of the unstable IP address segment distribution is determined to be performed. The transaction area of the transaction to be located.
  13. 一种互联网交易定位装置,包括:An Internet transaction positioning device includes:
    定位信息提取模块,用于从待定位交易的交易信息中提取待定位终端的IP地址,所述待定位终端为进行所述待定位交易的交易终端;A positioning information extraction module, configured to extract an IP address of a terminal to be located from transaction information of a transaction to be located, where the terminal to be located is a transaction terminal that performs the transaction to be located;
    第一判断模块,用于判断所述待定位终端的IP地址是否属于一稳定IP地址段,所述稳定IP地址段为根据第一预设历史时间段内的多笔第一互联网交易确定的分布在固定区域的IP地址段,且所述稳定IP地址段为所述多笔第一互联网交易涉及的交易终端的IP地址前M位对应的地址段,M为正整数;A first determining module, configured to determine whether the IP address of the terminal to be located belongs to a stable IP address segment, where the stable IP address segment is a distribution determined according to multiple first Internet transactions within a first preset historical time period An IP address segment in a fixed area, and the stable IP address segment is an address segment corresponding to the first M bits of the IP address of the transaction terminal involved in the plurality of first Internet transactions, where M is a positive integer;
    第一确定模块,用于在所述待定位终端的IP地址属于所述一稳定IP地址段时,将所述稳定IP地址段分布的固定区域确定为进行所述待定位交易的交易区域。A first determining module is configured to determine, when the IP address of the terminal to be located belongs to the stable IP address segment, a fixed area where the stable IP address segment is distributed as a transaction area where the to-be-positioned transaction is performed.
  14. 根据权利要求13所述的装置,还包括:The apparatus according to claim 13, further comprising:
    第二判断模块,用于根据预先设置的各类定位信息的优先级顺序,判断所述待定位交易的交易信息中是否存在优先级高于所述待定位终端的IP地址的定位信息;A second determination module, configured to determine, according to a preset priority order of various types of positioning information, whether there is positioning information in the transaction information of the transaction to be located having a priority higher than the IP address of the terminal to be located;
    所述定位信息提取模块用于在所述待定位交易的交易信息中不存在优先级高于所述待定位终端的IP地址的定位信息时,从所述待定位交易的交易信息中提取所述待定位终端的IP地址;否则从所述待定位交易的交易信息中提取优先级最高的定位信息, 并根据优先级最高的定位信息确定进行所述待定位交易的交易区域。The positioning information extraction module is configured to extract the transaction information of the to-be-positioned transaction information when the positioning information of the to-be-positioned transaction does not have positioning information with a priority higher than the IP address of the terminal to be located. The IP address of the terminal to be located; otherwise, the highest priority positioning information is extracted from the transaction information of the to-be-positioned transaction, and the transaction area where the to-be-positioned transaction is performed is determined according to the highest-priority positioning information.
  15. 根据权利要求14所述的装置,所述定位信息包括进行交易的门店信息、交易终端的IP地址、交易终端接收的卫星定位信号、交易终端的身份标识、交易终端连接的基站信息以及交易终端连接的WIFI信息中的至少一种。The device according to claim 14, wherein the positioning information includes information on the store where the transaction is performed, the IP address of the transaction terminal, the satellite positioning signal received by the transaction terminal, the identity of the transaction terminal, the base station information connected to the transaction terminal, and the transaction terminal connection At least one of the WIFI information.
  16. 根据权利要求13所述的装置,所述第一预设历史时间段为从第一预设历史时间至进行所述待定位交易的时间对应的历史时间段。The apparatus according to claim 13, wherein the first preset historical time period is a historical time period corresponding to a time from the first preset historical time to a time when the transaction to be located is performed.
  17. 根据权利要求13所述的装置,所述固定区域为市级城市,M的取值为24。The device according to claim 13, the fixed area is a city-level city, and the value of M is 24.
  18. 根据权利要求13所述的装置,还包括:The apparatus according to claim 13, further comprising:
    第一交易提取模块,用于从所述第一预设历史时间段内的所有互联网交易中提取所述多比第一互联网交易,所述第一互联网交易的交易信息包括进行所述第一互联网交易的交易终端的IP地址和进行所述第一互联网交易的交易终端接收的卫星定位信号;A first transaction extraction module, configured to extract the multiple-to-first Internet transaction from all Internet transactions in the first preset historical time period, and the transaction information of the first Internet transaction includes performing the first Internet transaction The IP address of the transaction terminal of the transaction and the satellite positioning signal received by the transaction terminal of the first Internet transaction;
    地址分布获得模块,用于根据进行每笔第一互联网交易的交易终端接收的卫星定位信号,获得进行所述每笔第一互联网交易的交易终端的IP地址分布的唯一区域;An address distribution obtaining module, configured to obtain a unique area of the IP address distribution of the transaction terminal performing each first Internet transaction according to the satellite positioning signal received by the transaction terminal performing each first Internet transaction;
    地址段分布获得模块,用于根据进行所述每笔第一互联网交易的交易终端的IP地址分布的唯一区域,获得每个待判断IP地址段分布的各个区域以及各个区域占比,所述待判断IP地址段为进行所述每笔第一互联网交易的交易终端的IP地址前M位对应的地址段;The address segment distribution obtaining module is configured to obtain each region of each IP address segment distribution to be determined and the proportion of each region according to the unique region of the IP address distribution of the transaction terminal performing each first Internet transaction. Determine that the IP address segment is an address segment corresponding to the first M bits of the IP address of the transaction terminal that conducts each first Internet transaction;
    第三判断模块,用于判断所述待判断IP地址段对应的各个区域占比中最高占比是否大于第一预设百分比;A third determining module, configured to determine whether the highest proportion of the proportions of the regions corresponding to the IP address segment to be judged is greater than a first preset percentage;
    第二确定模块,用于在所述最高占比大于所述第一预设百分比时,确定所述待判断IP地址段为所述稳定IP地址段,并将所述最高占比对应的区域确定为所述稳定IP地址段分布的固定区域。A second determining module, configured to determine that the IP address segment to be determined is the stable IP address segment when the highest proportion is greater than the first preset percentage, and determine an area corresponding to the highest proportion A fixed area distributed for the stable IP address segment.
  19. 根据权利要求18所述的装置,所述第一互联网交易的交易信息还包括交易时间和定位时间,且所述交易时间与所述定位时间之差的绝对值小于预设时间差,所述交易时间为进行所述第一互联网交易的时间,所述定位时间为进行所述第一互联网交易的交易终端接收卫星定位信号的时间。The device according to claim 18, the transaction information of the first Internet transaction further includes a transaction time and a positioning time, and an absolute value of a difference between the transaction time and the positioning time is less than a preset time difference, and the transaction time For the time of performing the first Internet transaction, the positioning time is the time when the transaction terminal performing the first Internet transaction receives a satellite positioning signal.
  20. 根据权利要求18所述的装置,还包括:The apparatus of claim 18, further comprising:
    第四判断模块,用于在所述待定位终端的IP地址不属于所述一稳定IP地址段时,判断所述待定位终端的IP地址是否属于一不稳定IP地址段,所述不稳定IP地址段为根据所述多笔第一互联网交易确定的分布在两个以上区域的IP地址段,且所述不稳定IP地址段为所述多笔第一互联网交易涉及的交易终端的IP地址前M位对应的地址段;A fourth determining module is configured to determine whether the IP address of the terminal to be located belongs to an unstable IP address segment when the IP address of the terminal to be located does not belong to the stable IP address segment, and the unstable IP The address segment is an IP address segment distributed in more than two areas determined according to the multiple first Internet transactions, and the unstable IP address segment is in front of the IP addresses of the transaction terminals involved in the multiple first Internet transactions M bit corresponding address segment;
    第五判断模块,用于在所述待定位终端的IP地址属于所述一不稳定IP地址段时,判断所述不稳定IP地址段分布的两个以上区域是否包括所述待定位终端的最后交易区域;A fifth judgment module is configured to determine whether the two or more regions of the unstable IP address segment distribution include the last of the terminal to be located when the IP address of the terminal to be located belongs to the one unstable IP address segment. Trading area
    第三确定模块,用于在所述不稳定IP地址段分布的两个以上区域包括所述待定位终端的最后交易区域时,将所述待定位终端的最后交易区域确定为进行所述待定位交易的交易区域。A third determining module, configured to determine the last transaction area of the terminal to be located when the two or more areas of the unstable IP address segment distribution include the last transaction area of the terminal to be located The transaction area of the transaction.
  21. 根据权利要求20所述的装置,还包括:The apparatus of claim 20, further comprising:
    第四确定模块,用于在所述最高占比不大于所述第一预设百分比时,确定所述待判断IP地址段为所述不稳定IP地址段,并将所述待判断IP地址段分布的各个区域中满足预设条件的区域确定为所述不稳定IP地址段分布的两个以上区域。A fourth determining module, configured to determine that the IP address segment to be determined is the unstable IP address segment when the maximum ratio is not greater than the first preset percentage, and to use the IP address segment to be determined The areas satisfying the preset conditions in each area of the distribution are determined as two or more areas of the unstable IP address segment distribution.
  22. 根据权利要求21所述的装置,所述预设条件包括占比高于第二预设百分比和/或与所述最高占比对应的区域属于同一上级行政区域,所述第二预设百分比小于所述第一预设百分比。The device according to claim 21, the preset condition comprises a proportion higher than a second preset percentage and / or an area corresponding to the highest proportion belongs to the same higher administrative area, and the second preset percentage is less than The first preset percentage.
  23. 根据权利要求20所述的装置,所述定位信息提取模块还用于从所述待定位交易的交易信息中提取所述待定位终端的身份标识,所述装置还包括:The device according to claim 20, wherein the positioning information extraction module is further configured to extract the identity of the terminal to be located from the transaction information of the transaction to be located, and the device further comprises:
    第二交易提取模块,用于从第二预设历史时间段内的所有互联网交易中提取多笔第二互联网交易,所述第二预设历史时间段为从第二预设历史时间至进行所述待定位交易的时间对应的历史时间段,所述第二互联网交易的交易信息包括进行所述第二互联网交易的交易终端的身份标识、进行所述第二互联网交易的交易终端接收的卫星定位信号以及进行所述第二互联网交易的时间;A second transaction extraction module, configured to extract multiple second Internet transactions from all Internet transactions within a second preset historical time period, where the second preset historical time period is from the second preset historical time to the The historical time period corresponding to the time of the transaction to be located, the transaction information of the second Internet transaction includes the identity of the transaction terminal performing the second Internet transaction, and satellite positioning received by the transaction terminal performing the second Internet transaction. The signal and the time when the second Internet transaction is performed;
    第五确定模块,用于根据进行每笔第二互联网交易的交易终端的身份标识、进行所述每笔第二互联网交易的时间以及进行所述每笔第二互联网交易的交易终端接收的卫星定位信号,确定每个身份标识对应的交易终端的最后交易区域;A fifth determination module, configured to determine the satellite positioning received by the transaction terminal that performed each second Internet transaction according to the identity of the transaction terminal that performed each second Internet transaction, the time when each second Internet transaction was performed, and Signal to determine the last transaction area of the transaction terminal corresponding to each identity;
    第六确定模块,用于根据所述待定位终端的身份标识和所述每个身份标识对应的交易终端的最后交易区域,确定所述待定位终端的最后交易区域。A sixth determining module is configured to determine a last transaction area of the terminal to be located according to the identity of the terminal to be located and a last transaction area of the transaction terminal corresponding to each identity.
  24. 根据权利要求20所述的装置,还包括:The apparatus of claim 20, further comprising:
    第七确定模块,用于在所述不稳定IP地址段分布的两个以上区域不包括所述待定位终端的最后交易区域时,将所述不稳定IP地址段分布的两个以上区域中占比最高的区域确定为进行所述待定位交易的交易区域。A seventh determining module, configured to: when the two or more areas of the unstable IP address segment distribution do not include the last transaction area of the terminal to be located, occupy the two or more areas of the unstable IP address segment distribution The region with the highest ratio is determined as the transaction region where the to-be-positioned transaction is performed.
  25. 一种服务器,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现权利要求1-12任一项所述方法的步骤。A server includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the steps of the method according to any one of claims 1-12 are implemented.
  26. 一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现权利要求1-12任一项所述方法的步骤。A computer-readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of the method according to any one of claims 1-12.
PCT/CN2019/096469 2018-08-31 2019-07-18 Method and device for positioning internet transaction, and server WO2020042810A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811012879.6 2018-08-31
CN201811012879.6A CN109274725B (en) 2018-08-31 2018-08-31 Internet transaction positioning method and device and server

Publications (1)

Publication Number Publication Date
WO2020042810A1 true WO2020042810A1 (en) 2020-03-05

Family

ID=65154954

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/096469 WO2020042810A1 (en) 2018-08-31 2019-07-18 Method and device for positioning internet transaction, and server

Country Status (3)

Country Link
CN (1) CN109274725B (en)
TW (1) TWI718577B (en)
WO (1) WO2020042810A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274725B (en) * 2018-08-31 2020-05-26 阿里巴巴集团控股有限公司 Internet transaction positioning method and device and server
CN112003958A (en) * 2020-07-03 2020-11-27 拉卡拉支付股份有限公司 System and method for positioning transaction address

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012174650A1 (en) * 2011-06-23 2012-12-27 Gone Fishing Consulting Ltd. Method for geographically targeting online advertising campaigns
CN103164802A (en) * 2013-03-14 2013-06-19 北京恒远创智信息技术有限公司 Position detection based method and system for preventing illegal electronic transaction
CN106534392A (en) * 2015-09-10 2017-03-22 阿里巴巴集团控股有限公司 Positioning information acquiring method, positioning method and apparatus
CN108389052A (en) * 2018-02-27 2018-08-10 平安科技(深圳)有限公司 Prevent bank card from stealing method, apparatus, computer equipment and the storage medium of brush
CN109274725A (en) * 2018-08-31 2019-01-25 阿里巴巴集团控股有限公司 Internet business localization method, device and server

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030065571A1 (en) * 1999-10-14 2003-04-03 Rabindranath Dutta System, method, and program for determining the jurisdiction of a product delivery location by using the ip address of the client while selling items via electronic commerce over the internet
CN101355595B (en) * 2008-09-17 2012-05-23 北京搜狗科技发展有限公司 Method and apparatus for locating physical location of IP address
US8917826B2 (en) * 2012-07-31 2014-12-23 International Business Machines Corporation Detecting man-in-the-middle attacks in electronic transactions using prompts
CN103716282B (en) * 2012-09-28 2017-10-10 北京新媒传信科技有限公司 A kind of method and system in amendment IP storehouses
CN103220376B (en) * 2013-03-30 2014-07-16 清华大学 Method for positioning IP (Internet Protocol) by position data of mobile terminal
US9147117B1 (en) * 2014-06-11 2015-09-29 Socure Inc. Analyzing facial recognition data and social network data for user authentication
CN105491172B (en) * 2014-09-17 2019-04-09 阿里巴巴集团控股有限公司 It is a kind of for determining the method and apparatus of the information of home location of network address
CN104333609B (en) * 2014-10-15 2018-04-13 北京百度网讯科技有限公司 IP address localization method and device
US20170345006A1 (en) * 2016-05-27 2017-11-30 Mastercard International Incorporated Systems and methods for location data verification
TWM548848U (en) * 2017-07-05 2017-09-11 兆豐國際商業銀行股份有限公司 Location detection server
TWM565357U (en) * 2018-04-26 2018-08-11 臺灣土地銀行股份有限公司 Geographic information system of automated service equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012174650A1 (en) * 2011-06-23 2012-12-27 Gone Fishing Consulting Ltd. Method for geographically targeting online advertising campaigns
CN103164802A (en) * 2013-03-14 2013-06-19 北京恒远创智信息技术有限公司 Position detection based method and system for preventing illegal electronic transaction
CN106534392A (en) * 2015-09-10 2017-03-22 阿里巴巴集团控股有限公司 Positioning information acquiring method, positioning method and apparatus
CN108389052A (en) * 2018-02-27 2018-08-10 平安科技(深圳)有限公司 Prevent bank card from stealing method, apparatus, computer equipment and the storage medium of brush
CN109274725A (en) * 2018-08-31 2019-01-25 阿里巴巴集团控股有限公司 Internet business localization method, device and server

Also Published As

Publication number Publication date
CN109274725A (en) 2019-01-25
TW202011323A (en) 2020-03-16
CN109274725B (en) 2020-05-26
TWI718577B (en) 2021-02-11

Similar Documents

Publication Publication Date Title
CN107819829B (en) Method and system for accessing block chain, block chain node point equipment and user terminal
US10311230B2 (en) Anomaly detection in distributed ledger systems
US9544726B2 (en) Adding location names using private frequent location data
WO2021217863A1 (en) Order identifier generation method and apparatus, server, and storage medium
TWI709868B (en) Data storage method and device based on blockchain
EP3258397A1 (en) Text address processing method and apparatus
CN106471488B (en) Tiling techniques for server control based on location information
CN109214632B (en) Risk control method and equipment
CN107273376B (en) Target position searching method and device
US20150100482A1 (en) Payment tree
TWI661321B (en) Method and device for determining user relationship
WO2020042810A1 (en) Method and device for positioning internet transaction, and server
CN107430631B (en) Determining semantic place names from location reports
CN111522838A (en) Address similarity calculation method and related device
CN112559663B (en) POI data processing method, device, equipment, storage medium and program product
CN113468226A (en) Service processing method, device, electronic equipment and storage medium
CN107277188B (en) Method, client, server and service system for determining IP address attribution information
CN115145587A (en) Product parameter checking method and device, electronic equipment and storage medium
CN109146444B (en) Virtual account creating method and device and account information updating method and device
US10108728B2 (en) Provision of location information with search queries from location unaware devices to increase user interaction performance
CN113449986A (en) Service distribution method, device, server and storage medium
CN105653717A (en) Information sharing method and device
WO2023160551A1 (en) Request processing method, and device
EP3407568A1 (en) Service processing method and device
CN116560577A (en) Identification processing method and device, electronic equipment and medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19853584

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19853584

Country of ref document: EP

Kind code of ref document: A1