Map data selection method, device, equipment, storage medium and program product
By selecting map data of a small area based on the current positioning position and preset range parameters in the autonomous driving system, the problem of low efficiency and low accuracy in high-precision map segmentation is solved, and efficient analysis and accurate acquisition of map data are achieved. Improved system performance.
Patent Information
- Application Number
- CN202210567079.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-23
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-05-23
AI Technical Summary
The segmentation efficiency of high-precision maps in the existing technology is low and the accuracy is not high, causing the vehicle to waste memory and computing power during autonomous driving, and making it difficult to accurately obtain the required map data.
By obtaining the current positioning position of the device, based on the preset range parameters, the map data of a small area around the current positioning position is selected from the preset map data with a larger area, and virtualization is performed based on the map data of the selected small area. The display of the map reduces the amount of map data parsing and improves the efficiency and accuracy of selecting map data.
It improves the efficiency and accuracy of map data selection, reduces the amount of analysis of preset map data, and ensures the accurate acquisition and effective use of map data in autonomous driving.
Smart Images

Figure CN114996377B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to, but is not limited to, the field of computer vision technology, and in particular to a map data selection method, device, equipment, storage medium and program product. Background Art
[0002] High-precision maps play a vital role in fields such as autonomous driving. They are also called high-definition maps (HD MAP), which usually refer to maps used for autonomous driving assistance, as opposed to the mobile phone navigation maps that people use daily. Usually, the high-precision maps used by vehicles are provided by the map manufacturer. During use, map data near the current location of the vehicle can be obtained based on the positioning results. However, the amount of original high-precision map data obtained by the vehicle is usually large, and the map range is wide, which exceeds the actual range required by the current vehicle. When the vehicle directly uses the obtained original high-precision map data, it will waste too much memory and computing power. In this regard, the original high-precision map is segmented into target areas in the related technology. However, the segmentation efficiency of the map segmentation method in the related technology is low, and the segmentation accuracy is not high. Summary of the invention
[0003] In view of this, embodiments of the present application at least provide a map data selection method, apparatus, device, storage medium and program product.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] On the one hand, an embodiment of the present application provides a method for selecting map data, the method comprising:
[0006] Get the current location of the device;
[0007] Acquire preset map data corresponding to a first area including the current positioning position;
[0008] Based on a preset range parameter and the current positioning position, starting from the current positioning position, selecting map data corresponding to a second area around the current positioning position from the preset map data; wherein the range of the first area is larger than the range of the second area;
[0009] A virtual map is displayed according to the map data corresponding to the second area.
[0010] On the other hand, an embodiment of the present application provides a map data selection device, the device comprising:
[0011] An acquisition module, used to acquire a current location of a device; and acquire preset map data corresponding to a first area including the current location;
[0012] A selection module, configured to select map data corresponding to a second area around the current location from the preset map data based on a preset range parameter and the current location, starting from the current location; wherein the range of the first area is larger than the range of the second area;
[0013] The display module is used to display a virtual map according to the map data corresponding to the second area.
[0014] On the other hand, an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the program, some or all of the steps in the above method are implemented.
[0015] On the other hand, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which implements part or all of the steps in the above method when executed by a processor.
[0016] On the other hand, an embodiment of the present application provides a computer program, including a computer-readable code. When the computer-readable code is executed in a computer device, a processor in the computer device executes some or all of the steps for implementing the above method.
[0017] On the other hand, an embodiment of the present application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is read and executed by a computer, it implements some or all of the steps in the above method.
[0018] In the embodiment of the present application, based on the current positioning position and the preset range parameters, starting from the current positioning position, map data of a small area around the current positioning position is selected from the preset map data with a larger area range, and a corresponding virtual map is displayed based on the selected map data of the small area range; in this way, in the process of selecting map data, only the map data corresponding to the small area range around the current positioning position in the preset map data with a larger area range can be parsed, thereby reducing the amount of parsing of the preset map data, and further improving the efficiency of selecting map data; at the same time, by selecting map data based on the current positioning position and the preset range parameters, the area range corresponding to the map data to be selected in the preset map data can be clearly defined, thereby improving the accuracy of the selected map data.
[0019] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.
[0021] Figure 1 A schematic diagram of lanes on an exemplary highway provided for an embodiment of the present application;
[0022] Figure 2 A schematic diagram of an implementation flow of a map data selection method provided in an embodiment of the present application;
[0023] Figure 3 A schematic diagram of an implementation flow of a map data selection method provided in an embodiment of the present application;
[0024] Figure 4 A schematic diagram of three exemplary road modules with different attributes provided in an embodiment of the present application;
[0025] Figure 5 A schematic diagram of an exemplary current positioning position in lane D1 and a schematic diagram of a mapping position of the current positioning position on the lane centerline of lane D1 provided in an embodiment of the present application;
[0026] Figure 6 A schematic diagram of an exemplary method for determining the coordinates of a first selected position on a range line provided in an embodiment of the present application;
[0027] Figure 7 A schematic diagram of an implementation flow of a map data selection method provided in an embodiment of the present application;
[0028] Figure 8 A schematic diagram of an exemplary first selected position provided in an embodiment of the present application;
[0029] Fig. 9 A schematic diagram of an implementation flow of a map data selection method provided in an embodiment of the present application;
[0030] Fig.10 A schematic diagram of an exemplary target road module and a subsequent road module provided in an embodiment of the present application;
[0031] Fig.11 A schematic diagram of an exemplary initial search position and a search position provided for an embodiment of the present application.
[0032] Fig.12 A schematic diagram of an implementation flow of a map data selection method provided in an embodiment of the present application;
[0033] Fig.13 A schematic diagram of an implementation flow of a map data selection method provided in an embodiment of the present application;
[0034] Fig.14A A schematic diagram of all first selected positions and all second selected positions on an exemplary target road module provided in an embodiment of the present application;
[0035] Fig. 14B A schematic diagram of all first selected positions of an exemplary target road module and all second selected positions of a subsequent road module provided in an embodiment of the present application;
[0036] Fig. 14C A schematic diagram of all second selected positions of an exemplary target road module and all first selected positions of a precursor road module provided in an embodiment of the present application;
[0037] Fig.14D A schematic diagram of all first selected positions of an exemplary preceding road module and all second selected positions of a subsequent road module provided in an embodiment of the present application;
[0038] Fig.15 A schematic diagram of an implementation flow of a map data selection method provided in an embodiment of the present application;
[0039] Fig.16 A schematic diagram of the structure of a map data selection device provided in an embodiment of the present application;
[0040] Fig.17 A hardware entity diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0042] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0043] The terms "first / second / third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable that "first / second / third" can be interchanged with a specific order or sequence where permitted so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0044] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing this application and are not intended to limit this application.
[0045] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are described first. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.
[0046] 1) Lane refers to the carriageway on highways and urban roads, including slow lanes and fast lanes, non-motorized vehicle lanes and motor vehicle lanes, etc.
[0047] 2) Lane lines refer to the lines used to form lanes, usually referring to white dotted lines or solid white lines on highways and urban roads.
[0048] 3) Lane center line refers to the line in the middle of the lane.
[0049] For example, Figure 1 is a schematic diagram of a section of expressway, such as Figure 1 As shown, the expressway includes three lanes, namely D1, D2 and D3, and the lane lines of lane D1 are d11 and d12, and the center line of the lane is d13.
[0050] In order to better understand the map data selection method provided in the embodiment of the present application, the map segmentation scheme used in the related art is first described below.
[0051] In the related art, unnecessary data is usually deleted from the original high-precision map data obtained by the vehicle, and the required map data is finally retained, so as to "segment" the map data corresponding to a certain area near the vehicle. However, in the above-mentioned related art, all the map data in the original high-precision map must be parsed before the unnecessary data can be deleted from the original high-precision map data. In this way, when performing map segmentation, the amount of map data parsing is large, resulting in low cropping efficiency; and when deleting unnecessary data from the original high-precision map data, it is easy to delete data by mistake, which also results in low accuracy of the segmented map data.
[0052] The embodiment of the present application provides a method for selecting map data, which can be executed by a processor of a computer device, wherein the computer device may refer to a device with data processing capability such as an on-board navigation device in a vehicle, a laptop computer, a tablet computer, a desktop computer, and a server.
[0053] Figure 2 A schematic diagram of the implementation flow of a map data selection method provided in an embodiment of the present application is shown in FIG. Figure 2As shown, the method includes S101 to S104.
[0054] S101. Obtain the current location of the device.
[0055] In some embodiments, the geographic location of the vehicle can be obtained in real time from a Global Positioning System (GPS) device of the vehicle, or the vehicle can obtain the geographic location of the vehicle in real time from other devices of the vehicle or devices such as a cloud server.
[0056] Here, the geographical location of the vehicle can be obtained at a preset frequency, and each time a geographical location of the vehicle is obtained, a current positioning position of the vehicle is obtained. Here, the preset frequency can be set according to actual needs, and the embodiment of the present application does not limit this.
[0057] S102: Obtain preset map data corresponding to a first area including the current positioning location.
[0058] Here, each time a current positioning position is obtained, preset map data corresponding to a fixed area range near the current positioning position can be obtained from the vehicle or server, and the obtained preset map data can be converted into map data under the vehicle coordinate system. In this way, preset map data corresponding to the first area including the current positioning position is obtained.
[0059] In some embodiments, a map toolkit (Software Development Kit, SDK) of navigation software (for example, some navigation applications) is stored in the computer device. The map toolkit contains map data corresponding to a specific area. Each time the computer device obtains a current location, it can obtain map data corresponding to the first area containing the current location from the SDK.
[0060] In some embodiments, each time the computer device obtains a current location, it can also obtain map data corresponding to the first area containing the current location from an external device of the vehicle such as a server corresponding to some navigation software.
[0061] Exemplarily, the preset map data may be preset high-precision map data, wherein the high-precision map data generally includes: navigation layer data and semantic layer data, wherein the navigation layer data is used to represent the identification (ID) of all road modules (LaneModel) included in the road, and the ID of the lanes included in each road module; the semantic layer data is used to represent the preset coordinate points corresponding to the lane line and lane center line of each lane, and the connection relationship data between every two adjacent lane lines or lane center lines. The connection relationship data between every two adjacent lane lines or lane center lines indicates whether the two adjacent lane lines or lane center lines are connected by a straight line, a curve, or other means, etc., representing the direction of the road, for example, the road gradually bends or the road remains straight, etc.
[0062] S103. Based on the preset range parameter and the current positioning position, starting from the current positioning position, map data corresponding to a second area around the current positioning position is selected from the preset map data; wherein the range of the first area is larger than the range of the second area.
[0063] Here, based on the preset range parameters and the current positioning position of the vehicle, starting from the current positioning position, map data corresponding to the preset area range around the current positioning position can be selected from the obtained preset map data, so that map data corresponding to the second area around the current positioning position is obtained.
[0064] Here, the preset range parameters include a first preset distance and a second preset distance, and the values of the first preset distance and the second preset distance can be set according to actual needs, which is not limited in the embodiment of the present application.
[0065] For example, when the first preset distance is 100 meters and the second preset distance is 200 meters, and the preset map data corresponding to the first area is the high-precision map data of 1000 meters before and 1000 meters after the current positioning position of the vehicle, the high-precision map data of 200 meters before and 100 meters after the current positioning position of the vehicle can be selected from the high-precision map data of 1000 meters before and 1000 meters after the current positioning position of the vehicle.
[0066] S104: Display a virtual map according to the map data corresponding to the second area.
[0067] Here, when map data corresponding to the second area is selected from the preset map data, a virtual map corresponding to the second area can be displayed on the display device of the computer device itself or on a display device connected to the computer device based on the map data corresponding to the second area.
[0068] In the embodiment of the present application, according to the current positioning position and the preset range parameters, starting from the current positioning position, map data of a small area around the current positioning position is selected from the preset map data with a larger area range, and the corresponding virtual map is displayed according to the selected small area range map data; in this way, in the process of selecting map data, only the map data corresponding to the small area range around the current positioning position in the preset map data with a larger area range can be parsed, thereby reducing the amount of parsing of the preset map data, and further improving the efficiency of selecting map data; at the same time, by selecting map data according to the current positioning position and the preset range parameters, the area range corresponding to the map data to be selected in the preset map data can be clearly defined, thereby improving the accuracy of the selected map data.
[0069] In some embodiments, Figure 3 As shown, the above S103 can be implemented by S1031 to S1034. Figure 3 Take this as an example to illustrate.
[0070] S1031. Determine the area length of the second area in the first preset direction according to the current positioning position and the preset range parameters; the first area includes: a plurality of preset areas distributed along the first preset direction.
[0071] Here, the first preset direction may be the direction in which the vehicle is traveling; the length of the second area in the direction in which the vehicle is traveling may be determined based on the current positioning position and the preset range parameters; for example, when the preset range parameters are 200 meters and 100 meters, the length of the second area in the direction in which the vehicle is traveling is: 200 meters before and 100 meters after the current positioning position.
[0072] In the case where the first preset direction is the vehicle driving direction, the first area includes: a plurality of preset areas distributed along the vehicle driving direction; accordingly, the preset map data includes: map data corresponding to each of the plurality of preset areas.
[0073] Exemplarily, in the case where the preset map data is preset high-precision map data, each preset area is a road module (LaneModel), and at least one sub-area corresponding to the preset area can be one or more parallel lanes contained in the road module. Accordingly, the preset high-precision map data includes: IDs of multiple different road modules, IDs of one or more lanes corresponding to the ID of each road module, preset coordinate points corresponding to the lane line and lane center line of each lane, and connection relationship data between every two adjacent lane lines and lane center lines. Different road modules have different attributes, and the attribute can be, for example, at least one of the number of lanes contained in the road module and the completeness of the lanes. For example, Figure 4Three road modules with different attributes are shown, wherein road module S1 includes three parallel lanes (D1, D2 and D3), road module S2 includes four parallel lanes (D11, D12, D13 and D14), and S3 includes four parallel lanes (D111, D112, D113 and D114), but the integrity of lane D11 in road module S2 is different from the integrity of lane D111 in road module S3.
[0074] S1032: Determine a target area where the current positioning position is located from multiple preset areas.
[0075] In some embodiments, the preset area where the current positioning position is located can be determined directly based on the coordinates of the current positioning position and the coordinates corresponding to each preset area.
[0076] In some embodiments, each preset area includes at least one sub-area, and a sub-area including the current positioning position can be determined and used as a target sub-area, and a preset area including the target sub-area can be used as a target area.
[0077] Here, the sub-region where the current positioning position is located can be determined according to the coordinates of the current positioning position and the coordinates corresponding to each sub-region.
[0078] S1033. Obtain a candidate region including the second region from among the plurality of preset regions according to a size relationship between the region lengths of the second region and the target region in the first preset direction.
[0079] Here, the size relationship between the second area and the target area in the first preset direction can be determined based on the area length of the second area in the first preset direction and the area length of the target area in the first preset direction. Then, based on the obtained size relationship, it can be determined which preset areas include the second area from among the multiple preset areas included in the first area.
[0080] In the embodiment of the present application, the preset range parameters include: a first preset distance and a second preset distance; accordingly, the area length of the second area in the first preset direction is determined by the first preset distance and the second preset distance; the area length of the target area in the first preset direction is determined by the first distance and the second distance; the first distance is the distance between the current positioning position and the first area boundary of the target area; the second distance is the distance between the current positioning position and the second area boundary of the target area, and the first area boundary and the second area boundary are two area boundaries of the target area in the first preset direction; based on this, the size relationship between the area range lengths of the second area and the target area in the first preset direction may include the following 4 situations: (1) the first preset distance is less than or equal to the first distance, and the second preset distance is less than or equal to the second distance; (2) the first preset distance is less than or equal to the first distance, and the second preset distance is greater than the second distance; (3) the first preset distance is greater than the first distance, and the second preset distance is less than or equal to the second distance; (4) the first preset distance is greater than the first distance, and the second preset distance is greater than the second distance.
[0081] S1034. According to the preset range parameters, starting from the current positioning position, map data corresponding to the second area is selected from the candidate map data corresponding to the candidate areas.
[0082] Here, when a candidate area is obtained, map data corresponding to the candidate area can be used as candidate map data, and map data corresponding to a second area around the current positioning position can be selected from the candidate map data based on the first preset distance and the second preset distance, starting from the current positioning position.
[0083] In an embodiment of the present application, a candidate area including the second area is determined from a plurality of preset areas included in the first area, and map data corresponding to the second area around the current positioning position is selected from the map data corresponding to the candidate area. This can narrow the selection range of the map data, thereby improving the efficiency of selecting the map data.
[0084] In some embodiments, the above S1033 can be implemented by any step of S201 to S204, where S201 to S204 are as follows:
[0085] S201: When the first preset distance is less than or equal to the first distance and the second preset distance is less than or equal to the second distance, the candidate area is the target area.
[0086] S202: When the first preset distance is less than or equal to the first distance and the second preset distance is greater than the second distance, the candidate areas are the target area and a subsequent area located in front of the target area in the first preset direction.
[0087] Here, when the first preset distance is less than or equal to the first distance and the second preset distance is greater than the second distance, the target area can be determined, and among the multiple preset areas distributed along the first preset direction, X preset areas or all preset areas located in front of the target area in the first preset direction, including the second area, where X is an integer greater than or equal to 1, and the value of X can be set according to actual needs, which is not limited in the embodiments of the present application.
[0088] S203: When the first preset distance is greater than the first distance and the second preset distance is less than or equal to the second distance, the candidate areas are the target area and a preceding area located behind the target area in the first preset direction.
[0089] Here, when the first preset distance is greater than the first distance and the second preset distance is less than or equal to the second distance, the target area can be determined, and among the multiple preset areas distributed along the first preset direction, Y preset areas or all preset areas located behind the target area in the first preset direction, including the second area, where Y is an integer greater than or equal to 1, and the value of Y can be set according to actual needs, and the embodiment of the present application is not limited to this.
[0090] S204: When the first preset distance is greater than the first distance and the second preset distance is greater than the second distance, the candidate areas are the target area, the successor area, and the predecessor area.
[0091] Here, when the first preset distance is greater than the first distance, and the second preset distance is greater than the second distance, it can be determined that the area length of the second area in the first preset direction is greater than the target area, and it can be determined that the target area among the multiple preset areas distributed along the first preset direction, the X preset areas or all the preset areas located in front of the target area in the first preset direction, and the Y preset areas or all the preset areas located behind the target area in the first preset direction all include the second area.
[0092] In the embodiment of the present application, a candidate area including the second area is determined from a plurality of preset areas included in the first area, so that map data can be selected from the map data corresponding to the candidate area, thereby improving the efficiency of selecting map data.
[0093] In some embodiments, the above Figure 3 S1034 in the above can be implemented by S301 to S304, wherein S301 to S304 are as follows:
[0094] S301. According to a first preset distance and a second preset distance, starting from the mapping position of the current positioning position on the range line of the target sub-area, search for a first selected position and a second selected position on the range line of the sub-area included in the candidate area respectively; the preset range parameters include: a first preset distance and a second preset distance.
[0095] Here, the current positioning position is located in the target sub-region, and the current positioning position can be projected onto any range line of the target sub-region to obtain the mapping position of the current positioning position on the range line; for example, Figure 5 As described above, when the target sub-area is lane D1, and lane D1 corresponds to lane lines d11 and d12 and lane center line d13, a vertical line can be drawn from the current positioning position T to d11, d12 or d13, for example, Figure 5 As shown, starting from the current positioning position T, a vertical line is drawn to d13 to obtain the mapping position T1 on d13.
[0096] Here, when the mapping position of the current positioning position on the range line is obtained, the first selected position and the second selected position can be respectively searched on the range line of the sub-area corresponding to the candidate area starting from the mapping position.
[0097] S302. For each range line including the first selected position, determine the coordinates of the first selected position according to the coordinates of the preset coordinate points whose distances from the first selected position satisfy the first preset condition among the multiple preset coordinate points corresponding to each range line.
[0098] In some embodiments, the first preset condition may be: among the multiple preset coordinate points corresponding to each range line, the distance between the first selected position and the first preset direction is the smallest, or the distance between the first selected position and the first selected position in the direction opposite to the first preset direction is the smallest; thus, according to the first preset condition, two preset coordinate points located before and after the first selected position in the first preset direction can be selected from the multiple preset coordinate points corresponding to each range line, and the coordinates of the first selected position on each range line can be determined based on the coordinates of the two preset coordinate points. Exemplarily, Figure 6 A range line d including the first selected position a is shown, and the range line d corresponds to the preset coordinate points y1, y2, y3 and y4, such as Figure 6 As shown, the coordinates of the first selected position a can be determined based on y2 and y3.
[0099] In some embodiments, the first preset condition may also be: the distance from the first selected position is less than or equal to a preset threshold; the preset threshold may be set according to actual needs, and the embodiments of the present application do not limit this.
[0100] In some embodiments, the coordinates of the two preset coordinate points selected in the first preset direction, respectively located before and after the first selected position, can be calculated by interpolation to obtain the coordinates of the center position between the two preset coordinate points, and the coordinates of the center position are used as the coordinates of the first selected position. For example, for the above example, the coordinates of the center position between y2 and y3 can be calculated by interpolation, and the coordinates of the center position are used as the coordinates of the first selected position a.
[0101] S303. For each range line including the second selected position, determine the coordinates of the second selected position according to the coordinates of the preset coordinate points whose distances from the second selected position satisfy the second preset condition among the multiple preset coordinate points corresponding to each range line.
[0102] Here, the second preset condition may be: among the multiple preset coordinate points corresponding to each range line, the distance between the second selection position and the first preset direction is the smallest, or the distance between the second selection position and the second selection position in the direction opposite to the first preset direction is the smallest; in this way, according to the second preset condition, two preset coordinate points located respectively before and after the second selection position in the first preset direction may be selected from the multiple preset coordinate points corresponding to each range line, and the coordinates of the second selection position on each range line may be determined based on these two preset coordinate points.
[0103] In some embodiments, the second preset condition may also be: the distance from the second selected position is less than or equal to a preset threshold; the preset threshold may be set according to actual needs, and the embodiments of the present application do not limit this.
[0104] Here, the principle of determining the coordinates of the second selected position is the same as the principle of determining the coordinates of the first selected position in the above S302 section, and will not be repeated here.
[0105] S304. Based on the coordinates of the first selected position and the coordinates of the second selected position, data is selected from the range line data to obtain range line data corresponding to the second area; each sub-area includes multiple range lines, and each range line corresponds to multiple preset coordinate points; the candidate map data includes: range line data of the sub-area contained in the candidate area.
[0106] Here, the map data corresponding to the candidate map in the preset map data (hereinafter referred to as candidate map data) is actually the data of the range lines of the sub-areas contained in the candidate area, and the data of the range lines of the sub-areas are: the preset coordinate points corresponding to each range line of the sub-area, and the connection relationship data between every two range lines. Exemplarily, in the case where the sub-areas are lanes, the range lines included in each sub-area can be the lane lines and lane center lines of the lane; accordingly, the candidate map data includes: the data of the lane lines and lane center lines of the lane; the data of the lane lines and lane center lines of the lane are: the preset coordinate points corresponding to the lane lines and lane center lines of each lane, and the connection relationship data between every two adjacent lane lines or lane center lines.
[0107] Here, based on the coordinates of all the first selected positions and the coordinates of the second selected positions, data can be selected from the data of the range line of the sub-region corresponding to the candidate region to finally obtain the required data.
[0108] In an embodiment of the present application, when each sub-area includes multiple range lines, each range line corresponds to multiple preset coordinate points, and the candidate map data is the data of the range line of the sub-area corresponding to the candidate area, the first selected position and the second selected position are respectively found on the range line of the sub-area corresponding to the candidate area, and the coordinates of the first selected position and the coordinates of the second selected position are determined. According to the coordinates of the first selected position and the coordinates of the second selected position, data is selected from the data of the range line of the sub-area corresponding to the candidate area, and finally the required data is obtained; in this way, the data selection range can be clearly known through the coordinates of all the first selected positions and the coordinates of all the second selected positions on the range line, thereby improving the accuracy of the selected data.
[0109] In some embodiments, the candidate region is the target region; the sub-region included in the candidate region is: the sub-region included in the target region; based on this, Figure 7 As shown, the above S301 can be implemented through S3011 to S3012.
[0110] S3011. Based on the first preset distance and the second preset distance, starting from the mapping position of the current positioning position on any range line of the target sub-area, search for a first selected position and a second selected position on the any range line.
[0111] Here, when the candidate area is the target area, the sub-area contained in the candidate area is the sub-area contained in the target area. We can start with the mapping position of the current positioning position on any range line of the target sub-area, and search for the first selected position and the second selected position on the range line according to the first preset distance and the second preset distance, respectively.
[0112] Here, the multiple range lines of each sub-area can be the boundary range line and the center range line of the sub-area; for example, when the sub-area is a lane, the boundary range line can be the lane line of the lane, and the center range line can be the lane center line of the lane.
[0113] In some embodiments, the current positioning position may be mapped to the center range line of the target sub-region, and the first selected position and the second selected position may be searched for on the center range line according to the first preset distance and the second preset distance, respectively.
[0114] In some embodiments, the following method can be used to find the first selected position and the second selected position on any range line of the target sub-area, respectively: starting from the mapping position of the current positioning position on any range line of the target sub-area, the position on any range line, along the direction opposite to the first preset direction, and the first preset distance away from the mapping position, is determined as the first selected position; starting from the mapping position, the position on any range line, along the first preset direction and the second preset distance away from the mapping position, is determined as the second selected position.
[0115] Exemplarily, when the target sub-area is the target lane, any range line is the lane centerline of the target lane, the first preset direction is the vehicle travel direction, the first preset distance is 100 meters, and the second preset distance is 200 meters, starting from the mapping position of the current positioning position on the lane centerline of the target lane, the position on the lane centerline that is 100 meters away from the mapping position in the opposite direction of the vehicle travel direction can be determined as the first selected position; and, starting from the mapping position, the position on the lane centerline that is 200 meters away from the mapping position in the vehicle travel direction can be determined as the second selected position.
[0116] S3012. Determine the first selected position and the second selected position on the range line of each sub-area included in the target area according to the obtained first selected position and the second selected position on any range line.
[0117] Here, when the first selected position and the second selected position on any range line of the target sub-area are obtained, the first selected position and the second selected position on each range line other than the any range line among the multiple range lines of the target sub-area can be determined based on the first selected position and the second selected position on the any range line; and the first selected position and the second selected position on each range line of each sub-area included in the target area, other than the target sub-area, can be determined based on the first selected position and the second selected position on any range line among the multiple range lines of the target sub-area.
[0118] For example, Figure 8As shown, the target area includes three sub-areas D1, D2 and D3, the target sub-area is sub-area D1, sub-area D1 corresponds to boundary range lines d11, d12 and center range line d13, sub-area D2 corresponds to boundary range lines d12, d14 and center range line d15, sub-area D3 corresponds to boundary range lines d14, d16 and center range line d17, and when the first selected position a1 has been determined on the center range line d13 of sub-area D1, the first selected position a2 on the boundary range line d11 can be obtained by drawing a perpendicular line L from position a1 to the boundary range line d11 of sub-area D1, wherein a2 is the projection position or mapping position of a1 on d11. Similarly, this method can be used to continue to determine the first selected position of the boundary range line d12 of the sub-area D1, the first selected position of the boundary range line d14 and the center range line d15 of the sub-area D2, and the first selected position of the boundary range line d16 and the center range line d17 of the sub-area D3.
[0119] In an embodiment of the present application, the first selected position and the second selected position are searched on any range line of the target sub-area, and the first selected position and the second selected position on the range line of each sub-area included in the target area are determined based on the obtained first selected position and the second selected position on the range line of any sub-area. In this way, compared with searching for the first selected position and the second selected position on each range line of other sub-areas starting from the mapping position of the current positioning position on each other sub-area included in the target area based on the first preset distance and the second preset distance, the time and calculation amount used to determine the first selected position and the second selected position on the range line of each sub-area of the target area can be reduced, which is beneficial to improving the efficiency of data selection.
[0120] In some embodiments, the candidate area is: the target area and the subsequent area located in front of the target area in the first preset direction; the sub-areas included in the candidate area are: the sub-areas included in the target area and the sub-areas included in the subsequent area; based on this, Fig. 9 As shown, the above S301 can be implemented through S3013 to S3016.
[0121] S3013. Starting from the mapping position of the current positioning position on any range line of the target sub-region, search for a first selected position on the any range line.
[0122] Here, when the candidate area is the target area and the subsequent area, the mapping position of the current positioning position on any range line of the target sub-area can be used to start, and the first selected position can be found on the range line according to the first preset distance. The principle of obtaining the first selected position here is the same as the principle at S3011 above, and will not be repeated.
[0123] S3014. Determine the first selected position of the range line of each sub-area included in the target area according to the obtained first selected position on any range line.
[0124] Here, the same principle as S3012 above can be used to determine the first selected position of the range line of each sub-area included in the target area based on the first selected position on any range line obtained, which will not be repeated here.
[0125] S3015. Starting from the mapping position, search for a second selected position on any range line and the first range lines of multiple subsequent sub-regions until the second selected position is obtained on the first range line of the target subsequent sub-region; the multiple subsequent sub-regions are multiple sub-regions included in the successor region, which correspond to the target sub-region; the first range line is a range line among the multiple range lines of each subsequent sub-region, which corresponds to any range line.
[0126] Here, the target area and the subsequent area are sequentially distributed along a first preset direction, the multiple sub-areas included in the target area are parallelly distributed in a direction perpendicular to the first preset direction, and the multiple sub-areas included in each subsequent area are also parallelly distributed in a direction perpendicular to the first preset direction; and each sub-area in the target area has a corresponding relationship with a sub-area in each subsequent area, wherein, among the multiple sub-areas included in each subsequent area, the sub-area having a corresponding relationship with the target sub-area is called a subsequent sub-area. Each range line included in each subsequent sub-area has a corresponding relationship with a range line included in the target sub-area.
[0127] For example, when the preset area is a road module and the sub-area is a lane, Fig.10 is a schematic diagram of the target road module and the subsequent road module. Fig.10 As shown, the vehicle travel direction is Q, the target road module S1 includes three lanes D1, D2 and D3, the successor road module S2 includes four lanes D11, D12, D13 and D14, and the successor road module S3 includes four sub-areas D111, D112, D113 and D114. When D1 is the target lane, D12 and D112 are the successor lanes of D1, and the lane line d1 of D1 corresponds to the lane line d3 of D12 and the lane line d5 of D112, and the lane line d2 of D1 corresponds to the lane line d4 of D12 and the lane line d6 of D112. Similarly, when D2 is the target lane, D13 and D113 are the successor lanes of D2; when D3 is the target lane, D14 and D114 are the successor lanes of D3. In addition, as Fig.10As shown, d2 is a lane line common to D1 and D2, d3 is a lane line common to D11 and D12, and d4 is a lane line common to D12 and D13, and so on, which are not listed here one by one.
[0128] With the above Fig.10 For example, when starting from the mapping position of the current positioning position on the lane line d2, and searching for the second selected position on the lane lines d2, d4 and d6, the second selected position can be obtained on the lane line d4 or d6, and when the second selected position is obtained on the lane line d4, D12 is the target successor lane of D1, and when the second selected position is obtained on the lane line d6, D112 is the target successor lane of D1.
[0129] S3016. Determine, according to the second selected position of the target subsequent sub-region, the second selected position of the range line of each sub-region in the subsequent region where the target subsequent sub-region is located.
[0130] Here, when the second selected position is obtained on the first range line of the target successor sub-region, the second selected position on each range line other than the first range line among the multiple range lines of the target successor sub-region can be determined according to the second selected position on the first range line of the target successor sub-region; and the second selected position on each range line of each sub-region in a preset area where the target successor sub-region is located can be determined according to the second selected position on any range line of the target successor sub-region. For example, in the above Fig.10 D112 in the figure is the target successor sub-region of D1, and when the second selected position is determined on d6 of D112, the second selected positions on all other lane lines and lane center lines of D112 can be determined based on the second selected position on d6, and the second selected positions on all lane lines and lane center lines of D111, D112, D113 and D114 can be determined.
[0131] Here, the principle of determining the second selected position on the other range lines of the target successor sub-region based on the second selected position on the first range line of the target successor sub-region, and determining the second selected position of each range line of each sub-region in a preset area where the target successor sub-region is located is the same as the principle of the above-mentioned S3012 part and will not be repeated here.
[0132] In the embodiment of the present application, the first selected position and the second selected position are searched on any range line of the target sub-area, and the first selected position on the range line of each sub-area included in the target area is determined according to the obtained first selected position on any range line; and the second selected position is determined on the first range line of the target successor sub-area, and the second selected position on the range line of each sub-area in the successor area where the target successor sub-area is located is determined according to the obtained second selected position on the first range line; thus, compared with searching for the first selected position on each range line of the other sub-areas starting from the mapping position of the current positioning position on each of the other sub-areas included in the target area according to the first preset distance and the second preset distance, the time and amount of calculation for determining the first selected position on the range line of each sub-area of the target area can be reduced; and compared with searching for the second selected position on each range line of the other sub-areas starting from the mapping position of the current positioning position on each of the other sub-areas in the successor area where the target successor sub-area is located according to the first preset distance and the second preset distance, the time and amount of calculation for determining the second selected position on the range line of each sub-area in the successor area where the target successor sub-area is located can be reduced; thereby facilitating the improvement of the efficiency of data selection.
[0133] In some embodiments, the plurality of subsequent sub-regions include: N subsequent sub-regions arranged in sequence along a first preset direction; N is an integer greater than or equal to 1; based on this, the above S3015 can be implemented through S501 to S503:
[0134] S501. A position point between a mapped position and an end position of any range line in a first preset direction is used as a screened position, and the end position is used as an initial search position.
[0135] For example, Fig.11 As described above, when D1 is the target sub-area, the mapping position of the current positioning position on d2 is T1, and the end position of d2 in the first preset direction Q is C1, all positions on d2 between T1 and C1 can be regarded as screened positions, and C1 can be regarded as the initial search position.
[0136] S502. Determine the position on the first range line of the ith successor sub-region that is a preset unit distance from the initial search position as the jth search position; i is an integer from 1 to N; j is an integer greater than 0; the ith successor sub-region is a successor sub-region adjacent to the target sub-region.
[0137] Here, the preset unit distance can be set according to actual needs, for example, it can be 1 meter, 5 meters or 10 meters, etc., and the embodiment of the present application is not limited to this.
[0138] Exemplarily, a subsequent sub-region adjacent to the target sub-region may be used as the first subsequent sub-region, and a position on the first range line of the first subsequent sub-region that is 1 meter away from the initial search position may be determined as the first search position.
[0139] S503. Determine the cumulative distance of the preset unit distances corresponding to the j search positions, and the forward remaining distance between the mapping position and the end position, until the sum of the cumulative distance of the preset unit distances corresponding to the j+m search positions and the forward remaining distance is equal to the second preset distance, and take the j+mth search position as the second selected position, and take the i+nth subsequent sub-region to which the first range line where the j+mth search position is located as the target subsequent sub-region; m and n are both integers greater than or equal to 1 and less than N.
[0140] Here, starting from the first range line of the i-th successor sub-region among N successor sub-regions arranged sequentially along the first preset direction, the second selected position can be searched on the first range line of each successor sub-region in turn until the second selected position is found on the first range line of the i+n-th successor sub-region.
[0141] Here, when the j-th search position is obtained, the product between the number of search positions and the preset unit distance can be calculated, and the product can be used as the cumulative distance of the preset unit distance in the process of obtaining the j-th search position, and the distance between the mapping position and the end position can be determined, and the distance can be used as the forward remaining distance; thereafter, the sum of the distances between the obtained cumulative distance and the forward remaining distance can be calculated, and the obtained distance sum can be compared with the second preset distance, and the preset unit distance can be compared with the distance to be recursed (the distance between the j-th search position and the end position of the first range line of the i-th subsequent sub-area in the first preset direction). When the obtained sum of distances is less than the second preset distance, and the preset unit distance is less than or equal to the distance to be recursed, the position on the first range line of the i-th successor sub-region that is the preset unit distance away from the j-th search position is determined as the j+1-th search position; and when the obtained sum of distances is less than the second preset distance, and the preset unit distance is greater than the distance to be recursed, the position on the first range line of the i+1-th successor sub-region that is the preset unit distance away from the j-th search position is determined as the j+1-th search position; thereafter, the cumulative distance of the preset unit distance corresponding to the j+1 search position continues to be determined, until the sum of the cumulative distance of the preset unit distance corresponding to the j+m search position and the forward remaining distance is equal to the second preset distance, the j+m-th search position is taken as the second selected position, and the i+n-th successor sub-region to which the first range line where the j+m-th search position is located belongs is taken as the target successor sub-region.
[0142] For example, continue as above Fig.11 As shown, D12 is the first successor sub-region of D1, and the position C2 on the lane line d4 of D12 that is the preset unit distance from C1 can be determined as the first search position. After that, the sum of the distance between T1 and C1 and the distance between C1 and C2 is calculated to obtain the distance sum, and the obtained distance sum is compared with the second preset distance, and the preset unit distance is compared with the distance to be recursed (the distance between C2 and T2). When the obtained distance sum is less than the second preset distance and the preset unit distance is less than or equal to the distance to be recursed, the position on the lane line d4 that is the preset unit distance from C2 is determined as the second search position; and when the obtained distance sum is less than the second preset distance and the preset unit distance is greater than the distance to be recursed, the position C2 is the preset unit distance from C2 on the lane line d4. In the case of recursive distance, the position on the lane line d6 that is a preset unit distance away from C2 is determined as the second search position; thereafter, the cumulative distance of the preset unit distances corresponding to the two search positions is continued to be determined until the sum of the distances corresponding to the Cm+1th search position is equal to the second preset distance, the Cm+1th search position is used as the second selected position, and the i+nth successor sub-region to which the first range line where the Cm+1th search position is located is used as the target successor sub-region; for example, when the Cm+1th search position is located at d4, D12 is the target successor sub-region of D1; when the Cm+1th search position is located at d6, D112 is the target successor sub-region of D1.
[0143] In the embodiment of the present application, by adopting the above-mentioned recursive method to find the second selected position, the accuracy of the obtained second selected position can be improved.
[0144] In some embodiments, the candidate regions are: the target region and the precursor region located behind the target region in the first preset direction; the subregions included in the candidate region are: the subregion included in the target region and the subregion included in the precursor region; based on this, Fig.12 As shown, the above S301 can be implemented through S3017 to S3020.
[0145] S3017. Starting from the mapping position of the current positioning position on any range line of the target sub-region, search for a second selected position on any range line.
[0146] Here, the principle of searching for the second selected position on any range line of the target sub-area based on the current positioning position is the same as the principle of searching for the first selected position on any range line of the target sub-area based on the current positioning position described in the above S3013 section, and will not be repeated here.
[0147] S3018. Determine the second selected position of the range line of each sub-area included in the target area according to the obtained second selected position on any range line.
[0148] Here, the principle of determining the second selected position of the range line of each sub-area included in the target area based on the second selected position on any range line of the target sub-area is the same as the principle of determining the first selected position of the range line of each sub-area included in the target area based on the first selected position on any range line of the target sub-area as described in the above S3014 part, and will not be repeated here.
[0149] S3019. Starting from the mapping position, search for the first selected position on any range line and the second range lines of multiple predecessor sub-regions until the first selected position is obtained on the second range line of the target predecessor sub-region; the multiple predecessor sub-regions are the sub-regions included in the predecessor region and the multiple sub-regions included in the target sub-region; the second range line is the range line corresponding to any range line among the multiple range lines of each predecessor sub-region.
[0150] Here, the target area and the precursor area are sequentially distributed along a first preset direction, the multiple sub-areas included in the target area are distributed in parallel in a direction perpendicular to the first preset direction, and the multiple sub-areas included in each precursor area are also distributed in parallel in a direction perpendicular to the first preset direction; and each sub-area in each precursor area has a corresponding relationship with a sub-area in the target area, wherein, among the multiple sub-areas included in each precursor area, the sub-area having a corresponding relationship with the target sub-area is called a precursor sub-area. Each range line included in each precursor sub-area has a one-to-one correspondence with a range line included in the target sub-area.
[0151] For example, continue to refer to the above Fig.10, when the target road module is S3, S2 and S1 are the front-drive road modules, and, when the target lane is D111, D11 and D1 are the front-drive lanes of D111, and the lane line d5 of D111 corresponds to the lane line d3 of D11 and the lane line d1 of D1. Similarly, when the target lane is D112, D1 and D12 are the front-drive lanes of D112, and the lane line d6 of D112 corresponds to the lane line d4 of D12 and the lane line d2 of D1; when D113 is the target lane, D13 and D2 are the front-drive lanes of D113, and so on, which are not listed here one by one. For example, when starting from the mapping position of the current positioning position on the lane line d6 and searching for the first selected position on the lane lines d6, d4 and d2 in sequence, the first selected position can be obtained on the lane line d4 or d2, and when the first selected position is obtained on the lane line d2, D1 is the target preceding lane of D112, and when the first selected position is obtained on the lane line d4, D12 is the target preceding lane of D112.
[0152] S3020. Determine, according to the first selected position of the target precursor sub-region, a first selected position of a range line of each sub-region in the precursor region where the target precursor sub-region is located.
[0153] Here, in the case where the first selected position is obtained on the first range line of the target precursor sub-region, the first selected position on each range line other than the first range line of the multiple range lines of the target precursor sub-region can be determined according to the first selected position on the first range line of the target precursor sub-region; and the first selected position on each range line of each sub-region in a preset region where the target precursor sub-region is located can be determined according to the first selected position on any range line of the target precursor sub-region. For example, in the above Fig.10 In the figure, D1 is the target forerunner sub-region of D112, and when the first selected position is determined on d2 of D1, the first selected positions on all other lane lines and lane center lines of D1 can be determined based on the first selected position on d2, and the first selected positions on all lane lines and lane center lines of D1, D2 and D3 can be determined.
[0154] Here, the principle of determining the first selected position on the first range line of the target precursor sub-region based on the first selected position on the other range lines of the target precursor sub-region, and determining the first selected position of each range line of each sub-region in a preset area where the target precursor sub-region is located is the same as the principle of the above-mentioned S3012 part and will not be repeated here.
[0155] In the embodiment of the present application, the second selected position is found on any range line of the target sub-region, and the second selected position on the range line of each sub-region included in the target region is determined according to the obtained second selected position on any range line; and the first selected position is determined on the first range line of the target precursor sub-region, and the first selected position of the range lines of other sub-regions in the precursor region where the target precursor sub-region is located is determined according to the obtained first selected position on the first range line; thus, compared with searching for the second selected position on each range line of the other sub-region starting from the mapping position of the current positioning position on each of the other sub-regions included in the target region according to the first preset distance and the second preset distance, the time and amount of calculation for determining the second selected position on the range line of each sub-region of the target region can be reduced; and compared with searching for the first selected position on each range line of the other sub-region starting from the mapping position of the current positioning position on each of the other sub-regions in the precursor region where the target precursor sub-region is located according to the first preset distance and the second preset distance, the time and amount of calculation for determining the first selected position on the range line of each sub-region in the precursor region where the target precursor sub-region is located can be reduced; thereby facilitating the improvement of the efficiency of data selection.
[0156] In some embodiments, the candidate regions are: a target region, a successor region located in front of the target region in a first preset direction, and a predecessor region located behind the target region in the first preset direction; the subregions included in the candidate region are: a subregion included in the target region, a subregion included in the successor region, and a subregion included in the predecessor region; based on this, Fig.13 As shown, the above S301 can be implemented through S3021~S3024.
[0157] S3021. Starting from the mapping position of the current positioning position on any range line of the target sub-region, search for a second selected position on any range line and the first range lines of multiple subsequent sub-regions until the second selected position is obtained on the first range line of the target subsequent sub-region; the multiple subsequent sub-regions are multiple sub-regions included in the successor region, corresponding to the target sub-region; the first range line is a range line corresponding to any range line among the multiple range lines of each subsequent sub-region.
[0158] S3022. Determine, according to the second selected position of the target subsequent sub-region, the second selected position of the range line of each sub-region in the subsequent region where the target subsequent sub-region is located.
[0159] Here, the principle of S3021 is the same as the principle of the part described in S3015 above, and you can refer to the content of S3015; the principle of S3022 is the same as the principle of the part described in S3016 above, and you can refer to the content of S3016, and it will not be repeated here.
[0160] S3023 starts from the current positioning position and searches for the first selected position on any range line and the second range lines of multiple precursor sub-regions until the first selected position is obtained on the second range line of the target precursor sub-region; the multiple precursor sub-regions are multiple sub-regions corresponding to the target sub-region in the sub-regions included in the precursor region; the second range line is a range line corresponding to any range line among the multiple range lines of each precursor sub-region.
[0161] S3024. Determine, according to the first selected position of the target precursor sub-region, the first selected position of the range line of each sub-region in the precursor region where the target precursor sub-region is located.
[0162] Here, the principle of S3023 is the same as the principle of the part described in S3019 above, and you can refer to the content of S3019; the principle of S3024 is the same as the principle of the part described in S3020 above, and you can refer to the content of S3020, and it will not be repeated here.
[0163] For example, continue to refer to the above Fig.10 , when the target road module is S2, S1 is the preceding road module of S2, S3 is the succeeding road module of S1, and, when the target lane is D11, D1 is the preceding lane of D11, D111 is the succeeding lane of D11, and the lane line d3 of D11 corresponds to the lane line d1 of D1 and the lane line d5 of D111. Similarly, when the target lane is D12, D1 is the preceding lane of D12, D112 is the succeeding lane of D12, and the lane line d4 of D12 corresponds to the lane line d2 of D1 and the lane line d6 of D112; when D13 is the target lane, D2 is the preceding lane of D13, D113 is the succeeding lane of D13, and so on, which are not listed here one by one. For example, starting from the mapping position of the current positioning position on the lane line d4, the first selected position can be obtained on the lane line d2, the second selected position can be obtained on the lane line d6, and D1 is the target preceding lane of D12, and D112 is the target succeeding lane of D12.
[0164] In an embodiment of the present application, a second selection position is determined on the first range line of the target successor sub-region, and the second selection position of the range line of each sub-region in the successor region where the target successor sub-region is located is determined based on the obtained second selection position on the first range line; and a first selection position is determined on the first range line of the target predecessor sub-region, and the first selection position of the range line of each sub-region in the predecessor region where the target predecessor sub-region is located is determined based on the obtained first selection position on the first range line. In this way, compared with searching for the second selected position on each range line of each sub-region in the successor region where the target successor sub-region is located from the mapping position of each other sub-region in the current positioning position according to the first preset distance and the second preset distance, the time and calculation amount for determining the second selected position on the range line of each sub-region in the target region can be reduced; and, compared with searching for the first selected position on each range line of each other sub-region in the predecessor region where the target predecessor sub-region is located from the mapping position of each other sub-region in the current positioning position according to the first preset distance and the second preset distance, the time and calculation amount for determining the first selected position on the range line of each sub-region in the predecessor region where the target predecessor sub-region is located can be reduced; thereby helping to improve the efficiency of data selection.
[0165] In some embodiments, the data of the range line includes: multiple preset coordinate points corresponding to each range line, and connection relationship data between every two adjacent range lines; based on this, the above S304 selects data from the data of the range line based on the obtained coordinates of the first selected position and the coordinates of the second selected position, which can be implemented through S3041~S3042.
[0166] S3041. The preset coordinate points corresponding to the range line of the sub-area included in the candidate area, the preset coordinate points located between the first selected position and the second selected position, and the coordinates of the first selected position and the coordinates of the second selected position are used as selected coordinate data.
[0167] For example, Fig.14A As shown, when the candidate area is the target road module S1, and the first selected positions on the lane lines of all lanes in S1 are C11, C12, C13 and C14 respectively, and the second selected positions on the lane lines of all lanes in S1 are C15, C16, C17 and C18 respectively, C11 to C18, and all preset coordinate points between C11 and C18 can be used as selected coordinate data.
[0168] For example, Fig. 14BAs shown, when the candidate areas are the target road module S1 and the successor road module S2 of S1, and the first selected positions on the lane lines of all lanes in S1 are C11, C12, C13 and C14 respectively, and the second selected positions on the lane lines of all lanes in S2 are C15, C16, C17, C18 and C19 respectively, C11 to C19 and all preset coordinate points between C11 and C19 can also be used as selected coordinate data.
[0169] For example, Fig. 14C As shown, when the candidate area is the target road module S3 and the predecessor road module S2 of S3, and the first selected positions on the lane lines of all lanes in S3 are C16, C17, C18, C19 and C20 respectively, and the second selected positions on the lane lines of all lanes in S2 are C11, C12, C13, C14 and C15 respectively, C11 to C20 and all preset coordinate points between C11 and C20 can also be used as selected coordinate data.
[0170] For example, Fig.14D As shown, when the candidate area is: the target road module S2, the predecessor road module S1 of S2 and the successor road module S3 of S2, and the first selected positions on the lane lines of all lanes in S1 are C11, C12, C13 and C14 respectively, and the second selected positions on the lane lines of all lanes in S3 are C15, C16, C17, C18 and C19 respectively, the navigation device can also use C11 to C19 and all preset coordinate points between C11 and C19 as selected coordinate data.
[0171] S3042. Select connection relationship data corresponding to the target coordinate data from the connection relationship data.
[0172] Here, when the target coordinate data is obtained, the connection relationship data corresponding to every two adjacent range lines among all the range lines corresponding to the target coordinate data can be selected from the connection relationship data, so that the connection method between the two adjacent range lines can be determined later according to the connection relationship data. Fig.10 For d2 and d4 in the figure, the connection mode of d2 and d4 can be determined according to the connection relationship data corresponding to d2 and d4.
[0173] Below Fig.15 Take the example to illustrate the application of the map data selection method provided in the embodiment of the present application in an actual scenario.
[0174] S1. Obtain the latest vehicle positioning information.
[0175] Here, the latest vehicle positioning information is the above-mentioned current positioning position.
[0176] S2. Get the original high-precision map data from the high-precision map SDK.
[0177] Here, the original high-precision map data is the preset map data mentioned above; the high-precision map SDK is the map toolkit of the above-mentioned navigation software.
[0178] Here, you can obtain the original high-precision map data from the high-precision map SDK based on the vehicle's latest positioning information.
[0179] S3. Calculate the forward remaining distance R of the current part front and the remaining distance R of the current part back .
[0180] Here, the forward remaining distance is the above second distance, and the backward remaining distance is the above first distance;
[0181] S41, in L front ≤R front , and L back ≤R back In the case of, all upper and lower dividing points of the current part are determined respectively, and the map data between the upper and lower dividing points are selected from the map data corresponding to the current part.
[0182] Here, L back is the first preset distance, L front is the second preset distance. The current part is the target area; the upper dividing point of the current part is: the second selected position on each range line of the sub-area of the target area. The lower dividing point of the current part is: the first selected position on each range line of the sub-area of the target area; the map data between the upper and lower dividing points is: the target coordinate data.
[0183] S42, in L front ≥R front , and L back ≤R back In the case of , determine all the lower cutting points of the current part, and recursively search for the upper cutting points in the subsequent part of the current part until the total distance of the recursion is equal to L front , and select the map data between the upper and lower dividing points from the map data corresponding to the current part and the map data corresponding to all subsequent parts.
[0184] Here, the principle of the recursive method is the principle described in the above S501 to S503; the total recursive distance is the sum of the distances described in the above S501 to S503; and the successor part is the above successor area.
[0185] S43, in Lfront ≤R front , and L back ≥R back In the case of , determine all the upper split points of the current part, and recursively search for the lower split points in the predecessor part of the current part until the total recursive distance is equal to L back , from the map data corresponding to the current part and the map data corresponding to all the predecessor parts, select the map data between the upper and lower cutting points.
[0186] Here, the precursor portion is the aforementioned precursor region.
[0187] S44, in L front ≥R front , and L back ≥R back In the case of L, recursively search for the upper split point in the successor part of the current part until the total recursive distance is equal to L front , recursively find the next split point in the predecessor part of the current part until the total recursive distance equals L back , from the map data corresponding to the current part, the map data corresponding to all subsequent parts and the map data corresponding to all predecessor parts, the map data between the upper and lower cutting points are selected.
[0188] S5. Determine the basic information data of the selected map data.
[0189] Here, the basic information data is the connection relationship data between every two adjacent range lines mentioned above.
[0190] S6. Display the target map.
[0191] Here, the vehicle navigation device displays the target map according to all the data selected before S6. The target map is the virtual map mentioned above.
[0192] Based on the foregoing embodiments, an embodiment of the present application provides a map data selection device, which includes the units included and the modules included in the units, which can be implemented by a processor in a computer device; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.
[0193] Fig.16A schematic diagram of the structure of a map data selection device provided in an embodiment of the present application is shown in FIG. Fig.16 As shown, map data selection 600 includes: an acquisition module 610, used to acquire the current location of the device; acquire preset map data corresponding to a first area including the current location; a selection module 620, used to select map data corresponding to a second area around the current location from the preset map data based on a preset range parameter and the current location, starting from the current location; wherein the range of the first area is larger than the range of the second area; and a display module 630, used to display a virtual map according to the map data corresponding to the second area.
[0194] In some embodiments, the first area includes: multiple preset areas distributed along a first preset direction; the selection module 620 is also used to determine the area length of the second area in the first preset direction according to the current positioning position and the preset range parameter; determine the target area where the current positioning position is located from the multiple preset areas; according to the size relationship between the area lengths of the second area and the target area in the first preset direction, obtain a candidate area containing the second area among the multiple preset areas; according to the preset range parameter, starting from the current positioning position, select the map data corresponding to the second area from the candidate map data corresponding to the candidate area.
[0195] In some embodiments, each preset area includes at least one sub-area; the selection module 620 is further used to determine the sub-area including the current positioning position to obtain a target sub-area; and the preset area including the target sub-area is used as the target area.
[0196] In some embodiments, the preset range parameter includes: a first preset distance and a second preset distance; the area length of the second area is determined by the first preset distance and the second preset distance; the area length of the target area is determined by the first distance and the second distance; the first distance is the distance between the current positioning position and the first area boundary of the target area; the second distance is the distance between the current positioning position and the second area boundary of the target area; the selection module 620 is further used for, when the first preset distance is less than or equal to the first distance, and the second preset distance is less than or equal to the second distance, the candidate area is the target area; and / or, when the first preset distance is less than or equal to the first distance, and the second preset distance is greater than the second distance, the candidate area is the target area and the subsequent area located in front of the target area in the first preset direction; and / or, when the first preset distance is greater than the first distance, and the second preset distance is less than or equal to the second distance, the candidate area is the target area and the predecessor area located behind the target area in the first preset direction; and / or, when the first preset distance is greater than the first distance, and the second preset distance is greater than the second distance, the candidate area is the target area, the subsequent area and the predecessor area.
[0197] In some embodiments, the preset range parameters include: a first preset distance and a second preset distance; each sub-area includes multiple range lines, and each range line corresponds to multiple preset coordinate points; the candidate map data includes: data of the range lines of the sub-areas included in the candidate area; the selection module 620 is also used to search for a first selected position and a second selected position on the range lines of the sub-areas included in the candidate area, starting from the mapping position of the current positioning position on the range line of the target sub-area according to the first preset distance and the second preset distance; for each range line including the first selected position, the coordinates of the preset coordinate points whose distance to the first selected position meets the first preset condition among the multiple preset coordinate points corresponding to each range line are determined; for each range line including the second selected position, the coordinates of the preset coordinate points whose distance to the second selected position meets the second preset condition among the multiple preset coordinate points corresponding to each range line are determined; based on the coordinates of the first selected position and the coordinates of the second selected position, data is selected from the data of the range lines to obtain the data of the range lines corresponding to the second area.
[0198] In some embodiments, the candidate area is: the target area; the sub-area contained in the candidate area is: the sub-area contained in the target area; the selection module 620 is also used to search for the first selection position and the second selection position on any range line of the target sub-area based on the first preset distance and the second preset distance, starting from the mapping position of the current positioning position on any range line of the target sub-area; determine the first selection position and the second selection position on the range line of each sub-area contained in the target area according to the obtained first selection position and the second selection position on any range line.
[0199] In some embodiments, the selection module 620 is also used to start from the mapping position of the current positioning position on any range line of the target sub-area, and determine the position on any range line, along the direction opposite to the first preset direction, at the first preset distance away from the mapping position as the first selection position; starting from the mapping position, determine the position on any range line, along the first preset direction, at the second preset distance away from the mapping position as the second selection position.
[0200] In some embodiments, the candidate area is: the target area and the subsequent area located in front of the target area in the first preset direction; the sub-areas included in the candidate area are: the sub-areas included in the target area and the sub-areas included in the subsequent area; the selection module 620 is also used to start from the mapping position of the current positioning position on any range line of the target sub-area, and find the first selection position on the any range line; determine the first selection position of the range line of each sub-area included in the target area according to the first selection position on the any range line obtained; start from the mapping position, search for the second selection position on the any range line and the first range line of multiple subsequent sub-areas until the second selection position is obtained on the first range line of the target subsequent sub-area; the multiple subsequent sub-areas are the multiple sub-areas corresponding to the target sub-area in the sub-areas included in the subsequent area; the first range line is the range line corresponding to the any range line among the multiple range lines of each subsequent sub-area; according to the second selection position of the target subsequent sub-area, determine the second selection position of the range line of each sub-area in the subsequent area where the target subsequent sub-area is located.
[0201] In some embodiments, the multiple subsequent sub-areas include: N subsequent sub-areas arranged in sequence along the first preset direction; N is an integer greater than or equal to 1; the selection module 620 is also used to use the position point between the mapping position and the end position of any range line in the first preset direction as the screened position, and use the end position as the initial search position; the position on the first range line of the i-th subsequent sub-area that is a preset unit distance away from the initial search position is determined as the j-th search position; i is an integer between 1 and N; j is an integer greater than 0; the i-th subsequent sub-area is a successor sub-region adjacent to the target sub-region; determining the cumulative distance of the preset unit distances corresponding to the j search positions, and the forward remaining distance between the mapping position and the end position, until the sum of the cumulative distance of the preset unit distances corresponding to the j+m search positions and the forward remaining distance is equal to the second preset distance, taking the j+mth search position as the second selected position, and taking the i+nth successor sub-region to which the first range line where the j+mth search position is located as the target successor sub-region; m and n are both integers greater than or equal to 1 and less than N.
[0202] In some embodiments, the candidate area is: a target area and a predecessor area located behind the target area in the first preset direction; the sub-areas included in the candidate area are: the sub-areas included in the target area and the sub-areas included in the predecessor area; the selection module 620 is also used to start from the mapping position of the current positioning position on any range line of the target sub-area, and find the second selected position on any range line; determine the second selected position of the range line of each sub-area included in the target area according to the obtained second selected position on any range line; start from the mapping position, search for the first selected position on any range line and the second range lines of multiple predecessor sub-areas until the first selected position is obtained on the second range line of the target predecessor sub-area; the multiple predecessor sub-areas are the sub-areas included in the predecessor area, which are the multiple sub-areas included in the target sub-area; the second range line is the range line corresponding to the any range line among the multiple range lines of each predecessor sub-area; according to the first selected position of the target predecessor sub-area, determine the first selected position of the range line of each sub-area in the precursor area where the target precursor sub-area is located.
[0203] In some embodiments, the candidate area is: the target area, the successor area located in front of the target area in the first preset direction, and the predecessor area located behind the target area in the first preset direction; the sub-areas included in the candidate area are: the sub-area included in the target area, the sub-area included in the successor area and the sub-area included in the predecessor area; the selection module 620 is also used to start from the mapping position of the current positioning position on any range line of the target sub-area, on any range line and the first range line of multiple successor sub-areas, to search for the second selection position until the second selection position is obtained on the first range line of the target successor sub-area; the multiple successor sub-areas are multiple sub-areas in the sub-areas included in the successor area that correspond to the target sub-area; the first range line is each successor sub-area a range line corresponding to any one of the range lines among the multiple range lines of the target successor sub-region; determining the second selected position of the range line of each sub-region in the successor region where the target successor sub-region is located according to the second selected position of the target successor sub-region; starting from the current positioning position, searching for the first selected position on any one of the range lines and the second range lines of multiple predecessor sub-regions until the first selected position is obtained on the second range line of the target predecessor sub-region; the multiple predecessor sub-regions are multiple sub-regions corresponding to the target sub-region among the sub-regions included in the predecessor region; the second range line is a range line corresponding to any one of the multiple range lines of each predecessor sub-region; determining the first selected position of the range line of each sub-region in the predecessor region where the target predecessor sub-region is located according to the first selected position of the target predecessor sub-region.
[0204] In some embodiments, the data of the range line includes: multiple preset coordinate points corresponding to each range line, and connection relationship data between every two adjacent range lines; the selection module 620 is also used to use the preset coordinate points corresponding to the range lines of the sub-area included in the candidate area, the preset coordinate points located between the first selection position and the second selection position, as well as the coordinates of the first selection position and the coordinates of the second selection position, as target coordinate data; and select the connection relationship data corresponding to the target coordinate data from the connection relationship data.
[0205] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. In some embodiments, the functions or modules included in the device provided in the embodiment of the present application can be used to execute the method described in the above method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0206] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific hardware, software or firmware, or any combination of hardware, software, and firmware.
[0207] An embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, some or all of the steps in the above method are implemented.
[0208] The embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, some or all of the steps in the above method are implemented. The computer-readable storage medium can be transient or non-transient.
[0209] An embodiment of the present application provides a computer program, including a computer-readable code. When the computer-readable code is run in a computer device, a processor in the computer device executes some or all of the steps for implementing the above method.
[0210] The embodiment of the present application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is read and executed by a computer, some or all of the steps in the above method are implemented. The computer program product can be implemented specifically by hardware, software or a combination thereof. In some embodiments, the computer program product is specifically embodied as a computer storage medium, and in other embodiments, the computer program product is specifically embodied as a software product, such as a software development kit (SDK) and the like.
[0211] It should be noted here that the description of the various embodiments above tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. The description of the above device, storage medium, computer program and computer program product embodiments is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the embodiments of the device, storage medium, computer program and computer program product of this application, please refer to the description of the method embodiment of this application for understanding.
[0212] It should be noted that Fig.17 A schematic diagram of a hardware entity of a computer device in an embodiment of the present application is shown in FIG. Fig.17 As shown, the hardware entity of the computer device 700 includes: a processor 701, a communication interface 702 and a memory 703, wherein:
[0213] Processor 701 generally controls the overall operation of computer device 700 .
[0214] The communication interface 702 enables the computer device to communicate with other terminals or servers through a network.
[0215] The memory 703 is configured to store instructions and applications executable by the processor 701, and can also cache data to be processed or processed by the processor 701 and each module in the computer device 700 (for example, image data, audio data, voice communication data, and video communication data), which can be implemented by flash memory (FLASH) or random access memory (Random Access Memory, RAM). Data transmission can be performed between the processor 701, the communication interface 702, and the memory 703 through the bus 704.
[0216] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the serial number of each step / process mentioned above does not mean the order of execution, and the execution order of each step / process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The serial numbers of the embodiments of the present application mentioned above are for description only and do not represent the advantages and disadvantages of the embodiments.
[0217] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0218] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0219] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0220] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0221] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0222] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0223] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A method for selecting map data, characterized in that: include: Get the current location of the device; Acquire preset map data corresponding to a first area including the current positioning position; The first area includes: a plurality of preset areas distributed along a first preset direction; Determine, according to the current positioning position and the preset range parameter, the area length of the second area in the first preset direction; Determine a target area where the current positioning position is located from the multiple preset areas; Obtaining a candidate region including the second region among the plurality of preset regions according to a size relationship between the region lengths of the second region and the target region in the first preset direction; According to the preset range parameter, starting from the current positioning position, map data corresponding to the second area is selected from the candidate map data corresponding to the candidate area; wherein the range of the first area is larger than the range of the second area; A virtual map is displayed according to the map data corresponding to the second area.
2. The method according to claim 1, characterized in that Each preset area includes at least one sub-area; and determining the target area where the current positioning position is located from the multiple preset areas includes: Determine a sub-region including the current positioning position to obtain a target sub-region; A preset area including the target sub-area is used as the target area.
3. The method according to claim 2, characterized in that The preset range parameters include: a first preset distance and a second preset distance; the area length of the second area is determined by the first preset distance and the second preset distance; the area length of the target area is determined by the first distance and the second distance; the first distance is the distance between the current positioning position and the first area boundary of the target area; the second distance is the distance between the current positioning position and the second area boundary of the target area; The obtaining, according to the size relationship between the lengths of the second region and the target region in the first preset direction, a candidate region including the second region among the plurality of preset regions comprises: When the first preset distance is less than or equal to the first distance, and the second preset distance is less than or equal to the second distance, the candidate area is the target area; and / or, When the first preset distance is less than or equal to the first distance and the second preset distance is greater than the second distance, the candidate area is the target area and a subsequent area located in front of the target area in the first preset direction; and / or, When the first preset distance is greater than the first distance and the second preset distance is less than or equal to the second distance, the candidate area is the target area and a predecessor area located behind the target area in the first preset direction; and / or, When the first preset distance is greater than the first distance, and the second preset distance is greater than the second distance, the candidate regions are the target region, the successor region, and the predecessor region.
4. The method according to claim 2, characterized in that: The preset range parameters include: a first preset distance and a second preset distance; each sub-area includes a plurality of range lines, and each range line corresponds to a plurality of preset coordinate points; the candidate map data includes: data of range lines of the sub-areas included in the candidate area; The selecting, based on the preset range parameter and starting from the current positioning position, map data corresponding to the second area from candidate map data corresponding to the candidate areas includes: According to the first preset distance and the second preset distance, starting from the mapping position of the current positioning position on the range line of the target sub-region, searching for a first selected position and a second selected position on the range line of the sub-region included in the candidate region respectively; For each range line including the first selected position, the coordinates of the first selected position are determined according to the coordinates of a preset coordinate point whose distance from the first selected position satisfies a first preset condition among a plurality of preset coordinate points corresponding to each range line; For each range line including the second selected position, the coordinates of the second selected position are determined according to the coordinates of a preset coordinate point whose distance from the second selected position satisfies a second preset condition among a plurality of preset coordinate points corresponding to each range line; Based on the coordinates of the first selected position and the coordinates of the second selected position, data is selected from the data of the range line to obtain the data of the range line corresponding to the second area.
5. The method according to claim 4, characterized in that The candidate region is: the target region; the sub-region included in the candidate region is: the sub-region included in the target region; The step of searching for a first selected position and a second selected position respectively on the range line of the sub-area included in the candidate area, starting from the mapping position of the current positioning position on the range line of the target sub-area according to the first preset distance and the second preset distance, comprises: Based on the first preset distance and the second preset distance, starting from the mapping position of the current positioning position on any range line of the target sub-area, searching for the first selected position and the second selected position on any range line; The first selected position and the second selected position on the range line of each sub-area included in the target area are determined according to the obtained first selected position and the second selected position on any range line.
6. The method according to claim 5, characterized in that The searching for the first selected position and the second selected position on any range line of the target sub-area based on the first preset distance and the second preset distance, starting from a mapping position of the current positioning position on any range line of the target sub-area, comprises: Starting from the mapping position of the current positioning position on the any range line of the target sub-area, a position on the any range line, along a direction opposite to the first preset direction, and away from the mapping position by the first preset distance is determined as the first selected position; Starting from the mapping position, a position on any range line along the first preset direction and away from the mapping position by the second preset distance is determined as the second selected position.
7. The method according to claim 4, characterized in that The candidate region is: the target region and a subsequent region located in front of the target region in the first preset direction; the subregions included in the candidate region are: the subregion included in the target region and the subregion included in the subsequent region; The step of searching for a first selected position and a second selected position respectively on the range line of the sub-area included in the candidate area, starting from the mapping position of the current positioning position on the range line of the target sub-area according to the first preset distance and the second preset distance, comprises: Starting from the mapping position of the current positioning position on any range line of the target sub-area, searching for the first selected position on any range line; Determine the first selected position of the range line of each sub-area included in the target area according to the obtained first selected position on any range line; Starting from the mapping position, the second selected position is searched on any one of the range lines and the first range lines of multiple subsequent sub-regions until the second selected position is obtained on the first range line of the target subsequent sub-region; the multiple subsequent sub-regions are multiple sub-regions corresponding to the target sub-region among the sub-regions included in the subsequent region; the first range line is a range line corresponding to any one of the multiple range lines of each subsequent sub-region; The second selected position of the scope line of each sub-region in the successor region where the target successor sub-region is located is determined according to the second selected position of the target successor sub-region.
8. The method according to claim 7, characterized in that The multiple subsequent sub-regions include: N subsequent sub-regions arranged in sequence along the first preset direction; N is an integer greater than or equal to 1; The step of searching, starting from the mapping position, for the second selected position on any range line and the first range lines of the plurality of subsequent sub-regions until the second selected position is obtained on the first range line of the target subsequent sub-region comprises: Taking a position point between the mapped position and the end position of any range line in the first preset direction as a screened position, and taking the end position as an initial search position; Determine a position on the first range line of the i-th successor sub-region that is a preset unit distance from the initial search position as the j-th search position; i is an integer from 1 to N; j is an integer greater than 0; the i-th successor sub-region is a successor sub-region adjacent to the target sub-region; Determine the cumulative distance of the preset unit distances corresponding to the j search positions, and the forward remaining distance between the mapping position and the end position, until the sum of the cumulative distance of the preset unit distances corresponding to the j+m search positions and the forward remaining distance is equal to the second preset distance, then take the j+mth search position as the second selected position, and take the i+nth subsequent sub-region to which the first range line where the j+mth search position is located as the target subsequent sub-region; m and n are both integers greater than or equal to 1 and less than N.
9. The method according to claim 4, characterized in that The candidate region is: a target region and a precursor region located behind the target region in the first preset direction; the subregions included in the candidate region are: a subregion included in the target region and a subregion included in the precursor region; The step of searching for a first selected position and a second selected position respectively on the range line of the sub-area included in the candidate area, starting from the mapping position of the current positioning position on the range line of the target sub-area according to the first preset distance and the second preset distance, comprises: Starting from the mapping position of the current positioning position on any range line of the target sub-area, searching for the second selected position on any range line; Determine the second selected position of the range line of each sub-area included in the target area according to the obtained second selected position on any one of the range lines; Starting from the mapping position, the first selected position is searched on any one of the range lines and the second range lines of the plurality of precursor sub-regions until the first selected position is obtained on the second range line of the target precursor sub-region; the plurality of precursor sub-regions are the sub-regions included in the precursor region and the plurality of sub-regions included in the target sub-region; the second range line is the range line corresponding to any one of the range lines among the plurality of range lines of each precursor sub-region; The first selected position of the range line of each sub-region in the precursor region where the target precursor sub-region is located is determined according to the first selected position of the target precursor sub-region.
10. The method according to claim 4, characterized in that The candidate regions are: the target region, the successor region located in front of the target region in the first preset direction, and the predecessor region located behind the target region in the first preset direction; the subregions included in the candidate region are: the subregion included in the target region, the subregion included in the successor region, and the subregion included in the predecessor region; The step of searching for a first selected position and a second selected position respectively on the range line of the sub-area included in the candidate area, starting from the mapping position of the current positioning position on the range line of the target sub-area according to the first preset distance and the second preset distance, comprises: Starting from the mapping position of the current positioning position on any range line of the target sub-region, searching for the second selected position on any range line and first range lines of multiple subsequent sub-regions until the second selected position is obtained on the first range line of the target subsequent sub-region; the multiple subsequent sub-regions are multiple sub-regions corresponding to the target sub-region among the sub-regions included in the subsequent region; the first range line is a range line corresponding to any range line among the multiple range lines of each subsequent sub-region; Determine, according to the second selected position of the target subsequent sub-region, the second selected position of the range line of each sub-region in the subsequent region where the target subsequent sub-region is located; Starting from the current positioning position, the first selected position is searched on any one of the range lines and the second range lines of the plurality of precursor sub-regions until the first selected position is obtained on the second range line of the target precursor sub-region; the plurality of precursor sub-regions are the plurality of sub-regions corresponding to the target sub-region among the sub-regions included in the precursor region; the second range line is the range line corresponding to any one of the plurality of range lines of each precursor sub-region; The first selected position of the range line of each sub-region in the precursor region where the target precursor sub-region is located is determined according to the first selected position of the target precursor sub-region.
11. The method according to any one of claims 4 to 10, characterized in that: The data of the range lines includes: a plurality of preset coordinate points corresponding to each range line, and connection relationship data between every two adjacent range lines; the selecting data from the data of the range lines based on the coordinates of the first selected position and the coordinates of the second selected position includes: The preset coordinate points corresponding to the range line of the sub-region included in the candidate region, the preset coordinate points located between the first selected position and the second selected position, and the coordinates of the first selected position and the coordinates of the second selected position are used as target coordinate data; From the connection relationship data, the connection relationship data corresponding to the target coordinate data is selected.
12. A map data selection device, characterized in that: include: The acquisition module is used to obtain the current location of the device; Acquire preset map data corresponding to a first area including the current positioning position; The first area includes: a plurality of preset areas distributed along a first preset direction; A selection module is used to determine the area length of the second area in the first preset direction according to the current positioning position and the preset range parameter; determine the target area where the current positioning position is located from the multiple preset areas; obtain a candidate area including the second area in the multiple preset areas according to the size relationship between the area lengths of the second area and the target area in the first preset direction; and select the map data corresponding to the second area from the candidate map data corresponding to the candidate areas starting from the current positioning position according to the preset range parameter; wherein the range of the first area is larger than the range of the second area; The display module is used to display a virtual map according to the map data corresponding to the second area.
13. A computer device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, wherein: When the processor executes the program, the steps in the method according to any one of claims 1 to 11 are implemented.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.
Citation Information
Patent Citations
Navigation information processing method and device, electronic equipment and storage medium
CN113008260A
Map acquisition method and device, electronic equipment and storage medium
CN113312403A
