Vehicle parking service area analysis method and device, equipment and medium
By pre-establishing the spatial binding relationship between the service area section group and the service area information, analyzing the vehicle trajectory data, the omissions and inefficiency of the vehicle docking service area are solved, and efficient and accurate service area docking analysis is achieved.
Patent Information
- Application Number
- CN202510308119.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-14
- Publication Date
- 2025-08-01
AI Technical Summary
In the prior art, there are problems of missing points and inaccurate fence drawing in vehicle trajectory data, resulting in omissions and inefficiency in the service area docking analysis results.
By pre-establishing the spatial binding relationship between the service area section group and the service area information, obtaining the target road data associated with the vehicle's driving trajectory, and analyzing the inclusion relationship between the road section and the service area section group to determine the service area where the vehicle parks.
It improves the recognition rate of service area docking, reduces the amount of calculation, improves analysis efficiency, and avoids the problems of omission of trajectory points and inaccurate fence drawing.
Smart Images

Figure CN120408259A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of transportation technologies, and particularly to an analysis method, device, equipment and medium for a vehicle stopping at a service area. Background Art
[0002] With the development of logistics, truck operation platforms play an increasingly important role. Truck operation platforms serve most trucks across the country and independently obtain a large amount of vehicle trajectory data. Based on these massive vehicle trajectory data, various logistics operation characteristics of trucks can be analyzed, bringing convenience to new intelligent transportation, especially analyzing the stopping behavior of vehicles at service areas based on vehicle trajectory data.
[0003] Currently, the service areas are marked by manually drawing fences, and the calculation of trucks entering and leaving the fences of each service area is performed based on vehicle trajectory data to achieve the analysis of vehicles stopping at service areas.
[0004] However, vehicle trajectories usually have problems such as missing reporting points and too large reporting intervals, and the fences also have problems with too small drawing ranges, which may result in no reporting points within the fences of service areas, causing omissions in the analysis results of vehicles stopping at service areas. Summary of the Invention
[0005] The purpose of this application is to propose an analysis method, device, equipment and medium for a vehicle stopping at a service area in view of the above-mentioned deficiencies in the prior art, and this purpose is achieved through the following technical solutions.
[0006] The first aspect of this application proposes an analysis method for a vehicle stopping at a service area, and the method includes:
[0007] Obtain target road data associated with the trajectory data of a target vehicle, where the target road data includes at least one section passed by the trajectory data of the target vehicle;
[0008] Obtain a pre-established spatial binding relationship, where the spatial binding relationship includes multiple service area section groups and service area information bound to each service area section group;
[0009] Obtain the target service area information where the target vehicle stops by analyzing the inclusion relationship between each section in the target road data and the multiple service area section groups.
[0010] The second aspect of this application proposes an analysis device for a vehicle stopping at a service area, and the device includes:
[0011] A first acquisition module, configured to obtain target road data associated with the trajectory data of a target vehicle, where the target road data includes at least one section passed by the trajectory data of the target vehicle;
[0012] A second acquisition module, configured to acquire a pre-established spatial binding relationship, where the spatial binding relationship includes multiple service area section groups and service area information bound to each service area section group;
[0013] An analysis module, configured to obtain the target service area information where the target vehicle stops by analyzing the inclusion relationship between each section in the target road data and the multiple service area section groups.
[0014] A third aspect of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the program to implement the method as described in the first aspect above.
[0015] A fourth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, and the program is executed by a processor to implement the method as described in the first aspect above.
[0016] Based on the above-described method, device, equipment, and medium for analyzing vehicle stops at service areas, the present application has at least the following beneficial effects or advantages:
[0017] By pre-establishing a spatial binding relationship including multiple service area section groups and service area information bound to each service area section group, acquiring target road data associated with the vehicle driving trajectory, and analyzing the inclusion relationship between each section in the target road data and these service area section groups, the service area where the vehicle stops can be obtained, thereby being able to avoid problems such as missing trajectory reporting points, large reporting point intervals, and service area fence drawing, and improving the recognition rate of vehicle stops at service areas. And because the spatial binding relationship is established in advance, each time only by analyzing the inclusion relationship between the target road data associated with the vehicle driving trajectory and the service area section groups, the analysis of vehicle stops at service areas can be realized. Compared with the prior art that calculates the entry and exit of each service area fence based on the driving trajectory, the calculation amount can be reduced, and the analysis efficiency of vehicle stops at service areas can be improved.
[0018] The above description is only an overview of the technical solution of the present application. In order to be able to understand the technical means of the present application more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features, and advantages of the present application more obvious and understandable, the specific embodiments of the present application are hereinafter specifically exemplified. Description of the Drawings
[0019] The drawings described herein are used to provide a further understanding of the present application, and constitute a part of the present application. The schematic embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation to the present application. In the drawings:
[0020] Figure 1The flowchart of an embodiment of an analysis method for a vehicle parking service area shown according to an exemplary embodiment;
[0021] Figure 2 The schematic diagram of the spatial position relationship between a service area and a service area road segment group shown according to an exemplary embodiment;
[0022] Figure 3 The schematic structural diagram of an analysis device for a vehicle parking service area shown according to an exemplary embodiment;
[0023] Figure 4 The schematic hardware structure diagram of an electronic device shown according to an exemplary embodiment;
[0024] Figure 5 The schematic structural diagram of a storage medium shown according to an exemplary embodiment. Detailed implementation manners
[0025] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0026] The terms used in the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. The singular forms "a", "the", and "said" used in the present application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0027] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "while" or "in response to determining".
[0028] In order to improve the recognition rate of service area stop analysis, this application abandons the method of using fences to mark service areas for service area stop analysis. By pre - establishing a spatial binding relationship including multiple service area road segment groups and the service area information bound to each service area road segment group, and obtaining the target road data associated with the vehicle driving trajectory, and by analyzing the inclusion relationship between each road segment in the target road data and these service area road segment groups, the service area where the vehicle stops can be obtained, thus avoiding problems such as missing trajectory reporting points, large reporting intervals, and drawing of service area fences, and improving the recognition rate of service area stops.
[0029] Moreover, since the spatial binding relationship is established in advance, each time only by analyzing the inclusion relationship between the target road data associated with the vehicle driving trajectory and the service area road segment groups, the analysis of service area stops can be realized. Compared with the prior art that calculates the entry and exit of each service area fence based on the driving trajectory, the calculation amount can be reduced and the analysis efficiency of the vehicle stopping at the service area can be improved.
[0030] The following uses specific embodiments to elaborate in detail on the technical solution of this application and how the technical solution of this application solves the foregoing technical problems. The several specific embodiments listed can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The following will describe the embodiments of this application in detail with reference to the accompanying drawings.
[0031] Figure 1 FIG. is a flowchart of an embodiment of a method for analyzing a vehicle stopping at a service area shown according to an exemplary embodiment, including the following steps 101 to 103:
[0032] Step 101: Obtain target road data associated with the trajectory data of the target vehicle, where the target road data includes at least one road segment passed by the trajectory data of the target vehicle;
[0033] Step 102: Obtain the pre - established spatial binding relationship, where the spatial binding relationship includes multiple service area road segment groups and the service area information bound to each service area road segment group;
[0034] Step 103: Obtain the target service area information where the target vehicle stops by analyzing the inclusion relationship between each road segment in the target road data and the multiple service area road segment groups.
[0035] The trajectory data is the driving trajectory formed by reporting trajectory points during the vehicle driving process. The target road data includes the road segments associated with the trajectory data from the road network, which can also be understood as the road segments passed by the trajectory data. The target road data can be bound and associated during the trajectory cleaning process or after the trajectory cleaning.
[0036] The spatial binding relationship can be understood as the pairing relationship between each service area road section group and the service area information. A service area road section group represents a group of road sections with a connected relationship in space, and the road attributes of the road sections in this road section group are all the first attribute. The first attribute is used to indicate that the road section belongs to the service area, and the service area information bound to this road section group is used to indicate that all the road sections in this road section group belong to the service area indicated by this service area information.
[0037] Exemplarily, the service area information can be service area POI (Point of Interest) information, such as longitude and latitude data, direction data, road data, service area name, etc.
[0038] The inclusion relationship can be understood as which service area road section groups contain the road sections in the target road data and which road sections are included.
[0039] So far, the analysis process of the vehicle stopping at the service area shown above Figure 1 is completed. By pre - establishing a spatial binding relationship including multiple service area road section groups and the service area information bound to each service area road section group, obtaining the target road data associated with the vehicle driving trajectory, and analyzing the inclusion relationship between each road section in the target road data and these service area road section groups, the service area where the vehicle stops can be obtained, thus avoiding problems such as missing trajectory reporting points, large reporting point intervals, and service area fence drawing, and improving the recognition rate of vehicle stops at the service area. And because the spatial binding relationship is established in advance, each time only by analyzing the inclusion relationship between the target road data associated with the vehicle driving trajectory and the service area road section groups, the analysis of vehicle stops at the service area can be realized. Compared with the prior art that calculates the entry and exit of each service area fence based on the driving trajectory, the calculation amount can be reduced, and the analysis efficiency of vehicle stops at the service area can be improved.
[0040] In some embodiments of the present application, the establishment process of the spatial binding relationship in step 102 above may include:
[0041] Select multiple first road sections with the road attribute of the first attribute from the preset road network. According to the spatial connectivity relationship between the multiple first road sections, divide the multiple first road sections into multiple service area road section groups, and according to the spatial position relationship between each service area and the multiple service area road section groups, bind the service area information of one service area to each service area road section group.
[0042] The preset road network can be understood as a network represented by a number of relatively short road sections divided from all roads. The data representation of each road section can include: the starting longitude and latitude and the ending longitude and latitude of the road line segment, road attribute information, and road grade. Among them, the road attribute information includes whether it belongs to the service area, whether there is a toll station, whether it is the main line, etc., and the road grade includes expressway, express road, national road, provincial road, etc.
[0043] The first attribute is used to indicate that a road segment belongs to a service area. That is to say, the selected first road segments are all road segments in the service area. Therefore, the first road segments can also be called service area road segments.
[0044] The spatial connectivity relationship can be understood as the spatial contact relationship between road segments, that is, one end point of a road segment is the same as the end point of another road segment, which means that the two road segments have a spatial connectivity relationship.
[0045] Any road segment in each service area road segment group will not have a spatial contact relationship with any road segment in other service area road segment groups. That is to say, each service area road segment group is an independent entity.
[0046] The spatial position relationship is used to indicate whether the spatial position of the service area road segment group and the service area is on the same side of the main road. Only when the spatial position relationship meets certain conditions can the service area be bound to the service area road segment group.
[0047] In this embodiment, after screening out all service area road segments from the road network, since there is a spatial contact relationship between the road segments in the same service area and there is no spatial contact relationship between the road segments in different service areas, the service area road segments are grouped by using road network connectivity analysis to group the road segments belonging to the same service area into one group, and a service area is bound to each service area road segment group according to the spatial position relationship between each service area and multiple service area road segment groups, so as to realize the service area marking of each service area road segment group, which is convenient for analyzing at which service areas the vehicles stop.
[0048] In some embodiments of the present application, the process of dividing multiple first road segments into multiple service area road segment groups according to the spatial connectivity relationship between the multiple first road segments may include:
[0049] For any road segment among the multiple first road segments, mark the preceding road segment and the succeeding road segment for this road segment respectively. Select the target road segments that do not have a preceding road segment from the multiple first road segments. Then, for each selected target road segment, starting from the target road segment, search for the road segments in the multiple first road segments that have any same end point as the starting road segment. Take the searched road segments as the starting road segments, and continue to execute the step of searching for the road segments in the multiple first road segments that have any same end point as the starting road segment until no road segment that has any same end point as the starting road segment can be searched. Divide the target road segments and the searched road segments into one service area road segment group.
[0050] Among them, the preceding section can be understood as the section that will be passed when driving on any one of the sections, and the succeeding section can be understood as the section that has been passed when driving on any one of the sections. Both the preceding section and the succeeding section belong to multiple first sections. The end point of the preceding section is the same as the starting point of any one of the sections, and the starting point of the succeeding section is the same as the end point of any one of the sections. It should be noted that the number of the preceding section and the succeeding section of any one of the sections can be multiple, or can be 1, and of course can also be 0.
[0051] The target section can be regarded as the entrance section. By traversing each target section in turn and searching cyclically with the currently traversed target section as a unit, a service area section group can be established for each traversed target section.
[0052] The section having any same end point as the starting section refers to the section having a contact relationship with the starting section, that is, searching for the preceding section and / or the succeeding section of the starting section. Here, it should be noted that there may be two sections having any same end point as the starting section, that is, one contacts the starting point of the starting section, and the other contacts the end point of the starting section. At this time, the two searched sections need to be used as the starting section for further searching respectively.
[0053] In this embodiment, by marking the preceding section and the succeeding section for each first section, it is convenient to analyze the spatial connection relationship between the first sections by using these preceding sections and succeeding sections, so as to realize the grouping of multiple first sections.
[0054] It should be noted that after dividing multiple first sections into multiple service area section groups, one of the repeated service area section groups in the multiple service area section groups can be retained. Among them, the repeated service area section group means that the sections in the two combinations are the same.
[0055] In some embodiments of the present application, for the process of binding the service area information of a service area to each service area section group according to the spatial position relationship between each service area and the multiple service area section groups, it may include:
[0056] For each service area section group, select multiple second sections with the second attribute located near the service area section group from the preset road network, select at least one candidate service area located near the service area section group from each service area, then determine the spatial position relationship between each candidate service area and the service area section group relative to the multiple second sections, and bind the service area information of a candidate service area to the service area section group according to the spatial position relationship.
[0057] Among them, the second attribute is used to indicate that the section belongs to the main line road. That is to say, the selected second sections are the main roads near the service area and do not belong to the sections in the service area. Therefore, the second sections can also be called main line sections.
[0058] A candidate service area can be understood as a service area that may be represented by a service area road section group. Considering that service areas in two driving directions on a highway are usually not far apart, there are generally two candidate service areas selected near the service area road section group.
[0059] It should be noted here that the second road section near the service area road section group refers to the road section within the expanded area determined according to the service area road section group, and at least one candidate service area near the service area road section group refers to the service area within the expanded area determined according to the service area road section group. Among them, the expanded area can be understood as the geographical area formed after expanding the circumscribed rectangle of the service area road section group by a certain distance (such as 1 kilometer).
[0060] In this embodiment, by taking the main road section near the service area road section group as a medium, the relative position relationship between the candidate service area near the service area road section group and the service area road section group is analyzed to bind an accurate service area to the service area road section group.
[0061] In some embodiments of the present application, the process of determining the spatial position relationship between each candidate service area and the service area road section group with respect to multiple second road sections may include:
[0062] For each candidate service area, find the point closest to the candidate service area among the road sections included in the service area road section group, and perform cross-analysis on the connection line from this point to the candidate service area and multiple second road sections. If any one of the multiple second road sections intersects with this connection line, it is determined that the candidate service area and the service area road section group are located on different sides of the multiple second road sections; if none of the multiple second road sections intersects with this connection line, it is determined that the candidate service area and the service area road section group are located on the same side of the multiple second road sections.
[0063] It should be noted that the point closest to the candidate service area can be any point on any road section in the service area road section group, and the process of finding the closest point can be implemented using existing relevant functions, which is not specifically limited in this application.
[0064] Since the representation form of the service area can be a POI, the candidate service area can be regarded as a point, so that the connection line between the found closest point and the candidate service area can be made, and this connection line can also be regarded as a road section.
[0065] The spatial position relationship includes two types: the candidate service area and the service area road section group are located on different sides of the multiple second road sections, and the candidate service area and the service area road section group are located on the same side of the multiple second road sections.
[0066] Such as Figure 2As shown, the candidate service areas for service area road segment group A and service area road segment group B are both POI point A. For the connection line between the points in service area road segment group A and POI point A, it does not intersect with the main road segment. Therefore, the candidate service area POI point A and service area road segment group A are both on the same side of the main road segment.
[0067] For the connection line between the points in service area road segment group B and POI point A, it intersects with the main road segment. Therefore, the candidate service area POI point A and service area road segment group B are on different sides of the main road segment, that is, on opposite sides.
[0068] In this embodiment, by making the connection line of the points that are the closest in spatial distance between the candidate service area and the service area road segment group, this connection line can also be regarded as a road segment. If this road segment does not intersect with the main road segment near the service area road segment group, it means that the candidate service area and the service area road segment group are both on the same side of the main road segment. On the contrary, it means that the candidate service area and the service area road segment group are on different sides of the main road segment. By using the spatial position relationship of the same side and different sides for limitation, it is easy to distinguish whether the candidate service area is the real service area represented by the service area road segment group.
[0069] In some embodiments of the present application, the process of binding the service area information of a candidate service area to the service area road segment group according to this spatial position relationship may include:
[0070] If there is 1 candidate service area among at least one candidate service area that is on the same side of multiple second road segments as the service area road segment group, then bind the service area information of this candidate service area to the service area road segment group. If there are multiple candidate service areas among at least one candidate service area that are all on the same side of multiple second road segments as the service area road segment group or there is no candidate service area that is on the same side of multiple second road segments as the service area road segment group, then display the service area road segment group and at least one candidate service area in the preset map. When receiving the target service area specified by the user for the service area road segment group, bind the service area information of the target service area to the service area road segment group.
[0071] In this embodiment, if there is only 1 candidate service area on the same side of the main road segment as the service area road segment group, binding can be carried out without doubt. If there is more than 1 candidate service area on the same side or there is no candidate service area on the same side, by displaying on the map and having the user manually specify the bound service area for the service area road segment group, accurate binding of the service area can be achieved, thereby improving the recognition rate and accuracy of subsequent service area stop analysis.
[0072] In some embodiments of the present application, the step 103 of obtaining the target service area information where the target vehicle stops by analyzing the inclusion relationship between each road segment in the target road data and multiple service area road segment groups may include:
[0073] For each service area section group, determine whether the target road data contains any section in the service area section group. If so, use the service area information bound to the service area section group as the target service area information where the target vehicle stops.
[0074] That is to say, if a section member of a service area section group appears in the target road data associated with the trajectory data, it is determined that the vehicle has entered the service area bound to the service area section group.
[0075] It should be noted that the target service area information where the target vehicle stops can include one or more than one.
[0076] Based on the descriptions of the above embodiments, for the convenience of understanding the technical solution of the present application in detail, the following gives a specific implementation process for analyzing the vehicle stopping at the service area, which includes a data preparation stage and an application stage.
[0077] The data preparation stage includes:
[0078] 1. Group the service area sections according to the spatial contact relationship
[0079] 1) Select the set of sections with the road attribute of "belonging to the service area", traverse each section in the set of sections in turn, mark the ID of the previous section and the previous quantity for the currently traversed section, and mark the ID of the subsequent section and the quantity, and create a spatial dictionary.
[0080] 2) Find the sections with empty previous sections as the entrance sections according to the spatial dictionary in 1).
[0081] 3) Traverse the entrance sections in 2) in turn, create a new service area section group with the entrance section as the unit, and perform a loop with the entrance section as the input. The loop condition is to judge whether the two endpoints of the input section are in contact with other sections in the set of sections. If so, add the sections in contact to the service area section group, continue to use the sections in contact as the input and judge whether the two endpoints are in contact with other sections in the set of sections until there are no sections in contact, and then jump out of the loop.
[0082] 4) After the operation in 3) is completed, the grouping of the service area sections is completed.
[0083] 2. Use the main line section as a medium to judge whether the service area POI and the service area section group are on the same side of the main line section), and pair the service area POI on the same side with the service area section group
[0084] 1) Take each service area section group as the unit, use spatial retrieval to find all main line sections within a distance of 1 km, and define them as the main line section group.
[0085] 2) Retrieve service area POIs (usually 2) near each service area section group in units of 1 km in space
[0086] 3) Calculate the point in the spatial distance between the service area POIs found in 2) and the service area section group that is the closest, connect this point with the service area POI, and perform an intersection analysis on the connection line and the main road section group found. If any main road section intersects with the connection line, then the service area POI and the service area section group are on the opposite sides of the main road section group. Otherwise, the service area POI and the service area section group are on the same side of the main road section group.
[0087] 4) Bind the service area POI and the service area section group with only one same side.
[0088] 3. The application stage includes: the judgment logic for the vehicle trajectory to enter and exit the service area
[0089] 1) If a section member of a certain service area section group appears in the sections associated with the vehicle trajectory, it is determined that the vehicle has entered the service area POI bound by the service area section group.
[0090] Corresponding to the embodiments of the above-mentioned analysis method for a vehicle stopping at a service area, the present application also provides embodiments of an analysis device for a vehicle stopping at a service area.
[0091] Figure 3 As shown in the structural schematic diagram of an analysis device for a vehicle stopping at a service area according to an exemplary embodiment, the device is used to execute the analysis method for a vehicle stopping at a service area provided in any of the above embodiments, as Figure 3 shown, the analysis device for a vehicle stopping at a service area includes:
[0092] The first acquisition module 410 is used to acquire target road data associated with the trajectory data of the target vehicle, and the target road data includes at least one section passed by the trajectory data of the target vehicle;
[0093] The second acquisition module 420 is used to acquire a pre-established spatial binding relationship, and the spatial binding relationship includes multiple service area section groups and service area information bound to each service area section group;
[0094] The analysis module 430 is used to obtain the target service area information where the target vehicle stops by analyzing the inclusion relationship between each section in the target road data and the multiple service area section groups.
[0095] In an alternative implementation, the device further includes ( Figure 3 not shown in):
[0096] A binding module, configured to select multiple first road segments with a first attribute from a preset road network, where the first attribute is used to indicate that a road segment belongs to a service area; divide the multiple first road segments into multiple service area road segment groups according to the spatial connectivity relationship between the multiple first road segments; and bind the service area information of a service area to each service area road segment group according to the spatial position relationship between each service area and the multiple service area road segment groups.
[0097] In an optional implementation manner, when the binding module divides the multiple first road segments into multiple service area road segment groups according to the spatial connectivity relationship between the multiple first road segments, for any road segment among the multiple first road segments, the binding module specifically marks a preceding road segment and a succeeding road segment for the any road segment; both the preceding road segment and the succeeding road segment belong to the multiple first road segments, the end point of the preceding road segment is the same as the start point of the any road segment, and the start point of the succeeding road segment is the same as the end point of the any road segment; selects a target road segment that has no preceding road segment from the multiple first road segments; for each selected target road segment, starting from the target road segment, searches for a road segment that has any same end point as the starting road segment in the multiple first road segments, uses the searched road segment as the starting road segment, and continues to execute the step of searching for a road segment that has any same end point as the starting road segment in the multiple first road segments until a road segment that has any same end point as the starting road segment cannot be searched, and divides the target road segment and the searched road segments into a service area road segment group.
[0098] In an optional implementation manner, when the binding module binds the service area information of a service area to each service area road segment group according to the spatial position relationship between each service area and the multiple service area road segment groups, for each service area road segment group, the binding module specifically selects multiple second road segments with a second attribute that are located near the service area road segment group and whose road attribute is a second attribute from the preset road network, where the second attribute is used to indicate that a road segment belongs to a main road; selects at least one candidate service area that is located near the service area road segment group from each service area; determines the spatial position relationship between each candidate service area and the service area road segment group relative to the multiple second road segments; and binds the service area information of a candidate service area to the service area road segment group according to the spatial position relationship.
[0099] In an optional implementation manner, the binding module is specifically configured to, in the process of determining the spatial position relationship between each candidate service area and the service area road section group with respect to the multiple second road sections, for each candidate service area, find a point closest to the candidate service area among the road sections included in the service area road section group; perform an intersection analysis on the connection line from the point to the candidate service area and the multiple second road sections; if any one of the multiple second road sections intersects with the connection line, determine that the candidate service area and the service area road section group are located on different sides of the multiple second road sections; if none of the multiple second road sections intersects with the connection line, determine that the candidate service area and the service area road section group are located on the same side of the multiple second road sections.
[0100] In an optional implementation manner, the binding module is specifically configured to, in the process of binding the service area information of a candidate service area to the service area road section group according to the spatial position relationship, if 1 candidate service area among the at least one candidate service area is located on the same side of the multiple second road sections as the service area road section group, bind the service area information of the candidate service area to the service area road section group; if there are multiple candidate service areas among the at least one candidate service area that are all located on the same side of the multiple second road sections as the service area road section group or there is no candidate service area located on the same side of the multiple second road sections as the service area road section group, display the service area road section group and the at least one candidate service area in a preset map, and when receiving the target service area specified by the user for the service area road section group, bind the service area information of the target service area to the service area road section group.
[0101] In an optional implementation manner, the second road section located near the service area road section group refers to the road section located within the expanded area determined according to the service area road section group;
[0102] The at least one candidate service area located near the service area road section group refers to the service area located within the expanded area determined according to the service area road section group.
[0103] In an optional implementation manner, the analysis module is specifically configured to, for each service area road section group, determine whether the target road data includes any road section in the service area road section group; if so, use the service area information bound to the service area road section group as the target service area information for the target vehicle to park.
[0104] The specific implementation processes of the functions and roles of each unit in the above device are specifically described in the implementation processes of the corresponding steps in the above method, and will not be elaborated here.
[0105] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the descriptions in the method embodiments. The device embodiments described above are merely illustrative. 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 to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this application. Those of ordinary skill in the art can understand and implement it without creative efforts.
[0106] The embodiments of the present application also provide an electronic device corresponding to the method for analyzing a vehicle parking service area provided in the foregoing embodiments to execute the method for analyzing a vehicle parking service area.
[0107] Figure 4 FIG. is a hardware structure diagram of an electronic device shown according to an exemplary embodiment. The electronic device includes: a communication interface 601, a processor 602, a memory 603, and a bus 604; wherein, the communication interface 601, the processor 602, and the memory 603 complete communication with each other through the bus 604. The processor 602 can execute the method for analyzing a vehicle parking service area described above by reading and executing machine-executable instructions corresponding to the control logic of the method for analyzing a vehicle parking service area stored in the memory 603. The specific content of this method can be referred to the above embodiments and will not be repeated here.
[0108] The memory 603 mentioned in this application can be any electronic, magnetic, optical or other physical storage device, which can store information such as executable instructions, data, etc. Specifically, the memory 603 can be RAM (Random Access Memory), flash memory, a storage drive (such as a hard disk drive), any type of storage disk (such as an optical disk, a DVD, etc.), or a similar storage medium, or a combination thereof. The communication connection between this system network element and at least one other network element is realized through at least one communication interface 601 (which can be wired or wireless), and the Internet, a wide area network, a local area network, a metropolitan area network, etc. can be used.
[0109] The bus 604 can be an ISA bus, a PCI bus, an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. Among them, the memory 603 is used to store programs, and the processor �02 executes the programs after receiving execution instructions
[0110] The processor 602 may be an integrated circuit chip with the ability to process signals. In the implementation process, each step of the above method can be completed by the integrated logic circuit in the hardware of the processor 602 or instructions in the form of software. The above-mentioned processor 602 may be a general-purpose processor, including a network processor (NP for short), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as being executed and completed by the hardware decoding processor, or executed and completed by a combination of the hardware and software modules in the decoding processor.
[0111] The electronic device provided in the embodiments of the present application and the analysis method of the vehicle parking service area provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run, or implemented by it.
[0112] The embodiments of the present application also provide a computer-readable storage medium corresponding to the analysis method of the vehicle parking service area provided in the foregoing embodiments. Please refer to Figure 5 As shown, the computer-readable storage medium shown is an optical disc 30, on which a computer program (i.e., a program product) is stored. When the computer program is run by a processor, it will execute the analysis method of the vehicle parking service area provided in any of the foregoing embodiments.
[0113] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory, or other optical and magnetic storage media, which will not be elaborated here one by one.
[0114] The computer-readable storage medium provided in the above embodiments of the present application and the analysis method of the vehicle parking service area provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run, or implemented by the application program stored therein.
[0115] Those skilled in the art will readily conceive of other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of the present application and include well-known common general knowledge or conventional technical means in the technical field not disclosed in the present application. The specification and examples are only illustrative, and the true scope and spirit of the present application are pointed out by the following claims.
[0116] It should also be noted that the term "comprising", "including" or any other variation thereof is intended to cover non-exclusive inclusion, such that a process, method, commodity or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, commodity or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, commodity or device comprising the element.
[0117] The foregoing are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included within the scope of protection of the present application.
Claims
1. An analysis method for a vehicle parking service area, characterized in that, The method includes: Obtaining target road data associated with the trajectory data of a target vehicle, where the target road data includes at least one section through which the trajectory data of the target vehicle passes; Obtaining a pre-established spatial binding relationship, where the spatial binding relationship includes multiple service area section groups and service area information bound to each service area section group; Obtaining the target service area information where the target vehicle stops by analyzing the inclusion relationship between each section in the target road data and the multiple service area section groups.
2. The method according to claim 1, characterized in that The establishment process of the spatial binding relationship includes: Selecting multiple first sections with a first attribute from a preset road network, where the first attribute is used to indicate that a section belongs to a service area; Dividing the multiple first sections into multiple service area section groups according to the spatial connectivity relationship between the multiple first sections; Binding the service area information of a service area to each service area section group according to the spatial position relationship between each service area and the multiple service area section groups.
3. The method according to claim 2, wherein The dividing the multiple first sections into multiple service area section groups according to the spatial connectivity relationship between the multiple first sections includes: For any section among the multiple first sections, respectively marking a preceding section and a succeeding section for the any section; both the preceding section and the succeeding section belong to the multiple first sections, the end point of the preceding section is the same as the start point of the any section, and the start point of the succeeding section is the same as the end point of the any section; Selecting a target section that does not have a preceding section from the multiple first sections; For each selected target section, taking the target section as a starting section, searching in the multiple first sections for a section that has any same end point as the starting section, taking the searched section as the starting section, and continuing to execute the step of searching in the multiple first sections for a section that has any same end point as the starting section until no section that has any same end point as the starting section can be searched, and dividing the target section and the searched sections into a service area section group.
4. The method according to claim 2, characterized in that, The binding the service area information of a service area to each service area section group according to the spatial position relationship between each service area and the multiple service area section groups includes: For each service area section group, selecting multiple second sections with a second attribute that are located near the service area section group from a preset road network, where the second attribute is used to indicate that a section belongs to a main road; Selecting at least one candidate service area that is located near the service area section group from the various service areas; Determining the spatial position relationship between each candidate service area and the service area section group relative to the multiple second sections; Binding the service area information of a candidate service area to the service area section group according to the spatial position relationship.
5. The method according to claim 4, wherein The determining the spatial position relationship between each candidate service area and the service area section group relative to the multiple second sections includes: For each candidate service area, finding a point in the sections included in the service area section group that is closest to the candidate service area; Performing intersection analysis on the connection line from the point to the candidate service area and the multiple second sections; If any one of the multiple second road segments intersects with the connection line, it is determined that the candidate service area and the service area road segment group are located on different sides of the multiple second road segments; If none of the road segments in the multiple second road segments intersects with the connection line, it is determined that the candidate service area and the service area road segment group are located on the same side of the multiple second road segments.
6. The method according to claim 5, wherein The service area information of binding a candidate service area to the service area road segment group according to the spatial position relationship includes: If there is 1 candidate service area among the at least one candidate service area that is located on the same side of the multiple second road segments as the service area road segment group, bind the service area information of the candidate service area to the service area road segment group; If there are multiple candidate service areas among the at least one candidate service area that are all located on the same side of the multiple second road segments as the service area road segment group or there is no candidate service area that is located on the same side of the multiple second road segments as the service area road segment group, display the service area road segment group and the at least one candidate service area in a preset map. When receiving the target service area specified by the user for the service area road segment group, bind the service area information of the target service area to the service area road segment group.
7. The method according to claim 4, characterized in that, The second road segment near the service area road segment group refers to the road segment located within the expanded area determined according to the service area road segment group; The at least one candidate service area near the service area road segment group refers to the service area located within the expanded area determined according to the service area road segment group.
8. The method according to any one of claims 1 to 7, characterized in that, The obtaining of the target service area information where the target vehicle stops by analyzing the inclusion relationship between each road segment in the target road data and the multiple service area road segment groups includes: For each service area road segment group, determine whether the target road data includes any road segment in the service area road segment group; If so, use the service area information bound to the service area road segment group as the target service area information where the target vehicle stops.
9. An analysis device for a vehicle parking service area, characterized in that, The device includes: A first acquisition module, configured to acquire target road data associated with the trajectory data of a target vehicle, where the target road data includes at least one road segment passed by the trajectory data of the target vehicle; A second acquisition module, configured to acquire a pre-established spatial binding relationship, where the spatial binding relationship includes multiple service area road segment groups and the service area information bound to each service area road segment group; An analysis module, configured to obtain the target service area information where the target vehicle stops by analyzing the inclusion relationship between each road segment in the target road data and the multiple service area road segment groups.
10. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor executes the program to implement the steps of the method according to any one of the above claims 1-8.