Method, device and storage medium for determining attributes of target road elements

By searching and selecting candidate binding elements with high priority in the electronic map to determine the display attributes of the target road element, the problem of position error of road element in the electronic map is solved, and a more accurate display effect is achieved.

CN114817304BActive Publication Date: 2025-08-22AUTONAVI SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210283895.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-21
Publication Date
2025-08-22
Estimated Expiration
2042-03-21

AI Technical Summary

Technical Problem

In the prior art, there is geometric error in the spatial position and real position of road elements collected in electronic maps, which makes it impossible to directly apply to the production of electronic maps, affecting the display accuracy.

Method used

By obtaining the collected data of the target road element, searching for candidate binding elements around it, selecting the target binding element based on the preset priority of the candidate binding element, and determining the display attributes of the target road element on the electronic map, including plane and height positions, based on the target binding element.

Benefits of technology

It improves the display effect of target road elements on the electronic map, reduces the difficulty of obtaining display locations, and ensures accurate display of road elements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114817304B_ABST
    Figure CN114817304B_ABST
Patent Text Reader

Abstract

The disclosed embodiments disclose a method, device, and storage medium for determining the attributes of a target road element. The method comprises: acquiring collected data of a target road element; the collected data includes the spatial location of the target road element and candidate roads associated with the target road element; searching an electronic map for candidate binding elements within a preset range around the target road element based on the spatial location of the target road element and the candidate roads; acquiring a target binding element from the candidate binding elements based on their preset priorities; and determining the display attributes of the target road element on the electronic map based on the target binding element. This technical solution can improve the display quality of target road elements on electronic maps and reduce the difficulty of obtaining the display location of target road elements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of Internet technology, and in particular to a method, device, and storage medium for determining attributes of a target road element. Background Art

[0002] With the development of location-based services (LBS), more and more application software has integrated electronic map-related service capabilities. Furthermore, people are increasingly relying on the map navigation services provided by electronic map products when choosing travel routes. However, as electronic map products continue to develop towards refinement and realism, and to meet the demand for accurate representation of real-world map elements, the production of electronic map products requires the inclusion of more types of road elements, such as electronic road signs. For example, the spatial position of electronic road signs collected may have some geometric errors compared to their actual location, such as the collected spatial position of the electronic road sign being outside the associated road. Therefore, the collected spatial position of the electronic road sign cannot be directly used in the production of electronic maps.

[0003] Therefore, how to improve the accuracy of displaying the positions of road elements in electronic maps is one of the main technical problems that those skilled in the art need to solve. Summary of the Invention

[0004] Embodiments of the present disclosure provide a method, device, and storage medium for determining attributes of a target road element.

[0005] In a first aspect, an embodiment of the present disclosure provides a method for determining attributes of a target road element, comprising:

[0006] Acquire collected data of a target road element; the collected data includes a spatial position of the target road element and a candidate road associated with the target road element;

[0007] searching an electronic map for candidate binding elements within a preset range around the target road element based on the spatial position of the target road element and the candidate roads;

[0008] acquiring a target binding element from the candidate binding elements based on a preset priority of the candidate binding elements;

[0009] A display attribute of the target road element on the electronic map is determined based on the target binding element.

[0010] Furthermore, the candidate binding elements include the candidate road and a first candidate binding element associated with the candidate road, a non-candidate road and a second candidate binding element associated with the non-candidate road.

[0011] Furthermore, the preset priority of the candidate road and the first candidate binding element is higher than the preset priority of the non-candidate road and the second candidate binding element; the preset priority of the candidate road is lower than the preset priority of the first candidate binding element; and the preset priority of the non-candidate road is lower than the preset priority of the second candidate binding element.

[0012] Furthermore, acquiring a target binding element from the candidate binding elements based on preset priorities of the candidate binding elements includes:

[0013] Filter out the candidate binding element with the highest preset priority from the searched candidate binding elements;

[0014] When there are multiple candidate binding elements with the highest priority, a target binding element is determined from the multiple candidate binding elements based on the distance from the target road element.

[0015] Furthermore, determining the display attribute of the target road element on the electronic map based on the target binding element includes:

[0016] When the target binding element is a non-road, determining the associated road of the target binding element as the associated road of the target road element;

[0017] When the target binding element is a road, determining the target binding element as an associated road of the target road element;

[0018] A display position of the target road element on the electronic map is determined based on the target binding element and the associated road of the target road element.

[0019] Furthermore, the target binding element is a tunnel; and determining the display attribute of the target road element on the electronic map based on the target binding element includes:

[0020] Determining the road where the tunnel is located as an associated road of the target road element; wherein the direction of the target road element is opposite to the direction of the associated road;

[0021] determining a planar display position of the target road element on the electronic map based on a point of closest distance from a position point corresponding to the spatial position of the target road element on the electronic map to a center line of the associated road;

[0022] The height display position of the target road element on the electronic map is determined based on the maximum height of the tunnel top.

[0023] Furthermore, the candidate binding element is a gantry; and determining the display attribute of the target road element on the electronic map based on the target binding element includes:

[0024] Determine the road closest to the target road element among the roads associated with the gantry as the associated road of the target road element; wherein the direction of the target road element is opposite to the direction of the associated road;

[0025] When there is a speed limit sign on the gantry, determining the plane display position of the target road element based on the display position of an end point on one side of the gantry on the electronic map;

[0026] When there is no speed limit sign on the gantry, the plane display position of the target road element is determined based on the closest distance point from the position point corresponding to the spatial position of the target road element on the electronic map to the center line of the gantry crossbar, and the height display position of the target road element is determined based on the maximum height of the gantry crossbar.

[0027] Furthermore, the candidate binding element is a vertical pole; and determining the display attribute of the target road element on the electronic map based on the target binding element includes:

[0028] Determining the associated road of the vertical pole as the associated road of the target road element; wherein the direction of the target road element is opposite to the direction of the associated road;

[0029] Calculating the distances from the vertical pole to the left and right edges of the associated road based on the position of the vertical pole in the electronic map;

[0030] determining whether the target road element is located on the left side or the right side of the associated road based on the calculated distance from the vertical pole to the left edge or the right edge of the associated road;

[0031] Calculating the closest distance point between the vertical pole and the edge line of the associated road based on the spatial position of the vertical pole and whether the target road element is located on the left side or the right side of the associated road;

[0032] determining a planar display position of the target road element on the electronic map based on the closest distance point;

[0033] The height display position of the target road element is determined based on the road surface height of the closest distance point on the electronic map.

[0034] Furthermore, the candidate binding element is the candidate road; and determining the display attribute of the target road element on the electronic map based on the target binding element includes:

[0035] Determining the candidate road as an associated road of the target road element; wherein a direction of the target road element is opposite to a direction of the associated road;

[0036] Calculating distances from the target road element to left and right edges of the associated road based on the spatial position of the target road element;

[0037] determining whether the target road element is located on the left side or the right side of the associated road based on the calculated distance from the target road element to the left edge or the right edge of the associated road;

[0038] Calculating the closest distance between the target road element and the edge line of the associated road based on the position point corresponding to the spatial position of the target road element in the electronic map and whether the target road element is located on the left side or the right side of the associated road;

[0039] determining a planar display position of the target road element on the electronic map based on the closest distance point;

[0040] The height display position of the target road element is determined based on the road surface height of the closest distance point on the electronic map.

[0041] In the second aspect, an embodiment of the present invention provides a method for providing location-based services. The method uses the method described in the first aspect to bind the target road element on the electronic map, and then provides location-based services to the service object. The location-based services include: navigation, map rendering, route planning or one or more.

[0042] In a third aspect, an embodiment of the present invention provides an attribute determination device for a target road element, comprising:

[0043] A first acquisition module is configured to acquire collected data of a target road element; the collected data includes a spatial position of the target road element and a candidate road associated with the target road element;

[0044] A search module is configured to search an electronic map for candidate binding elements within a preset range around the target road element based on the spatial position of the target road element and the candidate roads;

[0045] a second acquiring module configured to acquire a target binding element from the candidate binding elements based on a preset priority of the candidate binding elements;

