Method, device, storage medium and electronic device for determining merchant location change
By calculating the similarity between the delivery staff’s location, Wi-Fi and air pressure information when picking up the meal, and timely identifying merchant location changes, the problem of not being able to identify location changes in the existing technology is solved, and the efficiency of takeaway delivery is improved.
Patent Information
- Application Number
- CN202010833817.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-18
- Publication Date
- 2025-04-22
- Estimated Expiration
- 2040-08-18
AI Technical Summary
The existing technology cannot identify changes in merchant locations in a timely manner, which affects the delivery process of delivery personnel.
By obtaining the delivery staff's location information, Wi-Fi information and air pressure information when the meal is completed, the similarity between these information and the preset information is calculated. If the similarity does not reach the preset threshold, the recorded order is a mismatch order. When the threshold condition is reached, the merchant's location will be determined to change.
It realizes timely identification of merchant location changes, reduces the impact of merchant location changes on takeaway delivery business, and improves delivery efficiency.
Smart Images

Figure CN114154547B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular, to a method, device, storage medium and electronic device for determining a change in a merchant location. Background Art
[0002] For the food delivery business, the location information of the merchant is very important. The location information of the merchant is needed in business scenarios such as dispatching orders, setting the delivery range, pricing, delivery navigation, and judging the performance of the deliveryman. For example, the store arrival status of the deliveryman is judged by the merchant's location. When the deliveryman clicks to arrive at the store or picks up the food when he is not in the store, a corresponding pop-up window will appear to remind the deliveryman. When the location of the merchant changes, the location of the merchant in the food delivery business system needs to be updated synchronously, otherwise the deliveryman will still click to arrive at the store or pick up the food at the original location of the merchant, resulting in an error prompt, which seriously affects the delivery process of the deliveryman.
[0003] In the related technology, the change of the merchant's location is mainly determined by comparing the location information of the merchant on day t and the location information of the merchant on day t-1 in the takeaway business system in the early morning of day t+1 (t is a positive integer greater than 1) to see whether they are consistent. However, the merchant's location change may occur on day t, so this method cannot avoid the impact of the delivery personnel's delivery process on day t due to the change of the merchant's location. Summary of the invention
[0004] The purpose of the present disclosure is to provide a method, device, storage medium and electronic device for determining a change in a merchant location, so as to solve the problems in the related art and timely identify changes in the merchant location.
[0005] In order to achieve the above object, the present disclosure provides a method for determining a change in a merchant location, the method comprising:
[0006] Obtaining the location information of the delivery person when the delivery person completes picking up the food at the merchant corresponding to the order, the Wi-Fi information scanned by the delivery person when the delivery person completes picking up the food, and the air pressure information of the environment in which the delivery person is located from the time the delivery person receives the order to the time the delivery person completes picking up the food at the merchant;
[0007] determining a first similarity between the location information and preset location information, a second similarity between the Wi-Fi information and preset Wi-Fi information, and a third similarity between the air pressure information and preset air pressure information, wherein the preset location information, the preset Wi-Fi information, and the preset air pressure information are obtained based on a plurality of historical orders corresponding to the merchant;
[0008] If at least one of the first similarity, the second similarity and the third similarity does not reach a preset similarity, recording the order as an unmatched order;
[0009] If the recorded unmatched orders meet a preset threshold condition, it is determined that the location of the merchant has changed.
[0010] Optionally, the preset air pressure information is obtained in the following manner:
[0011] Obtaining historical air pressure information corresponding to the multiple historical orders, the historical air pressure information including air pressure information of the environment in which the delivery personnel in the multiple historical orders were located from receiving the order to completing the meal pickup at the merchant;
[0012] Determining a plurality of air pressure change intervals according to the historical air pressure information;
[0013] Clustering the multiple air pressure change intervals to obtain a target air pressure change interval corresponding to the merchant;
[0014] Determining a third similarity between the air pressure information and preset air pressure information includes:
[0015] Determine, based on the air pressure information, the air pressure change interval corresponding to the environment in which the delivery person is located during the time from when the delivery person receives the order to when the delivery person completes the meal pickup at the merchant;
[0016] A third similarity between the air pressure variation interval and the target air pressure variation interval is determined.
[0017] Optionally, determining a plurality of air pressure change intervals according to the historical air pressure information includes:
[0018] For each air pressure data point in the historical air pressure information, traverse in chronological order; if the air pressure change trends of a preset number of consecutive air pressure data points are the same, and the air pressure change value between every two air pressure data points in the preset number of air pressure data points is greater than or equal to the preset air pressure change threshold, then determine the air pressure data point at the front of the preset number of air pressure data points as the air pressure change starting point, and continue to traverse the air pressure data points at the next moment; if the air pressure change trends of the preset number of consecutive air pressure data points are different, or the air pressure change value between every two air pressure data points in the preset number of air pressure data points is less than the preset air pressure change threshold, then determine the air pressure data point at the last moment in the preset number of air pressure data points as the air pressure change ending point;
[0019] The air pressure change interval is obtained according to the air pressure information corresponding to all air pressure data points between the air pressure change starting point and the air pressure change ending point.
[0020] Optionally, the preset location information is obtained in the following manner:
[0021] Acquire multiple historical order information corresponding to the merchant, wherein the multiple historical order information includes historical GPS coordinate information of the delivery person when the delivery person completes picking up the food at the merchant;
[0022] Determine the geo-hash block corresponding to each of the historical GPS coordinate information;
[0023] Determine a target geo-hash block among the plurality of geo-hash blocks, wherein the target geo-hash block includes the historical GPS coordinate information having a preset ratio;
[0024] The GPS coordinate information corresponding to the center point of the target geographic hash block is determined as the preset location information.
[0025] Optionally, the preset Wi-Fi information is obtained in the following manner:
[0026] Acquire multiple historical order information corresponding to the merchant, wherein the multiple historical order information includes historical Wi-Fi list information scanned by the delivery person when picking up the meal from the merchant;
[0027] Vectorizing each of the historical Wi-Fi list information to obtain multiple multi-dimensional vectors, where the dimension of the multi-dimensional vector is the same as the number of different Wi-Fi information in all the historical Wi-Fi list information;
[0028] The multiple multi-dimensional vectors are clustered, and the historical Wi-Fi list information corresponding to the central multi-dimensional vector obtained by clustering is used as the preset Wi-Fi information.
[0029] Optionally, if the recorded unmatched orders reach a preset threshold condition, determining that the location of the merchant has changed includes:
[0030] If the ratio of the orders whose first similarity does not reach the preset similarity in the recorded unmatched orders to the unmatched orders reaches a first preset ratio, it is determined that the horizontal position of the merchant relative to the ground plane has changed;
[0031] If the ratio of the orders whose second similarity does not reach the preset similarity among the recorded unmatched orders to the unmatched orders reaches a second preset ratio, it is determined that the horizontal position or vertical position of the merchant relative to the ground plane has changed;
[0032] If the ratio of the orders whose third similarity does not reach the preset similarity in the recorded unmatched orders to the unmatched orders reaches a third preset ratio, it is determined that the vertical position of the merchant relative to the ground plane has changed.
[0033] Optionally, after determining that the location of the merchant has changed, the method further includes:
[0034] Sending a prompt message indicating the change of the merchant's location to the delivery terminal; and / or
[0035] Sending prompt information to the merchant terminal to prompt the merchant to update the location.
[0036] In a second aspect, the present disclosure further provides a device for determining a change in a merchant location, the device comprising:
[0037] An acquisition module, used to acquire the location information of the delivery person when the delivery person completes picking up the food at the merchant corresponding to the order, the Wi-Fi information scanned by the delivery person when the delivery person completes picking up the food, and the air pressure information of the environment in which the delivery person is located from the time the delivery person receives the order to the time the delivery person completes picking up the food at the merchant;
[0038] a first determining module, configured to determine a first similarity between the location information and preset location information, a second similarity between the Wi-Fi information and preset Wi-Fi information, and a third similarity between the air pressure information and preset air pressure information, wherein the preset location information, the preset Wi-Fi information, and the preset air pressure information are obtained based on a plurality of historical orders corresponding to the merchant;
[0039] a recording module, configured to record the order as an unmatched order when at least one of the first similarity, the second similarity and the third similarity does not reach a preset similarity;
[0040] The second determination module is used to determine that the location of the merchant has changed when the recorded unmatched orders reach a preset threshold condition.
[0041] In a third aspect, the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods described in the first aspect.
[0042] In a fourth aspect, the present disclosure further provides an electronic device, including:
[0043] a memory having a computer program stored thereon;
[0044] A processor is used to execute the computer program in the memory to implement the steps of any one of the methods in the first aspect.
[0045] Through the above technical solution, the location information of the deliveryman when the merchant corresponding to the order has completed the meal pickup, the Wi-Fi information scanned by the deliveryman when the meal pickup has been completed, and the air pressure information of the environment in which the deliveryman is located from the time the order is received to the time the meal pickup is completed at the merchant are obtained, and then the first similarity between the location information and the preset location information, the second similarity between the Wi-Fi information and the preset Wi-Fi information, and the third similarity between the air pressure information and the preset air pressure information are determined. If at least one of the first similarity, the second similarity, and the third similarity does not reach the preset similarity, the order is recorded as an unmatched order; if the recorded unmatched order reaches the preset threshold condition, it is determined that the location of the merchant has changed. Compared with the method in the related art, the change of the merchant's location can be identified based on the location information, Wi-Fi information, and air pressure information reported in real time by the delivery terminal during the delivery process. Therefore, the change of the merchant's location can be discovered in time, thereby reducing the impact of the merchant's location change on the takeaway delivery business.
[0046] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0048] Figure 1 is a schematic diagram of an implementation scenario according to an exemplary embodiment of the present disclosure;
[0049] Figure 2 is a flow chart of a method for determining a change in a merchant location according to an exemplary embodiment of the present disclosure;
[0050] Figure 3 is a flow chart showing a method for determining a change in a merchant location according to another exemplary embodiment of the present disclosure;
[0051] Figure 4 is a block diagram of a device for determining a change in a merchant location according to an exemplary embodiment of the present disclosure;
[0052] Figure 5 It is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0053] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0054] For the food delivery business, the location information of the merchant is very important. The location information of the merchant is needed in business scenarios such as dispatching orders, setting the delivery range, pricing, delivery navigation, and judging the performance of the deliveryman. For example, the store arrival status of the deliveryman is judged by the merchant's location. When the deliveryman clicks to arrive at the store or picks up the food when he is not in the store, a corresponding pop-up window will appear to remind the deliveryman. When the location of the merchant changes, the location of the merchant in the food delivery business system needs to be updated synchronously, otherwise the deliveryman will still click to arrive at the store or pick up the food at the original location of the merchant, resulting in an error prompt, which seriously affects the delivery process of the deliveryman.
[0055] In the related art, the change of the merchant's location is mainly determined by comparing the location information of the merchant on day t and the location information of the merchant on day t-1 in the takeaway business system in the early morning of day t+1 (t is a positive integer greater than 1) to see whether they are consistent. However, the inventors have found that the merchant's location change may occur on day t, so this method of the related art cannot avoid the impact of the delivery personnel's delivery process on day t on the change of the merchant's location.
[0056] In view of this, the embodiments of the present disclosure provide a method, device, storage medium and electronic device for determining a change in a merchant location to solve the problems existing in the related technologies, timely identify changes in merchant locations, and reduce the impact of changes in merchant locations on the delivery process of the takeaway business.
[0057] First, an exemplary implementation scenario of the present disclosure is described. Figure 1 The implementation scenario may include a server, a delivery terminal, and a merchant terminal. The delivery terminal may be a portable electronic device such as a mobile phone or PAD held by a delivery person, or may be an electronic device such as a drone used for food delivery, which is not limited in the embodiments of the present disclosure. Figure 1 The delivery terminal is illustrated as a mobile phone held by the delivery person. The merchant terminal can be a mobile phone, PAD or other portable electronic device held by the merchant, or can be an electronic device such as a computer set up at the merchant, and the embodiments of the present disclosure are not limited to this. Figure 1 The merchant terminal is used as a computer for illustration.
[0058] Reference Figure 1, the delivery terminal can report to the server the location information when the meal is picked up, the Wi-Fi information scanned when the meal is picked up, and the air pressure information of the environment from the time the order is received to the time the meal is picked up at the merchant. When the server receives the above information sent by the delivery terminal, it can determine the similarity between the above information and the corresponding preset information respectively. If the server detects that any similarity does not reach the preset similarity, the order is recorded as an unmatched order. When the unmatched orders recorded by the server reach the preset threshold conditions, it is determined that the location of the merchant has changed. In this case, the server can also send a prompt message to the merchant terminal to prompt the merchant to update the merchant location information in the takeaway business system in a timely manner. Alternatively, the server can also send a prompt message to the delivery terminal to prompt the delivery person that the merchant's location has changed.
[0059] The following is a detailed description of the method and steps for determining a merchant location change in the present disclosure. Figure 2 FIG. 1 is a flow chart showing a method for determining a merchant location change according to an exemplary embodiment of the present disclosure. Figure 2 , the method can be applied to the server, including:
[0060] Step 201, obtain the location information of the delivery person when the delivery person completes picking up the food at the merchant corresponding to the order, the Wi-Fi information scanned by the delivery person when the delivery person completes picking up the food, and the air pressure information of the environment in which the delivery person is located from the time the delivery person receives the order to the time the delivery person completes picking up the food at the merchant.
[0061] Step 202, determining a first similarity between the location information and preset location information, a second similarity between the Wi-Fi information and the preset Wi-Fi information, and a third similarity between the air pressure information and the preset air pressure information, wherein the preset location information, the preset Wi-Fi information, and the preset air pressure information are obtained based on multiple historical orders corresponding to the merchant.
[0062] Step 203: If at least one of the first similarity, the second similarity and the third similarity does not reach a preset similarity, the order is recorded as an unmatched order.
[0063] Step 204: If the recorded unmatched orders reach a preset threshold condition, it is determined that the location of the merchant has changed.
[0064] For example, the delivery terminal may be provided with a GPS (Global Positioning System) positioning module or other positioning modules for positioning, so that the delivery terminal can determine the location of the delivery person in real time. When it is determined that the meal pickup is completed, the delivery terminal can send the location information determined by the positioning module to the server, so that the server can obtain the location information of the delivery person when the meal pickup is completed at the merchant by receiving the location information.
[0065] For example, the delivery terminal may be provided with a Wi-Fi communication module, through which the delivery terminal may scan nearby Wi-Fi information and select a certain Wi-Fi information for communication connection. When it is determined that the meal pickup is completed, the delivery terminal may send the scanned Wi-Fi information to the server, so that the server may obtain the Wi-Fi information scanned by the delivery terminal when the merchant completes the meal pickup by receiving the Wi-Fi information.
[0066] For example, the delivery terminal may also be provided with an air pressure sensor, which can detect the air pressure information in the environment where the delivery person is located in real time, and the delivery terminal can save the detected air pressure information. When it is determined that the meal pickup is completed, the delivery terminal can send the air pressure information detected by the air pressure sensor during the time from receiving the order to completing the meal pickup at the merchant to the server, so that the server can obtain the air pressure information of the environment where the delivery person is located during the time from receiving the order to completing the meal pickup at the merchant by receiving the air pressure information.
[0067] After obtaining the location information of the delivery person when he / she completes picking up the food at the merchant corresponding to the order, the Wi-Fi information scanned when picking up the food, and the air pressure information of the environment in which the delivery person is located from the time he / she receives the order to the time he / she completes picking up the food at the merchant, a first similarity between the location information and the preset location information, a second similarity between the Wi-Fi information and the preset Wi-Fi information, and a third similarity between the air pressure information and the preset air pressure information can be determined.
[0068] In a possible manner, the preset location information may be obtained in the following manner: first obtain multiple historical order information corresponding to the merchant, and the multiple historical order information includes the historical GPS coordinate information of the delivery person when the merchant completes the meal pickup. Then, determine the geo-hash block corresponding to each historical GPS coordinate information. Next, determine the target geo-hash block among the multiple geo-hash blocks, and the target geo-hash block includes a preset proportion of historical GPS coordinate information. Finally, determine the GPS coordinate information corresponding to the center point of the target geo-hash block as the preset location information. Among them, the preset proportion can be set according to actual conditions, and the embodiments of the present disclosure are not limited to this. For example, the preset proportion can be set to 50%, and so on.
[0069] For example, when the meal is picked up, the delivery terminal can send the location information determined by the positioning module when the meal is picked up to the server. Therefore, after obtaining multiple historical order information, the historical GPS coordinate information of the delivery person when the meal is picked up in the multiple historical order information can be determined respectively. Then, for each historical GPS coordinate information, the geohash block corresponding to the historical GPS coordinate information can be determined.
[0070] It should be understood that the geohash block is a sub-block obtained by recursively decomposing the earth as a two-dimensional plane, and each sub-block has the same string code within a certain longitude and latitude range. In other words, all points in each sub-block (i.e., longitude and latitude coordinate points) share the same geohash string. In the embodiments of the present disclosure, the historical GPS coordinate information can be converted into a 7-bit coded geohash block or a geohash block coded with other bit numbers, and the embodiments of the present disclosure are not limited to this. Among them, the more coding bits the geohash block has, the higher the coding accuracy, so that more accurate preset location information can be obtained. In specific implementation, the number of coding bits of the geohash block can be selected according to the accuracy requirements.
[0071] After obtaining multiple geo-hash blocks corresponding to the historical GPS coordinate information, a target hash block can be determined from the multiple geo-hash blocks, and the target hash block can be a geo-hash block that includes a preset ratio of historical GPS coordinate information. For example, if the preset ratio is 50%, the target geo-hash block is a geo-hash block that includes 50% or more historical GPS coordinate information. Then, the GPS coordinate information corresponding to the center point of the target geo-hash block can be determined as the preset location information of the merchant, that is, the GPS coordinate information corresponding to the center point of the target geo-hash block is approximately determined as the GPS coordinate information of the merchant.
[0072] It should be understood that among the historical GPS coordinate information included in the multiple historical order information, there may be abnormal GPS coordinate information that is significantly different from the majority of the historical GPS coordinate information. Therefore, in order to improve the accuracy of the preset location information determined subsequently, after obtaining the multiple historical order information corresponding to the merchant, data filtering processing can also be performed to remove the abnormal GPS coordinate information included in the multiple historical order information. Among them, the data filtering method in the relevant technology can be used, and the embodiments of the present disclosure are not limited to this.
[0073] In a possible manner, the preset Wi-Fi information may be obtained in the following manner: first, multiple historical order information corresponding to the merchant is obtained, and the multiple historical order information includes the historical Wi-Fi list information scanned by the delivery person when the merchant completes the meal pickup. Then, each historical Wi-Fi list information is vectorized to obtain multiple multi-dimensional vectors, and the dimension of the multi-dimensional vector is the same as the number of different Wi-Fi information in all historical Wi-Fi list information. Finally, the multiple multi-dimensional vectors may be clustered, and the historical Wi-Fi list information corresponding to the central multi-dimensional vector obtained by clustering is used as the preset Wi-Fi information.
[0074] For example, when the meal is picked up, the delivery terminal can feed back the scanned Wi-Fi list information to the server. Therefore, after obtaining multiple historical order information, the historical Wi-Fi list information scanned by the delivery terminal when the meal is picked up can be determined separately in the multiple historical order information. Then, each historical Wi-Fi list information can be vectorized to obtain multiple multi-dimensional vectors, and the dimension of the multi-dimensional vector is the same as the number of different Wi-Fi information in all historical Wi-Fi list information.
[0075] For example, 20 historical order information corresponding to the merchant are obtained, and each historical order information includes a historical Wi-Fi list information scanned by the delivery terminal when the merchant completes the meal pickup, that is, 20 historical Wi-Fi list information are obtained. Among them, the number of Wi-Fis included in each historical Wi-Fi list information may be different, but it may also include the same Wi-Fi information. Therefore, first, all different Wi-Fi information in the 20 historical Wi-Fi list information can be determined, and then the number of all different Wi-Fi information can be determined. For example, if the number of all different Wi-Fi information in the 20 historical Wi-Fi list information is determined to be 15, then a corresponding 15-dimensional vector can be obtained for each historical Wi-Fi list information in the 20 historical Wi-Fi list information. For the value of the 15-dimensional vector, each Wi-Fi information in the historical Wi-Fi list information can be compared with each Wi-Fi information in the 15 different Wi-Fi information. When the comparison is consistent, it is recorded as 1, and when the comparison is inconsistent, it is recorded as 0, so as to obtain the value of each dimensional vector in the 15-dimensional vector.
[0076] After obtaining multiple multidimensional vectors corresponding to the historical Wi-Fi list information, the multiple multidimensional vectors can be clustered, and then the historical Wi-Fi list information corresponding to the central multidimensional vector obtained by clustering is used as the preset Wi-Fi information, that is, the historical Wi-Fi list information corresponding to the central multidimensional vector obtained by clustering is approximately determined as the Wi-Fi list information corresponding to the merchant. Among them, the multiple multidimensional vectors can be clustered by any clustering algorithm in the relevant technology, and the embodiments of the present disclosure are not limited to this.
[0077] It should be understood that among the historical Wi-Fi list information included in the multiple historical order information, there may be abnormal Wi-Fi list information that is significantly different from the majority of the historical Wi-Fi list information. Therefore, in order to improve the accuracy of the preset Wi-Fi information determined subsequently, after obtaining the multiple historical order information corresponding to the merchant, data filtering processing may be performed to remove the abnormal Wi-Fi list information included in the multiple historical order information. Among them, the data filtering method in the relevant technology may be used, and the embodiments of the present disclosure are not limited to this.
[0078] In a possible manner, the preset air pressure information may be obtained in the following manner: first obtain historical air pressure information corresponding to multiple historical orders, the historical air pressure information including the air pressure information of the environment in which the delivery personnel were located during the time from receiving the order to completing the meal pickup at the merchant in multiple historical orders, and determine multiple air pressure change intervals based on the historical air pressure information. Then cluster the multiple air pressure change intervals to obtain the target air pressure change interval corresponding to the merchant. Accordingly, determining the third similarity between the air pressure information and the preset air pressure information may be: first determine the air pressure change interval corresponding to the environment in which the delivery personnel were located during the time from receiving the order to completing the meal pickup at the merchant based on the air pressure information, and then determine the third similarity between the air pressure change interval and the target air pressure change interval.
[0079] As explained above, the air pressure information in the environment where the delivery person is located can be detected in real time through the air pressure sensor. Therefore, when the delivery terminal receives a delivery order, it can record the air pressure information of the environment where the delivery person is located at the time of receiving the delivery order. Then, when the delivery terminal determines that the meal pickup is completed, it can record the air pressure information of the environment where the delivery person is located at the time of completing the meal pickup, thereby obtaining the air pressure information of the environment where the delivery person is located from receiving the order to completing the meal pickup, and feeding the air pressure information back to the server. Therefore, after obtaining multiple historical order information, the server can respectively determine the historical air pressure information of the environment where the delivery person is located from receiving the order to completing the meal pickup at the merchant in the multiple historical order information. Then, multiple air pressure change intervals can be determined based on the historical air pressure information.
[0080] In a possible manner, multiple pressure change intervals are determined based on historical pressure information, which can be: for each pressure data point in the historical pressure information, traverse in time order, if the pressure change trend of the preset number of consecutive pressure data points is the same, and the pressure change value between every two pressure data points in the preset number of pressure data points is greater than or equal to the preset pressure change threshold, then the pressure data point at the front of the preset number of pressure data points is determined as the pressure change starting point, and the pressure data points at the next moment are traversed. If the pressure change trend of the preset number of consecutive pressure data points is different, or the pressure change value between every two pressure data points in the preset number of pressure data points is less than the preset pressure change threshold, then the last pressure data point at the preset number of pressure data points is determined as the pressure change end point. Finally, the pressure change interval is obtained according to the pressure information corresponding to all pressure data points between the pressure change starting point and the pressure change end point. Among them, the preset number and the preset pressure change threshold can be set according to actual conditions, and the embodiments of the present disclosure are not limited to this.
[0081] For example, since the air pressure information of the delivery person's environment can be detected in real time through an air pressure sensor, each air pressure data point in the detected air pressure information can correspond to a different detection time. Therefore, after obtaining the historical air pressure information, each air pressure data point in the historical air pressure information can be traversed from front to back in chronological order.
[0082] For example, the preset number is set to 4. Therefore, when it is found that the air pressure change trends of 4 consecutive air pressure data points are the same, for example, the air pressure change trends of 4 consecutive air pressure data points are all rising or falling, and the air pressure change value between every two air pressure data points in the 4 consecutive air pressure data points is greater than or equal to the preset air pressure change threshold, then the starting interval of the air pressure change interval composed of the 4 consecutive air pressure data points can be determined, and the air pressure data point at the front of the 4 consecutive air pressure data points can be determined as the starting point of the air pressure change, and the air pressure data points at the next moment can continue to be traversed.
[0083] When it is found that the pressure change trends of four consecutive pressure data points are different, or the pressure change value between every two pressure data points in the four consecutive pressure data points is less than the preset pressure change threshold, the end interval of the pressure change interval composed of the four consecutive pressure data points can be determined, and the last pressure data point in the four consecutive pressure data points can be determined as the pressure change end point, and then all the pressure data points between the aforementioned pressure change start point and the pressure change end point are determined as a pressure change interval, and the pressure data points at the next moment are continued to be traversed, and the pressure change start point and the pressure change end point are determined in the above manner to obtain another pressure change interval, and then the pressure data points at the next moment are continued to be traversed until all the pressure data points included in the historical pressure information are traversed. Through this traversal method, multiple pressure change intervals can be obtained in the end.
[0084] Alternatively, in other possible methods, multiple air pressure change intervals can be determined according to historical air pressure information at certain time intervals. For example, historical air pressure information within one minute can be determined as an air pressure change interval, and so on. The embodiment of the present disclosure does not limit the method of determining multiple air pressure change intervals based on historical air pressure information.
[0085] After obtaining multiple air pressure change intervals, the multiple air pressure change intervals may be clustered to obtain a target air pressure change interval corresponding to the merchant, wherein the target air pressure change interval may include one or more air pressure change intervals.
[0086] For example, the multiple air pressure change intervals can be first constructed into time series samples, and then the time series samples can be clustered. Considering that the constructed time series samples may not be of equal length, and it is uncertain how many specific air pressure change intervals are included in the target air pressure change interval corresponding to the merchant, the above-constructed time series samples can be clustered by the DTW (Dynamic Time Warping) algorithm and the DBSCAN (Density-Based Spatial Clustering of Applications with Noise) density-based clustering algorithm to obtain the target time series samples corresponding to the merchant, and then obtain the target air pressure change interval corresponding to the merchant.
[0087] It should be understood that the historical air pressure information included in the multiple historical order information may contain air pressure noise information that is significantly different from the majority of the historical air pressure information. Therefore, in order to improve the accuracy of the preset air pressure information determined subsequently, after obtaining the multiple historical order information corresponding to the merchant, filtering data processing can also be performed to remove the air pressure noise information included in the multiple historical order information. For example, the historical air pressure information included in the multiple historical order information can be filtered by a five-point one-time filtering method to smooth and remove noise.
[0088] After obtaining the target air pressure change interval corresponding to the merchant, the air pressure change interval can be determined in the above manner according to the obtained air pressure information of the environment in which the delivery person is located from the time when the order is received to the time when the meal is picked up at the merchant. Then the third similarity between the air pressure change interval and the target air pressure change interval corresponding to the merchant is calculated. The third similarity can be determined by a similarity algorithm in the relevant technology, which will not be described in detail here.
[0089] Similarly, for the first similarity, after obtaining the GPS coordinate information of the delivery person when the meal is picked up, the similarity between the GPS coordinate information and the preset location information (such as the GPS coordinate information corresponding to the center point of the target geographic hash block determined in the above manner) can be determined according to the similarity algorithm in the relevant technology to obtain the first similarity. For the second similarity, after obtaining the Wi-Fi information scanned by the delivery person when the meal is picked up, the similarity between the Wi-Fi information and the preset Wi-Fi information (such as the Wi-Fi list information determined in the above manner) can also be determined according to the similarity algorithm in the relevant technology to obtain the second similarity. The presently disclosed embodiment does not limit the specific method for determining the first similarity, the second similarity, and the third similarity, and the corresponding similarity algorithm can be selected for determination according to the actual situation.
[0090] After obtaining the first similarity, the second similarity, and the third similarity, the first similarity, the second similarity, and the third similarity can be compared with the preset similarity, respectively. For example, the preset similarity can be set according to the actual situation, and the embodiments of the present disclosure are not limited to this. Among them, the preset similarity can include a preset similarity value. In this case, the first similarity, the second similarity, and the third similarity can be compared with the preset similarity in sequence. When at least one of them does not reach the preset similarity, it indicates that the location when the delivery person picks up the meal may not match the actual location of the merchant, so the order can be recorded as an unmatched order. Alternatively, the preset similarity can include a first preset similarity corresponding to the first similarity, a second preset similarity corresponding to the second similarity, and a third preset similarity corresponding to the third similarity. In this case, after obtaining the first similarity, the second similarity and the third similarity, the first similarity can be compared with the first preset similarity, the second similarity can be compared with the second preset similarity, and the third similarity can be compared with the third preset similarity. If at least one comparison result shows that the comparison is inconsistent, it means that the location of the delivery person when picking up the food may not match the actual location of the merchant, so the order can be recorded as an unmatched order. Among them, the first preset similarity, the second preset similarity and the third preset similarity can be set to different values according to actual conditions, and the embodiments of the present disclosure are not limited to this.
[0091] If the number of unmatched orders recorded reaches a preset threshold condition, it can be determined that the location of the merchant has changed. For example, the preset threshold condition can be the number of orders or the proportion of orders. For example, when the number of unmatched orders recorded reaches a preset number of orders, it can be determined that the location of the merchant has changed. Alternatively, when the ratio of the number of unmatched orders recorded to the number of all orders recorded reaches a preset ratio, it can be determined that the location of the merchant has changed.
[0092] In a possible manner, if the ratio between the orders with a first similarity that does not reach the preset similarity and the unmatched orders in the recorded unmatched orders reaches a first preset ratio, it is determined that the horizontal position of the merchant relative to the ground plane has changed. If the ratio between the orders with a second similarity that does not reach the preset similarity and the unmatched orders in the recorded unmatched orders reaches a second preset ratio, it is determined that the horizontal position or vertical position of the merchant relative to the ground plane has changed. If the ratio between the orders with a third similarity that does not reach the preset similarity and the unmatched orders in the recorded unmatched orders reaches a third preset ratio, it is determined that the vertical position of the merchant relative to the ground plane has changed. Among them, the first preset ratio, the second preset ratio and the third preset ratio can be the same or different. In specific applications, they can be set according to actual conditions, and the embodiments of the present disclosure are not limited to this.
[0093] If the GPS coordinate information when the delivery person picks up the food is not similar to the preset GPS coordinate information of the merchant, it indicates that the horizontal position of the merchant relative to the ground plane may have changed significantly, such as the specific position of the merchant on the floor may have changed, such as the location of the merchant changed from the southeast corner of the 6th floor to the northwest corner of the 6th floor, etc. Therefore, when the ratio of the orders whose first similarity does not reach the preset similarity to the unmatched orders in the recorded unmatched orders reaches the first preset ratio, it can be determined that the horizontal position of the merchant relative to the ground plane has changed.
[0094] If the Wi-Fi information scanned by the delivery person when picking up the food is not similar to the preset Wi-Fi information of the merchant, it means that the Wi-Fi information around the merchant has changed. In this case, it may be that the floor information of the merchant has changed or the specific location of the merchant on the floor has changed, such as the location of the merchant has changed from the southeast corner of the 6th floor to the southeast corner of the 7th floor, or the location of the merchant has changed from the southeast corner of the 6th floor to the northwest corner of the 6th floor, etc. Therefore, when the ratio of the orders whose second similarity does not reach the preset similarity and the unmatched orders in the recorded unmatched orders reaches the second preset ratio, it can be determined that the horizontal position or vertical position of the merchant relative to the ground plane has changed.
[0095] If the air pressure information of the environment in which the delivery person is located from the time when the delivery person receives the order to the time when the delivery person picks up the food at the merchant is not similar to the preset air pressure information of the merchant, it indicates that the specific location of the merchant on the floor may not have changed, but the floor information of the merchant may have changed significantly, such as the location of the merchant has changed from the southeast corner of the 6th floor to the southeast corner of the 7th floor, etc. Therefore, when the ratio of the orders whose third similarity does not reach the preset similarity to the unmatched orders in the recorded unmatched orders reaches the third preset ratio, it can be determined that the vertical position of the merchant relative to the ground plane has changed.
[0096] In a possible manner, the location change of the merchant can also be determined by combining GPS coordinate information, Wi-Fi information and air pressure information. For example, if the GPS coordinate information when the deliveryman completes the meal pickup is similar to the preset GPS coordinate information of the merchant, and the air pressure information of the environment in which the deliveryman is located during the time from receiving the order to completing the meal pickup at the merchant is similar to the preset air pressure information of the merchant, but the Wi-Fi information scanned by the deliveryman when the meal pickup is completed is not similar to the preset Wi-Fi information of the merchant, it indicates that the floor information of the merchant may not have changed, and it may be that the specific location of the merchant on the floor has changed significantly, such as the location of the merchant has changed from the southeast corner of the 6th floor to the northwest corner of the 6th floor, and so on. Therefore, when the ratio between the orders whose second similarity does not reach the preset similarity and the unmatched orders in the recorded unmatched orders reaches the second preset ratio, the ratio between the orders whose first similarity does not reach the preset similarity and the unmatched orders does not reach the first preset ratio, and the ratio between the orders whose third similarity does not reach the preset similarity and the unmatched orders does not reach the third preset ratio, it can be determined that the horizontal position of the merchant relative to the ground plane has changed.
[0097] Alternatively, if the GPS coordinate information when the deliveryman completes the meal pickup is similar to the preset GPS coordinate information of the merchant, and the Wi-Fi information scanned by the deliveryman when the meal pickup is completed is similar to the preset Wi-Fi information of the merchant, but the air pressure information of the environment in which the deliveryman is located during the time from receiving the order to completing the meal pickup at the merchant is not similar to the preset air pressure information of the merchant, it indicates that the specific location of the merchant on the floor may not have changed, and the floor information of the merchant may have changed significantly, such as the location of the merchant has changed from the southeast corner of the 6th floor to the southeast corner of the 7th floor, etc. Therefore, when the ratio between the orders whose third similarity does not reach the preset similarity and the unmatched orders in the recorded unmatched orders reaches the third preset ratio, the ratio between the orders whose first similarity does not reach the preset similarity and the unmatched orders does not reach the first preset ratio, and the ratio between the orders whose second similarity does not reach the preset similarity and the unmatched orders does not reach the second preset ratio, it can be determined that the vertical position of the merchant relative to the ground plane has changed.
[0098] In a possible manner, after determining that the location of the merchant has changed, prompt information indicating the change in the merchant's location may be sent to the delivery terminal and / or prompt information prompting the merchant to update the location may be sent to the merchant terminal.
[0099] In the related art, the modification of the merchant location information in the takeaway business system mainly depends on the merchant's active modification. If the merchant does not update the location information in the takeaway business system in a timely manner after the location changes, it may cause the delivery person to pick up the food at the merchant's original location information, affecting the delivery person's normal delivery process and increasing the delivery time. Therefore, after determining that the merchant's location has changed, the embodiment of the present disclosure may also actively send a prompt message to the merchant terminal to prompt the merchant to update the location, so as to prompt the merchant to update the location information in the takeaway business system and reduce the impact of the merchant's location change on the takeaway delivery business. It should be understood that the embodiment of the present disclosure does not limit the specific form and content of the prompt message, and in specific applications, it can be set according to actual conditions.
[0100] Alternatively, in a possible way, after determining that the merchant's location has changed, the merchant's location information in the takeaway business system can be automatically updated based on the location information reported by the delivery terminal at the time of meal pickup over a period of time, without the merchant having to manually update it, which is more intelligent.
[0101] In addition, in the disclosed embodiment, after determining that the location of the merchant has changed, a prompt message for characterizing the location change of the merchant can also be sent to the delivery terminal. For example, after determining that the horizontal position of the merchant relative to the ground plane has changed, the merchant has not updated the location information in the takeaway business system. In this case, since the location of the merchant has changed significantly, the location information reported by the deliveryman when clicking to the store or picking up the meal in the historical orders of the merchant in the previous period of time can be used as the location information of the merchant, and a prompt message including the location information is sent to the portable electronic device held by the subsequent deliveryman until the merchant updates the location information in the takeaway business system. For another example, after determining that the horizontal position of the merchant relative to the ground plane has changed, the merchant has not updated the location information in the takeaway business system. In this case, a prompt message can be sent to the delivery terminal: "The merchant is still on the current floor, a certain distance away", until the merchant updates the location information in the takeaway business system. For another example, after determining that the vertical position of the merchant relative to the ground plane has changed, the merchant has not updated the location information in the takeaway business system. In this case, a prompt message can be sent to the delivery terminal: "The merchant is still nearby, possibly on a different floor", until the merchant updates the location information in the takeaway business system.
[0102] Through the above method, the change of the merchant's location can be identified based on the location information, Wi-Fi information and air pressure information reported by the delivery terminal during the delivery process. Compared with the identification method in the relevant technology, the change of the merchant's location can be discovered in time, reducing the impact of the merchant's location change on the takeaway delivery process and improving the takeaway delivery efficiency.
[0103] The following is an explanation of the method for determining a merchant location change provided by the present disclosure through another exemplary embodiment of the present disclosure. Figure 3 , the method for determining a change in a merchant location includes:
[0104] Step 301, obtaining multiple historical order information corresponding to the merchant, the multiple historical order information including the historical GPS coordinate information of the deliveryman when the merchant picks up the meal, the historical Wi-Fi list information scanned by the deliveryman when the merchant picks up the meal, and the historical air pressure information of the environment in which the deliveryman was located from receiving the order to completing the meal pick-up at the merchant in multiple historical orders.
[0105] Step 302: determine the geo-hash block corresponding to each historical GPS coordinate information.
[0106] Step 303: determine a target geo-hash block among the multiple geo-hash blocks, where the target geo-hash block includes historical GPS coordinate information of a preset ratio.
[0107] Step 304: determine the GPS coordinate information corresponding to the center point of the target geographic hash block as the preset location information.
[0108] Step 305 : vectorize each historical Wi-Fi list information to obtain a plurality of multi-dimensional vectors, wherein the dimension of the multi-dimensional vector is the same as the number of different Wi-Fi information in all the historical Wi-Fi list information.
[0109] Step 306: cluster the multiple multi-dimensional vectors, and use the historical Wi-Fi list information corresponding to the central multi-dimensional vector obtained by clustering as the preset Wi-Fi information.
[0110] Step 307, determining a plurality of air pressure change intervals according to the historical air pressure information.
[0111] Step 308: cluster the multiple air pressure change intervals to obtain the target air pressure change interval corresponding to the merchant.
[0112] Step 309, obtaining the location information of the delivery person when the delivery person completes picking up the food at the merchant corresponding to the order, the Wi-Fi information scanned by the delivery person when the delivery person completes picking up the food, and the air pressure information of the environment in which the delivery person is located from the time the delivery person receives the order to the time the delivery person completes picking up the food at the merchant.
[0113] Step 310, based on the air pressure information, determine the air pressure change range corresponding to the environment in which the delivery person is located from the time the delivery person receives the order to the time the delivery person completes the pickup at the merchant.
[0114] Step 311 , determining a first similarity between the location information and the preset location information, a second similarity between the Wi-Fi information and the preset Wi-Fi information, and a third similarity between the air pressure change interval and the target air pressure change interval.
[0115] Step 312: If at least one of the first similarity, the second similarity, and the third similarity does not reach a preset similarity, the order is recorded as an unmatched order.
[0116] Step 313: If the recorded unmatched orders reach a preset threshold condition, it is determined that the location of the merchant has changed.
[0117] Step 314, sending prompt information indicating the change of the merchant's location to the distribution terminal, and sending prompt information to the merchant terminal to prompt the merchant to update the location.
[0118] The specific implementation methods of the above steps have been described in detail above and will not be repeated here. In addition, it should be understood that for the above method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should know that the present disclosure is not limited to the order of actions described above. Secondly, those skilled in the art should also know that the embodiments described above belong to preferred embodiments, and the steps involved are not necessarily required by the present disclosure.
[0119] Through the above method, the change of the merchant's location can be identified based on the location information, Wi-Fi information and air pressure information reported by the delivery terminal during the delivery process. Compared with the identification method in the relevant technology, the change of the merchant's location can be discovered in time, reducing the impact of the merchant's location change on the takeaway delivery process and improving the efficiency of takeaway delivery. In addition, after determining that the merchant's location has changed, a prompt message can be sent to the merchant's terminal so that the merchant can update the location information in the takeaway business system in time, further reducing the impact of the merchant's location change on the takeaway delivery process and improving the efficiency of takeaway delivery.
[0120] Based on the same inventive concept, the embodiment of the present disclosure also provides a device for determining a merchant location change, which can become part or all of a server in a food delivery service system through software, hardware, or a combination of both. Figure 4 , the apparatus 400 may include:
[0121] The acquisition module 401 is used to obtain the location information of the delivery person when the delivery person completes the order pickup at the merchant, the Wi-Fi information scanned by the delivery person when the order pickup is completed, and the air pressure information of the environment in which the delivery person is located from the time when the order is received to the time when the order is picked up at the merchant;
[0122] a first determining module 402, configured to determine a first similarity between the location information and preset location information, a second similarity between the Wi-Fi information and preset Wi-Fi information, and a third similarity between the air pressure information and preset air pressure information, wherein the preset location information, the preset Wi-Fi information, and the preset air pressure information are obtained based on a plurality of historical orders corresponding to the merchant;
[0123] A recording module 403, configured to record the order as an unmatched order when at least one of the first similarity, the second similarity and the third similarity does not reach a preset similarity;
[0124] The second determining module 404 is configured to determine that the location of the merchant has changed when the recorded unmatched orders reaches a preset threshold condition.
[0125] Optionally, the device 400 further includes:
[0126] A first information acquisition module is used to acquire historical air pressure information corresponding to the multiple historical orders, wherein the historical air pressure information includes air pressure information of the environment in which the delivery personnel in the multiple historical orders were located from receiving the order to completing the meal pickup at the merchant;
[0127] A third determination module, configured to determine a plurality of air pressure change intervals according to the historical air pressure information;
[0128] A first clustering module, configured to cluster the multiple air pressure change intervals to obtain a target air pressure change interval corresponding to the merchant;
[0129] The first determining module 402 is used for:
[0130] Determine, based on the air pressure information, the air pressure change interval corresponding to the environment in which the delivery person is located during the time from when the delivery person receives the order to when the delivery person completes picking up the food at the merchant;
[0131] A third similarity between the air pressure variation interval and the target air pressure variation interval is determined.
[0132] Optionally, the third determining module is used to:
[0133] For each air pressure data point in the historical air pressure information, traverse in chronological order; if the air pressure change trends of a preset number of consecutive air pressure data points are the same, and the air pressure change value between every two air pressure data points in the preset number of air pressure data points is greater than or equal to the preset air pressure change threshold, then determine the air pressure data point at the front of the preset number of air pressure data points as the air pressure change starting point, and continue to traverse the air pressure data points at the next moment; if the air pressure change trends of the preset number of consecutive air pressure data points are different, or the air pressure change value between every two air pressure data points in the preset number of air pressure data points is less than the preset air pressure change threshold, then determine the air pressure data point at the last moment in the preset number of air pressure data points as the air pressure change ending point;
[0134] The air pressure change interval is obtained according to the air pressure information corresponding to all air pressure data points between the air pressure change starting point and the air pressure change ending point.
[0135] Optionally, the device 400 further includes:
[0136] A second information acquisition module is used to acquire a plurality of historical order information corresponding to the merchant, wherein the plurality of historical order information includes historical GPS coordinate information of the delivery person when the delivery person completes picking up the food at the merchant;
[0137] A fourth determination module, used to determine the geo-hash block corresponding to each of the historical GPS coordinate information;
[0138] a fifth determination module, configured to determine a target geo-hash block from among the plurality of geo-hash blocks, wherein the target geo-hash block includes the historical GPS coordinate information having a preset ratio;
[0139] The sixth determination module is used to determine the GPS coordinate information corresponding to the center point of the target geographic hash block as the preset location information.
[0140] Optionally, the device 400 further includes:
[0141] A third information acquisition module is used to obtain a plurality of historical order information corresponding to the merchant, wherein the plurality of historical order information includes a historical Wi-Fi list information scanned by the delivery person when the merchant completes the meal pickup;
[0142] A vectorization module, configured to vectorize each of the historical Wi-Fi list information to obtain a plurality of multi-dimensional vectors, wherein the dimension of the multi-dimensional vector is the same as the number of different Wi-Fi information in all the historical Wi-Fi list information;
[0143] The second clustering module is used to cluster the multiple multi-dimensional vectors, and use the historical Wi-Fi list information corresponding to the central multi-dimensional vector obtained by clustering as the preset Wi-Fi information.
[0144] Optionally, the second determining module is used to:
[0145] When the ratio of the orders whose first similarity does not reach the preset similarity among the recorded unmatched orders to the unmatched orders reaches a first preset ratio, determining that the horizontal position of the merchant relative to the ground plane has changed;
[0146] When the ratio of the orders whose second similarity does not reach the preset similarity in the recorded unmatched orders to the unmatched orders reaches a second preset ratio, determining that the horizontal position or vertical position of the merchant relative to the ground plane has changed;
[0147] When the ratio of the orders whose third similarity does not reach the preset similarity in the recorded unmatched orders to the unmatched orders reaches a third preset ratio, it is determined that the vertical position of the merchant relative to the ground plane has changed.
[0148] Optionally, the device 400 further includes:
[0149] A first prompt module is used to send prompt information indicating the change of the merchant's location to the distribution terminal after determining that the merchant's location has changed; and / or
[0150] The second prompting module is used to send prompting information for prompting the merchant to update the location to the merchant terminal.
[0151] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0152] Based on the same inventive concept, the present disclosure also provides an electronic device, including:
[0153] a memory having a computer program stored thereon;
[0154] A processor is used to execute the computer program in the memory to implement the steps of any of the above methods for determining a merchant location change.
[0155] In a possible manner, the block diagram of the electronic device may be as follows Figure 5 See Figure 5 , the electronic device 500 may be provided as a server. Figure 5The electronic device 500 includes a processor 522, which may be one or more, and a memory 532 for storing a computer program executable by the processor 522. The computer program stored in the memory 532 may include one or more modules, each corresponding to a set of instructions. In addition, the processor 522 may be configured to execute the computer program to perform any of the above methods for determining a change in a merchant location.
[0156] In addition, the electronic device 500 may further include a power supply component 526 and a communication component 550. The power supply component 526 may be configured to perform power management of the electronic device 500, and the communication component 550 may be configured to implement communication of the electronic device 500, for example, wired or wireless communication. In addition, the electronic device 500 may further include an input / output (I / O) interface 558. The electronic device 500 may operate based on an operating system stored in the memory 532, such as Windows Server 2008. TM , Mac OSX TM , Unix TM , Linux TM etc.
[0157] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of any of the above methods for determining a merchant location change are implemented. For example, the computer-readable storage medium may be the above-mentioned memory 532 including program instructions, and the above-mentioned program instructions may be executed by the processor 522 of the electronic device 500 to complete any of the above-mentioned methods for determining a merchant location change.
[0158] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing any of the above methods for determining a merchant location change when executed by the programmable device.
[0159] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0160] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0161] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A method for determining a change in a merchant's location, characterized in that: The method comprises: Obtaining the location information of the delivery person when the delivery person completes picking up the food at the merchant corresponding to the order, the Wi-Fi information scanned by the delivery person when the delivery person completes picking up the food, and the air pressure information of the environment in which the delivery person is located from the time the delivery person receives the order to the time the delivery person completes picking up the food at the merchant; determining a first similarity between the location information and preset location information, a second similarity between the Wi-Fi information and preset Wi-Fi information, and a third similarity between the air pressure information and preset air pressure information, wherein the preset location information, the preset Wi-Fi information, and the preset air pressure information are obtained based on a plurality of historical orders corresponding to the merchant; If at least one of the first similarity, the second similarity and the third similarity does not reach a preset similarity, recording the order as an unmatched order; If the recorded unmatched orders reach a preset threshold condition, it is determined that the location of the merchant has changed; The preset Wi-Fi information is obtained in the following manner: Acquire multiple historical order information corresponding to the merchant, wherein the multiple historical order information includes historical Wi-Fi list information scanned by the delivery person when picking up the meal from the merchant; Vectorizing each of the historical Wi-Fi list information to obtain multiple multi-dimensional vectors, where the dimension of the multi-dimensional vector is the same as the number of different Wi-Fi information in all the historical Wi-Fi list information; Clustering the multiple multidimensional vectors, and using the historical Wi-Fi list information corresponding to the central multidimensional vector obtained by clustering as the preset Wi-Fi information; If the recorded unmatched orders reach a preset threshold condition, determining that the location of the merchant has changed includes: If the ratio of the orders whose first similarity does not reach the preset similarity in the recorded unmatched orders to the unmatched orders reaches a first preset ratio, it is determined that the horizontal position of the merchant relative to the ground plane has changed; If the ratio of the orders whose second similarity does not reach the preset similarity among the recorded unmatched orders to the unmatched orders reaches a second preset ratio, it is determined that the horizontal position or vertical position of the merchant relative to the ground plane has changed; If the ratio of the orders whose third similarity does not reach the preset similarity in the recorded unmatched orders to the unmatched orders reaches a third preset ratio, it is determined that the vertical position of the merchant relative to the ground plane has changed.
2. The method according to claim 1, characterized in that The preset air pressure information is obtained in the following manner: Obtaining historical air pressure information corresponding to the multiple historical orders, the historical air pressure information including air pressure information of the environment in which the delivery personnel in the multiple historical orders were located from receiving the order to completing the meal pickup at the merchant; Determining a plurality of air pressure change intervals according to the historical air pressure information; Clustering the multiple air pressure change intervals to obtain a target air pressure change interval corresponding to the merchant; Determining a third similarity between the air pressure information and preset air pressure information includes: Determine, based on the air pressure information, the air pressure change interval corresponding to the environment in which the delivery person is located during the time from when the delivery person receives the order to when the delivery person completes picking up the food at the merchant; A third similarity between the air pressure variation interval and the target air pressure variation interval is determined.
3. The method according to claim 2, characterized in that The determining a plurality of air pressure change intervals according to the historical air pressure information includes: For each air pressure data point in the historical air pressure information, traverse in chronological order; if the air pressure change trends of a preset number of consecutive air pressure data points are the same, and the air pressure change value between every two air pressure data points in the preset number of air pressure data points is greater than or equal to the preset air pressure change threshold, then determine the air pressure data point at the front of the preset number of air pressure data points as the air pressure change starting point, and continue to traverse the air pressure data points at the next moment; if the air pressure change trends of the preset number of consecutive air pressure data points are different, or the air pressure change value between every two air pressure data points in the preset number of air pressure data points is less than the preset air pressure change threshold, then determine the air pressure data point at the last moment in the preset number of air pressure data points as the air pressure change ending point; The air pressure change interval is obtained according to the air pressure information corresponding to all air pressure data points between the air pressure change starting point and the air pressure change ending point.
4. The method according to any one of claims 1 to 3, characterized in that: The preset location information is obtained in the following manner: Acquire multiple historical order information corresponding to the merchant, wherein the multiple historical order information includes historical GPS coordinate information of the delivery person when the delivery person completes picking up the food at the merchant; Determine the geo-hash block corresponding to each of the historical GPS coordinate information; Determine a target geo-hash block among the plurality of geo-hash blocks, wherein the target geo-hash block includes the historical GPS coordinate information having a preset ratio; The GPS coordinate information corresponding to the center point of the target geographic hash block is determined as the preset location information.
5. The method according to any one of claims 1 to 3, characterized in that: After determining that the location of the merchant has changed, the method further includes: Sending prompt information indicating the change of the merchant's location to the distribution terminal; and / or sending prompt information to the merchant terminal to prompt the merchant to update the location.
6. A device for determining a change in a merchant's location, characterized in that: The device comprises: An acquisition module, used to acquire the location information of the delivery person when the delivery person completes picking up the food at the merchant corresponding to the order, the Wi-Fi information scanned by the delivery person when the delivery person completes picking up the food, and the air pressure information of the environment in which the delivery person is located from the time the delivery person receives the order to the time the delivery person completes picking up the food at the merchant; a first determining module, configured to determine a first similarity between the location information and preset location information, a second similarity between the Wi-Fi information and preset Wi-Fi information, and a third similarity between the air pressure information and preset air pressure information, wherein the preset location information, the preset Wi-Fi information, and the preset air pressure information are obtained based on a plurality of historical orders corresponding to the merchant; a recording module, configured to record the order as an unmatched order when at least one of the first similarity, the second similarity and the third similarity does not reach a preset similarity; A second determination module is used to determine that the location of the merchant has changed when the recorded unmatched orders reach a preset threshold condition; The preset Wi-Fi information is obtained in the following manner: Acquire multiple historical order information corresponding to the merchant, wherein the multiple historical order information includes historical Wi-Fi list information scanned by the delivery person when picking up the meal from the merchant; Vectorizing each of the historical Wi-Fi list information to obtain multiple multi-dimensional vectors, where the dimension of the multi-dimensional vector is the same as the number of different Wi-Fi information in all the historical Wi-Fi list information; Clustering the multiple multidimensional vectors, and using the historical Wi-Fi list information corresponding to the central multidimensional vector obtained by clustering as the preset Wi-Fi information; If the recorded unmatched orders reach a preset threshold condition, determining that the location of the merchant has changed includes: If the ratio of the orders whose first similarity does not reach the preset similarity in the recorded unmatched orders to the unmatched orders reaches a first preset ratio, it is determined that the horizontal position of the merchant relative to the ground plane has changed; If the ratio of the orders whose second similarity does not reach the preset similarity among the recorded unmatched orders to the unmatched orders reaches a second preset ratio, it is determined that the horizontal position or vertical position of the merchant relative to the ground plane has changed; If the ratio of the orders whose third similarity does not reach the preset similarity in the recorded unmatched orders to the unmatched orders reaches a third preset ratio, it is determined that the vertical position of the merchant relative to the ground plane has changed.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 5 are implemented.
8. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method and device for identifying that user is located at same place
CN109951808A