Method for quickly opening or closing online car-hailing city
By querying the city correspondence relationship table and the overall city-retention configuration table, we can judge the city opening or city closing status of the online car-hailing city, and solve the problem of lack of flexible capacity response in the existing technology, and realize the rapid city opening or city closing function of the online car-hailing platform.
Patent Information
- Application Number
- CN202411644085.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2025-03-18
AI Technical Summary
When existing online ride-hailing platforms open or close cities in a short period of time, they lack a flexible capacity response mechanism, resulting in the inability to configure channels to close cities or cross-city closures at multiple levels.
By querying the city correspondence relationship table and the overall city configuration table, judge the city opening or city closing status of the city, and perform corresponding controls based on the city closing type (the city closing or cross-city closing) to achieve rapid city opening or city closing.
It realizes flexible configuration of urban control, can pass the city to multiple levels, and supports the city lockdown or cross-city lockdown of a city in a certain city during the time period, improving the flexibility of capacity response.
Smart Images

Figure CN119648511A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of online car-hailing platforms, and specifically relates to a method for quickly opening or closing a city for an online car-hailing platform. Background Art
[0002] In actual online car-hailing, the channel and the transportation capacity may open or close a city in a short period of time due to some agreement. For example, the channel party may agree with the transportation capacity platform party to open or close the service in a specific city within a specific time period. Some cities or regions cannot provide online car-hailing services, and a city is temporarily closed or opened as a whole. This requires the transportation capacity to respond quickly. The existing transportation capacity supports the configuration of a single channel's city closure, or the closure of all channels' cities, which is not flexible enough. For this reason, the present invention proposes a method for quickly opening or closing cities for online car-hailing. Summary of the invention
[0003] The purpose of the present invention is to provide a method for quickly opening or closing a city for an online car-hailing service, so as to solve the problems raised in the above-mentioned background technology.
[0004] To achieve the above purpose, the present invention provides the following technical solution: a method for quickly opening or closing a city for an online car-hailing service, and the specific implementation steps are as follows:
[0005] S1: channel estimation / order placement;
[0006] S2: Get the channel number channel and channel city partnerCityId sent by the channel;
[0007] S3: According to the channel number channel and the channel city partnerCityId, query the city correspondence table channel_city_mapping_config;
[0008] S4: If no result is found, return to “unopened city” and end the process;
[0009] S5: If the status is equal to 0, it means that the city has closed the channel, and the result returns "not open", ending the process;
[0010] S6: If the status is equal to 1, it means that the city is open;
[0011] S7: query the LBS system according to the get-off coordinates to obtain the get-off city endCityId;
[0012] S8: query the overall city shutdown configuration table city_shutdown_config according to the boarding city cityId to obtain a valid city shutdown configuration;
[0013] S9: If the boarding city shutdown information exists, determine the shutdown type according to cityId. If shut_down_type is equal to 1, the city is shut down, and the process ends with "city shutdown".
[0014] S10: If cityId is not equal to endCityId, it is considered to be cross-city. If shut_down_type is equal to 2, it is shut down across cities, and the system returns to "city shutdown", ending the process.
[0015] S11: If the boarding city shutdown information does not exist, query the overall shutdown configuration table city_shut_down_config according to the endCityId of the disembarkation city to obtain a valid shutdown configuration;
[0016] S12: If the disembarkation city has a shutdown configuration, and if shut_down_type is equal to 1, the city is shut down, and the process ends by returning to "city shutdown";
[0017] S13: If cityId is not equal to endCityId, it is considered to be cross-city. If shut_down_type is equal to 2, it is shut down across cities, and the system returns to "city shutdown", ending the process.
[0018] S14: If there is no closed city configuration in the drop-off city, continue the estimation or ordering process;
[0019] S15: End.
[0020] Preferably, in the steps S5 and S6, the status 0 or 1 is just a set code for artificial distinction.
[0021] Preferably, the shut_down_type is 1 or 2, which is a setting code that is only distinguished artificially.
[0022] Preferably, the shut_down_type is 1, which indicates a shutdown in the city, and the shut_down_type is 2, which indicates a shutdown only across cities.
[0023] Compared with the prior art, the beneficial effects of the present invention are: a method for quickly opening or closing a city for an online car-hailing vehicle designed by the present invention realizes configurable city closure, and can close cities for channels at multiple levels, or can close a city at multiple levels or shut down across cities. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0026] See also Figure 1 , provides a technical solution: the present invention refines the scenario of closing the city based on the actual situation, and is divided into closing a single channel city, closing a city of all channels, or closing across cities (cross-city operation is not allowed, but operation in the city is allowed); for closing a single channel, by querying the city correspondence configuration, obtaining the city correspondence, and judging whether the city is closed, if there is no city correspondence or the city is closed, the channel failure information is directly returned. If there is no city closed, the overall city closing configuration information is queried to judge whether there is a city closed or a cross-city closed, so as to achieve the control of closing a certain city.
[0027] The specific implementation steps are as follows:
[0028] S1: channel estimation / order placement;
[0029] S2: Get the channel number channel and the channel party's boarding city partnerCityId sent by the channel;
[0030] S3: According to the channel number channel and the channel city partnerCityId, query the city correspondence table channel_city_mapping_config. The table structure is as follows:
[0031]
[0032] S4: If no result is found, return to “unopened city” and end the process;
[0033] S5: If the closed city status is equal to 0, it means that the city has been closed to this channel, and the result returns "not open", ending the process;
[0034] S6: If status is equal to 1, it means the city is open;
[0035] S7: query the LBS system according to the get-off coordinates to obtain the get-off city endCityId;
[0036] S8: Query the overall shutdown configuration table city_shutdown_config according to the boarding city cityId to obtain a valid shutdown configuration. The table structure is as follows:
[0037]
[0038] S9: If the boarding city shutdown information exists, determine the shutdown type according to cityId. If shut_down_type is equal to 1, the city is shut down, and the process ends with "city shutdown".
[0039] S10: If cityId is not equal to endCityId, it is considered to be cross-city. If shut_down_type is equal to 2, it is shut down across cities, and the system returns to "city shutdown", ending the process.
[0040] S11: If the boarding city shutdown information does not exist, query the overall shutdown configuration table city_shut_down_config according to the endCityId of the disembarkation city to obtain a valid shutdown configuration;
[0041] S12: If the disembarkation city has a shutdown configuration, and if shut_down_type is equal to 1, the city is shut down, and the process ends by returning to "city shutdown";
[0042] S13: If cityId is not equal to endCityId, it is considered to be cross-city. If shut_down_type is equal to 2, the cross-city shutdown is performed, and "city shutdown" is returned to end the process.
[0043] S14: If there is no closed city configuration in the drop-off city, continue the estimation or ordering process;
[0044] S15: End.
[0045] Although embodiments of the present invention have been shown and described (see the above detailed description for details), it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to these embodiments without departing from the principles and spirit of the present invention, and the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for quickly opening or closing a city for an online car-hailing service, characterized in that: The specific implementation steps are as follows: S1: channel estimation / order placement; S2: Get the channel number channel and channel city partnerCityId sent by the channel; S3: According to the channel number channel and the channel city partnerCityId, query the city correspondence table channel_city_mapping_config; S4: If no result is found, return to "Not Opened City" and end the process; S5: If the status is equal to 0, it means that the city has closed the channel, and the result returns "not open", ending the process; S6: If the status is equal to 1, it means that the city is open; S7: query the LBS system according to the get-off coordinates to obtain the get-off city endCityId; S8: query the overall city shutdown configuration table city_shutdown_config according to the boarding city cityId to obtain a valid city shutdown configuration; S9: If the boarding city shutdown information exists, determine the shutdown type based on cityId. If shut_down_type is equal to 1, the city is shut down, and "city shutdown" is returned to end the process. S10: If cityId is not equal to endCityId, it is considered to be a cross-city operation. If shut_down_type is equal to 2, the cross-city operation is shut down, and "city shutdown" is returned to end the process. S11: If the boarding city shutdown information does not exist, query the overall shutdown configuration table city_shut_down_config according to the endCityId of the disembarkation city to obtain a valid shutdown configuration; S12: If the disembarkation city has a shutdown configuration, and if shut_down_type is equal to 1, the city is shut down, and the process ends with "city shutdown"; S13: If cityId is not equal to endCityId, it is considered to be a cross-city operation. If shut_down_type is equal to 2, the cross-city operation is shut down, and the system returns to "city shutdown", ending the process. S14: If there is no closed city configuration in the drop-off city, continue the estimation or ordering process; S15: End.
2. A method for quickly opening or closing a city for an online car-hailing service according to claim 1, characterized in that: In the steps S5 and S6, the status 0 or 1 is just a set code for artificial distinction.
3. A method for quickly opening or closing a city for an online car-hailing service according to claim 1, characterized in that: The shutdown_down_type 1 or 2 is a setting code that is only distinguished artificially.
4. A method for quickly opening or closing a city for an online car-hailing service according to claim 1, characterized in that: The shut_down_type of 1 indicates a shutdown in the city, and the shut_down_type of 2 indicates a shutdown across cities only.