[0046] The determining module is configured to determine a display attribute of the target road element on the electronic map based on the target binding element.

[0047] In the fourth aspect, an embodiment of the present invention provides a location-based service providing device, which uses the device described in the third aspect to bind the target road element on the electronic map, and then provides location-based services to the service object. The location-based services include: navigation, map rendering, route planning or one or more.

[0048] The functions can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions.

[0049] In one possible design, the apparatus includes a memory and a processor. The memory is configured to store one or more computer instructions that enable the apparatus to perform the corresponding method, and the processor is configured to execute the computer instructions stored in the memory. The apparatus may also include a communication interface for communicating with other devices or a communication network.

[0050] In a fifth aspect, an embodiment of the present disclosure provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the method described in any one of the above aspects.

[0051] In a sixth aspect, an embodiment of the present disclosure provides a computer-readable storage medium for storing computer instructions used by any of the above-mentioned devices, and when the computer instructions are executed by a processor, they are used to implement the method described in any of the above-mentioned aspects.

[0052] In a seventh aspect, an embodiment of the present disclosure provides a computer program product, which includes computer instructions, and when the computer instructions are executed by a processor, they are used to implement the method described in any of the above aspects.

[0053] The technical solutions provided by the embodiments of the present disclosure may have the following beneficial effects:

[0054] When creating an electronic map, the disclosed embodiment can search for candidate binding elements surrounding a target road element whose collected geographic data is less accurate using the collected data of the target road element. The candidate binding elements are assigned different priorities based on the quality of their display effects. A target binding element is then selected based on the priority. Ultimately, the display attributes of the target road element are determined based on the target binding element, so that the target road element can be displayed on the electronic map using these display attributes when the electronic map is drawn. In this way, based on a known spatial position and the deviation of the geometric position of the spatial position after mapping to the electronic map, a target binding element that can improve the display effect of the target road element on the electronic map can be selected from multiple candidate binding elements in the electronic map. The target road element's reasonable display position on the electronic map can then be determined based on the position of the target binding element on the electronic map. This improves the display effect of the target road element on the electronic map and reduces the difficulty of obtaining the display position of the target road element.

[0055] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Other features, objectives and advantages of the present disclosure will become more apparent through the following detailed description of non-limiting embodiments in conjunction with the accompanying drawings. In the accompanying drawings:

[0057] Figure 1 A flowchart illustrating a method for determining attributes of a target road element according to an embodiment of the present disclosure is shown;

[0058] Figure 2 A schematic diagram showing a process of selecting a target binding element from searched candidate binding elements for binding in an embodiment of the present disclosure;

[0059] Figure 3 A schematic diagram showing an application scenario of the display attributes of the electronic eye during navigation according to one embodiment of the present disclosure;

[0060] Figure 4 A structural block diagram of a device for determining attributes of a target road element according to an embodiment of the present disclosure is shown;

[0061] Figure 5 It is a structural diagram of an electronic device suitable for implementing the method for determining attributes of a target road element and / or the method for providing location-based services according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0062] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, parts not related to the description of the exemplary embodiments are omitted in the accompanying drawings.

[0063] In the present disclosure, it should be understood that terms such as "including" or "having" are intended to indicate the presence of features, numbers, steps, behaviors, components, parts, or combinations thereof disclosed in the present specification, and do not exclude the possibility that one or more other features, numbers, steps, behaviors, components, parts, or combinations thereof exist or are added.

[0064] It should also be noted that, in the absence of conflict, the embodiments and features of the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0065] The details of the embodiments of the present disclosure are described in detail below through specific examples.

[0066] Figure 1 Flowchart showing a method for determining the attributes of a target road element according to an embodiment of the present disclosure. Figure 1 As shown, the method for determining the attributes of the target road element includes the following steps:

[0067] In step S101, acquisition data of a target road element is obtained; the acquisition data includes the spatial position of the target road element and candidate roads associated with the target road element;

[0068] In step S102, based on the spatial position of the target road element and the candidate roads, a candidate binding element within a preset range around the target road element is searched in an electronic map;

[0069] In step S103, a target binding element is obtained from the candidate binding elements based on the preset priorities of the candidate binding elements;

[0070] In step S104, the display attribute of the target road element on the electronic map is determined based on the target binding element.

[0071] In this embodiment, the target road element may be a road element to be added to an electronic map. The spatial location of the road element may be obtained through road data collection. In some embodiments, the collected data of the target road element may include the target road element's identification, type, spatial location, and candidate roads. The spatial location may correspond to the longitude and latitude data of the target road element in a geographic environment. The spatial location may also be the geometric position obtained by mapping the longitude and latitude data of the target road element to an electronic map coordinate system or other coordinate system. The following embodiments use mapping to an electronic map coordinate system as an example, but it should be understood that the geometric position is not limited to a position within an electronic map coordinate system.

[0072] Candidate roads for a target road element can be associated roads for the target road element collected during data collection. However, these candidate roads may not necessarily be the actual associated roads for the target road element, depending on the accuracy of the collected data. Associated roads for a target road element can be roads where the target road element is located or to which it is attached. For example, if the target road element is a camera, the associated roads for the camera are the roads observed by the camera.

[0073] Considering that the spatial position of a target road element may have some geometric deviations from its corresponding position on the electronic map, for example, after mapping the spatial position to the electronic map, the target road element may be located outside a road on the electronic map. Therefore, in order to display the target road element at the appropriate location on the electronic map, the disclosed embodiment searches the electronic map for candidate binding elements surrounding the target road element based on the collected data of the target road element, finds the target binding element from multiple candidate binding elements, and then binds the target road element to or around the target binding element, thereby improving the display quality of the target road element. The candidate binding elements can be road elements known in the electronic map, such as tunnels, gantries, vertical poles, roads, etc., and the display positions of these road elements on the electronic map can be determined.

[0074] In some embodiments, candidate road elements may be searched for within a preset distance range based on the geometric position of the target road element in the electronic map coordinate system. The searched candidate road elements may be further divided into road elements associated with candidate roads of the target road element and road elements associated with non-candidate roads of the target road element.

[0075] In some embodiments, priorities can be set for different types of candidate binding elements. For example, a higher priority can be assigned to a class of candidate binding elements whose locations on the electronic map are easy to determine, while a lower priority can be assigned to a class of candidate binding elements whose locations on the electronic map are difficult to determine. For example, a tunnel's location on the electronic map is relatively easy and accurate to determine, so a higher priority can be assigned to the tunnel. On the other hand, a road's location can be relatively long on the electronic map, making it more difficult to determine the precise location of the target binding element, so a lower priority can be assigned to the road. Specifically, the priority can be pre-determined based on the actual situation of the road elements on the electronic map, and this is not a specific limitation here.

[0076] After searching for candidate binding elements around the target road element in the electronic map, if there are multiple candidate binding elements, a target binding element may be selected based on the priority. In some embodiments, the candidate binding element with the highest priority may be determined as the target binding element.

[0077] The target binding element can be understood as being used to bind the target road element and the target binding element for display when displaying the electronic map, so that the display position of the target road element in the electronic map can be determined based on the display position of the target binding element.

[0078] Therefore, in some embodiments, after determining the target bound element, the display attributes of the target road element on the electronic map can be determined based on the target bound element. The display attributes may include, but are not limited to, the geometric information of the target road element and related information of the target bound element. The geometric information of the target road element may include the planar display position and altitude display position of the target road element on the electronic map. The related information of the target bound element may include, but is not limited to, the type, identifier, and location of the target bound element. In some embodiments, the geometric information of the target road element may be represented as a geometric relationship with the target bound element.

[0079] After determining the display attributes of the target road element in the electronic map based on the target binding element, the target road element can be displayed based on the display attributes when drawing the electronic map. For example, in some embodiments, if the target road element is an electronic eye in a tunnel, the electronic eye can be displayed as a dynamic bubble icon at the top of the tunnel in the electronic map to remind the user to pay attention to the electronic eye.

