åæå 容Summary of the invention
æé´äºæ¤ï¼æ¬ç³è¯·å®æ½ä¾çç®çå¨äºæä¾ä¸ç§åºè¡è®¢åç¶æçæ´æ°æ¹æ³åæ´æ°è£ ç½®ï¼å¨å¸æºæ¥ä¹è¿ç¨ä¸ï¼ç½çº¦è½¦è½¯ä»¶ææå¡å¨å¯ä»¥èªå¨å¤ææ¯å¦å°è¾¾æ¥ä¹å°ç¹ï¼æ é叿ºåä¹å®¢å¤æ¬¡éè¯ç¡®è®¤æ¥ä¹å°ç¹ï¼å¯ä»¥æé«å¸æºæ¥ä¹çæçãIn view of this, the purpose of the embodiments of the present application is to provide a method and device for updating the travel order status. During the driver's pick-up process, the online car-hailing software or server can automatically determine whether the pick-up location has been reached. There is no need for the driver and the passenger to have multiple phone calls to confirm the pick-up location, which can improve the driver's pick-up efficiency.
æ¬ç³è¯·ä¸»è¦å æ¬ä»¥ä¸å 个æ¹é¢ï¼This application mainly includes the following aspects:
ç¬¬ä¸æ¹é¢ï¼æ¬ç³è¯·å®æ½ä¾æä¾ä¸ç§åºè¡è®¢åç¶æçæ´æ°æ¹æ³ï¼æè¿°æ´æ°æ¹æ³å æ¬ï¼In a first aspect, an embodiment of the present application provides a method for updating a travel order status, the updating method comprising:
è·åæå¡æä¾ç«¯å½åçå°çä½ç½®ï¼ä»¥åæè¿°æå¡æä¾ç«¯å½åæ¿æ¥çåºè¡è®¢å对åºçæ¥ä¹å°ç¹ï¼Obtain the current geographic location of the service provider and the pick-up location corresponding to the travel order currently undertaken by the service provider;
åºäºæè¿°å°çä½ç½®åæè¿°æ¥ä¹å°ç¹ï¼ç¡®å®æè¿°å°çä½ç½®ä¸æè¿°æ¥ä¹å°ç¹ä¹é´çç´çº¿è·ç¦»åæè¿°æå¡æä¾ç«¯ä»æè¿°å°çä½ç½®å°è¾¾æè¿°æ¥ä¹å°ç¹çæ¥ä¹è·ç¦»ï¼Based on the geographical location and the pick-up location, determine the straight-line distance between the geographical location and the pick-up location and the pick-up distance from the geographical location to the pick-up location by the service provider;
åºäºæè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»ï¼ç¡®å®æè¿°æå¡æä¾ç«¯æ¯å¦å°è¾¾æè¿°æ¥ä¹å°ç¹ï¼å¹¶å¨ç¡®å®åºæè¿°æå¡æä¾ç«¯å°è¾¾æè¿°æ¥ä¹å°ç¹æ¶ï¼å°æè¿°åºè¡è®¢åçç¶æè®¾ç½®ä¸ºå°è¾¾æè¿°æ¥ä¹å°ç¹çç¶æãBased on the straight-line distance and the pick-up distance, determine whether the service provider has arrived at the pick-up location, and when it is determined that the service provider has arrived at the pick-up location, set the status of the travel order to the status of arriving at the pick-up location.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼æè¿°åºäºæè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»ï¼ç¡®å®æè¿°æå¡æä¾ç«¯æ¯å¦å°è¾¾æ¥ä¹å°ç¹ï¼å æ¬ï¼In a possible implementation manner, determining whether the service provider has arrived at the pick-up location based on the straight-line distance and the pick-up distance includes:
夿æè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»æ¯å¦åå°äºæçäºç¬¬ä¸é¢è®¾éå¼ï¼Determine whether the straight-line distance and the connecting distance are both less than or equal to a first preset threshold;
è¥æè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»åå°äºæçäºæè¿°ç¬¬ä¸é¢è®¾éå¼ï¼åç¡®å®æè¿°æå¡æä¾ç«¯å°è¾¾æè¿°æ¥ä¹å°ç¹ãIf the straight-line distance and the pick-up distance are both less than or equal to the first preset threshold, it is determined that the service provider has arrived at the pick-up location.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼å¨æè¿°å¤ææè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»æ¯å¦åå°äºæçäºç¬¬ä¸é¢è®¾éå¼ä¹åï¼æè¿°æ´æ°æ¹æ³è¿å æ¬ï¼In a possible implementation, after determining whether the straight-line distance and the connecting distance are both less than or equal to a first preset threshold, the updating method further includes:
è¥æè¿°ç´çº¿è·ç¦»å/ææè¿°æ¥ä¹è·ç¦»å¤§äºæè¿°ç¬¬ä¸é¢è®¾éå¼ï¼åæ¯é第ä¸é¢è®¾æ¶é¿è¿åæ§è¡å¤ææè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»æ¯å¦åå°äºæçäºç¬¬ä¸é¢è®¾éå¼çæ¥éª¤ãIf the straight-line distance and/or the pick-up distance is greater than the first preset threshold, the step of determining whether the straight-line distance and the pick-up distance are both less than or equal to the first preset threshold is returned to every first preset time period.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼å¨æè¿°å¤ææè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»æ¯å¦åå°äºæçäºç¬¬ä¸é¢è®¾éå¼ä¹åï¼æè¿°æ´æ°æ¹æ³è¿å æ¬ï¼In a possible implementation manner, before determining whether the straight-line distance and the connecting distance are both less than or equal to a first preset threshold, the updating method further includes:
夿æè¿°æ¥ä¹è·ç¦»æ¯å¦å°äºæçäºç¬¬äºé¢è®¾éå¼ï¼Determining whether the pick-up distance is less than or equal to a second preset threshold;
è¥æè¿°æ¥ä¹è·ç¦»å°äºæçäºæè¿°ç¬¬äºé¢è®¾éå¼ï¼åæ§è¡åºäºæè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»ï¼ç¡®å®æè¿°æå¡æä¾ç«¯æ¯å¦å°è¾¾æè¿°æ¥ä¹å°ç¹çæ¥éª¤ï¼If the pick-up distance is less than or equal to the second preset threshold, executing the step of determining whether the service provider has arrived at the pick-up location based on the straight-line distance and the pick-up distance;
è¥æè¿°æ¥ä¹è·ç¦»å¤§äºæè¿°ç¬¬äºé¢è®¾éå¼ï¼åæ¯é第äºé¢è®¾æ¶é¿è¿åæ§è¡å¤ææè¿°æ¥ä¹è·ç¦»æ¯å¦å°äºæçäºæè¿°ç¬¬äºé¢è®¾éå¼çæ¥éª¤ï¼If the pick-up distance is greater than the second preset threshold, returning to the step of determining whether the pick-up distance is less than or equal to the second preset threshold every second preset time period;
å ¶ä¸ï¼æè¿°ç¬¬ä¸é¢è®¾éå¼å°äºæè¿°ç¬¬äºé¢è®¾éå¼ãThe first preset threshold is smaller than the second preset threshold.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼å¨å¤æåºæè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»åå°äºæçäºæè¿°ç¬¬ä¸é¢è®¾éå¼ä¹åï¼æè¿°æ´æ°æ¹æ³è¿å æ¬ï¼In a possible implementation manner, after determining that both the straight-line distance and the connecting distance are less than or equal to the first preset threshold, the updating method further includes:
夿æè¿°æå¡æä¾ç«¯ä»æè¿°å°çä½ç½®è¡é©¶å°æè¿°æ¥ä¹å°ç¹ä¹é´çæ¥ä¹è·¯çº¿ä¸æ¯å¦åå¨è·¯çº¿è½¬æç¹ï¼Determining whether there is a route turning point in the pick-up route between the service provider and the pick-up location;
è¥æè¿°æ¥ä¹è·¯çº¿ä¸ä¸åå¨æè¿°è·¯çº¿è½¬æç¹ï¼åå°æè¿°åºè¡è®¢åçç¶æè®¾ç½®ä¸ºå°è¾¾æè¿°æ¥ä¹å°ç¹çç¶æãIf the route turning point does not exist in the pick-up route, the status of the travel order is set to the status of arriving at the pick-up location.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼å¨æè¿°å¤ææè¿°æå¡æä¾ç«¯ä»æè¿°å°çä½ç½®è¡é©¶å°æè¿°æ¥ä¹å°ç¹ä¹é´çæ¥ä¹è·¯çº¿ä¸æ¯å¦åå¨è·¯çº¿è½¬æç¹ä¹åï¼æè¿°æ´æ°æ¹æ³è¿å æ¬ï¼In a possible implementation manner, after determining whether there is a route turning point in the pick-up route between the service provider and the geographical location, the updating method further includes:
è¥æè¿°æ¥ä¹è·¯çº¿ä¸åå¨æè¿°è·¯çº¿è½¬æç¹ï¼åè¿åæ§è¡å¤ææè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»æ¯å¦åå°äºæçäºæè¿°ç¬¬ä¸é¢è®¾éå¼çæ¥éª¤ãIf the route turning point exists in the pick-up route, the process returns to the step of determining whether both the straight-line distance and the pick-up distance are less than or equal to the first preset threshold.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼æè¿°è·¯çº¿è½¬æç¹å æ¬ä»¥ä¸è½¬æç¹ä¸çä¸ç§æå¤ç§ï¼In a possible implementation manner, the route turning point includes one or more of the following turning points:
左转æç¹ãå³è½¬æç¹ãæå¤´è½¬æç¹ãLeft turning point, right turning point, U-turn turning point.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼æè¿°æ´æ°æ¹æ³è¿å æ¬ï¼In a possible implementation, the updating method further includes:
夿æ¯å¦æ¥æ¶å°æè¿°æå¡æä¾ç«¯åéçå°è¾¾æè¿°æ¥ä¹å°ç¹çæ¥åä¿¡æ¯ï¼Determining whether the report information of arrival at the pick-up location sent by the service provider is received;
è¥æ¥æ¶å°æè¿°æå¡æä¾ç«¯åéçæè¿°æ¥åä¿¡æ¯ï¼å夿æè¿°ç´çº¿è·ç¦»æ¯å¦å°äºæçäºç¬¬ä¸é¢è®¾éå¼ï¼If the report information sent by the service provider is received, determining whether the straight-line distance is less than or equal to a third preset threshold;
è¥æè¿°ç´çº¿è·ç¦»å°äºæçäºæè¿°ç¬¬ä¸é¢è®¾éå¼ï¼å°æè¿°åºè¡è®¢åç¶æè®¾ç½®ä¸ºå°è¾¾æè¿°æ¥ä¹å°ç¹çç¶æï¼If the straight-line distance is less than or equal to the third preset threshold, the travel order status is set to a status of arriving at the pick-up location;
è¥æè¿°ç´çº¿è·ç¦»å¤§äºæè¿°ç¬¬ä¸é¢è®¾éå¼ï¼å°æè¿°åºè¡è®¢åç¶æè®¾ç½®ä¸ºæªå°è¾¾æè¿°æ¥ä¹å°ç¹çç¶æï¼å¹¶åæè¿°æå¡æä¾ç«¯åéè¯é³ä¿¡æ¯å/ææåä¿¡æ¯æéæåæ¥åå°è¾¾æè¿°æ¥ä¹å°ç¹ãIf the straight-line distance is greater than the third preset threshold, the travel order status is set to a state of not arriving at the pick-up location, and a voice message and/or text message is sent to the service provider to remind the service provider to report arrival at the pick-up location in advance.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼å¨æè¿°å°æè¿°åºè¡è®¢åç¶æè®¾ç½®ä¸ºå°è¾¾æè¿°æ¥ä¹å°ç¹çç¶æä¹åï¼æè¿°æ´æ°æ¹æ³è¿å æ¬ï¼In a possible implementation, after setting the travel order status to a status of arriving at the pick-up location, the updating method further includes:
åæè¿°æå¡æä¾ç«¯ä»¥åä¸æè¿°åºè¡è®¢å对åºçæå¡è¯·æ±ç«¯åéè¯é³ä¿¡æ¯å/ææåä¿¡æ¯æéå°è¾¾æè¿°æ¥ä¹å°ç¹ãSend a voice message and/or a text message to the service provider and the service requester corresponding to the travel order to remind them to arrive at the pick-up location.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼å¨æè¿°è·åæå¡æä¾ç«¯å½åçå°çä½ç½®ä¹åï¼æè¿°æ´æ°æ¹æ³è¿å æ¬ï¼In a possible implementation manner, before obtaining the current geographical location of the service provider, the updating method further includes:
è·åæè¿°åºè¡è®¢åä¸çåºè¡æ¶å»ï¼Obtaining the travel time in the travel order;
æ ¹æ®æè¿°åºè¡æ¶å»ï¼ç¡®å®å¨æè¿°åºè¡æ¶å»ä¹åçè·ç¦»æè¿°åºè¡æ¶å»ç¬¬ä¸é¢è®¾æ¶é¿çè·åæ¶å»ï¼å¹¶å°æè¿°è·åæ¶å»ç¡®å®ä¸ºé¦æ¬¡è·åæè¿°æå¡æä¾ç«¯å°çä½ç½®çæ¶å»ãAccording to the travel time, an acquisition time that is a third preset time length before the travel time is determined, and the acquisition time is determined as the time when the geographic location of the service provider is first acquired.
ç¬¬äºæ¹é¢ï¼æ¬ç³è¯·å®æ½ä¾è¿æä¾ä¸ç§åºè¡è®¢åç¶æçæ´æ°è£ ç½®ï¼æè¿°æ´æ°è£ ç½®å æ¬ï¼In a second aspect, an embodiment of the present application further provides a device for updating a travel order status, the updating device comprising:
è·å模åï¼ç¨äºè·åæå¡æä¾ç«¯å½åçå°çä½ç½®ï¼ä»¥åæè¿°æå¡æä¾ç«¯å½åæ¿æ¥çåºè¡è®¢å对åºçæ¥ä¹å°ç¹ï¼An acquisition module, used to acquire the current geographic location of the service provider and the pick-up location corresponding to the travel order currently undertaken by the service provider;
ç¡®å®æ¨¡åï¼ç¨äºåºäºæè¿°å°çä½ç½®åæè¿°æ¥ä¹å°ç¹ï¼ç¡®å®æè¿°å°çä½ç½®ä¸æè¿°æ¥ä¹å°ç¹ä¹é´çç´çº¿è·ç¦»åæè¿°æå¡æä¾ç«¯ä»æè¿°å°çä½ç½®å°è¾¾æè¿°æ¥ä¹å°ç¹çæ¥ä¹è·ç¦»ï¼A determination module, configured to determine, based on the geographical location and the pick-up location, a straight-line distance between the geographical location and the pick-up location and a pick-up distance from the geographical location to the pick-up location by the service provider;
设置模åï¼ç¨äºåºäºæè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»ï¼ç¡®å®æè¿°æå¡æä¾ç«¯æ¯å¦å°è¾¾æè¿°æ¥ä¹å°ç¹ï¼å¹¶å¨ç¡®å®åºæè¿°æå¡æä¾ç«¯å°è¾¾æè¿°æ¥ä¹å°ç¹æ¶ï¼å°æè¿°åºè¡è®¢åçç¶æè®¾ç½®ä¸ºå°è¾¾æè¿°æ¥ä¹å°ç¹çç¶æãA setting module is used to determine whether the service provider has arrived at the pick-up location based on the straight-line distance and the pick-up distance, and when it is determined that the service provider has arrived at the pick-up location, set the status of the travel order to the status of arriving at the pick-up location.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼æè¿°è®¾ç½®æ¨¡åå æ¬ï¼In a possible implementation, the setting module includes:
第ä¸å¤æåå ï¼ç¨äºå¤ææè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»æ¯å¦åå°äºæçäºç¬¬ä¸é¢è®¾éå¼ï¼A first judging unit, used to judge whether the straight-line distance and the connecting distance are both less than or equal to a first preset threshold;
第ä¸ç¡®å®åå ï¼ç¨äºè¥æè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»åå°äºæçäºæè¿°ç¬¬ä¸é¢è®¾éå¼ï¼åç¡®å®æè¿°æå¡æä¾ç«¯å°è¾¾æè¿°æ¥ä¹å°ç¹ãThe first determining unit is configured to determine that the service provider has arrived at the pick-up location if both the straight-line distance and the pick-up distance are less than or equal to the first preset threshold.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼æè¿°ç¬¬ä¸å¤æåå è¿ç¨äºï¼In a possible implementation manner, the first determination unit is further configured to:
è¥æè¿°ç´çº¿è·ç¦»å/ææè¿°æ¥ä¹è·ç¦»å¤§äºæè¿°ç¬¬ä¸é¢è®¾éå¼ï¼åæ¯é第ä¸é¢è®¾æ¶é¿è¿åæ§è¡å¤ææè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»æ¯å¦åå°äºæçäºç¬¬ä¸é¢è®¾éå¼çæ¥éª¤ãIf the straight-line distance and/or the pick-up distance is greater than the first preset threshold, the step of determining whether the straight-line distance and the pick-up distance are both less than or equal to the first preset threshold is returned to every first preset time period.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼æè¿°è®¾ç½®æ¨¡åè¿å æ¬ï¼In a possible implementation, the setting module further includes:
第äºå¤æåå ï¼ç¨äºå¤ææè¿°æ¥ä¹è·ç¦»æ¯å¦å°äºæçäºç¬¬äºé¢è®¾éå¼ï¼A second judging unit, used to judge whether the pick-up distance is less than or equal to a second preset threshold;
第äºç¡®å®åå ï¼ç¨äºè¥æè¿°æ¥ä¹è·ç¦»å°äºæçäºæè¿°ç¬¬äºé¢è®¾éå¼ï¼åæ§è¡åºäºæè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»ï¼ç¡®å®æè¿°æå¡æä¾ç«¯æ¯å¦å°è¾¾æè¿°æ¥ä¹å°ç¹çæ¥éª¤ï¼A second determining unit, configured to, if the pick-up distance is less than or equal to the second preset threshold, execute a step of determining whether the service provider has arrived at the pick-up location based on the straight-line distance and the pick-up distance;
æè¿°ç¬¬äºå¤æåå ï¼è¿ç¨äºè¥æè¿°æ¥ä¹è·ç¦»å¤§äºæè¿°ç¬¬äºé¢è®¾éå¼ï¼åæ¯é第äºé¢è®¾æ¶é¿è¿åæ§è¡å¤ææè¿°æ¥ä¹è·ç¦»æ¯å¦å°äºæçäºæè¿°ç¬¬äºé¢è®¾éå¼çæ¥éª¤ï¼The second judgment unit is further configured to return to the step of judging whether the pick-up distance is less than or equal to the second preset threshold at a second preset time interval if the pick-up distance is greater than the second preset threshold;
å ¶ä¸ï¼æè¿°ç¬¬ä¸é¢è®¾éå¼å°äºæè¿°ç¬¬äºé¢è®¾éå¼ãThe first preset threshold is smaller than the second preset threshold.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼æè¿°æ´æ°è£ ç½®è¿å æ¬ç¬¬ä¸å¤ææ¨¡åï¼In a possible implementation manner, the updating device further includes a first determining module:
æè¿°ç¬¬ä¸å¤ææ¨¡åï¼ç¨äºå¤ææè¿°æå¡æä¾ç«¯ä»æè¿°å°çä½ç½®è¡é©¶å°æè¿°æ¥ä¹å°ç¹ä¹é´çæ¥ä¹è·¯çº¿ä¸æ¯å¦åå¨è·¯çº¿è½¬æç¹ï¼The first determination module is used to determine whether there is a route turning point in the pick-up route between the service provider and the geographical location;
æè¿°è®¾ç½®æ¨¡åï¼è¿ç¨äºè¥æè¿°æ¥ä¹è·¯çº¿ä¸ä¸åå¨æè¿°è·¯çº¿è½¬æç¹ï¼åå°æè¿°åºè¡è®¢åçç¶æè®¾ç½®ä¸ºå°è¾¾æè¿°æ¥ä¹å°ç¹çç¶æãThe setting module is further used to set the status of the travel order to the status of arriving at the pick-up location if the route turning point does not exist in the pick-up route.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼æè¿°ç¬¬ä¸å¤ææ¨¡åè¿ç¨äºï¼In a possible implementation manner, the first determination module is further configured to:
è¥æè¿°æ¥ä¹è·¯çº¿ä¸åå¨æè¿°è·¯çº¿è½¬æç¹ï¼åè¿åæ§è¡å¤ææè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»æ¯å¦åå°äºæçäºæè¿°ç¬¬ä¸é¢è®¾éå¼çæ¥éª¤ãIf the route turning point exists in the pick-up route, the process returns to the step of determining whether both the straight-line distance and the pick-up distance are less than or equal to the first preset threshold.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼æè¿°è·¯çº¿è½¬æç¹å æ¬ä»¥ä¸è½¬æç¹ä¸çä¸ç§æå¤ç§ï¼In a possible implementation manner, the route turning point includes one or more of the following turning points:
左转æç¹ãå³è½¬æç¹ãæå¤´è½¬æç¹ãLeft turning point, right turning point, U-turn turning point.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼æè¿°æ´æ°è£ ç½®è¿å æ¬ç¬¬äºå¤ææ¨¡åå第ä¸å鿍¡åï¼In a possible implementation manner, the updating device further includes a second determining module and a first sending module;
æè¿°ç¬¬äºå¤ææ¨¡åï¼ç¨äºå¤ææ¯å¦æ¥æ¶å°æè¿°æå¡æä¾ç«¯åéçå°è¾¾æè¿°æ¥ä¹å°ç¹çæ¥åä¿¡æ¯ï¼The second determination module is used to determine whether the report information of arrival at the pick-up location sent by the service provider is received;
æè¿°ç¬¬äºå¤ææ¨¡åï¼è¿ç¨äºè¥æ¥æ¶å°æè¿°æå¡æä¾ç«¯åéçæè¿°æ¥åä¿¡æ¯ï¼å夿æè¿°ç´çº¿è·ç¦»æ¯å¦å°äºæçäºç¬¬ä¸é¢è®¾éå¼ï¼The second judgment module is further configured to judge whether the straight-line distance is less than or equal to a third preset threshold value if the report information sent by the service provider is received;
æè¿°è®¾ç½®æ¨¡åï¼ç¨äºè¥æè¿°ç´çº¿è·ç¦»å°äºæçäºæè¿°ç¬¬ä¸é¢è®¾éå¼ï¼å°æè¿°åºè¡è®¢åç¶æè®¾ç½®ä¸ºå°è¾¾æè¿°æ¥ä¹å°ç¹çç¶æï¼The setting module is used to set the travel order status to a status of arriving at the pick-up location if the straight-line distance is less than or equal to the third preset threshold;
æè¿°ç¬¬ä¸å鿍¡åï¼ç¨äºè¥æè¿°ç´çº¿è·ç¦»å¤§äºæè¿°ç¬¬ä¸é¢è®¾éå¼ï¼å°æè¿°åºè¡è®¢åç¶æè®¾ç½®ä¸ºæªå°è¾¾æè¿°æ¥ä¹å°ç¹çç¶æï¼å¹¶åæè¿°æå¡æä¾ç«¯åéè¯é³ä¿¡æ¯å/ææåä¿¡æ¯æéæåæ¥åå°è¾¾æè¿°æ¥ä¹å°ç¹ãThe first sending module is used to set the travel order status to a state of not arriving at the pick-up location if the straight-line distance is greater than the third preset threshold, and send a voice message and/or a text message to the service provider to remind it to report arriving at the pick-up location in advance.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼æè¿°æ´æ°è£ ç½®è¿å æ¬ç¬¬äºå鿍¡åï¼In a possible implementation manner, the updating device further includes a second sending module:
æè¿°ç¬¬äºå鿍¡åï¼ç¨äºåæè¿°æå¡æä¾ç«¯ä»¥åä¸æè¿°åºè¡è®¢å对åºçæå¡è¯·æ±ç«¯åéè¯é³ä¿¡æ¯å/ææåä¿¡æ¯æéå°è¾¾æè¿°æ¥ä¹å°ç¹ãThe second sending module is used to send a voice message and/or a text message to the service provider and the service requester corresponding to the travel order to remind them to arrive at the pick-up location.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼æè¿°è·å模åï¼è¿ç¨äºè·åæè¿°åºè¡è®¢åä¸çåºè¡æ¶å»ï¼In a possible implementation manner, the acquisition module is further used to acquire the travel time in the travel order;
æè¿°ç¡®å®æ¨¡åï¼è¿ç¨äºæ ¹æ®æè¿°åºè¡æ¶å»ï¼ç¡®å®å¨æè¿°åºè¡æ¶å»ä¹åçè·ç¦»æè¿°åºè¡æ¶å»ç¬¬ä¸é¢è®¾æ¶é¿çè·åæ¶å»ï¼å¹¶å°æè¿°è·åæ¶å»ç¡®å®ä¸ºé¦æ¬¡è·åæè¿°æå¡æä¾ç«¯å°çä½ç½®çæ¶å»ãThe determination module is further used to determine, based on the travel time, an acquisition time that is a third preset time length before the travel time, and determine the acquisition time as the time when the geographic location of the service provider is first acquired.
ç¬¬ä¸æ¹é¢ï¼æ¬ç³è¯·å®æ½ä¾è¿æä¾ä¸ç§çµå设å¤ï¼å æ¬ï¼å¤çå¨ãåå¨å¨åæ»çº¿ï¼æè¿°åå¨å¨å卿æè¿°å¤çå¨å¯æ§è¡çæºå¨å¯è¯»æä»¤ï¼å½çµå设å¤è¿è¡æ¶ï¼æè¿°å¤çå¨ä¸æè¿°åå¨å¨ä¹é´éè¿æè¿°æ»çº¿è¿è¡éä¿¡ï¼æè¿°æºå¨å¯è¯»æä»¤è¢«æè¿°å¤çå¨è¿è¡æ¶æ§è¡ä¸è¿°ç¬¬ä¸æ¹é¢æç¬¬ä¸æ¹é¢ä¸ä»»ä¸ç§å¯è½ç宿½æ¹å¼ä¸æè¿°çåºè¡è®¢åç¶æçæ´æ°æ¹æ³çæ¥éª¤ãIn the third aspect, an embodiment of the present application also provides an electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the method for updating the travel order status described in the first aspect or any possible implementation scheme of the first aspect.
ç¬¬åæ¹é¢ï¼æ¬ç³è¯·å®æ½ä¾è¿æä¾äºä¸ç§è®¡ç®æºå¯è¯»åå¨ä»è´¨ï¼æè¿°è®¡ç®æºå¯è¯»åå¨ä»è´¨ä¸åå¨æè®¡ç®æºç¨åºï¼æè¿°è®¡ç®æºç¨åºè¢«å¤çå¨è¿è¡æ¶æ§è¡ä¸è¿°ç¬¬ä¸æ¹é¢æç¬¬ä¸æ¹é¢ä¸ä»»ä¸ç§å¯è½ç宿½æ¹å¼ä¸æè¿°çåºè¡è®¢åç¶æçæ´æ°æ¹æ³çæ¥éª¤ãIn a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for updating the travel order status described in the first aspect or any possible implementation scheme of the first aspect are executed.
æ¬ç³è¯·å®æ½ä¾ä¸ï¼éè¿è·åçæå¡æä¾ç«¯å½åçå°çä½ç½®ï¼ä»¥åæå¡æä¾ç«¯å½åæ¿æ¥çåºè¡è®¢å对åºçæ¥ä¹å°ç¹ï¼å¯ä»¥ç¡®å®å°çä½ç½®ä¸æ¥ä¹å°ç¹ä¹é´çç´çº¿è·ç¦»åæå¡æä¾ç«¯ä»å°çä½ç½®è¡é©¶å°æ¥ä¹å°ç¹çæ¥ä¹è·ç¦»ï¼è¿ä¸æ¥å°ï¼åºäºç´çº¿è·ç¦»åæ¥ä¹è·ç¦»ï¼å¯ä»¥ç¡®å®æå¡æä¾ç«¯æ¯å¦å°è¾¾æ¥ä¹å°ç¹ï¼å³å¨å¸æºæ¥ä¹è¿ç¨ä¸ï¼ç½çº¦è½¦è½¯ä»¶ææå¡å¨å¯ä»¥èªå¨å¤ææ¯å¦å°è¾¾æ¥ä¹å°ç¹ï¼æ é叿ºåä¹å®¢å¤æ¬¡éè¯ç¡®è®¤æ¥ä¹å°ç¹ï¼å¯ä»¥æé«å¸æºæ¥ä¹çæçï¼å¹¶å¨ç¡®å®åºæå¡æä¾ç«¯å°è¾¾æ¥ä¹å°ç¹æ¶ï¼å°åºè¡è®¢åçç¶æè®¾ç½®ä¸ºå°è¾¾æ¥ä¹å°ç¹çç¶æï¼å¯ä»¥æåå¤çåºè¡è®¢åçæçãIn an embodiment of the present application, by obtaining the current geographic location of the service provider and the pick-up location corresponding to the travel order currently undertaken by the service provider, the straight-line distance between the geographic location and the pick-up location and the pick-up distance traveled by the service provider from the geographic location to the pick-up location can be determined. Furthermore, based on the straight-line distance and the pick-up distance, it can be determined whether the service provider has arrived at the pick-up location. That is, during the driver's pick-up process, the online car-hailing software or server can automatically determine whether it has arrived at the pick-up location. There is no need for the driver and the passenger to have multiple phone calls to confirm the pick-up location, which can improve the efficiency of the driver's pick-up. When it is determined that the service provider has arrived at the pick-up location, the status of the travel order is set to the status of arriving at the pick-up location, which can improve the efficiency of processing travel orders.
为使æ¬ç³è¯·çä¸è¿°ç®çãç¹å¾åä¼ç¹è½æ´ææ¾ææï¼ä¸æç¹ä¸¾è¾ä½³å®æ½ä¾ï¼å¹¶é åæééå¾ï¼ä½è¯¦ç»è¯´æå¦ä¸ãIn order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings.
å ·ä½å®æ½æ¹å¼Detailed ways
为使æ¬ç³è¯·å®æ½ä¾çç®çãææ¯æ¹æ¡åä¼ç¹æ´å æ¸ æ¥ï¼ä¸é¢å°ç»åæ¬ç³è¯·å®æ½ä¾ä¸çéå¾ï¼å¯¹æ¬ç³è¯·å®æ½ä¾ä¸çææ¯æ¹æ¡è¿è¡æ¸ æ¥ã宿´å°æè¿°ï¼åºå½çè§£ï¼æ¬ç³è¯·ä¸çéå¾ä» èµ·å°è¯´æåæè¿°çç®çï¼å¹¶ä¸ç¨äºé宿¬ç³è¯·çä¿æ¤èå´ãå¦å¤ï¼åºå½çè§£ï¼ç¤ºææ§çéå¾å¹¶æªæå®ç©æ¯ä¾ç»å¶ãæ¬ç³è¯·ä¸ä½¿ç¨çæµç¨å¾ç¤ºåºäºæ ¹æ®æ¬ç³è¯·çä¸äºå®æ½ä¾å®ç°çæä½ãåºå½çè§£ï¼æµç¨å¾çæä½å¯ä»¥ä¸æé¡ºåºå®ç°ï¼æ²¡æé»è¾çä¸ä¸æå ³ç³»çæ¥éª¤å¯ä»¥åè½¬é¡ºåºæè 忶宿½ãæ¤å¤ï¼æ¬é¢åææ¯äººå卿¬ç³è¯·å 容çæå¼ä¸ï¼å¯ä»¥åæµç¨å¾æ·»å ä¸ä¸ªæå¤ä¸ªå ¶ä»æä½ï¼ä¹å¯ä»¥ä»æµç¨å¾ä¸ç§»é¤ä¸ä¸ªæå¤ä¸ªæä½ãTo make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
å¦å¤ï¼ææè¿°ç宿½ä¾ä» ä» æ¯æ¬ç³è¯·ä¸é¨å宿½ä¾ï¼è䏿¯å ¨é¨ç宿½ä¾ãé叏卿¤å¤éå¾ä¸æè¿°å示åºçæ¬ç³è¯·å®æ½ä¾çç»ä»¶å¯ä»¥ä»¥åç§ä¸åçé ç½®æ¥å¸ç½®å设计ãå æ¤ï¼ä»¥ä¸å¯¹å¨éå¾ä¸æä¾çæ¬ç³è¯·ç宿½ä¾çè¯¦ç»æè¿°å¹¶éæ¨å¨éå¶è¦æ±ä¿æ¤çæ¬ç³è¯·çèå´ï¼èæ¯ä» ä» è¡¨ç¤ºæ¬ç³è¯·çéå®å®æ½ä¾ãåºäºæ¬ç³è¯·ç宿½ä¾ï¼æ¬é¢åææ¯äººå卿²¡æååºåé æ§å³å¨çåæä¸æè·å¾çå ¨é¨å ¶ä»å®æ½ä¾ï¼é½å±äºæ¬ç³è¯·ä¿æ¤çèå´ãIn addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
为äºä½¿å¾æ¬é¢åææ¯äººåè½å¤ä½¿ç¨æ¬ç³è¯·å 容ï¼ç»åç¹å®åºç¨åºæ¯âç½çº¦è½¦åºè¡âï¼ç»åºä»¥ä¸å®æ½æ¹å¼ï¼å¯¹äºæ¬é¢åææ¯äººåæ¥è¯´ï¼å¨ä¸è±ç¦»æ¬ç³è¯·çç²¾ç¥åèå´çæ åµä¸ï¼å¯ä»¥å°è¿éå®ä¹çä¸è¬åçåºç¨äºå ¶ä»å®æ½ä¾ååºç¨åºæ¯ãIn order to enable those skilled in the art to use the contents of this application, the following implementation methods are provided in combination with the specific application scenario of âonline car-hailing travelâ. For those skilled in the art, the general principles defined here can be applied to other embodiments and application scenarios without departing from the spirit and scope of this application.
æ¬ç³è¯·å®æ½ä¾ä¸è¿°æ¹æ³ãè£ ç½®ãçµåè®¾å¤æè®¡ç®æºå¯è¯»åå¨ä»è´¨å¯ä»¥åºç¨äºä»»ä½éè¦è¿è¡åºè¡è®¢åç¶æçæ´æ°çåºæ¯ï¼æ¬ç³è¯·å®æ½ä¾å¹¶ä¸å¯¹å ·ä½çåºç¨åºæ¯ä½éå¶ï¼ä»»ä½ä½¿ç¨æ¬ç³è¯·å®æ½ä¾æä¾çåºè¡è®¢åç¶æçæ´æ°æ¹æ³åæ´æ°è£ ç½®çæ¹æ¡å卿¬ç³è¯·ä¿æ¤èå´å ãThe following methods, devices, electronic devices or computer-readable storage media of the embodiments of the present application can be applied to any scenario where the travel order status needs to be updated. The embodiments of the present application are not limited to specific application scenarios. Any scheme using the travel order status update method and update device provided by the embodiments of the present application is within the scope of protection of the present application.
å¼å¾æ³¨æçæ¯ï¼å¨æ¬ç³è¯·æåºä¹åï¼ç°ææ¹æ¡ä¸çç½çº¦è½¦ä¸å¡ï¼å¸æºå¨æ¥ä¹å®¢æ¶é常éè¦ååç»éªæè æè§å¤ææ¯å¦å°è¾¾æ¥ä¹å°ç¹ï¼å æ¤å¯è½åºç°å车ä½ç½®ä¸åç¡®çæ åµåçï¼èä¸å¨å¸æºå车ä¹åï¼å¸æºè¿éè¦ä¸ä¹å®¢è¿è¡çµè¯æ²é以确å®åç¡®çæ¥ä¹å°ç¹ï¼ä¸å¨å°è¾¾åç¡®çå°ç¹åè¿éè¦åè¿ä¸æ¥çµè¯åç¥ä¹å®¢ï¼å¹¶æå¨ç¹å»å¸æºç«¯çé¢çæé®ä»¥ç¡®è®¤å°è¾¾æ¥ä¹å°ç¹ãè¿æ ·ï¼ä¸ä» 伿µªè´¹å¸æºåä¹å®¢åæ¹çæ¶é´ï¼è¿ä¼éä½å¸æºæ¥ä¹çæçãIt is worth noting that before this application was filed, in the existing online car-hailing business, drivers usually need to rely on experience or feeling to judge whether they have arrived at the pick-up location when picking up passengers, so the parking location may be inaccurate. After the driver parks the car, the driver needs to communicate with the passenger by phone to determine the exact pick-up location. After arriving at the exact location, the driver needs to further inform the passenger by phone and manually click the button on the driver's interface to confirm that he has arrived at the pick-up location. This not only wastes the time of both the driver and the passenger, but also reduces the efficiency of the driver's pick-up.
é对ä¸è¿°é®é¢ï¼æ¬ç³è¯·å®æ½ä¾éè¿è·åçæå¡æä¾ç«¯å½åçå°çä½ç½®ï¼ä»¥åæå¡æä¾ç«¯å½åæ¿æ¥çåºè¡è®¢å对åºçæ¥ä¹å°ç¹ï¼å¯ä»¥ç¡®å®å°çä½ç½®ä¸æ¥ä¹å°ç¹ä¹é´çç´çº¿è·ç¦»åæå¡æä¾ç«¯ä»å°çä½ç½®è¡é©¶å°æ¥ä¹å°ç¹çæ¥ä¹è·ç¦»ï¼è¿ä¸æ¥å°ï¼åºäºç´çº¿è·ç¦»åæ¥ä¹è·ç¦»ï¼å¯ä»¥ç¡®å®æå¡æä¾ç«¯æ¯å¦å°è¾¾æ¥ä¹å°ç¹ï¼å³å¨å¸æºæ¥ä¹è¿ç¨ä¸ï¼ç½çº¦è½¦è½¯ä»¶ææå¡å¨å¯ä»¥èªå¨å¤ææ¯å¦å°è¾¾æ¥ä¹å°ç¹ï¼æ é叿ºåä¹å®¢å¤æ¬¡éè¯ç¡®è®¤æ¥ä¹å°ç¹ï¼å¯ä»¥æé«å¸æºæ¥ä¹çæçï¼å¹¶å¨ç¡®å®åºæå¡æä¾ç«¯å°è¾¾æ¥ä¹å°ç¹æ¶ï¼å°åºè¡è®¢åçç¶æè®¾ç½®ä¸ºå°è¾¾æ¥ä¹å°ç¹çç¶æï¼å¯ä»¥æåå¤çåºè¡è®¢åçæçãIn response to the above problems, the embodiments of the present application can determine the straight-line distance between the geographical location and the pick-up location and the pick-up distance from the geographical location to the pick-up location by obtaining the current geographical location of the service provider and the pick-up location corresponding to the travel order currently undertaken by the service provider. Furthermore, based on the straight-line distance and the pick-up distance, it can be determined whether the service provider has arrived at the pick-up location. That is, during the driver's pick-up process, the online car-hailing software or server can automatically determine whether it has arrived at the pick-up location. There is no need for the driver and the passenger to have multiple phone calls to confirm the pick-up location, which can improve the driver's pick-up efficiency. When it is determined that the service provider has arrived at the pick-up location, the status of the travel order is set to the status of arrival at the pick-up location, which can improve the efficiency of processing travel orders.
éè¦è¯´æçæ¯ï¼æ¬ç³è¯·æ¹æ¡å¯ä»¥éè¿ä¸ä¹å®¢ç»ç«¯å叿ºç»ç«¯äº¤äºçäºå¹³å°ææå¡å¨å®æ½ï¼ä¹å¯ä»¥éè¿å¸æºç»ç«¯å®è£ çç½çº¦è½¦è½¯ä»¶å®æ½ï¼æ¬ç³è¯·ä¸çæ¯è¯âæå¡æä¾æ¹âåâ叿ºâå¯äºæ¢ä½¿ç¨ï¼âæå¡è¯·æ±æ¹âåâä¹å®¢âå¯äºæ¢ä½¿ç¨ï¼âæå¡æä¾ç«¯âåâ叿ºç»ç«¯âå¯äºæ¢ä½¿ç¨ï¼âæå¡è¯·æ±ç«¯âåâä¹å®¢ç»ç«¯âå¯äºæ¢ä½¿ç¨ãIt should be noted that the present application scheme can be implemented through a cloud platform or server that interacts with the passenger terminal and the driver terminal, or through an online car-hailing software installed on the driver terminal. The terms "service provider" and "driver" in this application can be used interchangeably, "service requester" and "passenger" can be used interchangeably, "service providing end" and "driver terminal" can be used interchangeably, and "service requesting end" and "passenger terminal" can be used interchangeably.
为便äºå¯¹æ¬ç³è¯·è¿è¡çè§£ï¼ä¸é¢ç»åå ·ä½å®æ½ä¾å¯¹æ¬ç³è¯·æä¾çææ¯æ¹æ¡è¿è¡è¯¦ç»è¯´æãTo facilitate the understanding of the present application, the technical solution provided by the present application is described in detail below in conjunction with specific embodiments.
åè§å¾1ï¼æ§è¡åºè¡è®¢åç¶æçæ´æ°æ¹æ³ç设å¤å¯ä»¥æ¯äºå¹³å°ææå¡å¨æå®è£ 卿塿ä¾ç«¯çç½çº¦è½¦è½¯ä»¶ãå¾1为æ¬ç³è¯·å®æ½ä¾ææä¾çä¸ç§åºè¡è®¢åç¶æçæ´æ°æ¹æ³çæµç¨å¾ãä¸é¢ä»æ§è¡ä¸»ä½ä¸ºæå¡å¨çè§åº¦ï¼å¯¹æ¬ç³è¯·å®æ½ä¾ææä¾çåºè¡è®¢åç¶æçæ´æ°æ¹æ³å 以说æãå¦å¾1æç¤ºï¼æ¬ç³è¯·å®æ½ä¾æä¾çåºè¡è®¢åç¶æçæ´æ°æ¹æ³ï¼å æ¬ä»¥ä¸æ¥éª¤ï¼Referring to Figure 1, the device that executes the method for updating the travel order status may be a cloud platform or a server or an online car-hailing software installed on the service provider side. Figure 1 is a flow chart of a method for updating the travel order status provided in an embodiment of the present application. The following is an explanation of the method for updating the travel order status provided in an embodiment of the present application from the perspective of the execution subject being a server. As shown in Figure 1, the method for updating the travel order status provided in an embodiment of the present application includes the following steps:
S101ï¼è·åæå¡æä¾ç«¯å½åçå°çä½ç½®ï¼ä»¥åæè¿°æå¡æä¾ç«¯å½åæ¿æ¥çåºè¡è®¢å对åºçæ¥ä¹å°ç¹ãS101: Acquire the current geographic location of the service provider and the pick-up location corresponding to the travel order currently undertaken by the service provider.
å¨å ·ä½å®æ½ä¸ï¼å¨æå¡æä¾æ¹çæ¥ä¹è¿ç¨ä¸ï¼å¯ä»¥ä»æå¡æä¾ç«¯å½åæ¿æ¥çåºè¡è®¢åä¸è·å对åºçæ¥ä¹å°ç¹ï¼å¯ä»¥å®æ¶æä»¥é¢è®¾æ¶é´é´éè·åæå¡æä¾ç«¯çå°çä½ç½®ãè¿éï¼æ¥ä¹å°ç¹å¯ä»¥ä¸ºåºè¡è®¢åä¸ç订åèµ·ç¹ãä¹å¯ä»¥ä¸ºä¹å®¢ä¸å¸æºçº¦å®çä¸è½¦èµ·ç¹ãè¿å¯ä»¥ä¸ºæå忍èçæ°èµ·ç¹ãIn a specific implementation, during the pick-up process of the service provider, the corresponding pick-up location can be obtained from the travel order currently undertaken by the service provider, and the geographical location of the service provider can be obtained in real time or at a preset time interval. Here, the pick-up location can be the order starting point in the travel order, the boarding starting point agreed upon by the passenger and the driver, or a new starting point recommended after the order is placed.
éè¦è¯´æçæ¯ï¼å¯¹äºå®æ¶è®¢åï¼æ¥ä¹è¿ç¨å¯ä»¥ææå¡æä¾æ¹æ¥åå尿塿便¹å°è¾¾æ¥ä¹å°ç¹ä¹é´çæ¶é´æ®µï¼å¯¹äºé¢çº¦è®¢åï¼æ¥ä¹è¿ç¨å¯ä»¥æé¢çº¦åºåæ¶é´åçé¢è®¾æ¶å»å°æå¡æä¾æ¹å°è¾¾æ¥ä¹å°ç¹ä¹é´çæ¶é´æ®µãIt should be noted that, for real-time orders, the pick-up process may refer to the time period from the time the service provider accepts the order to the time the service provider arrives at the pick-up location; for scheduled orders, the pick-up process may refer to the time period from the preset time before the scheduled departure time to the time the service provider arrives at the pick-up location.
S102ï¼åºäºæè¿°å°çä½ç½®åæè¿°æ¥ä¹å°ç¹ï¼ç¡®å®æè¿°å°çä½ç½®ä¸æè¿°æ¥ä¹å°ç¹ä¹é´çç´çº¿è·ç¦»åæè¿°æå¡æä¾ç«¯ä»æè¿°å°çä½ç½®å°è¾¾æè¿°æ¥ä¹å°ç¹çæ¥ä¹è·ç¦»ãS102: Based on the geographical location and the pick-up location, determine the straight-line distance between the geographical location and the pick-up location and the pick-up distance from the geographical location to the pick-up location by the service provider.
å¨å ·ä½å®æ½ä¸ï¼å¯ä»¥æ ¹æ®æå¡æä¾ç«¯å½åçå°çä½ç½®åæå¡æä¾ç«¯å½åæ¿æ¥çåºè¡è®¢å对åºçæ¥ä¹å°ç¹ä¹é´çè·ç¦»ï¼ç¡®å®åºæå¡æä¾ç«¯æ¯å¦å°è¾¾æ¥ä¹å°ç¹ï¼å ·ä½å°ï¼æå¡æä¾ç«¯çå°çä½ç½®ä¸æ¥ä¹å°ç¹ä¹é´çè·ç¦»å æ¬ç´çº¿è·ç¦»åæ¥ä¹è·ç¦»ï¼è¿éï¼ç´çº¿è·ç¦»ä¸ºæå¡æä¾ç«¯çå°çä½ç½®ä¸æ¥ä¹å°ç¹ä¸¤ç¹ä¹é´çç´çº¿è·ç¦»ï¼æ¥ä¹è·ç¦»ä¸ºæå¡æä¾ç«¯ä»æå¡æä¾ç«¯å½åçå°çä½ç½®ç§»å¨å°æ¥ä¹å°ç¹ä¹é´çå®é è·¯é¢è·ç¦»ãIn a specific implementation, whether the service provider has arrived at the pick-up location can be determined based on the service provider's current geographical location and the distance between the pick-up location corresponding to the travel order currently undertaken by the service provider. Specifically, the distance between the service provider's geographical location and the pick-up location includes a straight-line distance and a pick-up distance. Here, the straight-line distance is the straight-line distance between the service provider's geographical location and the pick-up location, and the pick-up distance is the actual road distance between the service provider's current geographical location and the pick-up location.
S103ï¼åºäºæè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»ï¼ç¡®å®æè¿°æå¡æä¾ç«¯æ¯å¦å°è¾¾æè¿°æ¥ä¹å°ç¹ï¼å¹¶å¨ç¡®å®åºæè¿°æå¡æä¾ç«¯å°è¾¾æè¿°æ¥ä¹å°ç¹æ¶ï¼å°æè¿°åºè¡è®¢åçç¶æè®¾ç½®ä¸ºå°è¾¾æè¿°æ¥ä¹å°ç¹çç¶æãS103: Determine whether the service provider has arrived at the pick-up location based on the straight-line distance and the pick-up distance, and when it is determined that the service provider has arrived at the pick-up location, set the status of the travel order to the status of arriving at the pick-up location.
å¨å ·ä½å®æ½ä¸ï¼è¥æå¡æä¾ç«¯å½åçå°çä½ç½®ä¸æ¥ä¹å°ç¹ä¹é´çç´çº¿è·ç¦»åæ¥ä¹è·ç¦»å满足é¢è®¾æ¡ä»¶ï¼å³è¿è¡äºç´çº¿è·ç¦»åæ¥ä¹è·ç¦»çåééªè¯ï¼å¯ä»¥åç¡®å°ç¡®å®åºæ¤æ¶æå¡æä¾ç«¯å·²ç»å°è¾¾æ¥ä¹å°ç¹ï¼é¿å å°å¾å®ä½ä¸åçå¹²æ°ãç¤ºä¾æ§çï¼å¹²æ°çæ åµå¯ä»¥ä¸ºå®ä½å°ç¹åæ¬åºè¯¥å¨éè·¯çä¸ä¾§ï¼å´å®ä½å¨éè·¯çå¦ä¸ä¾§ãè¿ä¸æ¥å°ï¼å¨ç¡®å®åºæå¡æä¾ç«¯å°è¾¾æ¥ä¹å°ç¹æ¶ï¼è¿å¯ä»¥å°æå¡æä¾ç«¯åæå¡è¯·æ±ç«¯çåºè¡è®¢åç¶æå设置为å°è¾¾æ¥ä¹å°ç¹çç¶æï¼å¦è®¢åç¶æè®¾ç½®ä¸ºâå·²å°è¾¾æ¥ä¹å°ç¹âï¼è¿æ ·ï¼æ éæå¡æä¾æ¹äººä¸ºå¯¹æ¯å¦å°è¾¾æ¥ä¹å°ç¹è¿è¡å¤æï¼æå¡å¨å¯ä»¥å®ç°èªå¨å¤ææ¯å¦å°è¾¾æ¥ä¹å°ç¹çææï¼è¿èå¯ä»¥æé«å¸æºæ¥ä¹çæçï¼å¹¶å¯ä»¥æåå¤çåºè¡è®¢åçæçãIn a specific implementation, if the straight-line distance and the pick-up distance between the current geographical location of the service provider and the pick-up location both meet the preset conditions, that is, a double verification of the straight-line distance and the pick-up distance is performed, it can be accurately determined that the service provider has arrived at the pick-up location at this time, avoiding the interference of inaccurate map positioning. Exemplary interference may be that the location should have been on one side of the road, but was located on the other side of the road. Furthermore, when it is determined that the service provider has arrived at the pick-up location, the travel order status of the service provider and the service requester can also be set to the status of arriving at the pick-up location, such as setting the order status to "arrived at the pick-up location". In this way, the service provider does not need to manually judge whether it has arrived at the pick-up location. The server can automatically judge whether it has arrived at the pick-up location, thereby improving the efficiency of the driver's pick-up and the efficiency of processing travel orders.
è¿éï¼é¢è®¾æ¡ä»¶å¯ä»¥ä¸ºç´çº¿è·ç¦»åæ¥ä¹è·ç¦»åå°äºä¸ä¸ªé¢è®¾éå¼ï¼é¢è®¾æ¡ä»¶è¿å¯ä»¥ä¸ºç´çº¿è·ç¦»å°äºä¸ä¸ªé¢è®¾éå¼ï¼æ¥ä¹è·ç¦»å°äºå¦ä¸ä¸ªé¢è®¾éå¼ãHere, the preset condition may be that both the straight-line distance and the pick-up distance are less than a preset threshold value. The preset condition may also be that the straight-line distance is less than one preset threshold value and the pick-up distance is less than another preset threshold value.
卿¬ç³è¯·å®æ½ä¾ä¸ï¼éè¿è·åçæå¡æä¾ç«¯å½åçä½ç½®ä¿¡æ¯ï¼ä»¥åæå¡æä¾ç«¯å½åæ¿æ¥çåºè¡è®¢å对åºçæ¥ä¹å°ç¹ï¼å¯ä»¥ç¡®å®ä½ç½®ä¿¡æ¯å¯¹åºçä½ç½®ä¸æ¥ä¹å°ç¹ä¹é´çç´çº¿è·ç¦»åæå¡æä¾ç«¯ä»ä½ç½®ä¿¡æ¯å¯¹åºçä½ç½®è¡é©¶å°æ¥ä¹å°ç¹çæ¥ä¹è·ç¦»ï¼è¿ä¸æ¥å°ï¼åºäºç´çº¿è·ç¦»åæ¥ä¹è·ç¦»ï¼å¯ä»¥ç¡®å®æå¡æä¾ç«¯æ¯å¦å°è¾¾æ¥ä¹å°ç¹ï¼å³å¨å¸æºæ¥ä¹è¿ç¨ä¸ï¼æå¡å¨å¯ä»¥èªå¨å¤ææ¯å¦å°è¾¾æ¥ä¹å°ç¹ï¼æ é叿ºåä¹å®¢å¤æ¬¡éè¯ç¡®è®¤æ¥ä¹å°ç¹ï¼å¯ä»¥æé«å¸æºæ¥ä¹çæçï¼å¹¶å¨ç¡®å®åºæå¡æä¾ç«¯å°è¾¾æ¥ä¹å°ç¹æ¶ï¼å°åºè¡è®¢åçç¶æè®¾ç½®ä¸ºå°è¾¾æ¥ä¹å°ç¹çç¶æï¼å¯ä»¥æåå¤çåºè¡è®¢åçæçãIn an embodiment of the present application, by acquiring the current location information of the service provider and the pick-up location corresponding to the travel order currently undertaken by the service provider, the straight-line distance between the location corresponding to the location information and the pick-up location and the pick-up distance traveled by the service provider from the location corresponding to the location information to the pick-up location can be determined. Furthermore, based on the straight-line distance and the pick-up distance, it can be determined whether the service provider has arrived at the pick-up location. That is, during the driver's pick-up process, the server can automatically determine whether it has arrived at the pick-up location, without the driver and the passenger having multiple phone calls to confirm the pick-up location, which can improve the efficiency of the driver's pick-up, and when it is determined that the service provider has arrived at the pick-up location, the status of the travel order is set to the status of arriving at the pick-up location, which can improve the efficiency of processing travel orders.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼å¨S103ä¸åºäºæè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»ï¼ç¡®å®æè¿°æå¡æä¾ç«¯æ¯å¦å°è¾¾æè¿°æ¥ä¹å°ç¹ï¼å æ¬ä»¥ä¸æ¥éª¤ï¼In a possible implementation manner, determining whether the service provider has arrived at the pick-up location based on the straight-line distance and the pick-up distance in S103 includes the following steps:
æ¥éª¤1031ï¼å¤ææè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»æ¯å¦åå°äºæçäºç¬¬ä¸é¢è®¾éå¼ãStep 1031: Determine whether the straight-line distance and the connecting distance are both less than or equal to a first preset threshold.
æ¥éª¤1032ï¼è¥æè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»åå°äºæçäºæè¿°ç¬¬ä¸é¢è®¾éå¼ï¼åç¡®å®æè¿°æå¡æä¾ç«¯å°è¾¾æè¿°æ¥ä¹å°ç¹ãStep 1032: If the straight-line distance and the pick-up distance are both less than or equal to the first preset threshold, it is determined that the service provider has arrived at the pick-up location.
å¨å ·ä½å®æ½ä¸ï¼å½å¤æåºæå¡æä¾ç«¯çå½åå°çä½ç½®ä¸æ¥ä¹å°ç¹ä¹é´çç´çº¿è·ç¦»åæ¥ä¹è·ç¦»å满足é¢è®¾æ¡ä»¶æ¶ï¼å¯ä»¥ç¡®å®åºæå¡æä¾ç«¯å·²ç»å°è¾¾äºæ¥ä¹å°ç¹ï¼å³ï¼åªééè¿æå¡æä¾ç«¯ç宿¶å°çä½ç½®ä¸æ¥ä¹å°ç¹ä¹é´çæ¥ä¹è·ç¦»åç´çº¿è·ç¦»ï¼å°±å¯ä»¥ç´æ¥å¤æåºæå¡æä¾ç«¯æ¯å¦å°è¾¾æ¥ä¹å°ç¹ï¼å¹¶æ ¹æ®å¤æç»æç¡®å®æ¯å¦æ´æ¹åºè¡è®¢åçç¶æãIn a specific implementation, when it is determined that the straight-line distance and the pick-up distance between the current geographic location of the service provider and the pick-up location meet the preset conditions, it can be determined that the service provider has arrived at the pick-up location. That is, it is possible to directly determine whether the service provider has arrived at the pick-up location simply by using the pick-up distance and the straight-line distance between the real-time geographic location of the service provider and the pick-up location, and determine whether to change the status of the travel order based on the determination result.
è¿éï¼é¢è®¾æ¡ä»¶å¯ä»¥ä¸ºç´çº¿è·ç¦»åæ¥ä¹è·ç¦»åå°äºæçäºç¬¬ä¸é¢è®¾éå¼ï¼ç¬¬ä¸é¢è®¾éå¼å¯ä»¥æ ¹æ®å®é ä¸å¡éæ±è¿è¡è®¾å®ï¼ç¨æ¥å¤ææå¡æä¾ç«¯å½åçå°çä½ç½®æ¯å¦è¾ä¸ºæ¥è¿æå¡æä¾ç«¯å½åæ¿æ¥çåºè¡è®¢åä¸çæ¥ä¹å°ç¹ï¼ç¬¬ä¸é¢è®¾éå¼ä¼é设置为40ç±³ï¼å³å½ç´çº¿è·ç¦»ä¸æ¥ä¹è·ç¦»åå°äº40ç±³æ¶ï¼å°±å¯ä»¥é»è®¤æå¡æä¾ç«¯å°è¾¾æ¥ä¹å°ç¹ãHere, the preset condition may be that both the straight-line distance and the pick-up distance are less than or equal to a first preset threshold. The first preset threshold may be set according to actual business needs to determine whether the current geographical location of the service provider is relatively close to the pick-up location in the travel order currently undertaken by the service provider. The first preset threshold is preferably set to 40 meters, that is, when both the straight-line distance and the pick-up distance are less than 40 meters, it can be assumed that the service provider has arrived at the pick-up location.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼å¨æ¥éª¤1031夿æè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»æ¯å¦åå°äºæçäºç¬¬ä¸é¢è®¾éå¼ä¹åï¼æ´æ°æ¹æ³è¿å æ¬ï¼In a possible implementation manner, after determining in step 1031 whether the straight-line distance and the connecting distance are both less than or equal to a first preset threshold, the updating method further includes:
æ¥éª¤1033ï¼è¥æè¿°ç´çº¿è·ç¦»å/ææè¿°æ¥ä¹è·ç¦»å¤§äºæè¿°ç¬¬ä¸é¢è®¾éå¼ï¼åæ¯é第ä¸é¢è®¾æ¶é¿è¿åæ§è¡å¤ææè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»æ¯å¦åå°äºæçäºç¬¬ä¸é¢è®¾éå¼çæ¥éª¤ãStep 1033: If the straight-line distance and/or the pick-up distance is greater than the first preset threshold, return to the step of determining whether the straight-line distance and the pick-up distance are both less than or equal to the first preset threshold every first preset time period.
å¨å ·ä½å®æ½ä¸ï¼è¥æå¡æä¾ç«¯å½åçå°çä½ç½®ä¸æ¥ä¹å°ç¹ä¹é´çç´çº¿è·ç¦»åæ¥ä¹è·ç¦»ä¸åªæä¸ä¸ªæ»¡è¶³é¢è®¾æ¡ä»¶ï¼æè ç´çº¿è·ç¦»åæ¥ä¹è·ç¦»å䏿»¡è¶³é¢è®¾æ¡ä»¶ï¼å¯ä»¥ç¡®å®åºæ¤æ¶æå¡æä¾ç«¯æ²¡æå°è¾¾æ¥ä¹å°ç¹ï¼è¿éï¼éçæ¶é´çååï¼æå¡æä¾ç«¯çå°çä½ç½®ä¹éä¹ååï¼æä»¥å¯ä»¥æ¯é第ä¸é¢è®¾æ¶é¿ç»§ç»è·åæå¡æä¾ç«¯çå°çä½ç½®ï¼å¹¶éå¤å¾ªç¯å¤æç´çº¿è·ç¦»åæ¥ä¹è·ç¦»æ¯å¦åå°äºæçäºç¬¬ä¸é¢è®¾éå¼ï¼ç´è³ç´çº¿è·ç¦»åæ¥ä¹è·ç¦»åå°äºæçäºç¬¬ä¸é¢è®¾é弿è½ç»ææ¤å¤ææ¥éª¤ï¼å³ç¡®å®æå¡æä¾ç«¯å°è¾¾æ¥ä¹å°ç¹æ¶ï¼ç»ææ¤å¤ææ¥éª¤ãIn a specific implementation, if only one of the straight-line distance and the pick-up distance between the current geographical location of the service provider and the pick-up location meets the preset conditions, or if both the straight-line distance and the pick-up distance do not meet the preset conditions, it can be determined that the service provider has not arrived at the pick-up location at this time. Here, as time changes, the geographical location of the service provider also changes accordingly, so the geographical location of the service provider can continue to be obtained at intervals of a first preset time period, and the straight-line distance and the pick-up distance can be repeatedly determined in a cycle to determine whether both are less than or equal to the first preset threshold value, until both the straight-line distance and the pick-up distance are less than or equal to the first preset threshold value to end this judgment step, that is, when it is determined that the service provider has arrived at the pick-up location, this judgment step is ended.
è¿éï¼ç¬¬ä¸é¢è®¾æ¶é¿æ ¹æ®å®é ä¸å¡éæ±è¿è¡è®¾å®ï¼ä¼é设置为3ç§ãHere, the first preset duration is set according to actual business needs, and is preferably set to 3 seconds.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼å¨æ¥éª¤1031夿æè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»æ¯å¦åå°äºæçäºç¬¬ä¸é¢è®¾éå¼ä¹åï¼æ´æ°æ¹æ³è¿å æ¬ä»¥ä¸æ¥éª¤ï¼In a possible implementation manner, before determining in step 1031 whether the straight-line distance and the connecting distance are both less than or equal to a first preset threshold, the updating method further includes the following steps:
æ¥éª¤aï¼å¤ææè¿°æ¥ä¹è·ç¦»æ¯å¦å°äºæçäºç¬¬äºé¢è®¾éå¼ãStep a: Determine whether the pick-up distance is less than or equal to a second preset threshold.
å¨å ·ä½å®æ½ä¸ï¼èèå°ä»æå¡æä¾ç«¯å¨æ¥åæ¶çå°çä½ç½®å°æ¥ä¹å°ç¹ä¹é´çè·ç¦»å¯è½è¾é¿ï¼ä»è¯¥å°çä½ç½®å°è¾¾æ¥ä¹å°ç¹çè±è´¹çæ¶é´å¯è½è¾é¿ï¼æ 卿´ä¸ªæ¥ä¹è¿ç¨ä¸ï¼å¦æä¸æéå¤å¾ªç¯å¤æç´çº¿è·ç¦»åæ¥ä¹è·ç¦»æ¯å¦åå°äºæçäºç¬¬ä¸é¢è®¾éå¼çæ¥éª¤ï¼è¿éï¼ç¬¬ä¸é¢è®¾éå¼è¾å°ï¼ä¼é ææå¡å¨èµæºç大éå ç¨ï¼æä»¥æ¬ç³è¯·å¨å¤æç´çº¿è·ç¦»åæ¥ä¹è·ç¦»æ¯å¦åå°äºæçäºç¬¬ä¸é¢è®¾éå¼ä¹åï¼å¢è®¾ä¸ä¸ªæ¥éª¤ï¼å³å 夿æ¥ä¹è·ç¦»æ¯å¦å°äºæçäºç¬¬äºé¢è®¾éå¼ï¼è¿éï¼ç¬¬äºé¢è®¾éå¼è¿å¤§äºç¬¬ä¸é¢è®¾éå¼ãè¿æ ·ï¼å¯ä»¥åå°å¤§å¹¶åä¸çæµéï¼å¯ä»¥åè½»æå¡å¨ååãIn the specific implementation, considering that the distance from the geographical location of the service provider when accepting the order to the pick-up location may be long, and the time spent from the geographical location to the pick-up location may be long, if the step of judging whether the straight-line distance and the pick-up distance are both less than or equal to the first preset threshold is repeatedly repeated in the entire pick-up process, the first preset threshold is small, which will cause a large amount of server resources to be occupied. Therefore, before judging whether the straight-line distance and the pick-up distance are both less than or equal to the first preset threshold, the present application adds a step, that is, first judging whether the pick-up distance is less than or equal to the second preset threshold, and the second preset threshold is much larger than the first preset threshold. In this way, the traffic under high concurrency can be reduced, and the server pressure can be relieved.
è¿éï¼ç¬¬äºé¢è®¾éå¼å¯ä»¥æ ¹æ®å®é ä¸å¡éæ±è¿è¡è®¾å®ï¼ç¨æ¥ç¡®å®æ¯å¦è¿è¡å¤æè½®è¯¢è¿ç¨ç忢ï¼ç¬¬äºé¢è®¾éå¼ä¼é设置为500ç±³ãHere, the second preset threshold can be set according to actual business needs to determine whether to switch the polling process. The second preset threshold is preferably set to 500 meters.
éè¦è¯´æçæ¯ï¼å¨æå¡æä¾ç«¯çå°çä½ç½®ä¸æ¥ä¹å°ç¹ä¹é´çè·ç¦»è¾è¿æ¶ï¼å°å¾å®ä½ç¸å¯¹åç¡®ï¼æä»¥åªéè¦å¯¹æ¥ä¹è·ç¦»ä½ä¸ºå¤ææ¡ä»¶å³å¯ï¼ä¸éè¦è¿è¡ç´çº¿è·ç¦»åæ¥ä¹è·ç¦»åé夿ä¹å¯ä»¥åç¡®å°å¾å°å¤æç»æãIt should be noted that when the distance between the geographical location of the service provider and the pick-up location is far, the map positioning is relatively accurate, so only the pick-up distance needs to be used as a judgment condition. The judgment result can be accurately obtained without the need for double judgment of the straight-line distance and the pick-up distance.
æ¥éª¤bï¼è¥æè¿°æ¥ä¹è·ç¦»å°äºæçäºæè¿°ç¬¬äºé¢è®¾éå¼ï¼åæ§è¡åºäºæè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»ï¼ç¡®å®æè¿°æå¡æä¾ç«¯æ¯å¦å°è¾¾æè¿°æ¥ä¹å°ç¹çæ¥éª¤ãStep b: If the pick-up distance is less than or equal to the second preset threshold, executing the step of determining whether the service provider has arrived at the pick-up location based on the straight-line distance and the pick-up distance.
å¨å ·ä½å®æ½ä¸ï¼åªæå¨å¤æåºæ¥ä¹è·ç¦»å°äºæçäºç¬¬äºé¢è®¾é弿¶ï¼æè¿è¡åºäºç´çº¿è·ç¦»åæ¥ä¹è·ç¦»ï¼ç¡®å®æå¡æä¾ç«¯æ¯å¦å°è¾¾æ¥ä¹å°ç¹çæ¥éª¤ï¼å³å¨æ¥ä¹è·ç¦»æ¯è¾çæ¶ï¼åè¿è¡ç´çº¿è·ç¦»åæ¥ä¹è·ç¦»çåéå¤å®ï¼è¿æ ·ï¼å¯ä»¥å ¼é¡¾æå¡å¨å¤çæçï¼è¿å¯ä»¥å®ç°å¿«é对æ¯å¦å°è¾¾æ¥ä¹å°ç¹ç夿ãIn a specific implementation, only when it is determined that the pick-up distance is less than or equal to the second preset threshold value, the step of determining whether the service provider has arrived at the pick-up location based on the straight-line distance and the pick-up distance is performed. That is, when the pick-up distance is relatively short, a dual determination of the straight-line distance and the pick-up distance is performed. In this way, the server processing efficiency can be taken into account while also achieving a quick determination of whether the pick-up location has been reached.
æ¥éª¤cï¼è¥æè¿°æ¥ä¹è·ç¦»å¤§äºæè¿°ç¬¬äºé¢è®¾éå¼ï¼åæ¯é第äºé¢è®¾æ¶é¿è¿åæ§è¡å¤ææè¿°æ¥ä¹è·ç¦»æ¯å¦å°äºæçäºæè¿°ç¬¬äºé¢è®¾éå¼çæ¥éª¤ãStep c: If the pick-up distance is greater than the second preset threshold, returning to the step of determining whether the pick-up distance is less than or equal to the second preset threshold every second preset time period.
å¨å ·ä½å®æ½ä¸ï¼è¥æå¡æä¾ç«¯å½åçå°çä½ç½®ä¸æ¥ä¹å°ç¹ä¹é´çæ¥ä¹è·ç¦»å¤§äºç¬¬äºé¢è®¾éå¼ï¼å³æå¡æä¾ç«¯ä¸æ¥ä¹å°ç¹ä¹é´çæ¥ä¹è·ç¦»è¾è¿ï¼åä¸è¿è¡å¤æè½®è¯¢è¿ç¨çåæ¢ï¼æ¯é第äºé¢è®¾æ¶é¿è¿åæ§è¡å¤ææ¥ä¹è·ç¦»æ¯å¦å°äºæçäºç¬¬äºé¢è®¾éå¼çæ¥éª¤ï¼ç´è³æ¥ä¹è·ç¦»å°äºæçäºç¬¬äºé¢è®¾é弿忢å°å¤æç´çº¿è·ç¦»åæ¥ä¹è·ç¦»æ¯å¦å°äºæçäºç¬¬ä¸é¢è®¾éå¼çæ¥éª¤ãIn a specific implementation, if the pick-up distance between the current geographic location of the service provider and the pick-up location is greater than a second preset threshold, that is, the pick-up distance between the service provider and the pick-up location is far, the judgment polling process will not be switched, and the process will return to the step of judging whether the pick-up distance is less than or equal to the second preset threshold every second preset time period until the pick-up distance is less than or equal to the second preset threshold, then the process will be switched to the step of judging whether the straight-line distance and the pick-up distance are less than or equal to the first preset threshold.
è¿éï¼ç¬¬ä¸é¢è®¾æ¶é¿å°äºç¬¬äºé¢è®¾æ¶é¿ï¼ç¬¬äºé¢è®¾æ¶é¿æ ¹æ®å®é ä¸å¡éæ±è¿è¡è®¾å®ï¼ç¬¬äºé¢è®¾æ¶é¿ä¼é设置为10ç§ãHere, the first preset time length is smaller than the second preset time length, and the second preset time length is set according to actual business requirements, and the second preset time length is preferably set to 10 seconds.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼å¨æ¥éª¤1032å¤æåºæè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»åå°äºæçäºæè¿°ç¬¬ä¸é¢è®¾éå¼ä¹åï¼æ´æ°æ¹æ³è¿å æ¬ï¼In a possible implementation manner, after it is determined in step 1032 that both the straight-line distance and the connecting distance are less than or equal to the first preset threshold, the updating method further includes:
æ¥éª¤1033ï¼å¤ææè¿°æå¡æä¾ç«¯ä»æè¿°å°çä½ç½®è¡é©¶å°æè¿°æ¥ä¹å°ç¹ä¹é´çæ¥ä¹è·¯çº¿ä¸æ¯å¦åå¨è·¯çº¿è½¬æç¹ãStep 1033: Determine whether there is a route turning point in the pick-up route from the geographical location to the pick-up location.
å¨å ·ä½å®æ½ä¸ï¼å¨ç¡®å®åºæå¡æä¾ç«¯å½åçå°çä½ç½®åæ¥ä¹å°ç¹ä¹é´çç´çº¿è·ç¦»åæ¥ä¹è·ç¦»åå°äºç¬¬ä¸é¢è®¾éå¼åï¼æ¬ç³è¯·éè¿å¯¹è¯¥å°çä½ç½®è¡é©¶å°æ¥ä¹å°ç¹ä¹é´çæ¥ä¹è·¯çº¿ä¸æ¯å¦åå¨è·¯çº¿è½¬æç¹è¿è¡å¤æï¼å¯ä»¥è¿ä¸æ¥ç¡®è®¤æå¡æä¾ç«¯æ¯å¦çæ£å°è¾¾äºæ¥ä¹å°ç¹ï¼ä½¿æå¡æä¾æ¹é¡ºå©æ¥å°æå¡è¯·æ±æ¹ãIn a specific implementation, after determining that the straight-line distance and the pick-up distance between the service provider's current geographic location and the pick-up location are both less than a first preset threshold, the present application can further confirm whether the service provider has actually arrived at the pick-up location by determining whether there is a route turning point in the pick-up route from the geographic location to the pick-up location, so that the service provider can smoothly connect to the service requester.
å¨å°å¾å¯¼èªè¿ç¨ä¸ï¼é常ä¼åºç°è¿ç§æ åµï¼ä¾å¦ï¼å®ä½å°ç¹åæ¬åºè¯¥å¨éè·¯çä¸ä¾§ï¼å´å®ä½å¨éè·¯çå¦ä¸ä¾§ï¼æè å½åæå¡æä¾ç«¯çå°çä½ç½®ä¸æ¥ä¹å°ç¹ä¹é´åå¨å·¦æè½¬æç¹æå³æè½¬æç¹ï¼è¿æ ·ï¼å³ä½¿æ¥ä¹å°ç¹ä¸æå¡æä¾çå½åå°çä½ç½®å¾è¿ï¼æå¡æä¾æ¹ä¹ä¸è½é¡ºå©æ¥å°æå¡è¯·æ±æ¹ï¼æ¬ç³è¯·éè¿æ·»å 路线转æç¹ç夿æ¥éª¤ï¼å¯ä»¥å®ç°æå¡æä¾æ¹ä¸æå¡è¯·æ±æ¹ç顺å©ç¢°é¢ãDuring the map navigation process, this situation usually occurs. For example, the location should have been on one side of the road, but it is located on the other side of the road, or there is a left turn or a right turn between the current geographical location of the service provider and the pick-up location. In this way, even if the pick-up location is very close to the current geographical location of the service provider, the service provider cannot successfully connect to the service requester. This application can achieve a smooth meeting between the service provider and the service requester by adding a judgment step for the route turning point.
æ¥éª¤1034ï¼è¥æè¿°æ¥ä¹è·¯çº¿ä¸ä¸åå¨æè¿°è·¯çº¿è½¬æç¹ï¼åå°æè¿°åºè¡è®¢åçç¶æè®¾ç½®ä¸ºå°è¾¾æè¿°æ¥ä¹å°ç¹çç¶æãStep 1034: If the route turning point does not exist in the pick-up route, the status of the travel order is set to the status of arriving at the pick-up location.
å¨å ·ä½å®æ½ä¸ï¼è¥æå¡æä¾ç«¯å½åçå°çä½ç½®åæ¥ä¹å°ç¹ä¹é´çç´çº¿è·ç¦»åæ¥ä¹è·ç¦»åå°äºç¬¬ä¸é¢è®¾éå¼ï¼ä¸ä»è¯¥å°çä½ç½®è¡é©¶å°æ¥ä¹å°ç¹ä¹é´çæ¥ä¹è·¯çº¿ä¸ä¸åå¨è·¯çº¿è½¬æç¹ï¼å°±å¯ä»¥ç¡®å®åºæå¡æä¾ç«¯å°è¾¾æ¥ä¹å°ç¹ï¼å¹¶å¯ä»¥å°åºè¡è®¢åçç¶æè®¾ç½®ä¸ºå°è¾¾æ¥ä¹å°ç¹çç¶æãIn a specific implementation, if the straight-line distance and pick-up distance between the service provider's current geographic location and the pick-up location are both less than a first preset threshold, and there is no route turning point in the pick-up route from the geographic location to the pick-up location, it can be determined that the service provider has arrived at the pick-up location, and the status of the travel order can be set to the status of arriving at the pick-up location.
æ¥éª¤1035ï¼è¥æè¿°æ¥ä¹è·¯çº¿ä¸åå¨æè¿°è·¯çº¿è½¬æç¹ï¼åè¿åæ§è¡å¤ææè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»æ¯å¦åå°äºæçäºæè¿°ç¬¬ä¸é¢è®¾éå¼çæ¥éª¤ãStep 1035: If the route turning point exists in the pick-up route, return to the step of determining whether the straight-line distance and the pick-up distance are both less than or equal to the first preset threshold.
å¨å ·ä½å®æ½ä¸ï¼è¥æå¡æä¾ç«¯å½åçå°çä½ç½®åæ¥ä¹å°ç¹ä¹é´çç´çº¿è·ç¦»åæ¥ä¹è·ç¦»åå°äºç¬¬ä¸é¢è®¾éå¼ï¼ä½ä»è¯¥å°çä½ç½®è¡é©¶å°æ¥ä¹å°ç¹ä¹é´çæ¥ä¹è·¯çº¿ä¸åå¨è·¯çº¿è½¬æç¹ï¼æ¤æ¶ï¼å³ä½¿æ¥ä¹å°ç¹ä¸æå¡æä¾çå½åå°çä½ç½®å¾è¿ï¼æå¡æä¾æ¹ä¹ä¸è½é¡ºå©æ¥å°æå¡è¯·æ±æ¹ï¼ä¾å¦æå¡æä¾ç«¯å½åçå°çä½ç½®ä¸æ¥ä¹å°ç¹åå«å¨éè·¯ä¸¤ä¾§ä¸æ æ³ç´æ¥å¨è¯¥éè·¯ä¸ç´æ¥æå¤´çæ åµï¼æ¬ç³è¯·é对è¿ä¸é®é¢ï¼å¨å¤æåºæ¥ä¹è·¯çº¿ä¸åå¨è·¯çº¿è½¬æç¹åï¼åè¿åæ§è¡å¤æç´çº¿è·ç¦»åæ¥ä¹è·ç¦»æ¯å¦åå°äºæçäºç¬¬ä¸é¢è®¾éå¼çæ¥éª¤ï¼ç´è³ç´çº¿è·ç¦»åæ¥ä¹è·ç¦»åå°äºç¬¬ä¸é¢è®¾éå¼ï¼ä¸æ¥ä¹è·¯çº¿ä¸ä¸åå¨è·¯çº¿è½¬æç¹æ¶ï¼æç¡®å®æå¡æä¾ç«¯å°è¾¾æ¥ä¹å°ç¹ãIn a specific implementation, if the straight-line distance and the pick-up distance between the current geographical location of the service provider and the pick-up location are both less than a first preset threshold, but there is a route turning point in the pick-up route from the geographical location to the pick-up location, at this time, even if the pick-up location is very close to the current geographical location of the service provider, the service provider cannot successfully connect to the service requester. For example, the current geographical location of the service provider and the pick-up location are respectively on both sides of the road and it is impossible to turn around directly on the road. To address this problem, the present application, after determining that there is a route turning point in the pick-up route, returns to the step of determining whether the straight-line distance and the pick-up distance are both less than or equal to the first preset threshold, until the straight-line distance and the pick-up distance are both less than the first preset threshold and there is no route turning point in the pick-up route, then it is determined that the service provider has arrived at the pick-up location.
å ¶ä¸ï¼è·¯çº¿è½¬æç¹å æ¬ä»¥ä¸è½¬æç¹ä¸çä¸ç§æå¤ç§ï¼å·¦è½¬æç¹ãå³è½¬æç¹ãæå¤´è½¬æç¹ãAmong them, the route turning point includes one or more of the following turning points: left turning point, right turning point, and U-turn turning point.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼å¨æ¥éª¤S103å°æè¿°åºè¡è®¢åçç¶æè®¾ç½®ä¸ºå°è¾¾æè¿°æ¥ä¹å°ç¹çç¶æä¹åï¼æ´æ°æ¹æ³è¿å æ¬ï¼In a possible implementation manner, after the status of the travel order is set to the status of arriving at the pick-up location in step S103, the updating method further includes:
åæè¿°æå¡æä¾ç«¯ä»¥åä¸æè¿°åºè¡è®¢å对åºçæå¡è¯·æ±ç«¯åéè¯é³ä¿¡æ¯å/ææåä¿¡æ¯æéå°è¾¾æè¿°æ¥ä¹å°ç¹ãSend a voice message and/or a text message to the service provider and the service requester corresponding to the travel order to remind them to arrive at the pick-up location.
å¨å ·ä½å®æ½ä¸ï¼æå¡å¨å¨ç¡®å®æå¡æä¾ç«¯å°è¾¾æ¥ä¹å°ç¹åï¼å¯ä»¥åæå¡æä¾ç«¯ä»¥åæå¡è¯·æ±ç«¯åéè¯é³ä¿¡æ¯å/ææåä¿¡æ¯æéå°è¾¾æ¥ä¹å°ç¹ï¼è¿æ ·ï¼æå¡æä¾æ¹åæå¡è¯·æ±æ¹å¯ä»¥é¡ºå©ç¢°é¢ãIn a specific implementation, after determining that the service provider has arrived at the pick-up location, the server may send a voice message and/or text message to the service provider and the service requester to remind them to arrive at the pick-up location, so that the service provider and the service requester can meet smoothly.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼å¨æ¥éª¤S101è·åæå¡æä¾ç«¯å½åçå°çä½ç½®ä¹åï¼æ´æ°æ¹æ³è¿å æ¬ï¼In a possible implementation manner, before obtaining the current geographical location of the service provider in step S101, the updating method further includes:
è·åæè¿°åºè¡è®¢åä¸çåºè¡æ¶å»ï¼æ ¹æ®æè¿°åºè¡æ¶å»ï¼ç¡®å®å¨æè¿°åºè¡æ¶å»ä¹åçè·ç¦»æè¿°åºè¡æ¶å»ç¬¬ä¸é¢è®¾æ¶é¿çè·åæ¶å»ï¼å¹¶å°æè¿°è·åæ¶å»ç¡®å®ä¸ºé¦æ¬¡è·åæè¿°æå¡æä¾ç«¯å°çä½ç½®çæ¶å»ãObtain the travel time in the travel order; based on the travel time, determine the acquisition time that is a third preset time period before the travel time, and determine the acquisition time as the time when the geographic location of the service provider is first acquired.
å¨å ·ä½å®æ½ä¸ï¼åºè¡è®¢åå¯ä»¥å为两ç§ï¼å®æ¶è®¢ååé¢çº¦è®¢åï¼å¯¹äºè¿ä¸¤ç§åºè¡è®¢åï¼é½å¯ä»¥ä»åºè¡è®¢åä¸è·åå°åºè¡æ¶å»ï¼å¯ä»¥æ ¹æ®åºè¡æ¶å»ç¡®å®åºé¦æ¬¡è·åæå¡æä¾ç«¯å°çä½ç½®çè·åæ¶å»ï¼å ·ä½å°ï¼å¯ä»¥å°å¨åºè¡æ¶å»ä¹åè·ç¦»åºè¡æ¶å»ä¸ºç¬¬ä¸é¢è®¾æ¶é¿çæ¶å»ä½ä¸ºè·åæ¶å»ï¼è¿æ ·ï¼å¯ä»¥é¿å å¨è·ç¦»æ¥ä¹æ¶å»å¾é¿çæ¶é´æ®µå å°±è·åä¿¡æ¯ï¼é¿å 浪费æå¡å¨èµæºãIn specific implementations, travel orders can be divided into two types, real-time orders and reservation orders. For both types of travel orders, the travel time can be obtained from the travel order, and the time for first obtaining the geographic location of the service provider can be determined based on the travel time. Specifically, the time that is the third preset time before the travel time can be used as the acquisition time. In this way, it can avoid obtaining information within a long period of time away from the pick-up time, thereby avoiding wasting server resources.
è¿éï¼ç¬¬ä¸é¢è®¾æ¶é¿ä¹å¯ä»¥æ ¹æ®å®é ä¸å¡éæ±è¿è¡è®¾å®ï¼ä¼é设置为10åéãHere, the third preset duration can also be set according to actual business needs, preferably set to 10 minutes.
éè¦è¯´æçæ¯ï¼ä¸è¿°å®æ½è¿ç¨ä» 为æ¬ç³è¯·çç¤ºä¾æ§å®æ½ä¾ï¼å ¶ä¸çå个æ¥éª¤å¨å®é æä½ä¸å¯ä»¥é对ä¸ååºæ¯è¿è¡éå½è°æ´ãä¾å¦ï¼å¨æ¼è½¦æå¡ä¸å¯è½åå¨ä¸¤ä¸ªæä»¥ä¸çæ¥ä¹å°ç¹ï¼å æ¤å¯ä»¥æç §æ¼è½¦æ¥ä¹é¡ºåºä¾æ¬¡è¿è¡å¤æãåä¾å¦ï¼å¨ç«ç¹æ¼è½¦æå¡ä¸ï¼è¥ä¸ä¸ªä¸è½¦ç¹å¯¹åºä¸ä¸ªè®¢åï¼å彿塿ä¾ç«¯å®æ¶çå°çä½ç½®è·æ¥ä¹å°ç¹çç´çº¿è·ç¦»ä»¥åæ¥ä¹è·ç¦»å满足æ¡ä»¶æ¶ï¼å¯¹è¯¥åºè¡è®¢å触åèªå¨å°è¾¾ï¼å³å°åºè¡ç¶æè®¾ä¸ºâå·²å°è¾¾æ¥ä¹å°ç¹âï¼è¥ä¸ä¸ªæ¥ä¹å°ç¹å¯¹åºä¸¤ä¸ªæä»¥ä¸ç订åï¼å彿塿ä¾ç«¯çå°çä½ç½®è·æ¥ä¹å°ç¹çç´çº¿è·ç¦»ä»¥åæ¥ä¹è·ç¦»æ»¡è¶³æ¡ä»¶æ¶ï¼åæ¶å¯¹ä¸ä¸ªæä»¥ä¸åºè¡è®¢å触åèªå¨å°è¾¾ãIt should be noted that the above implementation process is only an exemplary embodiment of the present application, and each step therein can be appropriately adjusted for different scenarios in actual operation. For example, there may be two or more pick-up locations in a carpooling service, so the judgment can be made in sequence according to the carpooling pick-up order. For another example, in a station carpooling service, if one boarding point corresponds to one order, then when the straight-line distance and the pick-up distance of the real-time geographical location of the service provider meet the conditions, the automatic arrival is triggered for the travel order, that is, the travel status is set to "arrived at the pick-up location"; if one pick-up location corresponds to two or more orders, then when the straight-line distance and the pick-up distance of the geographical location of the service provider meet the conditions, the automatic arrival is triggered for one or more travel orders at the same time.
åè§å¾2ï¼å¾2为æ¬ç³è¯·å®æ½ä¾ææä¾çå¦ä¸ç§åºè¡è®¢åç¶æçæ´æ°æ¹æ³çæµç¨å¾ãå¦å¾2æç¤ºï¼æ¬ç³è¯·å®æ½ä¾æä¾çåºè¡è®¢åç¶æçæ´æ°æ¹æ³ï¼å æ¬ä»¥ä¸æ¥éª¤ï¼Referring to Figure 2, Figure 2 is a flow chart of another method for updating the travel order status provided in an embodiment of the present application. As shown in Figure 2, the method for updating the travel order status provided in an embodiment of the present application includes the following steps:
S201ï¼è·åæå¡æä¾ç«¯å½åçå°çä½ç½®ï¼ä»¥åæè¿°æå¡æä¾ç«¯å½åæ¿æ¥çåºè¡è®¢å对åºçæ¥ä¹å°ç¹ãS201: Acquire the current geographic location of the service provider and the pick-up location corresponding to the travel order currently undertaken by the service provider.
S202ï¼åºäºæè¿°å°çä½ç½®åæè¿°æ¥ä¹å°ç¹ï¼ç¡®å®æè¿°å°çä½ç½®ä¸æè¿°æ¥ä¹å°ç¹ä¹é´çç´çº¿è·ç¦»åæè¿°æå¡æä¾ç«¯ä»æè¿°å°çä½ç½®å°è¾¾æè¿°æ¥ä¹å°ç¹çæ¥ä¹è·ç¦»ãS202: Based on the geographical location and the pick-up location, determine the straight-line distance between the geographical location and the pick-up location and the pick-up distance from the geographical location to the pick-up location by the service provider.
S203ï¼å¤ææ¯å¦æ¥æ¶å°æè¿°æå¡æä¾ç«¯åéçå°è¾¾æè¿°æ¥ä¹å°ç¹çæ¥åä¿¡æ¯ãS203: Determine whether the report information of arrival at the pick-up location sent by the service provider is received.
å¨å ·ä½å®æ½ä¸ï¼å¯ä»¥å¨æå¡æä¾ç«¯è®¾ç½®æ¥åå°è¾¾æ¥ä¹å°ç¹çåè½ï¼æå¡æä¾æ¹å¯ä»¥æä½æå¡æä¾ç«¯åæå¡å¨åéå°è¾¾æ¥ä¹å°ç¹çæ¥åä¿¡æ¯ãIn a specific implementation, a function of reporting arrival at the pick-up location may be set at the service provider, and the service provider may operate the service provider to send report information of arrival at the pick-up location to the server.
S204ï¼è¥æ¥æ¶å°æè¿°æå¡æä¾ç«¯åéçæè¿°æ¥åä¿¡æ¯ï¼å夿æè¿°ç´çº¿è·ç¦»æ¯å¦å°äºæçäºç¬¬ä¸é¢è®¾éå¼ãS204: If the report information sent by the service provider is received, determine whether the straight-line distance is less than or equal to a third preset threshold.
å¨å ·ä½å®æ½ä¸ï¼æå¡å¨å¨ç¡®è®¤æ¥æ¶å°æå¡æä¾ç«¯åéçè¾¾å°æ¥ä¹å°ç¹çæ¥åä¿¡æ¯åï¼éè¿å¤ææå¡æä¾ç«¯å½åçå°çä½ç½®æ¯å¦å°äºæçäºç¬¬ä¸é¢è®¾éå¼ï¼å¯ä»¥ç¡®å®åºæå¡æä¾æ¹æ¯ç¡®å®å°è¾¾äºæ¥ä¹å°ç¹ï¼è¿æ¯å¨æ²¡æå°è¾¾æ¥ä¹å°ç¹æå䏿¥å°è¾¾ä¿¡æ¯ï¼è¿æ ·ï¼å¯ä»¥å¯¹æå¡æä¾ç«¯è¿è¡çæ§ï¼é¿å æå¡æä¾ç«¯æå䏿¥å°è¾¾æ¥ä¹å°ç¹çæ¥åä¿¡æ¯ï¼ä»¥ä¿éæå¡è¯·æ±æ¹çæçãIn a specific implementation, after confirming that it has received the report information of arrival at the pick-up location sent by the service provider, the server can determine whether the service provider has actually arrived at the pick-up location or has reported the arrival information in advance without arriving at the pick-up location by judging whether the current geographical location of the service provider is less than or equal to the third preset threshold. In this way, the service provider can be monitored to prevent the service provider from reporting the report information of arrival at the pick-up location in advance, so as to protect the rights and interests of the service requester.
è¿éï¼ç¬¬ä¸é¢è®¾éå¼å¤§äºç¬¬ä¸é¢è®¾éå¼ä¸å°äºç¬¬äºé¢è®¾éå¼ï¼ç¬¬ä¸é¢è®¾éå¼å¯ä»¥æ ¹æ®å®é ä¸å¡éæ±è¿è¡è®¾å®ï¼ä¼é设置为120ç±³ãHere, the third preset threshold is greater than the first preset threshold and less than the second preset threshold. The third preset threshold can be set according to actual business needs, and is preferably set to 120 meters.
S205ï¼è¥æè¿°ç´çº¿è·ç¦»å°äºæçäºæè¿°ç¬¬ä¸é¢è®¾éå¼ï¼å°æè¿°åºè¡è®¢åç¶æè®¾ç½®ä¸ºå°è¾¾æè¿°æ¥ä¹å°ç¹çç¶æãS205: If the straight-line distance is less than or equal to the third preset threshold, the travel order status is set to a status of arriving at the pick-up location.
å¨å ·ä½å®æ½ä¸ï¼è¥æå¡æä¾ç«¯å½åçå°çä½ç½®ä¸æ¥ä¹å°ç¹ä¹é´çç´çº¿è·ç¦»å°äºæçäºç¬¬ä¸é¢è®¾éå¼ï¼è¯´ææå¡æä¾ç«¯åç¡®åéå°è¾¾æ¥ä¹å°ç¹çæ¥åä¿¡æ¯ï¼å¯ä»¥å°åºè¡è®¢åç¶æè®¾ç½®ä¸ºå°è¾¾æ¥ä¹å°ç¹çç¶æãIn a specific implementation, if the straight-line distance between the service provider's current geographic location and the pick-up location is less than or equal to the third preset threshold, it means that the service provider has accurately sent the report information of arriving at the pick-up location, and the travel order status can be set to the status of arriving at the pick-up location.
S206ï¼è¥æè¿°ç´çº¿è·ç¦»å¤§äºæè¿°ç¬¬ä¸é¢è®¾éå¼ï¼å°æè¿°åºè¡è®¢åç¶æè®¾ç½®ä¸ºæªå°è¾¾æè¿°æ¥ä¹å°ç¹çç¶æï¼å¹¶åæè¿°æå¡æä¾ç«¯åéè¯é³ä¿¡æ¯å/ææåä¿¡æ¯æéæåæ¥åå°è¾¾æè¿°æ¥ä¹å°ç¹ãS206: If the straight-line distance is greater than the third preset threshold, the travel order status is set to a state of not arriving at the pick-up location, and a voice message and/or text message is sent to the service provider to remind the service provider to report the arrival at the pick-up location in advance.
å¨å ·ä½å®æ½ä¸ï¼è¥å¤æåºæå¡æä¾ç«¯å½åçå°çä½ç½®åæ¥ä¹å°ç¹ä¹é´çç´çº¿è·ç¦»å¤§äºç¬¬ä¸é¢è®¾éå¼ï¼è¯´ææå¡æä¾æ¹å¨æ²¡æå°è¾¾æ¥ä¹å°ç¹æ¶ï¼æååéå°è¾¾æ¥ä¹å°ç¹çæ¥åä¿¡æ¯ï¼åå°åºè¡è®¢åç¶æè®¾ç½®ä¸ºæªå°è¾¾æ¥ä¹å°ç¹çç¶æï¼å¹¶åæå¡æä¾ç«¯åéè¯é³ä¿¡æ¯å/ææåä¿¡æ¯æéæåæ¥åå°è¾¾æ¥ä¹å°ç¹ãè¿æ ·ï¼å¯ä»¥å¯¹æå¡æä¾ç«¯è¿è¡çæ§ï¼é¿å æå¡æä¾ç«¯æå䏿¥å°è¾¾æ¥ä¹å°ç¹çæ¥åä¿¡æ¯ï¼ä»¥ä¿éæå¡è¯·æ±æ¹çæçãIn a specific implementation, if it is determined that the straight-line distance between the current geographical location of the service provider and the pick-up location is greater than the third preset threshold, indicating that the service provider has not yet arrived at the pick-up location, and has sent a report of arrival at the pick-up location in advance, the travel order status is set to the state of not arriving at the pick-up location, and a voice message and/or text message is sent to the service provider to remind it to report its arrival at the pick-up location in advance. In this way, the service provider can be monitored to prevent the service provider from reporting its arrival at the pick-up location in advance, so as to protect the rights and interests of the service requester.
å ¶ä¸ï¼S201ãS202çæè¿°å¯ä»¥åç §S101ãS102çæè¿°ï¼å¹¶ä¸è½è¾¾å°ç¸åçææ¯ææï¼å¯¹æ¤ä¸åèµè¿°ãAmong them, the description of S201 and S202 can refer to the description of S101 and S102, and can achieve the same technical effect, which is not repeated here.
åºäºåä¸ç³è¯·ææï¼æ¬ç³è¯·å®æ½ä¾ä¸è¿æä¾äºä¸å¦å¾1åå¦å¾2æç¤ºçåºè¡è®¢åç¶æçæ´æ°æ¹æ³å¯¹åºçåºè¡è®¢åç¶æçæ´æ°è£ ç½®ï¼ç±äºæ¬ç³è¯·å®æ½ä¾ä¸çè£ ç½®è§£å³é®é¢çåç䏿¬ç³è¯·ä¸è¿°å¦å¾1åå¦å¾2æç¤ºçåºè¡è®¢åç¶æçæ´æ°æ¹æ³ç¸ä¼¼ï¼å æ¤è£ ç½®ç宿½å¯ä»¥åè§æ¹æ³ç宿½ï¼éå¤ä¹å¤ä¸åèµè¿°ãBased on the same application concept, the embodiment of the present application also provides a travel order status updating device corresponding to the travel order status updating method as shown in Figures 1 and 2. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the travel order status updating method as shown in Figures 1 and 2 of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
åè§å¾3è³å¦å¾5æç¤ºï¼å¾3为æ¬ç³è¯·å®æ½ä¾æä¾çä¸ç§åºè¡è®¢åç¶æçæ´æ°è£ ç½®300çåè½æ¨¡åå¾ä¹ä¸ï¼å¾4为æ¬ç³è¯·å®æ½ä¾æä¾çä¸ç§åºè¡è®¢åç¶æçæ´æ°è£ ç½®300çåè½æ¨¡åå¾ä¹äºï¼å¾5为åºè¡è®¢åç¶æçæ´æ°è£ ç½®300ä¸ç设置模å330çåè½æ¨¡åå¾ãå ¶ä¸å¦å¾3åå¾4æç¤ºï¼åºè¡è®¢åç¶æçæ´æ°è£ ç½®300å æ¬ï¼Referring to FIG. 3 to FIG. 5, FIG. 3 is a functional module diagram of a travel order status update device 300 provided in an embodiment of the present application, FIG. 4 is a functional module diagram of a travel order status update device 300 provided in an embodiment of the present application, and FIG. 5 is a functional module diagram of a setting module 330 in the travel order status update device 300. As shown in FIG. 3 and FIG. 4, the travel order status update device 300 includes:
è·å模å310ï¼ç¨äºè·åæå¡æä¾ç«¯å½åçå°çä½ç½®ï¼ä»¥åæè¿°æå¡æä¾ç«¯å½åæ¿æ¥çåºè¡è®¢å对åºçæ¥ä¹å°ç¹ï¼The acquisition module 310 is used to acquire the current geographic location of the service provider and the pick-up location corresponding to the travel order currently undertaken by the service provider;
ç¡®å®æ¨¡å320ï¼ç¨äºåºäºæè¿°å°çä½ç½®åæè¿°æ¥ä¹å°ç¹ï¼ç¡®å®æè¿°å°çä½ç½®ä¸æè¿°æ¥ä¹å°ç¹ä¹é´çç´çº¿è·ç¦»åæè¿°æå¡æä¾ç«¯ä»æè¿°å°çä½ç½®å°è¾¾æè¿°æ¥ä¹å°ç¹çæ¥ä¹è·ç¦»ï¼A determination module 320, configured to determine, based on the geographic location and the pick-up location, a straight-line distance between the geographic location and the pick-up location and a pick-up distance from the geographic location to the pick-up location by the service provider;
设置模å330ï¼ç¨äºåºäºæè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»ï¼ç¡®å®æè¿°æå¡æä¾ç«¯æ¯å¦å°è¾¾æè¿°æ¥ä¹å°ç¹ï¼å¹¶å¨ç¡®å®åºæè¿°æå¡æä¾ç«¯å°è¾¾æè¿°æ¥ä¹å°ç¹æ¶ï¼å°æè¿°åºè¡è®¢åçç¶æè®¾ç½®ä¸ºå°è¾¾æè¿°æ¥ä¹å°ç¹çç¶æãThe setting module 330 is used to determine whether the service provider has arrived at the pick-up location based on the straight-line distance and the pick-up distance, and when it is determined that the service provider has arrived at the pick-up location, set the status of the travel order to the status of arriving at the pick-up location.
卿¬ç³è¯·å®æ½ä¾ä¸ï¼éè¿è·å模å310è·åçæå¡æä¾ç«¯å½åçä½ç½®ä¿¡æ¯ï¼ä»¥åæå¡æä¾ç«¯å½åæ¿æ¥çåºè¡è®¢å对åºçæ¥ä¹å°ç¹ï¼å¯ä»¥éè¿ç¡®å®æ¨¡å320ç¡®å®ä½ç½®ä¿¡æ¯å¯¹åºçä½ç½®ä¸æ¥ä¹å°ç¹ä¹é´çç´çº¿è·ç¦»åæå¡æä¾ç«¯ä»ä½ç½®ä¿¡æ¯å¯¹åºçä½ç½®è¡é©¶å°æ¥ä¹å°ç¹çæ¥ä¹è·ç¦»ï¼è¿ä¸æ¥å°ï¼åºäºç´çº¿è·ç¦»åæ¥ä¹è·ç¦»ï¼å¯ä»¥ç¡®å®æå¡æä¾ç«¯æ¯å¦å°è¾¾æ¥ä¹å°ç¹ï¼å³å¨å¸æºæ¥ä¹è¿ç¨ä¸ï¼ç½çº¦è½¦è½¯ä»¶ææå¡å¨å¯ä»¥èªå¨å¤å®æ¯å¦å°è¾¾æ¥ä¹å°ç¹ï¼æ é叿ºåä¹å®¢å¤æ¬¡éè¯ç¡®è®¤æ¥ä¹å°ç¹ï¼å¯ä»¥æé«å¸æºæ¥ä¹çæçï¼å¹¶å¨ç¡®å®åºæå¡æä¾ç«¯å°è¾¾æ¥ä¹å°ç¹æ¶ï¼å°åºè¡è®¢åçç¶æè®¾ç½®ä¸ºå°è¾¾æ¥ä¹å°ç¹çç¶æï¼å¯ä»¥æåå¤çåºè¡è®¢åçæçãIn an embodiment of the present application, by acquiring the current location information of the service provider and the pick-up location corresponding to the travel order currently undertaken by the service provider, the straight-line distance between the location corresponding to the location information and the pick-up location and the pick-up distance traveled by the service provider from the location corresponding to the location information to the pick-up location can be determined by determining module 320. Furthermore, based on the straight-line distance and the pick-up distance, it can be determined whether the service provider has arrived at the pick-up location. That is, during the driver's pick-up process, the online car-hailing software or server can automatically determine whether it has arrived at the pick-up location, without the driver and the passenger having multiple phone calls to confirm the pick-up location, which can improve the driver's pick-up efficiency. When it is determined that the service provider has arrived at the pick-up location, the status of the travel order is set to the status of arriving at the pick-up location, which can improve the efficiency of processing travel orders.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼å¦å¾5æç¤ºï¼æè¿°è®¾ç½®æ¨¡å330å æ¬ï¼In a possible implementation, as shown in FIG5 , the setting module 330 includes:
第ä¸å¤æåå 331ï¼ç¨äºå¤ææè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»æ¯å¦åå°äºæçäºç¬¬ä¸é¢è®¾éå¼ï¼The first judging unit 331 is used to judge whether the straight-line distance and the connecting distance are both less than or equal to a first preset threshold;
第ä¸ç¡®å®åå 332ï¼ç¨äºè¥æè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»åå°äºæçäºæè¿°ç¬¬ä¸é¢è®¾éå¼ï¼åç¡®å®æè¿°æå¡æä¾ç«¯å°è¾¾æè¿°æ¥ä¹å°ç¹ãThe first determining unit 332 is configured to determine that the service provider has arrived at the pick-up location if both the straight-line distance and the pick-up distance are less than or equal to the first preset threshold.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼å¦å¾5æç¤ºï¼æè¿°ç¬¬ä¸å¤æåå 331è¿ç¨äºï¼In a possible implementation, as shown in FIG5 , the first determining unit 331 is further configured to:
è¥æè¿°ç´çº¿è·ç¦»å/ææè¿°æ¥ä¹è·ç¦»å¤§äºæè¿°ç¬¬ä¸é¢è®¾éå¼ï¼åæ¯é第ä¸é¢è®¾æ¶é¿è¿åæ§è¡å¤ææè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»æ¯å¦åå°äºæçäºç¬¬ä¸é¢è®¾éå¼çæ¥éª¤ãIf the straight-line distance and/or the pick-up distance is greater than the first preset threshold, the step of determining whether the straight-line distance and the pick-up distance are both less than or equal to the first preset threshold is returned to every first preset time period.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼å¦å¾5æç¤ºï¼æè¿°è®¾ç½®æ¨¡å330è¿å æ¬ï¼In a possible implementation, as shown in FIG5 , the setting module 330 further includes:
第äºå¤æåå 333ï¼ç¨äºå¤ææè¿°æ¥ä¹è·ç¦»æ¯å¦å°äºæçäºç¬¬äºé¢è®¾éå¼ï¼A second judging unit 333 is used to judge whether the pick-up distance is less than or equal to a second preset threshold;
第äºç¡®å®åå 334ï¼ç¨äºè¥æè¿°æ¥ä¹è·ç¦»å°äºæçäºæè¿°ç¬¬äºé¢è®¾éå¼ï¼åæ§è¡åºäºæè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»ï¼ç¡®å®æè¿°æå¡æä¾ç«¯æ¯å¦å°è¾¾æè¿°æ¥ä¹å°ç¹çæ¥éª¤ï¼A second determining unit 334 is configured to, if the pick-up distance is less than or equal to the second preset threshold, perform a step of determining whether the service provider has arrived at the pick-up location based on the straight-line distance and the pick-up distance;
æè¿°ç¬¬äºå¤æåå 333ï¼è¿ç¨äºè¥æè¿°æ¥ä¹è·ç¦»å¤§äºæè¿°ç¬¬äºé¢è®¾éå¼ï¼åæ¯é第äºé¢è®¾æ¶é¿è¿åæ§è¡å¤ææè¿°æ¥ä¹è·ç¦»æ¯å¦å°äºæçäºæè¿°ç¬¬äºé¢è®¾éå¼çæ¥éª¤ï¼The second judging unit 333 is further configured to return to the step of judging whether the pick-up distance is less than or equal to the second preset threshold at a second preset time interval if the pick-up distance is greater than the second preset threshold;
å ¶ä¸ï¼æè¿°ç¬¬ä¸é¢è®¾éå¼å°äºæè¿°ç¬¬äºé¢è®¾éå¼ãThe first preset threshold is smaller than the second preset threshold.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼å¦å¾4æç¤ºï¼æè¿°æ´æ°è£ ç½®è¿å æ¬ç¬¬ä¸å¤ææ¨¡å340ï¼In a possible implementation, as shown in FIG4 , the updating device further includes a first determining module 340:
æè¿°ç¬¬ä¸å¤ææ¨¡å340ï¼ç¨äºå¤ææè¿°æå¡æä¾ç«¯ä»æè¿°å°çä½ç½®è¡é©¶å°æè¿°æ¥ä¹å°ç¹ä¹é´çæ¥ä¹è·¯çº¿ä¸æ¯å¦åå¨è·¯çº¿è½¬æç¹ï¼The first determination module 340 is used to determine whether there is a route turning point in the pick-up route between the service provider and the geographical location;
æè¿°è®¾ç½®æ¨¡å330ï¼è¿ç¨äºè¥æè¿°æ¥ä¹è·¯çº¿ä¸ä¸åå¨æè¿°è·¯çº¿è½¬æç¹ï¼åå°æè¿°åºè¡è®¢åçç¶æè®¾ç½®ä¸ºå°è¾¾æè¿°æ¥ä¹å°ç¹çç¶æãThe setting module 330 is further configured to set the status of the travel order to the status of arriving at the pick-up location if the route turning point does not exist in the pick-up route.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼å¦å¾4æç¤ºï¼æè¿°ç¬¬ä¸å¤ææ¨¡å340è¿ç¨äºï¼In a possible implementation, as shown in FIG4 , the first determination module 340 is further configured to:
è¥æè¿°æ¥ä¹è·¯çº¿ä¸åå¨æè¿°è·¯çº¿è½¬æç¹ï¼åè¿åæ§è¡å¤ææè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»æ¯å¦åå°äºæçäºæè¿°ç¬¬ä¸é¢è®¾éå¼çæ¥éª¤ãIf the route turning point exists in the pick-up route, the process returns to the step of determining whether both the straight-line distance and the pick-up distance are less than or equal to the first preset threshold.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼æè¿°è·¯çº¿è½¬æç¹å æ¬ä»¥ä¸è½¬æç¹ä¸çä¸ç§æå¤ç§ï¼In a possible implementation manner, the route turning point includes one or more of the following turning points:
左转æç¹ãå³è½¬æç¹ãæå¤´è½¬æç¹ãLeft turning point, right turning point, U-turn turning point.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼å¦å¾4æç¤ºï¼åºè¡è®¢åç¶æç设置300è¿å æ¬ç¬¬äºå¤ææ¨¡å350å第ä¸å鿍¡å360ï¼In a possible implementation, as shown in FIG4 , the travel order status setting 300 further includes a second determination module 350 and a first sending module 360 ;
æè¿°ç¬¬äºå¤ææ¨¡å350ï¼ç¨äºå¤ææ¯å¦æ¥æ¶å°æè¿°æå¡æä¾ç«¯åéçå°è¾¾æè¿°æ¥ä¹å°ç¹çæ¥åä¿¡æ¯ï¼The second determination module 350 is used to determine whether the report information of arrival at the pick-up location sent by the service provider is received;
æè¿°ç¬¬äºå¤ææ¨¡å350ï¼è¿ç¨äºè¥æ¥æ¶å°æè¿°æå¡æä¾ç«¯åéçæè¿°æ¥åä¿¡æ¯ï¼å夿æè¿°ç´çº¿è·ç¦»æ¯å¦å°äºæçäºç¬¬ä¸é¢è®¾éå¼ï¼The second determination module 350 is further configured to determine whether the straight-line distance is less than or equal to a third preset threshold value if the report information sent by the service provider is received;
æè¿°è®¾ç½®æ¨¡å330ï¼ç¨äºè¥æè¿°ç´çº¿è·ç¦»å°äºæçäºæè¿°ç¬¬ä¸é¢è®¾éå¼ï¼å°æè¿°åºè¡è®¢åç¶æè®¾ç½®ä¸ºå°è¾¾æè¿°æ¥ä¹å°ç¹çç¶æï¼The setting module 330 is used to set the travel order status to a status of arriving at the pick-up location if the straight-line distance is less than or equal to the third preset threshold;
æè¿°ç¬¬ä¸å鿍¡å360ï¼ç¨äºè¥æè¿°ç´çº¿è·ç¦»å¤§äºæè¿°ç¬¬ä¸é¢è®¾éå¼ï¼å°æè¿°åºè¡è®¢åç¶æè®¾ç½®ä¸ºæªå°è¾¾æè¿°æ¥ä¹å°ç¹çç¶æï¼å¹¶åæè¿°æå¡æä¾ç«¯åéè¯é³ä¿¡æ¯å/ææåä¿¡æ¯æéæåæ¥åå°è¾¾æè¿°æ¥ä¹å°ç¹ãThe first sending module 360 is used to set the travel order status to a state of not arriving at the pick-up location if the straight-line distance is greater than the third preset threshold, and to send a voice message and/or a text message to the service provider to remind it to report arriving at the pick-up location in advance.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼å¦å¾4æç¤ºï¼åºè¡è®¢åç¶æç设置300è¿å æ¬ç¬¬äºå鿍¡å370ï¼In a possible implementation, as shown in FIG. 4 , the travel order status setting 300 further includes a second sending module 370:
æè¿°ç¬¬äºå鿍¡å370ï¼ç¨äºåæè¿°æå¡æä¾ç«¯ä»¥åä¸æè¿°åºè¡è®¢å对åºçæå¡è¯·æ±ç«¯åéè¯é³ä¿¡æ¯å/ææåä¿¡æ¯æéå°è¾¾æè¿°æ¥ä¹å°ç¹ãThe second sending module 370 is used to send a voice message and/or a text message to the service provider and the service requester corresponding to the travel order to remind them to arrive at the pick-up location.
å¨ä¸ç§å¯è½ç宿½æ¹å¼ä¸ï¼å¦å¾3åå¦å¾4æç¤ºï¼æè¿°è·å模å310ï¼è¿ç¨äºè·åæè¿°åºè¡è®¢åä¸çåºè¡æ¶å»ï¼In a possible implementation, as shown in FIG. 3 and FIG. 4 , the acquisition module 310 is further used to acquire the travel time in the travel order;
æè¿°ç¡®å®æ¨¡å320ï¼è¿ç¨äºæ ¹æ®æè¿°åºè¡æ¶å»ï¼ç¡®å®å¨æè¿°åºè¡æ¶å»ä¹åçè·ç¦»æè¿°åºè¡æ¶å»ç¬¬ä¸é¢è®¾æ¶é¿çè·åæ¶å»ï¼å¹¶å°æè¿°è·åæ¶å»ç¡®å®ä¸ºé¦æ¬¡è·åæè¿°æå¡æä¾ç«¯å°çä½ç½®çæ¶å»ãThe determination module 320 is further configured to determine, based on the travel time, an acquisition time that is a third preset time period before the travel time, and determine the acquisition time as a time when the geographic location of the service provider is first acquired.
åºäºåä¸ç³è¯·ææï¼åè§å¾6æç¤ºï¼ä¸ºæ¬ç³è¯·å®æ½ä¾æä¾çä¸ç§çµå设å¤600çç»æç¤ºæå¾ï¼å æ¬ï¼å¤çå¨610ãåå¨å¨620åæ»çº¿630ï¼æè¿°åå¨å¨620å卿æè¿°å¤çå¨610坿§è¡çæºå¨å¯è¯»æä»¤ï¼å½çµå设å¤600è¿è¡æ¶ï¼æè¿°å¤çå¨610ä¸æè¿°åå¨å¨620ä¹é´éè¿æè¿°æ»çº¿630è¿è¡éä¿¡ï¼æè¿°æºå¨å¯è¯»æä»¤è¢«æè¿°å¤çå¨610è¿è¡æ¶æ§è¡å¦å¾1å/æå¦å¾2æç¤ºçåºè¡è®¢åç¶æçæ´æ°æ¹æ³çæ¥éª¤ãBased on the same application concept, referring to FIG6 , a schematic diagram of the structure of an electronic device 600 provided in an embodiment of the present application includes: a processor 610, a memory 620 and a bus 630, wherein the memory 620 stores machine-readable instructions executable by the processor 610. When the electronic device 600 is running, the processor 610 communicates with the memory 620 through the bus 630, and the machine-readable instructions are executed by the processor 610 when running to perform the steps of the method for updating the travel order status as shown in FIG1 and/or FIG2 .
å ·ä½å°ï¼æè¿°æºå¨å¯è¯»æä»¤è¢«æè¿°å¤çå¨610æ§è¡æ¶å¯ä»¥æ§è¡å¦ä¸å¤çï¼Specifically, when the machine-readable instruction is executed by the processor 610, the following processing may be performed:
è·åæå¡æä¾ç«¯å½åçå°çä½ç½®ï¼ä»¥åæè¿°æå¡æä¾ç«¯å½åæ¿æ¥çåºè¡è®¢å对åºçæ¥ä¹å°ç¹ï¼Obtain the current geographic location of the service provider and the pick-up location corresponding to the travel order currently undertaken by the service provider;
åºäºæè¿°å°çä½ç½®åæè¿°æ¥ä¹å°ç¹ï¼ç¡®å®æè¿°å°çä½ç½®ä¸æè¿°æ¥ä¹å°ç¹ä¹é´çç´çº¿è·ç¦»åæè¿°æå¡æä¾ç«¯ä»æè¿°å°çä½ç½®å°è¾¾æè¿°æ¥ä¹å°ç¹çæ¥ä¹è·ç¦»ï¼Based on the geographical location and the pick-up location, determine the straight-line distance between the geographical location and the pick-up location and the pick-up distance from the geographical location to the pick-up location by the service provider;
åºäºæè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»ï¼ç¡®å®æè¿°æå¡æä¾ç«¯æ¯å¦å°è¾¾æè¿°æ¥ä¹å°ç¹ï¼å¹¶å¨ç¡®å®åºæè¿°æå¡æä¾ç«¯å°è¾¾æè¿°æ¥ä¹å°ç¹æ¶ï¼å°æè¿°åºè¡è®¢åçç¶æè®¾ç½®ä¸ºå°è¾¾æè¿°æ¥ä¹å°ç¹çç¶æãBased on the straight-line distance and the pick-up distance, determine whether the service provider has arrived at the pick-up location, and when it is determined that the service provider has arrived at the pick-up location, set the status of the travel order to the status of arriving at the pick-up location.
æ¬ç³è¯·å®æ½ä¾ä¸ï¼éè¿è·åçæå¡æä¾ç«¯å½åçä½ç½®ä¿¡æ¯ï¼ä»¥åæå¡æä¾ç«¯å½åæ¿æ¥çåºè¡è®¢å对åºçæ¥ä¹å°ç¹ï¼å¯ä»¥ç¡®å®ä½ç½®ä¿¡æ¯å¯¹åºçä½ç½®ä¸æ¥ä¹å°ç¹ä¹é´çç´çº¿è·ç¦»åæå¡æä¾ç«¯ä»ä½ç½®ä¿¡æ¯å¯¹åºçä½ç½®è¡é©¶å°æ¥ä¹å°ç¹çæ¥ä¹è·ç¦»ï¼è¿ä¸æ¥å°ï¼åºäºç´çº¿è·ç¦»åæ¥ä¹è·ç¦»ï¼å¯ä»¥ç¡®å®æå¡æä¾ç«¯æ¯å¦å°è¾¾æ¥ä¹å°ç¹ï¼å³å¨å¸æºæ¥ä¹è¿ç¨ä¸ï¼ç½çº¦è½¦è½¯ä»¶ææå¡å¨å¯ä»¥èªå¨å¤å®æ¯å¦å°è¾¾æ¥ä¹å°ç¹ï¼æ é叿ºåä¹å®¢å¤æ¬¡éè¯ç¡®è®¤æ¥ä¹å°ç¹ï¼å¯ä»¥æé«å¸æºæ¥ä¹çæçï¼å¹¶å¨ç¡®å®åºæå¡æä¾ç«¯å°è¾¾æ¥ä¹å°ç¹æ¶ï¼å°åºè¡è®¢åçç¶æè®¾ç½®ä¸ºå°è¾¾æ¥ä¹å°ç¹çç¶æï¼å¯ä»¥æåå¤çåºè¡è®¢åçæçãIn an embodiment of the present application, by obtaining the current location information of the service provider and the pick-up location corresponding to the travel order currently undertaken by the service provider, the straight-line distance between the location corresponding to the location information and the pick-up location and the pick-up distance traveled by the service provider from the location corresponding to the location information to the pick-up location can be determined. Furthermore, based on the straight-line distance and the pick-up distance, it can be determined whether the service provider has arrived at the pick-up location. That is, during the driver's pick-up process, the online car-hailing software or server can automatically determine whether it has arrived at the pick-up location. There is no need for the driver and the passenger to call multiple times to confirm the pick-up location, which can improve the efficiency of the driver's pick-up. When it is determined that the service provider has arrived at the pick-up location, the status of the travel order is set to the status of arriving at the pick-up location, which can improve the efficiency of processing travel orders.
è¿ä¸æ¥å°ï¼æè¿°æºå¨å¯è¯»æä»¤è¢«æè¿°å¤çå¨610æ§è¡æ¶è¿å¯ä»¥æ§è¡å¦ä¸å¤çï¼Furthermore, when the machine-readable instruction is executed by the processor 610, the following processing may also be performed:
夿æè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»æ¯å¦åå°äºæçäºç¬¬ä¸é¢è®¾éå¼ï¼Determine whether the straight-line distance and the connecting distance are both less than or equal to a first preset threshold;
è¥æè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»åå°äºæçäºæè¿°ç¬¬ä¸é¢è®¾éå¼ï¼åç¡®å®æè¿°æå¡æä¾ç«¯å°è¾¾æè¿°æ¥ä¹å°ç¹ãIf the straight-line distance and the pick-up distance are both less than or equal to the first preset threshold, it is determined that the service provider has arrived at the pick-up location.
è¿ä¸æ¥å°ï¼æè¿°æºå¨å¯è¯»æä»¤è¢«æè¿°å¤çå¨610æ§è¡æ¶è¿å¯ä»¥æ§è¡å¦ä¸å¤çï¼Furthermore, when the machine-readable instruction is executed by the processor 610, the following processing may also be performed:
è¥æè¿°ç´çº¿è·ç¦»å/ææè¿°æ¥ä¹è·ç¦»å¤§äºæè¿°ç¬¬ä¸é¢è®¾éå¼ï¼åæ¯é第ä¸é¢è®¾æ¶é¿è¿åæ§è¡å¤ææè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»æ¯å¦åå°äºæçäºç¬¬ä¸é¢è®¾éå¼çæ¥éª¤ãIf the straight-line distance and/or the pick-up distance is greater than the first preset threshold, the step of determining whether the straight-line distance and the pick-up distance are both less than or equal to the first preset threshold is returned to every first preset time period.
è¿ä¸æ¥å°ï¼æè¿°æºå¨å¯è¯»æä»¤è¢«æè¿°å¤çå¨610æ§è¡æ¶è¿å¯ä»¥æ§è¡å¦ä¸å¤çï¼Furthermore, when the machine-readable instruction is executed by the processor 610, the following processing may also be performed:
夿æè¿°æ¥ä¹è·ç¦»æ¯å¦å°äºæçäºç¬¬äºé¢è®¾éå¼ï¼Determining whether the pick-up distance is less than or equal to a second preset threshold;
è¥æè¿°æ¥ä¹è·ç¦»å°äºæçäºæè¿°ç¬¬äºé¢è®¾éå¼ï¼åæ§è¡åºäºæè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»ï¼ç¡®å®æè¿°æå¡æä¾ç«¯æ¯å¦å°è¾¾æè¿°æ¥ä¹å°ç¹çæ¥éª¤ï¼If the pick-up distance is less than or equal to the second preset threshold, executing the step of determining whether the service provider has arrived at the pick-up location based on the straight-line distance and the pick-up distance;
è¥æè¿°æ¥ä¹è·ç¦»å¤§äºæè¿°ç¬¬äºé¢è®¾éå¼ï¼åæ¯é第äºé¢è®¾æ¶é¿è¿åæ§è¡å¤ææè¿°æ¥ä¹è·ç¦»æ¯å¦å°äºæçäºæè¿°ç¬¬äºé¢è®¾éå¼çæ¥éª¤ï¼If the pick-up distance is greater than the second preset threshold, returning to the step of determining whether the pick-up distance is less than or equal to the second preset threshold every second preset time period;
å ¶ä¸ï¼æè¿°ç¬¬ä¸é¢è®¾éå¼å°äºæè¿°ç¬¬äºé¢è®¾éå¼ãThe first preset threshold is smaller than the second preset threshold.
è¿ä¸æ¥å°ï¼æè¿°æºå¨å¯è¯»æä»¤è¢«æè¿°å¤çå¨610æ§è¡æ¶è¿å¯ä»¥æ§è¡å¦ä¸å¤çï¼Furthermore, when the machine-readable instruction is executed by the processor 610, the following processing may also be performed:
夿æè¿°æå¡æä¾ç«¯ä»æè¿°å°çä½ç½®è¡é©¶å°æè¿°æ¥ä¹å°ç¹ä¹é´çæ¥ä¹è·¯çº¿ä¸æ¯å¦åå¨è·¯çº¿è½¬æç¹ï¼Determining whether there is a route turning point in the pick-up route between the service provider and the pick-up location;
è¥æè¿°æ¥ä¹è·¯çº¿ä¸ä¸åå¨æè¿°è·¯çº¿è½¬æç¹ï¼åå°æè¿°åºè¡è®¢åçç¶æè®¾ç½®ä¸ºå°è¾¾æè¿°æ¥ä¹å°ç¹çç¶æãIf the route turning point does not exist in the pick-up route, the status of the travel order is set to the status of arriving at the pick-up location.
è¿ä¸æ¥å°ï¼æè¿°æºå¨å¯è¯»æä»¤è¢«æè¿°å¤çå¨610æ§è¡æ¶è¿å¯ä»¥æ§è¡å¦ä¸å¤çï¼Furthermore, when the machine-readable instruction is executed by the processor 610, the following processing may also be performed:
è¥æè¿°æ¥ä¹è·¯çº¿ä¸åå¨æè¿°è·¯çº¿è½¬æç¹ï¼åè¿åæ§è¡å¤ææè¿°ç´çº¿è·ç¦»åæè¿°æ¥ä¹è·ç¦»æ¯å¦åå°äºæçäºæè¿°ç¬¬ä¸é¢è®¾éå¼çæ¥éª¤ãIf the route turning point exists in the pick-up route, the process returns to the step of determining whether both the straight-line distance and the pick-up distance are less than or equal to the first preset threshold.
è¿ä¸æ¥å°ï¼æè¿°æºå¨å¯è¯»æä»¤è¢«æè¿°å¤çå¨610æ§è¡æ¶è¿å¯ä»¥æ§è¡å¦ä¸å¤çï¼Furthermore, when the machine-readable instruction is executed by the processor 610, the following processing may also be performed:
夿æ¯å¦æ¥æ¶å°æè¿°æå¡æä¾ç«¯åéçå°è¾¾æè¿°æ¥ä¹å°ç¹çæ¥åä¿¡æ¯ï¼Determining whether the report information of arrival at the pick-up location sent by the service provider is received;
è¥æ¥æ¶å°æè¿°æå¡æä¾ç«¯åéçæè¿°æ¥åä¿¡æ¯ï¼å夿æè¿°ç´çº¿è·ç¦»æ¯å¦å°äºæçäºç¬¬ä¸é¢è®¾éå¼ï¼If the report information sent by the service provider is received, determining whether the straight-line distance is less than or equal to a third preset threshold;
è¥æè¿°ç´çº¿è·ç¦»å°äºæçäºæè¿°ç¬¬ä¸é¢è®¾éå¼ï¼å°æè¿°åºè¡è®¢åç¶æè®¾ç½®ä¸ºå°è¾¾æè¿°æ¥ä¹å°ç¹çç¶æï¼If the straight-line distance is less than or equal to the third preset threshold, the travel order status is set to a status of arriving at the pick-up location;
è¥æè¿°ç´çº¿è·ç¦»å¤§äºæè¿°ç¬¬ä¸é¢è®¾éå¼ï¼å°æè¿°åºè¡è®¢åç¶æè®¾ç½®ä¸ºæªå°è¾¾æè¿°æ¥ä¹å°ç¹çç¶æï¼å¹¶åæè¿°æå¡æä¾ç«¯åéè¯é³ä¿¡æ¯å/ææåä¿¡æ¯æéæåæ¥åå°è¾¾æè¿°æ¥ä¹å°ç¹ãIf the straight-line distance is greater than the third preset threshold, the travel order status is set to a state of not arriving at the pick-up location, and a voice message and/or text message is sent to the service provider to remind the service provider to report arrival at the pick-up location in advance.
è¿ä¸æ¥å°ï¼æè¿°æºå¨å¯è¯»æä»¤è¢«æè¿°å¤çå¨610æ§è¡æ¶è¿å¯ä»¥æ§è¡å¦ä¸å¤çï¼Furthermore, when the machine-readable instruction is executed by the processor 610, the following processing may also be performed:
åæè¿°æå¡æä¾ç«¯ä»¥åä¸æè¿°åºè¡è®¢å对åºçæå¡è¯·æ±ç«¯åéè¯é³ä¿¡æ¯å/ææåä¿¡æ¯æéå°è¾¾æè¿°æ¥ä¹å°ç¹ãSend a voice message and/or a text message to the service provider and the service requester corresponding to the travel order to remind them to arrive at the pick-up location.
è¿ä¸æ¥å°ï¼æè¿°æºå¨å¯è¯»æä»¤è¢«æè¿°å¤çå¨610æ§è¡æ¶è¿å¯ä»¥æ§è¡å¦ä¸å¤çï¼Furthermore, when the machine-readable instruction is executed by the processor 610, the following processing may also be performed:
è·åæè¿°åºè¡è®¢åä¸çåºè¡æ¶å»ï¼Obtaining the travel time in the travel order;
æ ¹æ®æè¿°åºè¡æ¶å»ï¼ç¡®å®å¨æè¿°åºè¡æ¶å»ä¹åçè·ç¦»æè¿°åºè¡æ¶å»ç¬¬ä¸é¢è®¾æ¶é¿çè·åæ¶å»ï¼å¹¶å°æè¿°è·åæ¶å»ç¡®å®ä¸ºé¦æ¬¡è·åæè¿°æå¡æä¾ç«¯å°çä½ç½®çæ¶å»ãAccording to the travel time, an acquisition time that is a third preset time length before the travel time is determined, and the acquisition time is determined as the time when the geographic location of the service provider is first acquired.
åºäºåä¸ç³è¯·ææï¼æ¬ç³è¯·å®æ½ä¾è¿æä¾äºä¸ç§è®¡ç®æºå¯è¯»åå¨ä»è´¨ï¼æè¿°è®¡ç®æºå¯è¯»åå¨ä»è´¨ä¸åå¨æè®¡ç®æºç¨åºï¼æè¿°è®¡ç®æºç¨åºè¢«å¤çå¨è¿è¡æ¶æ§è¡å¦å¾1å/æå¦å¾2æç¤ºçåºè¡è®¢åç¶æçæ´æ°æ¹æ³çæ¥éª¤ãBased on the same application concept, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for updating the travel order status as shown in Figure 1 and/or Figure 2 are executed.
å ·ä½å°ï¼æè¿°åå¨ä»è´¨è½å¤ä¸ºéç¨çåå¨ä»è´¨ï¼å¦ç§»å¨ç£çã硬ççï¼æè¿°åå¨ä»è´¨ä¸çè®¡ç®æºç¨åºè¢«è¿è¡æ¶ï¼è½å¤æ§è¡ä¸è¿°åºè¡è®¢åç¶æçæ´æ°æ¹æ³ï¼éè¿èªå¨å¤å®æ¯å¦å°è¾¾æ¥ä¹å°ç¹ï¼å¯ä»¥æé«å¸æºæ¥ä¹çæçï¼å¹¶å¨ç¡®å®åºæå¡æä¾ç«¯å°è¾¾æ¥ä¹å°ç¹æ¶ï¼å°åºè¡è®¢åçç¶æè®¾ç½®ä¸ºå°è¾¾æ¥ä¹å°ç¹çç¶æï¼å¯ä»¥æåå¤çåºè¡è®¢åçæçãSpecifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc. When the computer program on the storage medium is run, the above-mentioned travel order status update method can be executed. By automatically determining whether the pick-up location has been arrived at, the driver's pick-up efficiency can be improved. When it is determined that the service provider has arrived at the pick-up location, the status of the travel order is set to the status of arriving at the pick-up location, which can improve the efficiency of processing travel orders.
æå±é¢åçææ¯äººåå¯ä»¥æ¸ æ¥å°äºè§£å°ï¼ä¸ºæè¿°çæ¹ä¾¿åç®æ´ï¼ä¸è¿°æè¿°çç³»ç»åè£ ç½®çå ·ä½å·¥ä½è¿ç¨ï¼å¯ä»¥åèåè¿°æ¹æ³å®æ½ä¾ä¸ç对åºè¿ç¨ï¼å¨æ¤ä¸åèµè¿°ã卿¬ç³è¯·ææä¾çå ä¸ªå®æ½ä¾ä¸ï¼åºæè¿°çè§£å°ï¼ææé²çç³»ç»ãè£ ç½®åæ¹æ³ï¼å¯ä»¥éè¿å ¶å®çæ¹å¼å®ç°ã以䏿æè¿°çè£ ç½®å®æ½ä¾ä» ä» æ¯ç¤ºææ§çï¼ä¾å¦ï¼æè¿°åå çååï¼ä» ä» ä¸ºä¸ç§é»è¾åè½ååï¼å®é å®ç°æ¶å¯ä»¥æå¦å¤çååæ¹å¼ï¼åä¾å¦ï¼å¤ä¸ªåå æç»ä»¶å¯ä»¥ç»åæè å¯ä»¥éæå°å¦ä¸ä¸ªç³»ç»ï¼æä¸äºç¹å¾å¯ä»¥å¿½ç¥ï¼æä¸æ§è¡ãå¦ä¸ç¹ï¼ææ¾ç¤ºæè®¨è®ºçç¸äºä¹é´çè¦åæç´æ¥è¦åæéä¿¡è¿æ¥å¯ä»¥æ¯éè¿ä¸äºéä¿¡æ¥å£ï¼è£ ç½®æåå çé´æ¥è¦åæéä¿¡è¿æ¥ï¼å¯ä»¥æ¯çµæ§ï¼æºæ¢°æå ¶å®çå½¢å¼ãThose skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
æè¿°ä½ä¸ºå离é¨ä»¶è¯´æçåå å¯ä»¥æ¯æè ä¹å¯ä»¥ä¸æ¯ç©çä¸åå¼çï¼ä½ä¸ºåå æ¾ç¤ºçé¨ä»¶å¯ä»¥æ¯æè ä¹å¯ä»¥ä¸æ¯ç©çåå ï¼å³å¯ä»¥ä½äºä¸ä¸ªå°æ¹ï¼æè ä¹å¯ä»¥åå¸å°å¤ä¸ªç½ç»åå ä¸ãå¯ä»¥æ ¹æ®å®é çéè¦éæ©å ¶ä¸çé¨åæè å ¨é¨åå æ¥å®ç°æ¬å®æ½ä¾æ¹æ¡çç®çãThe units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
å¦å¤ï¼å¨æ¬ç³è¯·åä¸ªå®æ½ä¾ä¸çååè½åå å¯ä»¥éæå¨ä¸ä¸ªå¤çåå ä¸ï¼ä¹å¯ä»¥æ¯å个åå åç¬ç©çåå¨ï¼ä¹å¯ä»¥ä¸¤ä¸ªæä¸¤ä¸ªä»¥ä¸åå éæå¨ä¸ä¸ªåå ä¸ãIn addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
æè¿°åè½å¦æä»¥è½¯ä»¶åè½åå çå½¢å¼å®ç°å¹¶ä½ä¸ºç¬ç«ç产åéå®æä½¿ç¨æ¶ï¼å¯ä»¥åå¨å¨ä¸ä¸ªå¤çå¨å¯æ§è¡çéæå¤±çè®¡ç®æºå¯è¯»ååå¨ä»è´¨ä¸ãåºäºè¿æ ·ççè§£ï¼æ¬ç³è¯·çææ¯æ¹æ¡æ¬è´¨ä¸æè è¯´å¯¹ç°æææ¯ååºè´¡ç®çé¨åæè æè¿°ææ¯æ¹æ¡çé¨åå¯ä»¥ä»¥è½¯ä»¶äº§åçå½¢å¼ä½ç°åºæ¥ï¼æè¿°è®¡ç®æºè½¯ä»¶äº§ååå¨å¨ä¸ä¸ªåå¨ä»è´¨ä¸ï¼å æ¬è¥å¹²æä»¤ç¨ä»¥ä½¿å¾ä¸å°è®¡ç®æºè®¾å¤(å¯ä»¥æ¯ä¸ªäººè®¡ç®æºï¼æå¡å¨ï¼æè ç½ç»è®¾å¤ç)æ§è¡æ¬ç³è¯·åä¸ªå®æ½ä¾æè¿°æ¹æ³çå ¨é¨æé¨åæ¥éª¤ãèåè¿°çåå¨ä»è´¨å æ¬ï¼Uçãç§»å¨ç¡¬çãåªè¯»åå¨å¨(Read-Only Memoryï¼ROM)ãéæºåååå¨å¨(Random Access Memoryï¼RAM)ãç£ç¢æè å ççåç§å¯ä»¥åå¨ç¨åºä»£ç çä»è´¨ãIf the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
以ä¸ä» 为æ¬ç³è¯·çå ·ä½å®æ½æ¹å¼ï¼ä½æ¬ç³è¯·çä¿æ¤èå´å¹¶ä¸å±éäºæ¤ï¼ä»»ä½çææ¬ææ¯é¢åçææ¯äººå卿¬ç³è¯·æé²çææ¯èå´å ï¼å¯è½»ææ³å°ååææ¿æ¢ï¼é½åºæ¶µç卿¬ç³è¯·çä¿æ¤èå´ä¹å ãå æ¤ï¼æ¬ç³è¯·çä¿æ¤èå´åºä»¥æå©è¦æ±çä¿æ¤èå´ä¸ºåãThe above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4