Method, device, electronic device, medium and program product for recommending boarding point
By obtaining the minimum ring road and grid area of the user's initial location point, combined with historical real ride points, the ride points are screened out, which solves the problem of inaccurate recommendation of unknown areas in the electronic map and achieves accurate ride point recommendations and Crossing paths is avoided.
Patent Information
- Application Number
- CN202210122801.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-09
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-02-09
AI Technical Summary
It is unknown whether there are guardrails or road-crossing areas in the geographical areas that have not been produced in the existing electronic maps. As a result, it is easy to cross roads when recommending ride points, and the recommendations are not accurate enough.
By obtaining the minimum ring road, grid area and extended grid area where the user's initial location point is located, candidate recommended ride points are obtained, and the final recommended ride points are screened based on the location relationship of the historical real ride points to ensure recommended points Located on the minimum ring road to avoid cross-road problems.
It achieves more accurate boarding point recommendations, avoids cross-road situations, and does not rely on the accuracy of the walking guide distance or whether there are guardrails at the user's boarding point.
Smart Images

Figure CN114547487B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of geographic data processing, and in particular to a method, device, electronic device, medium and program product for recommending a boarding point. Background Art
[0002] With the continuous development of Internet technology, more and more people use some taxi apps to take a ride. When passengers use these taxi apps to take a ride, these taxi apps will intelligently recommend some pick-up points for users to meet the driver. The recommendation of the pick-up point is strongly related to the user's geographical area. It is necessary to consider whether there is a guardrail or a cross-road area between the pick-up point and the user's location. Although a large number of AOIs (Area Of Interest) are produced in the current electronic map, some geographical areas are not produced. Therefore, it is unknown whether there are guardrails or cross-road areas in the unproduced areas. For users in these unproduced areas, the recommendation of pick-up points is mostly based on the actual pick-up points of most people in the statistical grid where the user's location is located. However, since the division of the spatial grid does not take into account the geographical attributes, if there are different cross-road areas in the spatial grid, the recommended pick-up points will cross the road, resulting in abnormal recommendations. Summary of the invention
[0003] In order to solve the problems in the related art, the embodiments of the present disclosure provide a method, device, electronic device, medium and program product for recommending a boarding point.
[0004] In a first aspect, a method for recommending a boarding point is provided in an embodiment of the present disclosure.
[0005] Specifically, the method for recommending a boarding point includes:
[0006] Obtaining a current minimum loop road, a current grid area, and an extended grid area where the current user initial position point is located, wherein the current minimum loop road includes the shortest loop around the current user initial position point, the current grid area includes the grid area where the current user initial position point is located, and the extended grid area includes the current grid area and each grid area within N grid areas separated from the current grid area, where N is an integer greater than or equal to 0;
[0007] Obtain the candidate recommended boarding point on the current minimum loop road corresponding to the extended grid area;
[0008] Obtain the historical real boarding points corresponding to the initial location points of each historical user in the current grid area;
[0009] Based on the positional relationship between each candidate recommended boarding point and each historical real boarding point, a recommended boarding point is selected from the candidate recommended boarding points.
[0010] In combination with the first aspect, in a first implementation of the first aspect of the present disclosure, the method further includes:
[0011] The minimum loop roads in the road network to be processed in the preset area are obtained, and the road network to be processed includes the road network excluding the road sections in the AOI area.
[0012] In combination with the first aspect and the first implementation manner thereof, in the second implementation manner of the first aspect of the present disclosure, the step of obtaining each minimum loop road in the road network to be processed in the preset area includes:
[0013] Obtain a road section that is not a minimum loop road in the road network to be processed and record it as a visited road section;
[0014] Acquire adjacent road segments of the visited road segment in the traveling direction, wherein the adjacent road segments include a road segment located in a first direction area of the visited road segment, closest to the visited road segment, and connected to the visited road segment;
[0015] The target adjacent road segment with the smallest angle with the visited road segment among the adjacent road segments is recorded as a new visited road segment, until the target adjacent road segment corresponding to the latest visited road segment has been recorded as a visited road segment, and the loop composed of the road segments recorded as visited road segments this time is recorded as the minimum loop road.
[0016] In combination with the first aspect and the various implementations thereof, in a third implementation of the first aspect of the present disclosure, the method further includes:
[0017] The minimum self-loop roads and blocked roads are screened out from the road network of the preset area except the road sections in the AOI area to obtain the road network to be processed, wherein the minimum self-loop roads include roads that form the minimum loop by looping in different directions on the same road, and the blocked roads include roads that cannot enter other sections in the road network.
[0018] In combination with the first aspect and the various implementations thereof, in a fourth implementation of the first aspect of the present disclosure, the method further includes:
[0019] When the loop composed of the road segments recorded as visited road segments this time includes a plurality of loops with intersections, the plurality of loops with intersections are interrupted at the intersections to obtain a plurality of minimum loops.
[0020] In combination with the first aspect and the various implementations thereof, in a fifth implementation of the first aspect of the present disclosure, the step of selecting a recommended boarding point from the candidate recommended boarding points based on a positional relationship between each candidate recommended boarding point and each historical real boarding point includes:
[0021] Obtaining a coverage area corresponding to each candidate recommended boarding point, wherein the coverage area includes an area whose distance from the candidate recommended boarding point is within a preset threshold;
[0022] Obtaining a coverage rate corresponding to each candidate recommended boarding point, wherein the coverage rate includes a ratio between the number of historical real boarding points in the coverage area and the number of all historical real boarding points;
[0023] The candidate recommended boarding points whose coverage rate meets the preset conditions are determined as recommended boarding points.
[0024] In combination with the first aspect and its various implementations mentioned above, the present disclosure discloses a sixth implementation of the first aspect, wherein the preset condition includes a coverage rate greater than a preset threshold or the coverage rate is the highest K, where K is an integer greater than or equal to 1.
[0025] In combination with the first aspect and the various implementations thereof, in a seventh implementation of the first aspect of the present disclosure, the step of obtaining the historical real boarding points corresponding to each historical user initial position point within the current grid area includes:
[0026] In response to the area surrounded by the minimum loop road covering the current grid area, the historical real boarding points corresponding to each historical user initial position point located in the current grid area are obtained.
[0027] In combination with the first aspect and the various implementations thereof, in an eighth implementation of the first aspect of the present disclosure, the step of obtaining the current minimum loop road, the current grid area, and the extended grid area where the current user initial location point is located includes:
[0028] In response to the current user initial position point not being within the AOI area of the surface of interest, the current minimum loop road, the current grid area, and the extended grid area where the user initial position point is located are obtained.
[0029] In a second aspect, an embodiment of the present disclosure provides a device for recommending a boarding point, including:
[0030] Specifically, the boarding point recommendation device includes:
[0031] A first acquisition module is configured to acquire a current minimum loop road, a current grid area, and an extended grid area where the current user initial position point is located, wherein the current minimum loop road includes the shortest loop around the current user initial position point, the current grid area includes the grid area where the current user initial position point is located, and the extended grid area includes the current grid area and each grid area within N grid areas separated from the current grid area, where N is an integer greater than or equal to 0;
[0032] A second acquisition module is configured to acquire a candidate recommended boarding point on the current minimum loop road corresponding to the extended grid area;
[0033] A third acquisition module is configured to acquire the historical real boarding points corresponding to each historical user initial position point located in the current grid area;
[0034] The recommendation module is configured to filter the recommended boarding points from the candidate recommended boarding points based on the positional relationship between the candidate recommended boarding points and the historical real boarding points.
[0035] In combination with the second aspect, in a first implementation of the second aspect of the present disclosure, the device further includes:
[0036] The fourth acquisition module is configured to acquire each minimum loop road in the road network to be processed in a preset area, wherein the road network to be processed includes the road network excluding the road sections in the AOI area.
[0037] In combination with the second aspect and the first implementation manner thereof, in a second implementation manner of the second aspect of the present disclosure, the fourth acquisition module is configured as follows:
[0038] Obtain a road section that is not a minimum loop road in the road network to be processed and record it as a visited road section;
[0039] Acquire adjacent road segments of the visited road segment in the traveling direction, wherein the adjacent road segments include a road segment located in a first direction area of the visited road segment, closest to the visited road segment, and connected to the visited road segment;
[0040] The target adjacent road segment with the smallest angle with the visited road segment among the adjacent road segments is recorded as a new visited road segment, until the target adjacent road segment corresponding to the latest visited road segment has been recorded as a visited road segment, and the loop composed of the road segments recorded as visited road segments this time is recorded as the minimum loop road.
[0041] In combination with the second aspect and the above-mentioned various implementations, in a third implementation of the second aspect of the present disclosure, the device further includes:
[0042] The screening module is configured to screen out the minimum self-loop roads and blocked roads from the road network of the preset area except the road sections in the AOI area to obtain the road network to be processed, wherein the minimum self-loop road includes the road that forms the minimum loop by looping in different directions on the same road, and the blocked road includes the road that cannot enter other sections in the road network.
[0043] In combination with the second aspect and the above-mentioned various implementations, in a fourth implementation of the second aspect of the present disclosure, the device further includes:
[0044] The interruption module is configured to interrupt the multiple loops with intersections at the intersections to obtain multiple minimum loops when the loop composed of the road segments recorded as visited road segments includes multiple loops with intersections.
[0045] In combination with the second aspect and the above-mentioned various implementations, in a fifth implementation of the second aspect of the present disclosure, the recommendation module is configured as follows:
[0046] Obtaining a coverage area corresponding to each candidate recommended boarding point, wherein the coverage area includes an area whose distance from the candidate recommended boarding point is within a preset threshold;
[0047] Obtaining a coverage rate corresponding to each candidate recommended boarding point, wherein the coverage rate includes a ratio between the number of historical real boarding points in the coverage area and the number of all historical real boarding points;
[0048] The candidate recommended boarding points whose coverage rate meets the preset conditions are determined as recommended boarding points.
[0049] In combination with the second aspect and its various implementations mentioned above, in the sixth implementation of the second aspect of the present disclosure, the preset condition includes that the coverage rate is greater than a preset threshold or the coverage rate is the highest K, and K is an integer greater than or equal to 1.
[0050] In combination with the second aspect and the above-mentioned various implementations, in a seventh implementation of the third aspect of the present disclosure, the third acquisition module is configured as follows:
[0051] In response to the area surrounded by the minimum loop road covering the current grid area, the historical real boarding points corresponding to each historical user initial position point located in the current grid area are obtained.
[0052] In combination with the second aspect and the above-mentioned various implementations, in an eighth implementation of the second aspect of the present disclosure, the first acquisition module is configured as follows:
[0053] In response to the current user initial position point not being within the AOI area of the surface of interest, the current minimum loop road, the current grid area, and the extended grid area where the user initial position point is located are obtained.
[0054] In combination with the second aspect and the above-mentioned various implementations thereof, in a seventh implementation of the second aspect of the present disclosure, the third acquisition module is configured as follows:
[0055] In response to the area surrounded by the minimum loop road covering the current grid area, the historical real boarding point corresponding to the historical initial position point being located in the current grid area is obtained.
[0056] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising a memory and a processor, wherein the memory is used to store one or more computer instructions, and wherein the one or more computer instructions are executed by the processor to implement a method as described in any one of the first aspects.
[0057] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium on which computer instructions are stored. When the computer instructions are executed by a processor, a method as described in any one of the first aspects is implemented.
[0058] In a fifth aspect, a computer program product is provided in an embodiment of the present disclosure, comprising computer instructions, which, when executed by a processor, implement the method steps as described in any one of the first aspects.
[0059] According to the technical solution provided by the embodiment of the present disclosure, the current minimum loop road, the current grid area, and the extended grid area where the user's initial position point is located can be obtained, and then the candidate recommended boarding points on the current minimum loop road corresponding to the extended grid area and the historical real boarding points corresponding to the historical initial position point when located in the current grid area can be obtained. Finally, based on the positional relationship between each candidate recommended boarding point and each historical real boarding point, the recommended boarding points are screened from the candidate recommended boarding points. In this way, the candidate recommended boarding points located on the current minimum loop road can be obtained first, and then the final recommended boarding points can be screened with reference to the positions of the historical real boarding points. The final recommended boarding point is located on the current minimum loop road, so both the driver and the user can detour on the current minimum loop road to reach the final boarding point for convergence, and there is no problem of boarding across the road. Moreover, the recommendation method does not need to consider whether the walking guide distance is accurate, whether there is a guardrail between the user and the boarding point, and other issues, and the recommendation is more accurate.
[0060] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Other features, objectives and advantages of the present disclosure will become more apparent through the following detailed description of non-limiting embodiments in conjunction with the accompanying drawings. In the accompanying drawings:
[0062] Figure 1 A flowchart showing a method for recommending a boarding point according to an embodiment of the present disclosure;
[0063] Figure 2 A schematic diagram showing an extended grid area according to an embodiment of the present disclosure;
[0064] Figure 3 A schematic diagram showing a minimum loop road according to an embodiment of the present disclosure;
[0065] Figure 4 A structural block diagram of a device for recommending a boarding point according to an embodiment of the present disclosure is shown;
[0066] Figure 5 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown;
[0067] Figure 6 A schematic diagram showing the structure of a computer system suitable for implementing the method according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0068] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, parts not related to the description of the exemplary embodiments are omitted in the accompanying drawings.
[0069] In the present disclosure, it should be understood that terms such as "include" or "have" are intended to indicate the presence of features, numbers, steps, behaviors, components, parts, or a combination thereof disclosed in the present specification, and are not intended to exclude the possibility that one or more other features, numbers, steps, behaviors, components, parts, or a combination thereof exist or are added.
[0070] It should also be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0071] In the present disclosure, the acquisition of user information or user data is an operation authorized and confirmed by the user, or actively selected by the user.
[0072] With the continuous development of Internet technology, more and more people use some taxi apps to take a ride. When passengers use these taxi apps to take a ride, these taxi apps will intelligently recommend some pick-up points for users to meet the driver. The recommendation of the pick-up point is strongly related to the user's geographical area. It is necessary to consider whether there is a guardrail or a cross-road area between the pick-up point and the user's location. Although a large number of AOIs (Area Of Interest) are produced in the current electronic map, some geographical areas are not produced. Therefore, it is unknown whether there are guardrails or cross-road areas in the unproduced areas. For users in these unproduced areas, the recommendation of pick-up points is mostly based on the actual pick-up points of most people in the statistical grid where the user's location is located. However, since the division of the spatial grid does not take into account the geographical attributes, if there are different cross-road areas in the spatial grid, the recommended pick-up points will cross the road, resulting in abnormal recommendations.
[0073] In view of the above problems, the present embodiment discloses a method for recommending a boarding point, which can obtain the current minimum loop road, the current grid area, and the extended grid area where the user's initial position point is located, and then obtain the candidate recommended boarding points on the current minimum loop road corresponding to the extended grid area and the historical real boarding points corresponding to the historical initial position point when it is located in the current grid area. Finally, based on the positional relationship between each candidate recommended boarding point and each historical real boarding point, the recommended boarding points are screened from the candidate recommended boarding points. In this way, the candidate recommended boarding points located on the current minimum loop road can be obtained first, and then the final recommended boarding points can be screened with reference to the positions of the historical real boarding points. The final recommended boarding point is located on the current minimum loop road, so the driver and the user can detour on the current minimum loop road to reach the final boarding point for convergence, and there is no problem of boarding across the road. In addition, the recommendation method does not need to consider whether the walking guide distance is accurate, whether there is a guardrail between the user and the boarding point, and other issues, and the recommendation is more accurate.
[0074] Figure 1 FIG. 1 is a flow chart showing a method for recommending a boarding point according to an embodiment of the present disclosure. Figure 1 As shown, the method for recommending a boarding point includes the following steps S101-S104:
[0075] In step S101, a current minimum loop road, a current grid area, and an extended grid area where the current user initial position point is located are obtained, wherein the current minimum loop road includes the shortest loop around the current user initial position point, the current grid area includes the grid area where the current user initial position point is located, and the extended grid area includes the current grid area and each grid area within N grid areas separated from the current grid area, where N is an integer greater than or equal to 0;
[0076] In step S102, the candidate recommended boarding points on the current minimum loop road corresponding to the extended grid area are obtained;
[0077] In step S103, the historical real boarding points corresponding to the initial position points of each historical user located in the current grid area are obtained;
[0078] In step S104, based on the positional relationship between each candidate recommended boarding point and each historical real boarding point, a recommended boarding point is screened from the candidate recommended boarding points.
[0079] In one embodiment of the present disclosure, the ride point recommendation may be applicable to a recommendation device such as a computer, a computing device, an electronic device, a server, a server cluster, etc. that performs ride point recommendation.
[0080] In one embodiment of the present disclosure, the current user refers to a user who is currently using a taxi-hailing application to select a boarding point, the historical user refers to a user who has used the taxi-hailing application to select a boarding point in the past, the current user's initial position point refers to the position point located by the current user before selecting a boarding point or the position point actively dragged / clicked by the user, and the historical user's initial position point refers to the position point located by the historical user before selecting a boarding point or the initial position point actively dragged / clicked by the historical user.
[0081] In one embodiment of the present disclosure, the minimum loop road refers to the loop around the smallest area enclosed by the road, and the current minimum loop road refers to the minimum loop road where the current user's initial position point is located. After determining the current user's initial position point, the road sections around the current user's initial position point can be obtained, and the sections among these road sections that can form a loop around the user's initial position point can be found, and then the shortest loop among these loops is determined as the current minimum loop road.
[0082] In one embodiment of the present disclosure, the electronic map area is divided into non-intersecting network grids according to certain shapes such as triangles / quadrilaterals / hexagons, and the coverage area of these network grids on the electronic map can be called a grid area. The current grid area refers to the grid area where the user's initial location point is located.
[0083] In one embodiment of the present disclosure, the extended grid area includes an area formed by expanding multiple grids outward from the current grid area, including the current grid area and each grid area within N grid areas separated from the current grid area, for example, Figure 2As shown, the extended grid area 20 includes the current grid area 201 and each grid area separated from the current grid area by N=1 grid areas, that is, the extended grid area includes the current grid area 201, a plurality of adjacent grid areas 202 adjacent to the current grid area, and a grid area 203 separated from the current grid area by 1 grid area (that is, a circle of grid areas adjacent to the adjacent grid area).
[0084] In one embodiment of the present disclosure, existing recommendation rules such as counting the locations of most people's boarding points in the extended grid area can be used to recommend candidate recommended boarding points corresponding to the extended grid area, and the candidate recommended boarding points located on the current minimum loop road can be screened out; the historical real boarding points corresponding to the initial location points of each historical user located in the current grid area can be searched from the historical riding records of each user; finally, the recommended boarding points can be screened from these candidate recommended boarding points based on the positional relationship between these candidate recommended boarding points and these historical real boarding points, such as screening out candidate recommended boarding points that are closer to each historical real boarding point from these candidate recommended boarding points.
[0085] In one embodiment of the present disclosure, the user database stores historical data of each historical user each time he or she takes a taxi, such as the historical user's initial location points and their corresponding historical real boarding points, historical real alighting points and other data. The initial location points of each historical user located in the current grid area can be searched from the user database, and then the historical real boarding points in each historical data corresponding to these historical user's initial location points are obtained. In this way, the historical real boarding points corresponding to the initial location points of each historical user located in the current grid area are obtained.
[0086] This implementation manner can obtain the current minimum loop road, the current grid area, and the extended grid area where the user's initial position point is located, and then obtain the candidate recommended boarding points on the current minimum loop road corresponding to the extended grid area and the historical real boarding points corresponding to the historical initial position point when it is located in the current grid area. Finally, based on the positional relationship between each candidate recommended boarding point and each historical real boarding point, the recommended boarding points are screened from the candidate recommended boarding points. In this way, the candidate recommended boarding points located on the current minimum loop road can be recommended first, and then the final recommended boarding points can be screened with reference to the positions of the historical real boarding points. The final recommended boarding point is located on the current minimum loop road, so the driver and the user can detour on the current minimum loop road to reach the final boarding point for convergence, and there is no problem of crossing the road for boarding. Moreover, the recommendation method does not need to consider whether the walking guide distance is accurate, whether there is a guardrail between the user and the boarding point, and other issues, and the recommendation is more accurate.
[0087] In one embodiment of the present disclosure, step S101 in the above-mentioned method for recommending a boarding point, i.e., the step of obtaining the current minimum loop road, the current grid area, and the extended grid area where the current user's initial location point is located, can be implemented as the following steps:
[0088] In response to the current user initial location point not being within the AOI area, a current minimum loop road, a current grid area, and an extended grid area where the user initial location point is located are obtained.
[0089] In this embodiment, the AOI (Area of Interest) refers to the area of interest in the Internet electronic map, including the four basic information of name, address, category, and latitude and longitude coordinates, and is mainly used to express regional geographical entities in the map, such as a residential area, a university, an office building, an industrial park, a comprehensive shopping mall, a hospital, a scenic spot or a gymnasium, etc. All entities in the AOI area, such as buildings and their entrances and exits, guardrails, green belts and other facilities, will be marked. Based on the information in the AOI area, whether there is a guardrail or a cross-road area between the boarding point and the user's location can be considered, and the boarding point can be recommended to the user. The non-AOI area is an unmade area, in which whether there is a guardrail or a cross-road area is unknown. The boarding point recommendation method provided in this embodiment can prevent users located in these non-AOI areas from having the problem of crossing the road to take the bus, so steps S101 to S104 can be performed only when the current user's initial location point is not in the AOI area.
[0090] It should be noted here that when the user's initial location point is located in the AOI area, the boarding point recommendation method provided in this embodiment can also be used to recommend boarding points, and there is no limitation here.
[0091] In one embodiment of the present disclosure, the above-mentioned boarding point recommendation method may further include the following steps:
[0092] The minimum loop roads in the road network to be processed in the preset area are obtained, and the road network to be processed includes the road network excluding the road sections in the AOI area.
[0093] In this embodiment, the preset area may be a predetermined area on an electronic map, such as an area where a province is located or an area where a country is located. The minimum loop roads in the road network excluding the AOI area in the preset area may be obtained in advance, so that after obtaining the user's initial location point, the current minimum loop road surrounding the user's initial location point may be directly obtained.
[0094] In one embodiment of the present disclosure, in the above-mentioned boarding point recommendation method, obtaining the parts of each minimum loop road in the road network to be processed in the preset area may include the following steps:
[0095] In step A1, a road section belonging to a non-minimum loop road in the road network to be processed in the preset area is obtained and recorded as a new visited road section;
[0096] In step A2, the adjacent road segments of the visited road segment in the traveling direction are obtained, wherein the adjacent road segments include a road segment located in a first direction area of the visited road segment, closest to the visited road segment, and adjacent to the visited road segment;
[0097] In step A3, the target adjacent road segment with the smallest angle with the visited road segment among the adjacent road segments is recorded as a new visited road segment;
[0098] In step A4, until the target adjacent road segment corresponding to the new visited road segment has been recorded as a visited road segment, the loop composed of the road segments recorded as visited road segments this time is recorded as the minimum loop road.
[0099] In this implementation, each road section in the road network to be processed may be searched, and the above steps A1 to A4 may be cyclically performed to generate a minimum loop road until no minimum loop road appears.
[0100] In this embodiment, any section that does not belong to the minimum loop road can be selected from the road network to be processed and marked as a visited section. There are multiple sections in the direction of travel of the visited section. From these sections, the section located in the first direction area of the visited section, the section closest to the visited section, and the section connected to the visited section is selected. Here, according to the driving direction of the roads in each country, the first direction area can be the left area or the right area. For example, for countries that drive on the right, the first direction area can be the right area, and the nearest right-deflected section in the direction of travel of the visited section is obtained. The target adjacent section with the smallest angle with the visited section among the adjacent sections can be recorded as a new visited section, and steps A1 to A3 are repeated to obtain the visited sections until the target adjacent section corresponding to the latest visited section has been recorded as a visited section, indicating that these visited roads have formed a loop. At this time, the loop composed of the sections recorded as visited sections can be recorded as the minimum loop road. Then, the above steps A1 to A4 can be repeated to obtain the minimum loop road until no minimum loop road appears, so that all the minimum loop roads in the road network to be processed in the preset area can be obtained.
[0101] In this implementation, the method for obtaining the minimum loop road is simple and accurate.
[0102] In one embodiment of the present disclosure, the above-mentioned boarding point recommendation method may further include the following steps:
[0103] The minimum self-loop roads and blocked roads are screened out from the road network of the preset area except the road sections in the AOI area to obtain the road network to be processed, wherein the minimum self-loop road includes a road that forms a minimum loop by looping in different directions on the same road, and the blocked road includes a road that cannot enter other sections in the road network at one end.
[0104] In this embodiment, there are some roads in the road network of the preset area except the road section in the AOI area that cannot form the minimum loop road, such as the minimum self-loop road and the partition road. The minimum self-loop road refers to the road that forms the minimum loop by looping in the positive and negative directions of the same road, that is, each two-way road section. Since it is impossible for a user to take a taxi in the middle area of the road section, the minimum self-loop road can be screened out. The partition road refers to a road that cannot enter other sections in the road network from one end of the road, such as a dead-end road. Since the partition road cannot enter other sections in the road network, the partition road cannot form a minimum loop with other sections in the road network, so these partition roads can also be screened out.
[0105] This implementation method can first screen out the minimum self-loop roads and partition roads from the road network. By pre-screening non-minimum loop roads, the rate of generating each minimum loop road can be accelerated, saving the generation time of the minimum loop road.
[0106] In one embodiment of the present disclosure, the above-mentioned boarding point recommendation method may further include the following steps:
[0107] When the loop composed of the road segments recorded as visited road segments this time includes a plurality of loops with intersections, the plurality of loops with intersections are interrupted at the intersections to obtain a plurality of minimum loops.
[0108] In this embodiment, when the minimum loop path is generated according to the above steps A1 to A4, there may be Figure 3 As shown, the loop 30 composed of the sections recorded as visited sections this time includes multiple (such as Figure 3 In this case, the multiple loops with intersections can be broken from the intersections to obtain multiple minimum loops. Figure 3 As shown, the loop can be broken at four intersections to obtain five minimum loop roads, namely minimum loop road 301, minimum loop road 302, minimum loop road 303, minimum loop road 304 and minimum loop road 305.
[0109] In one embodiment of the present disclosure, the above-mentioned boarding point recommendation method may further include the following steps:
[0110] Obtain the coverage area corresponding to each candidate recommended boarding point;
[0111] Obtaining a coverage rate corresponding to each candidate recommended boarding point, wherein the coverage rate includes a ratio between the number of historical real boarding points in the coverage area and the number of all historical real boarding points;
[0112] The candidate recommended boarding points whose coverage rate meets the preset conditions are determined as recommended boarding points.
[0113] In this embodiment, the coverage area corresponding to each candidate recommended boarding point can be obtained. The coverage area refers to the area whose distance from the candidate recommended boarding point is within a preset threshold. For example, the coverage area can be the area whose distance from the candidate recommended boarding point is within 30m.
[0114] In this embodiment, the ratio between the number of historical real boarding points in the coverage area of each candidate recommended boarding point and the number of all historical real boarding points can be calculated as the coverage rate. The larger the coverage rate, the more users will ride near the candidate recommended boarding point. The candidate recommended boarding points whose coverage rate meets the preset conditions can be determined as recommended boarding points. The preset conditions include that the coverage rate is greater than a preset threshold or the coverage rate is the highest N, where N is an integer greater than or equal to 1. For example, the candidate recommended boarding points with a coverage rate greater than 50% or a coverage rate in the top N=3 can be selected as recommended boarding points.
[0115] In a possible implementation, step S103 in the above-mentioned boarding point recommendation method, i.e., obtaining the historical real boarding points corresponding to each historical user's initial location point being located in the current grid area, comprises the following steps:
[0116] In response to the area surrounded by the minimum loop road covering the current grid area, the historical real boarding points corresponding to each historical user's initial position point being located within the current grid area are obtained.
[0117] In this embodiment, only when the current grid area falls into the area surrounded by the minimum loop road, the historical real boarding points are obtained for boarding point recommendation. At this time, the historical real boarding points obtained are basically all on the minimum loop road. The recommended boarding points selected based on the historical real boarding points will be more accurate, and there will be no problem of boarding across the road.
[0118] Specifically, an embodiment of the present disclosure provides a method for recommending a boarding point, which can first screen out the minimum self-loop road and the partitioned road from the road network in the preset area except the road section in the AOI area to obtain a road network to be processed, wherein the minimum self-loop road includes a road that forms a minimum loop by circling the same road in different directions, and the partitioned road includes a road that cannot enter other sections in the road network, and then obtain each minimum loop road in the road network to be processed in the preset area, and the specific acquisition method can be cyclically performed in the following manner: obtain a road section in the road network to be processed that is not a minimum loop road and is recorded as a visited road section; obtain the visited road section in The adjacent road sections in the traveling direction include the road sections located in the first direction area of the visited road section, the road sections closest to the visited road section, and the road sections connected to the visited road section; the target adjacent road section with the smallest angle with the visited road section among the adjacent road sections is recorded as a new visited road section, until the target adjacent road section corresponding to the latest visited road section has been recorded as a visited road section, and the loop composed of the road sections recorded as the visited road section this time is recorded as the minimum loop road. If the loop composed of the road sections recorded as the visited road section this time includes multiple loops with intersections, the multiple loops with intersections are interrupted at the intersections to obtain multiple minimum loop roads. After obtaining the minimum loop roads in the road network to be processed in the preset area, the boarding point recommendation can be performed based on the minimum loop road. The specific recommendation method may be: in response to the user's initial position point not being within the AOI area, the current minimum loop road, the current grid area, and the extended grid area where the user's initial position point is located are obtained, and the extended grid area includes the current grid area and each grid area within N grid areas separated from the current grid area; the candidate recommended boarding point corresponding to the extended grid area on the current minimum loop road is obtained; the historical real boarding point corresponding to the historical initial position point when it is located in the current grid area is obtained; the coverage area corresponding to each candidate recommended boarding point is obtained, and the coverage area includes an area whose spacing from the candidate recommended boarding point is within a preset threshold; the coverage rate corresponding to each candidate recommended boarding point is obtained, and the coverage rate includes the ratio between the number of historical real boarding points in the coverage area and the number of all historical real boarding points; the candidate recommended boarding point whose coverage rate meets the preset conditions is determined as the recommended boarding point, and the preset conditions include the coverage rate being greater than the preset threshold or the highest N coverage rates, and N is an integer greater than or equal to 1.
[0119] Figure 4 The structural block diagram of the device for recommending a boarding point according to an embodiment of the present disclosure is shown. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both.
[0120] like Figure 4As shown, the boarding point recommendation device 400 includes a first acquisition module 410 , a second acquisition module 420 , a third acquisition module 430 and a recommendation module 440 .
[0121] The first acquisition module 410 is configured to acquire a current minimum loop road, a current grid area, and an extended grid area where the current user initial position point is located, wherein the current minimum loop road includes the shortest loop around the current user initial position point, the current grid area includes the grid area where the current user initial position point is located, and the extended grid area includes the current grid area and each grid area within N grid areas separated from the current grid area, where N is an integer greater than or equal to 0;
[0122] The second acquisition module 420 is configured to acquire the candidate recommended boarding point on the current minimum loop road corresponding to the extended grid area;
[0123] The third acquisition module 430 is configured to acquire the historical real boarding points corresponding to each historical user initial position point located in the current grid area;
[0124] The recommendation module 440 is configured to filter the recommended boarding points from the candidate recommended boarding points based on the positional relationship between the candidate recommended boarding points and the historical real boarding points.
[0125] In a possible implementation, the device further includes:
[0126] The fourth acquisition module is configured to acquire each minimum loop road in the road network to be processed in a preset area, wherein the road network to be processed includes the road network excluding the road sections in the AOI area.
[0127] In a possible implementation, the fourth acquisition module is configured to:
[0128] Obtain a road section that is not a minimum loop road in the road network to be processed and record it as a visited road section;
[0129] Acquire adjacent road segments of the visited road segment in the traveling direction, wherein the adjacent road segments include a road segment located in a first direction area of the visited road segment, closest to the visited road segment, and connected to the visited road segment;
[0130] The target adjacent road segment with the smallest angle with the visited road segment among the adjacent road segments is recorded as a new visited road segment, until the target adjacent road segment corresponding to the latest visited road segment has been recorded as a visited road segment, and the loop composed of the road segments recorded as visited road segments this time is recorded as the minimum loop road.
[0131] In a possible implementation, the device further includes:
[0132] The screening module is configured to screen out the minimum self-loop roads and blocked roads from the road network of the preset area except the road sections in the AOI area to obtain the road network to be processed, wherein the minimum self-loop road includes the road that forms the minimum loop by looping in different directions on the same road, and the blocked road includes the road that cannot enter other sections in the road network.
[0133] In a possible implementation, the device further includes:
[0134] The interruption module is configured to interrupt the multiple loops with intersections at the intersections to obtain multiple minimum loops when the loop composed of the road segments recorded as visited road segments includes multiple loops with intersections.
[0135] In a possible implementation, the recommendation module 440 is configured to:
[0136] Obtaining a coverage area corresponding to each candidate recommended boarding point, wherein the coverage area includes an area whose distance from the candidate recommended boarding point is within a preset threshold;
[0137] Obtaining a coverage rate corresponding to each candidate recommended boarding point, wherein the coverage rate includes a ratio between the number of historical real boarding points in the coverage area and the number of all historical real boarding points;
[0138] The candidate recommended boarding points whose coverage rate meets the preset conditions are determined as recommended boarding points.
[0139] In a possible implementation manner, the preset condition includes that the coverage rate is greater than a preset threshold or the coverage rate is the highest N, where N is an integer greater than or equal to 1.
[0140] In a possible implementation, the third acquisition module 430 is configured to:
[0141] In response to the area surrounded by the minimum loop road covering the current grid area, the historical real boarding points corresponding to each historical user initial position point located in the current grid area are obtained.
[0142] In a possible implementation, the first acquisition module 410 is configured to:
[0143] In response to the current user initial location point not being within the AOI area, a current minimum loop road, a current grid area, and an extended grid area where the user initial location point is located are obtained.
[0144] The boarding point recommendation device in this embodiment corresponds to the above-mentioned boarding point recommendation method. For specific details, please refer to the above-mentioned description of the boarding point recommendation method, which will not be repeated here.
[0145] The present disclosure also discloses an electronic device, Figure 5 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown.
[0146] like Figure 5 As shown, the electronic device 500 includes a memory 501 and a processor 502, wherein the memory 501 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 502 to implement the method according to an embodiment of the present disclosure.
[0147] Figure 6 A schematic diagram showing the structure of a computer system suitable for implementing the method according to an embodiment of the present disclosure is shown.
[0148] like Figure 6 As shown, the computer system 600 includes a processing unit 601, which can perform various processes in the above-mentioned embodiments according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The processing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0149] The following components are connected to the I / O interface 605: an input part 606 including a keyboard, a mouse, etc.; an output part 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part 608 including a hard disk, etc.; and a communication part 609 including a network interface card such as a LAN card, a modem, etc. The communication part 609 performs communication processing via a network such as the Internet. The drive 610 is also connected to the I / O interface 605 as needed. Removable media 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive 610 as needed, so that the computer program read therefrom is installed into the storage part 608 as needed. Among them, the processing unit 601 can be implemented as a processing unit such as a CPU, a GPU, a TPU, an FPGA, an NPU, etc.
[0150] In particular, according to an embodiment of the present disclosure, the method described above can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes computer instructions, and the computer instructions are executed by a processor to implement the method steps described above. In such an embodiment, the computer program product can be downloaded and installed from a network through the communication part 609, and / or installed from a removable medium 611.
[0151] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0152] The units or modules involved in the embodiments described in the present disclosure may be implemented by software or programmable hardware. The units or modules described may also be set in a processor, and the names of these units or modules do not constitute limitations on the units or modules themselves in some cases.
[0153] As another aspect, the present disclosure further provides a computer-readable storage medium, which may be a computer-readable storage medium included in the electronic device or computer system in the above embodiment; or a computer-readable storage medium that exists independently and is not assembled into a device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the method described in the present disclosure.
[0154] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.
Claims
1. A method for recommending a boarding point, comprising: Obtaining a current minimum loop road, a current grid area, and an extended grid area where the current user initial position point is located, wherein the current minimum loop road includes the shortest loop around the current user initial position point, the current grid area includes the grid area where the current user initial position point is located, and the extended grid area includes the current grid area and each grid area within N grid areas separated from the current grid area, where N is an integer greater than or equal to 0; Obtain the candidate recommended boarding point on the current minimum loop road corresponding to the extended grid area; Obtaining the historical real boarding points corresponding to each historical user's initial location point within the current grid area; Based on the positional relationship between each candidate recommended boarding point and each historical real boarding point, a recommended boarding point is selected from the candidate recommended boarding points.
2. The method according to claim 1, wherein: The method further comprises: The minimum loop roads in the road network to be processed in the preset area are obtained, wherein the road network to be processed includes the road network except the road sections in the AOI area.
3. The method according to claim 2, wherein: The step of obtaining each minimum loop road in the road network to be processed in the preset area includes: Obtain a road section that is not a minimum loop road in the road network to be processed and record it as a visited road section; Acquire adjacent road segments of the visited road segment in the traveling direction, wherein the adjacent road segments include a road segment located in a first direction area of the visited road segment, closest to the visited road segment, and connected to the visited road segment; The target adjacent road segment with the smallest angle with the visited road segment among the adjacent road segments is recorded as a new visited road segment, until the target adjacent road segment corresponding to the latest visited road segment has been recorded as a visited road segment, and the loop composed of the road segments recorded as visited road segments this time is recorded as the minimum loop road.
4. The method according to claim 2, wherein: The method further comprises: The minimum self-loop roads and blocked roads are screened out from the road network of the preset area except the road sections in the AOI area to obtain the road network to be processed, wherein the minimum self-loop road includes a road that forms a minimum loop by looping in different directions on the same road, and the blocked road includes a road that cannot enter other sections in the road network at one end.
5. The method according to claim 3, wherein: The method further comprises: When the loop composed of the road segments recorded as visited road segments this time includes a plurality of loops with intersections, the plurality of loops with intersections are interrupted at the intersections to obtain a plurality of minimum loops.
6. The method according to claim 1, wherein: The step of selecting a recommended boarding point from the candidate recommended boarding points based on the positional relationship between the candidate recommended boarding points and the historical real boarding points includes: Obtaining a coverage area corresponding to each candidate recommended boarding point, wherein the coverage area includes an area whose distance from the candidate recommended boarding point is within a preset threshold; Obtaining a coverage rate corresponding to each candidate recommended boarding point, wherein the coverage rate includes a ratio between the number of historical real boarding points in the coverage area and the number of all historical real boarding points; The candidate recommended boarding points whose coverage rate meets the preset conditions are determined as recommended boarding points.
7. The method according to claim 6, wherein: The preset conditions include that the coverage rate is greater than a preset threshold or the coverage rates are the highest K, where K is an integer greater than or equal to 1.
8. The method according to claim 1, wherein: The obtaining of the historical real boarding points corresponding to each historical user initial position point within the current grid area includes: In response to the area surrounded by the minimum loop road covering the current grid area, the historical real boarding points corresponding to each historical user initial position point located in the current grid area are obtained.
9. The method according to claim 1, wherein: The obtaining of the current minimum loop road, the current grid area, and the extended grid area where the current user's initial position point is located includes: In response to the current user initial location point not being within the AOI area, a current minimum loop road, a current grid area, and an extended grid area where the user initial location point is located are obtained.
10. A device for recommending a boarding point, comprising: A first acquisition module is configured to acquire a current minimum loop road, a current grid area, and an extended grid area where the current user initial position point is located, wherein the current minimum loop road includes the shortest loop around the current user initial position point, the current grid area includes the grid area where the current user initial position point is located, and the extended grid area includes the current grid area and each grid area within N grid areas separated from the current grid area, where N is an integer greater than or equal to 0; A second acquisition module is configured to acquire a candidate recommended boarding point on the current minimum loop road corresponding to the extended grid area; The third acquisition module is configured to acquire the historical real boarding point corresponding to each historical user's initial location point being located within the current grid area; The recommendation module is configured to filter the recommended boarding points from the candidate recommended boarding points based on the positional relationship between the candidate recommended boarding points and the historical real boarding points.
11. An electronic device comprising a memory and a processor; wherein: The memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method steps described in any one of claims 1 to 9.
12. A readable storage medium having computer instructions stored thereon, wherein the computer instructions, when executed by a processor, implement the method steps described in any one of claims 1 to 9.
13. A computer program product comprising computer instructions, which, when executed by a processor, implement the method steps of any one of claims 1 to 9.