[0080] When creating an electronic map, the disclosed embodiment can search for candidate binding elements surrounding a target road element whose collected geographic data is less accurate using the collected data of the target road element. The candidate binding elements are assigned different priorities based on the quality of their display effects. A target binding element is then selected based on the priority. Ultimately, the display attributes of the target road element are determined based on the target binding element, so that the target road element can be displayed on the electronic map using these display attributes when the electronic map is drawn. In this way, based on a known spatial position and the deviation of the geometric position of the spatial position after mapping to the electronic map, a target binding element that can improve the display effect of the target road element on the electronic map can be selected from multiple candidate binding elements in the electronic map. The target road element's reasonable display position on the electronic map can then be determined based on the position of the target binding element on the electronic map. This improves the display effect of the target road element on the electronic map and reduces the difficulty of obtaining the display position of the target road element.

[0081] In an optional implementation of this embodiment, the candidate binding elements include the candidate road and a first candidate binding element associated with the candidate road, a non-candidate road and a second candidate binding element associated with the non-candidate road.

[0082] In this optional implementation, after mapping the spatial position of the target road element to the geometric position of the target road element in the electronic map, the surrounding candidate binding elements can be searched in the electronic map based on the geometric position. The candidate binding elements may include but are not limited to tunnels, gantries, vertical poles and roads. In addition to the spatial position of the target road element, the known collected data of the target road element also includes candidate roads that the target road element may be associated with. Therefore, the candidate binding elements searched out may be associated with or not associated with the candidate roads of the target road element. The embodiment of the present disclosure divides the searched candidate binding elements into a first candidate binding element associated with the candidate road of the target road element and a second candidate binding element that is not associated with the candidate road (that is, associated with a non-candidate road of the target road element). In addition, the candidate binding elements also include roads, and the road can be a candidate road and a non-candidate road of the target road element. Therefore, the candidate binding elements can be divided into four categories: candidate roads, first candidate binding elements, non-candidate roads, and second candidate binding elements.

[0083] In an optional implementation of this embodiment, the preset priority of the candidate road and the first candidate binding element is higher than the preset priority of the non-candidate road and the second candidate binding element; the preset priority of the candidate road is lower than the preset priority of the first candidate binding element; the preset priority of the non-candidate road is lower than the preset priority of the second candidate binding element.

[0084] In this optional implementation, in order to find a target binding element that can improve the display effect of the target road element in the electronic map from the searched candidate binding elements, the candidate binding elements are assigned different priorities according to the types classified above.

[0085] Since the collected data of the target road element includes candidate roads, the first candidate binding elements of the candidate roads and associated candidate roads can be given a higher priority, while the second candidate binding elements of the non-candidate roads and associated non-candidate roads can be given a lower priority, so that the priority of the first candidate binding elements of the candidate roads and associated candidate roads is higher than the priority of the second candidate binding elements of the non-candidate roads and associated non-candidate roads.

[0086] In addition, in some embodiments, the candidate binding elements that can be associated with the target road element can be summarized and organized according to actual conditions to form multiple types, such as tunnels, gantry, vertical poles, roads, etc. These types of candidate binding elements can also be prioritized according to the degree to which they improve the display effect of the target road element on the electronic map. For example, the above four candidate binding elements can be arranged in descending order of priority as follows:

[0087] 1) Tunnel 2) Gantry 3) Vertical pole 4) Road.

[0088] That is, binding the target road element with the tunnel can greatly improve the display effect of the target road element in the electronic map, while the improvement degree of the gantry, vertical pole and road is relatively low.

[0089] In addition, considering that the priorities of the candidate roads and the first candidate binding elements associated with the candidate roads are higher than the priorities of the non-candidate roads and the second candidate binding elements associated with the non-candidate roads, the priority order can be finally obtained as follows:

[0090] a first candidate binding element associated with a candidate road;

[0091] candidate roads;

[0092] a second candidate binding element associated with the non-candidate road;

[0093] Non-candidate roads.

[0094] Still taking the above four candidate binding elements as an example, the descending order of priority can be obtained as follows:

[0095] Tunnels associated with candidate roads;

[0096] Associating the gantry with the candidate roads;

[0097] A vertical bar associated with a candidate road;

[0098] candidate roads;

[0099] Tunnels associated with non-candidate roads;

[0100] Associating the gantries of non-candidate roads;

[0101] vertical poles associated with non-candidate roads;

[0102] Non-candidate roads.

[0103] In an optional implementation of this embodiment, step S103, i.e., the step of acquiring the target binding element from the candidate binding elements based on the preset priorities of the candidate binding elements, further includes the following steps:

[0104] Filter out the candidate binding element with the highest preset priority from the searched candidate binding elements;

[0105] When there are multiple candidate binding elements with the highest priority, a target binding element is determined from the multiple candidate binding elements based on the distance from the target road element.

[0106] In this optional implementation, after the surrounding candidate binding elements are searched, a candidate binding element with the highest preset priority may be found based on the types of the candidate binding elements.

[0107] When there are multiple candidate binding elements with the highest priority, the one closest to the target road element may be selected as the target binding element based on the distances between the target road element and the multiple candidate binding elements with the highest priority.

[0108] Figure 2 FIG. 1 is a flow chart showing a process of selecting a target binding element from searched candidate binding elements for binding in an embodiment of the present disclosure. Figure 2 As shown in the figure, taking the target road element as the electronic eye and the four candidate binding elements of tunnel, gantry, vertical pole, and road as examples, the binding process is as follows:

[0109] 1. Importing electronic eye data: Obtain electronic eye data from a known data file. This electronic eye data includes the electronic eye number, type, location, candidate roads, etc.

[0110] 2. Determine candidate binding elements and their priorities. Based on candidate road information and using the electronic eye's geometric error as the search range, the four categories of candidate binding elements within the electronic map range—tunnels, gantries, vertical poles, and roads—are divided into eight priority levels of candidate binding elements based on their association with candidate roads and non-candidate roads. The electronic eye's geometric error can be understood as the possible error range of the geometric position obtained by mapping the electronic eye's spatial position to the electronic map coordinate system. This geometric error can be predetermined based on experience or actual measurements.

[0111] 3. Binding the electronic eye. Calculate the distance from the electronic eye to all candidate binding elements of the same priority, in descending order of priority. Select the candidate binding element closest to the electronic eye as the target binding element for that priority, and bind the electronic eye to it. If the target candidate binding element is found, the binding process is completed and the process exits. If the target binding element is not found, the binding process continues with the next priority until the target binding element is found. If the target binding element is not found among the candidate binding elements of all priority categories, the electronic eye binding fails and the process exits.

[0112] In an optional implementation of this embodiment, step S104, i.e., the step of determining the display attribute of the target road element on the electronic map based on the target binding element, further includes the following steps:

[0113] When the target binding element is a non-road, determining the associated road of the target binding element as the associated road of the target road element;

[0114] When the target binding element is a road, determining the target binding element as an associated road of the target road element;

[0115] A display position of the target road element on the electronic map is determined based on the target binding element and the associated road of the target road element.

[0116] In this optional implementation, after finding the target binding element, the display attributes of the target road element can be generated based on the target binding element. The display attributes may include but are not limited to the type of the target binding element, the identifier of the target binding element, the associated road of the target road element, the display position of the target road element on the electronic map, the display direction, etc.

[0117] The associated road, display position, and display direction of the target road element can all be determined based on the target binding element.

[0118] When the target binding element is a road, the associated road of the target road element is the target binding element; and when the target binding element is a non-road, the associated road of the target binding element is determined as the associated road of the target binding element.

[0119] The purpose of binding the target road element to the target binding element is to enable the target road element to be displayed in a bound manner when displayed on the electronic map. Therefore, the display position and display direction of the target road element can also be determined based on the position and direction of the target binding element on the electronic map.

[0120] Taking the electronic eye as an example, the target binding element of the electronic eye is the tunnel. In order to display the electronic eye more prominently on the electronic map, the display position of the electronic eye can be set on the tunnel, and it can be set at the top of the tunnel. In this way, during the navigation process, the user can be reminded that there is an electronic eye here through dynamic display methods such as bubbles.

[0121] In an optional implementation of this embodiment, the target binding element is a tunnel; step S104, i.e., the step of determining the display attribute of the target road element on the electronic map based on the target binding element, further includes the following steps:

[0122] Determining the road where the tunnel is located as an associated road of the target road element; wherein the direction of the target road element is opposite to the direction of the associated road;

[0123] determining a planar display position of the target road element on the electronic map based on a point of closest distance from a position point corresponding to the spatial position of the target road element on the electronic map to a center line of the associated road;

[0124] The height display position of the target road element on the electronic map is determined based on the maximum height of the tunnel top.

[0125] In this optional implementation, when the target binding element is a tunnel, the process of determining the display attributes of the target road element is described using an electronic eye as an example:

[0126] 1. Obtain the road where the tunnel is located and use it as the associated road for the electronic eye; the direction of the electronic eye is opposite to that of the associated road.

[0127] 2. Obtain the centerline of the associated road and, based on the geometric position of the electronic eye in the electronic map coordinate system, calculate the closest distance from that point to the centerline of the associated road. This closest distance point is used as the planar display position of the electronic eye on the electronic map; the maximum height of the tunnel top is used as the height display position that binds the electronic eye to the tunnel. It should be noted that since tunnels may have a displayed height on electronic maps, the electronic eye can also have a height display position in addition to the planar display position. The planar display position and the height display position constitute the electronic eye's display position on the electronic map.

[0128] 3. In order to ensure that the calculated display position achieves better results in actual display, the relative position of the electronic eye at the top of the tunnel can be appropriately adjusted according to the actual display model of the electronic eye and tunnel in the electronic map with the help of three-dimensional modeling display tools.

[0129] In an optional implementation of this embodiment, the candidate binding element is a gantry; step S104, i.e., the step of determining the display attribute of the target road element on the electronic map based on the target binding element, further includes the following steps:

[0130] Determine the road closest to the target road element among the roads associated with the gantry as the associated road of the target road element; wherein the direction of the target road element is opposite to the direction of the associated road;

[0131] When there is a speed limit sign on the gantry, determining the plane display position of the target road element based on the display position of an end point on one side of the gantry on the electronic map;

[0132] When there is no speed limit sign on the gantry, the plane display position of the target road element is determined based on the closest distance point from the position point corresponding to the spatial position of the target road element on the electronic map to the center line of the gantry crossbar, and the height display position of the target road element is determined based on the maximum height of the gantry crossbar.

[0133] In this optional implementation, when the target binding element is a gantry, the process of determining the display attributes of the target road element is described using an electronic eye as an example:

[0134] 1. Select the road closest to the electronic eye among all roads associated with the gantry as the road associated with the electronic eye. The direction of the electronic eye is opposite to that of the road associated with the electronic eye. Based on the geometric position of the electronic eye in the electronic map coordinate system, calculate the distance from that geometric position to the left or right edge of the road associated with the electronic eye. This distance is used to determine whether the electronic eye is located on the left or right side of the associated road. The electronic eye is considered to be located on the side with the closer distance.

[0135] 2. Determine whether there is a speed limit sign on the gantry. If there is a speed limit sign, set the display position of the electronic eye to the endpoint on one side close to the gantry; if there is no speed limit sign, obtain the center line of the gantry crossbar, and based on the geometric position point of the electronic eye in the electronic map coordinate system, calculate the closest distance point from the geometric position point to the center line of the gantry crossbar, and use this closest distance point as the plane display position of the electronic eye on the electronic map, that is, the closest distance point as the point bound to the gantry. Set the maximum height of the gantry pole to the height display position of the electronic eye bound to the gantry. If there is no speed limit sign on the gantry, if there are multiple electronic eyes, they may all be set to the same point on the gantry for display. At this time, it can be considered that the current electronic eye has collided with other electronic eyes, and the current electronic eye's plane display position can be moved a certain distance to the opposite side of the gantry, such as moving the width of an electronic eye display model.

[0136] 3. In order to achieve a better effect in the actual display of the calculated display position, the relative position of the electronic eye at the top of the tunnel can be appropriately adjusted according to the actual display model of the electronic eye and gantry in the electronic map with the help of three-dimensional modeling display tools.

[0137] It should be noted that when binding the electronic eye to the gantry, multiple binding slots can be set within the gantry width, based on the width of the gantry and the width or fixed distance of the electronic eye display model, to serve as fixed binding positions for the electronic eye. In some embodiments, the display positions of multiple electronic eyes can be allowed to completely overlap, but misalignment and collision of the display positions of multiple electronic eyes can be avoided.

[0138] In an optional implementation of this embodiment, the candidate binding element is a vertical pole; step S104, i.e., the step of determining the display attribute of the target road element on the electronic map based on the target binding element, further includes the following steps:

[0139] Determining the associated road of the vertical pole as the associated road of the target road element; wherein the direction of the target road element is opposite to the direction of the associated road;

[0140] Calculating the distances from the vertical pole to the left and right edges of the associated road based on the position of the vertical pole in the electronic map;

[0141] determining whether the target road element is located on the left side or the right side of the associated road based on the calculated distance from the vertical pole to the left edge or the right edge of the associated road;

[0142] Calculating the closest distance point between the vertical pole and the edge line of the associated road based on the spatial position of the vertical pole and whether the target road element is located on the left side or the right side of the associated road;

[0143] determining a planar display position of the target road element on the electronic map based on the closest distance point;

[0144] The height display position of the target road element is determined based on the road surface height of the closest distance point on the electronic map.

[0145] In this optional implementation, when the target binding element is a vertical pole, the process of determining the display attributes of the target road element is described using an electronic eye as an example:

[0146] 1. Obtain the road associated with the vertical pole as the associated road of the electronic eye. The direction of the electronic eye is opposite to that of the associated road. According to the position of the vertical pole bound to the electronic eye in the electronic map, calculate the distance from the position point to the left or right edge of the associated road, and judge whether the electronic eye is located on the left or right side of the associated road based on the distance. It should be noted that the vertical pole can be understood as the electronic eye being located at the top of the vertical pole in the actual geographical environment. However, since the data collected by the vertical pole is more accurate than the data collected by the electronic eye during the actual data collection process, the position point of the vertical pole in the electronic map is used here to calculate the distance to the side of the associated road.

[0147] 2. Based on the location of the pole associated with the electronic eye on the electronic map and whether the electronic eye is located on the left or right side of the associated road, calculate the closest point between the pole and the nearside edge of the associated road. This closest point serves as the planar position displayed on the electronic map after the electronic eye is associated with the pole. Furthermore, the road surface height at this closest point serves as the height displayed when the electronic eye is associated with the pole.

[0148] In an optional implementation of this embodiment, the candidate binding element is a road; step S104, i.e., the step of determining the display attribute of the target road element on the electronic map based on the target binding element, further includes the following steps:

[0149] Determining the candidate road as an associated road of the target road element; wherein a direction of the target road element is opposite to a direction of the associated road;

[0150] Calculating distances from the target road element to left and right edges of the associated road based on the spatial position of the target road element;

[0151] determining whether the target road element is located on the left side or the right side of the associated road based on the calculated distance from the target road element to the left edge or the right edge of the associated road;

[0152] Calculating the closest distance between the target road element and the edge line of the associated road based on the position point corresponding to the spatial position of the target road element in the electronic map and whether the target road element is located on the left side or the right side of the associated road;

[0153] determining a planar display position of the target road element on the electronic map based on the closest distance point;

[0154] The height display position of the target road element is determined based on the road surface height of the closest distance point on the electronic map.

[0155] In this optional implementation, when the target binding element is a road, the process of determining the display attributes of the target road element is described using an electronic eye as an example:

[0156] 1. Set the road as an associated road for the electronic eye. The electronic eye's direction is opposite to that of the associated road. Based on the electronic eye's location in the electronic map coordinate system, calculate the distance from that location to the left or right edge of the associated road. Based on this distance, determine whether the electronic eye is on the left or right side of the associated road.

[0157] 2. Based on the position of the electronic eye in the electronic map coordinate system and whether the electronic eye is located on the left or right side of the associated road, calculate the closest point between the electronic eye and the nearside edge of the associated road. This closest point is used as the plane display position of the electronic eye after it is bound to the associated road. The road surface height at this closest point is used as the height display position of the electronic eye after it is bound to the associated road.

[0158] According to a location-based service providing method according to an embodiment of the present disclosure, the location-based service providing method uses the above-mentioned target road element attribute determination method to determine the display attributes of the target road element, and provides location-based services to the service object based on the display attributes, and the location-based services include: navigation, map rendering, route planning or one or more.

[0159] Taking an electronic eye as an example, the target road element attribute determination method provided in this embodiment is used to determine the display attributes of the electronic eye. These display attributes include the type of target binding element, the target binding element identifier, the electronic eye's associated roads, and the electronic eye's display location. The electronic eye can then be added to an electronic map. When providing navigation services to the service recipient, the electronic eye can be dynamically displayed at the display location using a bubble or other method. Furthermore, the electronic eye is bound to the target binding element for display. This improves the display quality of the electronic eye when drawing and displaying the electronic map, and provides users with the precise location of the electronic eye.

[0160] In this embodiment, the location-based service provision method can be executed on a terminal, such as a mobile phone, iPad, computer, smartwatch, vehicle, etc. In this disclosed embodiment, the display attributes of any target road element can be determined, and then, during the location-based service process, the display attributes can be used to provide the service recipient with more accurate location services, such as navigation services, route planning services, and / or map rendering services.

[0161] The served object may be a mobile phone, iPad, computer, smartwatch, vehicle, robot, etc. When navigating, planning a route, or rendering a road on a map for the served object, the display attributes of the target road element can be obtained based on the above method and displayed. Thus, when navigating, planning a route, or rendering a map, the target road element can be displayed on the electronic map with better effect, and the user can be reminded of the location of the target road element in a more efficient manner. For specific details, please refer to the above description of the method for determining the attributes of the target road element, which will not be repeated here.

[0162] Figure 3 Schematic diagram showing an application scenario of the display properties of the electronic eye in the navigation process according to one embodiment of the present disclosure. Figure 3 As shown, during the electronic map creation process, the server obtains data collected by the electronic eye. Based on this data, the server searches the electronic map for candidate binding elements in the surrounding area. These can be configured based on actual road conditions, such as tunnels, gantries, vertical poles, and roads. After finding multiple candidate binding elements, the server then selects a target binding element that achieves optimal display quality. For example, if a tunnel exists, the tunnel is selected as the target binding element for the electronic eye. The electronic eye's planar display position on the electronic map is set to a point on the tunnel, and its elevation display position is set to the highest point at the tunnel's top. The server records the target binding element and the calculated display position as the display attributes of the electronic eye in a database. When an electronic map client requests the electronic eye's data from the server, the server sends the display attributes stored in the database to the client. When drawing the electronic map, the client draws the electronic eye on the map based on these display attributes, for example, drawing the electronic eye at the top of the tunnel and dynamically displaying it as a bubble. After receiving the user's navigation request, the client provides navigation information to the user. When passing the electronic eye, it can dynamically display the electronic eye and voice broadcast the location of the electronic eye to remind the user to pay attention.

[0163] The following are embodiments of the apparatus disclosed herein, which can be used to execute embodiments of the method disclosed herein.

[0164] Figure 4 The following is a block diagram showing a device for determining the attributes of a target road element according to an embodiment of the present disclosure. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 4 As shown, the target road element attribute determination device includes:

[0165] The first acquisition module 401 is configured to acquire collected data of a target road element; the collected data includes a spatial position of the target road element and a candidate road associated with the target road element;

[0166] A search module 402 is configured to search an electronic map for candidate binding elements within a preset range around the target road element based on the spatial position of the target road element and the candidate roads;

[0167] A second obtaining module 403 is configured to obtain a target binding element from the candidate binding elements based on a preset priority of the candidate binding elements;

[0168] The determination module 404 is configured to determine a display attribute of the target road element on the electronic map based on the target binding element.

[0169] In this embodiment, the target road element may be a road element to be added to an electronic map. The spatial location of the road element may be obtained through road data collection. In some embodiments, the collected data of the target road element may include the target road element's identification, type, spatial location, and candidate roads. The spatial location may correspond to the longitude and latitude data of the target road element in a geographic environment. The spatial location may also be the geometric position obtained by mapping the longitude and latitude data of the target road element to an electronic map coordinate system or other coordinate system. The following embodiments use mapping to an electronic map coordinate system as an example, but it should be understood that the geometric position is not limited to a position within an electronic map coordinate system.

[0170] Candidate roads for a target road element can be associated roads for the target road element collected during data collection. However, these candidate roads may not necessarily be the actual associated roads for the target road element, depending on the accuracy of the collected data. Associated roads for a target road element can be roads where the target road element is located or to which it is attached. For example, if the target road element is a camera, the associated roads for the camera are the roads observed by the camera.

[0171] Considering that the spatial position of a target road element may have some geometric deviations from its corresponding position on the electronic map, for example, after mapping the spatial position to the electronic map, the target road element may be located outside a road on the electronic map. Therefore, in order to display the target road element at the appropriate location on the electronic map, the disclosed embodiment searches the electronic map for candidate binding elements surrounding the target road element based on the collected data of the target road element, finds the target binding element from multiple candidate binding elements, and then binds the target road element to or around the target binding element, thereby improving the display quality of the target road element. The candidate binding elements can be road elements known in the electronic map, such as tunnels, gantries, vertical poles, roads, etc., and the display positions of these road elements on the electronic map can be determined.

[0172] In some embodiments, candidate road elements may be searched for within a preset distance range based on the geometric position of the target road element in the electronic map coordinate system. The searched candidate road elements may be further divided into road elements associated with candidate roads of the target road element and road elements associated with non-candidate roads of the target road element.

[0173] In some embodiments, priorities can be set for different types of candidate binding elements. For example, a higher priority can be assigned to a class of candidate binding elements whose locations on the electronic map are easy to determine, while a lower priority can be assigned to a class of candidate binding elements whose locations on the electronic map are difficult to determine. For example, a tunnel's location on the electronic map is relatively easy and accurate to determine, so a higher priority can be assigned to the tunnel. On the other hand, a road's location can be relatively long on the electronic map, making it more difficult to determine the precise location of the target binding element, so a lower priority can be assigned to the road. Specifically, the priority can be pre-determined based on the actual situation of the road elements on the electronic map, and this is not a specific limitation here.

[0174] After searching for candidate binding elements around the target road element in the electronic map, if there are multiple candidate binding elements, a target binding element may be selected based on the priority. In some embodiments, the candidate binding element with the highest priority may be determined as the target binding element.

[0175] The target binding element can be understood as being used to bind the target road element and the target binding element for display when displaying the electronic map, so that the display position of the target road element in the electronic map can be determined based on the display position of the target binding element.

[0176] Therefore, in some embodiments, after determining the target bound element, the display attributes of the target road element on the electronic map can be determined based on the target bound element. The display attributes may include, but are not limited to, the geometric information of the target road element and related information of the target bound element. The geometric information of the target road element may include the planar display position and altitude display position of the target road element on the electronic map. The related information of the target bound element may include, but is not limited to, the type, identifier, and location of the target bound element. In some embodiments, the geometric information of the target road element may be represented as a geometric relationship with the target bound element.

[0177] After determining the display attributes of the target road element in the electronic map based on the target binding element, the target road element can be displayed based on the display attributes when drawing the electronic map. For example, in some embodiments, if the target road element is an electronic eye in a tunnel, the electronic eye can be displayed as a dynamic bubble icon at the top of the tunnel in the electronic map to remind the user to pay attention to the electronic eye.

[0178] When creating an electronic map, the disclosed embodiment can search for candidate binding elements surrounding a target road element whose collected geographic data is less accurate using the collected data of the target road element. The candidate binding elements are assigned different priorities based on the quality of their display effects. A target binding element is then selected based on the priority. Ultimately, the display attributes of the target road element are determined based on the target binding element, so that the target road element can be displayed on the electronic map using these display attributes when the electronic map is drawn. In this way, based on a known spatial position and the deviation of the geometric position of the spatial position after mapping to the electronic map, a target binding element that can improve the display effect of the target road element on the electronic map can be selected from multiple candidate binding elements in the electronic map. The target road element's reasonable display position on the electronic map can then be determined based on the position of the target binding element on the electronic map. This improves the display effect of the target road element on the electronic map and reduces the difficulty of obtaining the display position of the target road element.

[0179] In an optional implementation of this embodiment, the candidate binding elements include the candidate road and a first candidate binding element associated with the candidate road, a non-candidate road and a second candidate binding element associated with the non-candidate road.

[0180] In this optional implementation, after mapping the spatial position of the target road element to the geometric position of the target road element in the electronic map, the surrounding candidate binding elements can be searched in the electronic map based on the geometric position. The candidate binding elements may include but are not limited to tunnels, gantries, vertical poles and roads. In addition to the spatial position of the target road element, the known collected data of the target road element also includes candidate roads that the target road element may be associated with. Therefore, the candidate binding elements searched out may be associated with or not associated with the candidate roads of the target road element. The embodiment of the present disclosure divides the searched candidate binding elements into a first candidate binding element associated with the candidate road of the target road element and a second candidate binding element that is not associated with the candidate road (that is, associated with a non-candidate road of the target road element). In addition, the candidate binding elements also include roads, and the road can be a candidate road and a non-candidate road of the target road element. Therefore, the candidate binding elements can be divided into four categories: candidate roads, first candidate binding elements, non-candidate roads, and second candidate binding elements.

[0181] In an optional implementation of this embodiment, the preset priority of the candidate road and the first candidate binding element is higher than the preset priority of the non-candidate road and the second candidate binding element; the preset priority of the candidate road is lower than the preset priority of the first candidate binding element; the preset priority of the non-candidate road is lower than the preset priority of the second candidate binding element.

[0182] In this optional implementation, in order to find a target binding element that can improve the display effect of the target road element in the electronic map from the searched candidate binding elements, the candidate binding elements are assigned different priorities according to the types classified above.

[0183] Since the collected data of the target road element includes candidate roads, the first candidate binding elements of the candidate roads and associated candidate roads can be given a higher priority, while the second candidate binding elements of the non-candidate roads and associated non-candidate roads can be given a lower priority, so that the priority of the first candidate binding elements of the candidate roads and associated candidate roads is higher than the priority of the second candidate binding elements of the non-candidate roads and associated non-candidate roads.

[0184] In addition, in some embodiments, the candidate binding elements that can be associated with the target road element can be summarized and organized according to actual conditions to form multiple types, such as tunnels, gantry, vertical poles, roads, etc. These types of candidate binding elements can also be prioritized according to the degree to which they improve the display effect of the target road element on the electronic map. For example, the above four candidate binding elements can be arranged in descending order of priority as follows:

[0185] 2) Tunnel 2) Gantry 3) Vertical pole 4) Road.

[0186] That is, binding the target road element with the tunnel can greatly improve the display effect of the target road element in the electronic map, while the improvement degree of the gantry, vertical pole and road is relatively low.

[0187] In addition, considering that the priorities of the candidate roads and the first candidate binding elements associated with the candidate roads are higher than the priorities of the non-candidate roads and the second candidate binding elements associated with the non-candidate roads, the priority order can be finally obtained as follows:

[0188] a first candidate binding element associated with a candidate road;

[0189] candidate roads;

[0190] a second candidate binding element associated with the non-candidate road;

[0191] Non-candidate roads.

[0192] Still taking the above four candidate binding elements as an example, the descending order of priority can be obtained as follows:

[0193] Tunnels associated with candidate roads;

[0194] Associating the gantry with the candidate roads;

[0195] A vertical bar associated with a candidate road;

[0196] candidate roads;

[0197] Tunnels associated with non-candidate roads;

[0198] Associating the gantries of non-candidate roads;

[0199] vertical poles associated with non-candidate roads;

[0200] Non-candidate roads.

[0201] In an optional implementation of this embodiment, the second acquisition module includes:

[0202] a screening submodule, configured to screen out the candidate binding element with the highest preset priority from the searched candidate binding elements;

[0203] The first determining submodule is configured to determine a target binding element from the plurality of candidate binding elements based on distances from the target road element when there are multiple candidate binding elements with the highest priority.

[0204] In this optional implementation, after searching for the surrounding candidate binding elements, the candidate binding element with the highest preset priority may be found based on the types of the candidate binding elements.

[0205] When there are multiple candidate binding elements with the highest priority, the one closest to the target road element may be selected as the target binding element based on the distances between the target road element and the multiple candidate binding elements with the highest priority.

[0206] In an optional implementation of this embodiment, the determining module includes:

[0207] a second determining submodule configured to, when the target binding element is a non-road, determine the associated road of the target binding element as the associated road of the target road element;

[0208] a third determining submodule, configured to, when the target binding element is a road, determine the target binding element as an associated road of the target road element;

[0209] The fourth determining submodule is configured to determine a display position of the target road element on the electronic map based on the target binding element and the associated road of the target road element.

[0210] In this optional implementation, after finding the target binding element, the display attributes of the target road element can be generated based on the target binding element. The display attributes may include but are not limited to the type of the target binding element, the identifier of the target binding element, the associated road of the target road element, the display position of the target road element on the electronic map, the display direction, etc.

[0211] The associated road, display position, and display direction of the target road element can all be determined based on the target binding element.

[0212] When the target binding element is a road, the associated road of the target road element is the target binding element; and when the target binding element is a non-road, the associated road of the target binding element is determined as the associated road of the target binding element.

[0213] The purpose of binding the target road element to the target binding element is to enable the target road element to be displayed in a bound manner when displayed on the electronic map. Therefore, the display position and display direction of the target road element can also be determined based on the position and direction of the target binding element on the electronic map.

[0214] Taking the electronic eye as an example, the target binding element of the electronic eye is the tunnel. In order to display the electronic eye more prominently on the electronic map, the display position of the electronic eye can be set on the tunnel, and it can be set at the top of the tunnel. In this way, during the navigation process, the user can be reminded that there is an electronic eye here through dynamic display methods such as bubbles.

[0215] In an optional implementation of this embodiment, the target binding element is a tunnel; and the second obtaining module includes:

[0216] a fifth determining submodule, configured to determine the road where the tunnel is located as an associated road of the target road element; wherein the direction of the target road element is opposite to the direction of the associated road;

[0217] a sixth determining submodule configured to determine a planar display position of the target road element on the electronic map based on a point of closest distance from a position point corresponding to the spatial position of the target road element on the electronic map to a center line of the associated road;

[0218] The seventh determining submodule is configured to determine a height display position of the target road element on the electronic map based on the maximum height of the tunnel roof.

[0219] In this optional implementation, when the target binding element is a tunnel, the process of determining the display attributes of the target road element is described using an electronic eye as an example:

[0220] 1. Obtain the road where the tunnel is located and use it as the associated road for the electronic eye; the direction of the electronic eye is opposite to that of the associated road.

[0221] 2. Obtain the centerline of the associated road and, based on the geometric position of the electronic eye in the electronic map coordinate system, calculate the closest distance from that point to the centerline of the associated road. This closest distance point is used as the planar display position of the electronic eye on the electronic map; the maximum height of the tunnel top is used as the height display position that binds the electronic eye to the tunnel. It should be noted that since tunnels may have a displayed height on electronic maps, the electronic eye can also have a height display position in addition to the planar display position. The planar display position and the height display position constitute the electronic eye's display position on the electronic map.

[0222] 3. In order to ensure that the calculated display position achieves better results in actual display, the relative position of the electronic eye at the top of the tunnel can be appropriately adjusted according to the actual display model of the electronic eye and tunnel in the electronic map with the help of three-dimensional modeling display tools.

[0223] In an optional implementation of this embodiment, the candidate binding element is a gantry; and the second acquisition module includes:

[0224] an eighth determining submodule, configured to determine a road closest to the target road element among the roads associated with the gantry as an associated road of the target road element; wherein a direction of the target road element is opposite to a direction of the associated road;

[0225] a ninth determining submodule configured to determine, when a speed limit sign is present on the gantry, a planar display position of the target road element based on a display position of an endpoint on one side of the gantry on the electronic map;

[0226] The tenth determination submodule is configured to determine the plane display position of the target road element based on the closest distance point from the position point corresponding to the spatial position of the target road element on the electronic map to the center line of the gantry crossbar when there is no speed limit sign on the gantry, and determine the height display position of the target road element based on the maximum height of the gantry crossbar.

[0227] In this optional implementation, when the target binding element is a gantry, the process of determining the display attributes of the target road element is described using an electronic eye as an example:

[0228] 1. Select the road closest to the electronic eye among all roads associated with the gantry as the road associated with the electronic eye. The direction of the electronic eye is opposite to that of the road associated with the electronic eye. Based on the geometric position of the electronic eye in the electronic map coordinate system, calculate the distance from that geometric position to the left or right edge of the road associated with the electronic eye. This distance is used to determine whether the electronic eye is located on the left or right side of the associated road. The electronic eye is considered to be located on the side with the closer distance.

[0229] 2. Determine whether there is a speed limit sign on the gantry. If there is a speed limit sign, set the display position of the electronic eye to the endpoint on one side close to the gantry; if there is no speed limit sign, obtain the center line of the gantry crossbar, and based on the geometric position point of the electronic eye in the electronic map coordinate system, calculate the closest distance point from the geometric position point to the center line of the gantry crossbar, and use this closest distance point as the plane display position of the electronic eye on the electronic map, that is, the closest distance point as the point bound to the gantry. Set the maximum height of the gantry pole to the height display position of the electronic eye bound to the gantry. If there is no speed limit sign on the gantry, if there are multiple electronic eyes, they may all be set to the same point on the gantry for display. At this time, it can be considered that the current electronic eye has collided with other electronic eyes, and the current electronic eye's plane display position can be moved a certain distance to the opposite side of the gantry, such as moving the width of an electronic eye display model.

[0230] 3. In order to achieve a better effect in the actual display of the calculated display position, the relative position of the electronic eye at the top of the tunnel can be appropriately adjusted according to the actual display model of the electronic eye and gantry in the electronic map with the help of three-dimensional modeling display tools.

[0231] It should be noted that when binding the electronic eye to the gantry, multiple binding slots can be set within the gantry width, based on the width of the gantry and the width or fixed distance of the electronic eye display model, to serve as fixed binding positions for the electronic eye. In some embodiments, the display positions of multiple electronic eyes can be allowed to completely overlap, but misalignment and collision of the display positions of multiple electronic eyes can be avoided.

[0232] In an optional implementation of this embodiment, the candidate binding element is a vertical bar; and the second obtaining module includes:

[0233] an eleventh determining submodule, configured to determine the associated road of the vertical pole as the associated road of the target road element; wherein the direction of the target road element is opposite to the direction of the associated road;

[0234] a first calculation submodule, configured to calculate the distances from the vertical pole to the left and right edges of the associated road based on the position of the vertical pole in the electronic map;

[0235] a twelfth determining submodule, configured to determine whether the target road element is located on the left side or the right side of the associated road based on the calculated distance from the vertical pole to the left edge or the right edge of the associated road;

[0236] A second calculation submodule is configured to calculate the closest distance point between the vertical pole and the edge line of the associated road based on the spatial position of the vertical pole and whether the target road element is located on the left side or the right side of the associated road;

[0237] a thirteenth determining submodule, configured to determine a planar display position of the target road element on the electronic map based on the closest distance point;

[0238] The fourteenth determining submodule is configured to determine the height display position of the target road element based on the road surface height of the closest distance point on the electronic map.

[0239] In this optional implementation, when the target binding element is a vertical pole, the process of determining the display attributes of the target road element is described using an electronic eye as an example:

[0240] 1. Obtain the road associated with the vertical pole as the associated road of the electronic eye. The direction of the electronic eye is opposite to that of the associated road. According to the position of the vertical pole bound to the electronic eye in the electronic map, calculate the distance from the position point to the left or right edge of the associated road, and judge whether the electronic eye is located on the left or right side of the associated road based on the distance. It should be noted that the vertical pole can be understood as the electronic eye being located at the top of the vertical pole in the actual geographical environment. However, since the data collected by the vertical pole is more accurate than the data collected by the electronic eye during the actual data collection process, the position point of the vertical pole in the electronic map is used here to calculate the distance to the side of the associated road.

[0241] 2. Based on the location of the pole associated with the electronic eye on the electronic map and whether the electronic eye is located on the left or right side of the associated road, calculate the closest point between the pole and the nearside edge of the associated road. This closest point serves as the planar position displayed on the electronic map after the electronic eye is associated with the pole. Furthermore, the road surface height at this closest point serves as the height displayed when the electronic eye is associated with the pole.

[0242] In an optional implementation of this embodiment, the candidate binding element is a road; and the second acquisition module includes:

[0243] a fifteenth determining submodule, configured to determine the candidate road as an associated road of the target road element; wherein a direction of the target road element is opposite to a direction of the associated road;

[0244] a third calculation submodule, configured to calculate distances from the target road element to the left and right edges of the associated road based on the spatial position of the target road element;

[0245] a sixteenth determining submodule, configured to determine whether the target road element is located on the left side or the right side of the associated road based on the calculated distance from the target road element to the left edge or the right edge of the associated road;

[0246] a fourth calculation submodule configured to calculate a point of closest distance between the target road element and an edge line of the associated road based on a location point corresponding to the spatial location of the target road element in the electronic map and whether the target road element is located on the left side or the right side of the associated road;

[0247] A seventeenth determining submodule is configured to determine a planar display position of the target road element on the electronic map based on the closest distance point;

[0248] An eighteenth determining submodule is configured to determine a height display position of the target road element based on the road surface height of the closest distance point on the electronic map.

[0249] In this optional implementation, when the target binding element is a road, the process of determining the display attributes of the target road element is described using an electronic eye as an example:

[0250] 1. Set the road as an associated road for the electronic eye. The electronic eye's direction is opposite to that of the associated road. Based on the electronic eye's location in the electronic map coordinate system, calculate the distance from that location to the left or right edge of the associated road. Based on this distance, determine whether the electronic eye is on the left or right side of the associated road.

[0251] 2. Based on the position of the electronic eye in the electronic map coordinate system and whether the electronic eye is located on the left or right side of the associated road, calculate the closest point between the electronic eye and the nearside edge of the associated road. This closest point is used as the plane display position of the electronic eye after it is bound to the associated road. The road surface height at this closest point is used as the height display position of the electronic eye after it is bound to the associated road.

[0252] According to a location-based service providing device according to one embodiment of the present disclosure, the location-based service providing device uses the above-mentioned target road element attribute determination device to determine the display attributes of the target road element, and provides location-based services to the service object based on the display attributes. The location-based services include: navigation, map rendering, route planning or one or more thereof.

[0253] Taking an electronic eye as an example, the target road element attribute determination device provided in this embodiment is used to determine the display attributes of the electronic eye. These attributes include the type of target binding element, the target binding element identifier, the electronic eye's associated roads, and the electronic eye's display location. This electronic eye can then be added to an electronic map. When providing navigation services to the service recipient, the electronic eye can be dynamically displayed at the display location using a bubble or other method. Furthermore, the electronic eye is bound to the target binding element for display. This improves the display quality of the electronic eye when drawing and displaying the electronic map, and provides users with the precise location of the electronic eye.

[0254] In this embodiment, the location-based service providing device can be executed on a terminal, such as a mobile phone, iPad, computer, smart watch, vehicle, etc. In the disclosed embodiment, the display attributes of any target road element can be determined, and then, during the location-based service process, the display attributes can be used to provide the service recipient with more accurate location services, such as navigation services, route planning services, and / or map rendering services.

[0255] The served object may be a mobile phone, iPad, computer, smartwatch, vehicle, robot, etc. When navigating, planning a route, or rendering a road on a map for the served object, the display attributes of the target road element can be obtained based on the above-mentioned device and displayed. Thus, when navigating, planning a route, or rendering a map, the target road element can be displayed on the electronic map with better effect, and the user can be reminded of the location of the target road element in a more efficient manner. For specific details, please refer to the above-mentioned description of the device for determining the attributes of the target road element, which will not be repeated here.

[0256] Figure 5 It is a structural diagram of an electronic device suitable for implementing the method for determining attributes of a target road element and / or the method for providing location-based services according to an embodiment of the present disclosure.

[0257] like Figure 5 As shown, the electronic device 500 includes a processing unit 501, which can be implemented as a processing unit such as a CPU, a GPU, an FPGA, an NPU, etc. The processing unit 501 can perform various processes in the embodiment of any of the above methods of the present disclosure according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage portion 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0258] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, and the like; an output section 507 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 508 including a hard disk; and a communication section 509 including a network interface card such as a LAN card or a modem. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 510 as needed, so that computer programs read therefrom can be installed into the storage section 508 as needed.

[0259] In particular, according to embodiments of the present disclosure, any of the methods described above with reference to the embodiments of the present disclosure may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for executing any of the methods described in the embodiments of the present disclosure. In such embodiments, the computer program may be downloaded and installed from a network via the communication portion 509 and / or installed from a removable medium 511.

[0260] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the diagram or block diagram can represent a module, program segment or part of the code, and the module, program segment or part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, as well as the combination of boxes in the block diagram and / or flow chart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or can be implemented using a combination of dedicated hardware and computer instructions.

[0261] The units or modules described in the embodiments of the present disclosure may be implemented in software or hardware. The units or modules described may also be provided in a processor, and the names of these units or modules do not, in certain circumstances, limit the units or modules themselves.

[0262] As another aspect, the present disclosure further provides a computer-readable storage medium. This computer-readable storage medium may be included in the apparatus described in the above embodiments, or may be a standalone computer-readable storage medium not incorporated into the apparatus. The computer-readable storage medium stores one or more programs, which are used by one or more processors to execute the methods described in the present disclosure.

[0263] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of the invention herein is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also encompasses other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the inventive concept. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

Claims

1. A method for determining the attributes of a target road element, wherein: include: Obtaining collected data of target road elements; The collected data includes the spatial position of the target road element and the candidate roads associated with the target road element; searching an electronic map for candidate binding elements within a preset range around the target road element based on the spatial position of the target road element and the candidate roads; acquiring a target binding element from the candidate binding elements based on a preset priority of the candidate binding elements; The display attribute of the target road element on the electronic map is determined based on the target binding element, so that the target road element is displayed on the electronic map with the display attribute when the electronic map is drawn.

2. The method according to claim 1, wherein The candidate binding elements include the candidate road and a first candidate binding element associated with the candidate road, a non-candidate road and a second candidate binding element associated with the non-candidate road.

3. The method according to claim 2, wherein: The preset priority of the candidate road and the first candidate binding element is higher than the preset priority of the non-candidate road and the second candidate binding element; the preset priority of the candidate road is lower than the preset priority of the first candidate binding element; the preset priority of the non-candidate road is lower than the preset priority of the second candidate binding element.

4. The method according to any one of claims 1 to 3, wherein: Acquiring a target binding element from the candidate binding elements based on a preset priority of the candidate binding elements includes: Filter out the candidate binding element with the highest preset priority from the searched candidate binding elements; When there are multiple candidate binding elements with the highest priority, a target binding element is determined from the multiple candidate binding elements based on the distance from the target road element.

5. The method according to any one of claims 1 to 3, wherein: Determining a display attribute of the target road element on the electronic map based on the target binding element includes: When the target binding element is a non-road, determining the associated road of the target binding element as the associated road of the target road element; When the target binding element is a road, determining the target binding element as an associated road of the target road element; A display position of the target road element on the electronic map is determined based on the target binding element and the associated road of the target road element.

6. The method according to any one of claims 1 to 3, wherein: The target binding element is a tunnel; Determining a display attribute of the target road element on the electronic map based on the target binding element includes: Determining the road where the tunnel is located as an associated road of the target road element; wherein the direction of the target road element is opposite to the direction of the associated road; determining a planar display position of the target road element on the electronic map based on a point of closest distance from a position point corresponding to the spatial position of the target road element on the electronic map to a center line of the associated road; The height display position of the target road element on the electronic map is determined based on the maximum height of the tunnel top.

7. The method according to any one of claims 1 to 3, wherein: The candidate binding element is a gantry; Determining a display attribute of the target road element on the electronic map based on the target binding element includes: Determine the road closest to the target road element among the roads associated with the gantry as the associated road of the target road element; wherein the direction of the target road element is opposite to the direction of the associated road; When there is a speed limit sign on the gantry, determining the plane display position of the target road element based on the display position of an end point on one side of the gantry on the electronic map; When there is no speed limit sign on the gantry, the plane display position of the target road element is determined based on the closest distance point from the position point corresponding to the spatial position of the target road element on the electronic map to the center line of the gantry crossbar, and the height display position of the target road element is determined based on the maximum height of the gantry crossbar.

8. The method according to claim 5, wherein The candidate binding element is a vertical pole; and determining the display attribute of the target road element on the electronic map based on the target binding element includes: Determining the associated road of the vertical pole as the associated road of the target road element; wherein the direction of the target road element is opposite to the direction of the associated road; Calculating the distances from the vertical pole to the left and right edges of the associated road based on the position of the vertical pole in the electronic map; determining whether the target road element is located on the left side or the right side of the associated road based on the calculated distance from the vertical pole to the left edge or the right edge of the associated road; Calculating the closest distance point between the vertical pole and the edge line of the associated road based on the spatial position of the vertical pole and whether the target road element is located on the left side or the right side of the associated road; determining a planar display position of the target road element on the electronic map based on the closest distance point; The height display position of the target road element is determined based on the road surface height of the closest distance point on the electronic map.

9. The method according to claim 5, wherein: The candidate binding element is the candidate road; Determining a display attribute of the target road element on the electronic map based on the target binding element includes: Determining the candidate road as an associated road of the target road element; wherein a direction of the target road element is opposite to a direction of the associated road; Calculating distances from the target road element to left and right edges of the associated road based on the spatial position of the target road element; determining whether the target road element is located on the left side or the right side of the associated road based on the calculated distance from the target road element to the left edge or the right edge of the associated road; Calculating the closest distance between the target road element and the edge line of the associated road based on the position point corresponding to the spatial position of the target road element in the electronic map and whether the target road element is located on the left side or the right side of the associated road; determining a planar display position of the target road element on the electronic map based on the closest distance point; The height display position of the target road element is determined based on the road surface height of the closest distance point on the electronic map.

10. A method for providing location-based services, comprising: binding a target road element on an electronic map using the method according to any one of claims 1 to 9, and then providing location-based services to a service recipient; the location-based services comprising: One or more of navigation, map rendering, and route planning.

11. A device for determining attributes of a target road element, comprising: A first acquisition module is configured to acquire collected data of a target road element; The collected data includes the spatial position of the target road element and the candidate roads associated with the target road element; A search module is configured to search an electronic map for candidate binding elements within a preset range around the target road element based on the spatial position of the target road element and the candidate roads; a second acquiring module configured to acquire a target binding element from the candidate binding elements based on a preset priority of the candidate binding elements; The determining module is configured to determine the display attribute of the target road element on the electronic map based on the target binding element, so as to display the target road element on the electronic map with the display attribute when drawing the electronic map.

12. A location-based service providing device, comprising: utilizing the device of claim 11 to bind a target road element on an electronic map, and providing a location-based service to a service recipient; wherein the location-based service comprises: One or more of navigation, map rendering, and route planning.

13. A computer-readable storage medium having computer instructions stored thereon, wherein: When the computer instructions are executed by a processor, the method according to any one of claims 1 to 10 is implemented.

Citation Information

Patent Citations

  • High-precision map processing method, device, equipment, storage medium and program product

    CN112541049A

  • Calibration method and device for vehicle positioning, equipment, vehicle and medium

    CN112883058A