Navigation method and corresponding apparatus, electronic device, computer program product
By dynamically adjusting the navigation scale, the traffic safety problem caused by the continuous failure of electronic eyes to be displayed was solved, and the timely and accurate display of electronic eyes was achieved, thus improving navigation quality and user experience.
Patent Information
- Application Number
- CN202210345624.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-31
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2042-03-31
AI Technical Summary
In existing navigation technologies, if continuous electronic eyes are not located within the geographical range rendered by the map scale of the navigation object, they cannot be displayed on the screen, causing users to ignore or suddenly notice the electronic eyes, resulting in emergency driving behavior and affecting traffic safety.
A dynamic scale mechanism is adopted, which adjusts the scale size according to the location of the navigation object and the actual traffic conditions to ensure that the continuous electronic eyes are displayed on the screen in a timely and accurate manner.
It effectively reduces traffic safety hazards caused by fixed scales, improves navigation quality and user experience, and avoids driving violations and emergency operations.
Smart Images

Figure CN114812599B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present disclosure relate to the technical field of navigation, in particular to a navigation method and a corresponding device, an electronic device and a computer program product. BACKGROUND
[0002] With the development and progress of society, there are more and more application software with map navigation function. When a user uses the navigation function provided by such application software, the application software will render the navigation route and route-related information in the electronic map in the screen based on the positioning location of the navigation object and the set map scale, so that the user can understand the relevant situation of the navigation route and drive safely.
[0003] For the navigation function, the inventors find that there are continuous electronic eyes on some sections of the navigation route. In the existing continuous electronic eyes, only the electronic eyes within the geographic range covered by the electronic map rendered by the application software based on the positioning location of the navigation object and the map scale can be rendered in the screen. The electronic eyes that are not rendered cannot be rendered in the screen even if they are very close to the electronic eyes that have been rendered, because their positions are not within the geographic range covered by the electronic map. This will cause the user to not notice the electronic eyes, which violates the corresponding road driving regulations or suddenly notices the electronic eyes, thereby causing emergency driving behavior (such as sudden braking), which affects traffic safety. SUMMARY
[0004] Embodiments of the present disclosure provide a navigation method and a corresponding device, an electronic device and a computer program product.
[0005] In a first aspect, a navigation method is provided in embodiments of the present disclosure.
[0006] Specifically, the navigation method comprises:
[0007] determining whether there are at least two target objects in the navigation route based on the positioning location of the navigation object and the pre-planned navigation route;
[0008] when it is determined that there are at least two target objects, determining an initial scale at which the navigation object and the at least two target objects appear in the electronic map to be displayed simultaneously;
[0009] determining whether the initial scale meets a preset condition, and correcting the initial scale when the initial scale meets the preset condition;
[0010] rendering the electronic map and the navigation route containing the target objects according to the positioning location of the navigation object and the corrected scale.
[0011] With reference to the first aspect, in a first implementation of the first aspect, the determining whether there are at least two continuous target objects in the navigation route based on the positioning location of the navigation object and the pre-planned navigation route comprises:
[0012] The determining whether the navigation object travels through the first target object closest to the navigation object in the navigation route based on the positioning location of the navigation object and the pre-planned navigation route.
[0013] The determining whether there are at least two continuous target objects in the navigation route based on the positioning location of the navigation object and the pre-planned navigation route when it is determined that the navigation object travels through the first target object closest to the navigation object in the navigation route.
[0014] With reference to the first aspect and the first implementation of the first aspect, in a second implementation of the first aspect, the determining whether there are at least two continuous target objects in the navigation route based on the positioning location of the navigation object and the pre-planned navigation route comprises:
[0015] The determining the first target object closest to the navigation object in the navigation route according to the positioning location of the navigation object.
[0016] The determining a distance between the navigation object and the first target object.
[0017] The determining whether there are at least two other target objects within a first distance after the first target object when the distance between the navigation object and the first target object is less than a preset effective distance, wherein the preset effective distance is related to a road type and a road attribute where the navigation object is located, and the first distance is related to the road type.
[0018] If there are, it is determined that there are at least two continuous target objects in the navigation route.
[0019] With reference to the first aspect and the above implementations of the first aspect, in a third implementation of the first aspect, the preset condition comprises that the scale exceeds a preset scale range, wherein the preset scale range is related to a road type, a road attribute and a navigation object speed where the navigation object is located.
[0020] With reference to the first aspect and the above implementations of the first aspect, in a fourth implementation of the first aspect, the correcting the initial scale when the initial scale meets the preset condition comprises:
[0021] determine a corresponding preset scale range according to a road type, a road attribute and a navigation object travel speed where the navigation object is located;
[0022] correct the initial scale to a lower limit of scale when the initial scale is lower than the lower limit of scale in the preset scale range;
[0023] correct the initial scale to an upper limit of scale when the initial scale is higher than the upper limit of scale in the preset scale range.
[0024] With reference to the first aspect, in a fifth implementation of the first aspect, when the road type where the navigation object is located is a preset road type and the road attribute is a preset road attribute, or when the preset scale range to which the current scale belongs is a preset scale range corresponding to a higher navigation object travel speed, the preset scale range does not change due to a decrease in the navigation object travel speed.
[0025] With reference to the first aspect, in a sixth implementation of the first aspect, the rendering, according to the positioning location of the navigation object and the corrected scale, of the electronic map and the navigation route containing the target object comprises:
[0026] in response to reaching a preset time interval, rendering, according to the positioning location of the navigation object and the corrected scale, of the electronic map and the navigation route containing the target object.
[0027] In a second aspect, a navigation device is provided in the embodiments of the present disclosure.
[0028] Specifically, the navigation device comprises:
[0029] a judgment module configured to judge, based on a positioning location of a navigation object and a pre-planned navigation route, whether there are at least two target objects in the navigation route;
[0030] a determination module configured to, when it is determined that there are at least two target objects, determine an initial scale at which the navigation object and the at least two target objects appear simultaneously in a to-be-displayed electronic map;
[0031] a correction module configured to judge whether the initial scale meets a preset condition, and correct the initial scale when the initial scale meets the preset condition;
[0032] a rendering module configured to render, according to the positioning location of the navigation object and the corrected scale, the electronic map and the navigation route containing the target object.
[0033] In a third aspect, the embodiments of the present disclosure provide an electronic device, comprising a memory and a processor, the memory is configured to store one or more computer instructions supporting the navigation device to execute the navigation method described above, and the processor is configured to execute the computer instructions stored in the memory. The navigation device can further comprise a communication interface configured to enable the navigation device to communicate with other devices or communication networks.
[0034] In a fourth aspect, the embodiments of the present disclosure provide a computer readable storage medium configured to store computer instructions for the navigation device, which comprises computer instructions for executing the navigation method described above.
[0035] In a fifth aspect, the embodiments of the present disclosure provide a computer program product comprising computer programs / instructions, wherein the computer programs / instructions are configured to implement the steps of the navigation method described above when executed by a processor.
[0036] The technical solutions provided by the embodiments of the present disclosure can have the following beneficial effects:
[0037] The technical solution described above uses a dynamic scale mechanism when there are multiple electronic eyes, so as to adjust the size of the scale according to the actual traffic situation. This technical solution can realize timely and accurate display for each electronic eye, avoid the situation that some electronic eyes are not in the geographic range covered by the electronic map rendered by the map scale due to the fixed display scale, so that the user ignores the electronic eye, and further leads to the situation that the driving violation occurs due to the failure to find the electronic eye or the dangerous emergency operation occurs due to the failure to find the electronic eye in time. Therefore, this technical solution effectively reduces the traffic safety hazards, improves the navigation quality, and improves the user experience.
[0038] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the embodiments of the present disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0039] Other features, objects and advantages of the embodiments of the present disclosure will become more apparent from the following detailed description of the non-limiting embodiments, combined with the attached drawings. In the drawings:
[0040] Figure 1 A flow chart of a navigation method according to an embodiment of the present disclosure is shown;
[0041] Figure 2 A structural block diagram of a navigation device according to an embodiment of the present disclosure is shown;
[0042] Figure 3 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown;
[0043] Figure 4This is a schematic diagram of the structure of a computer system suitable for implementing a navigation method according to an embodiment of the present disclosure. Detailed Implementation
[0044] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings to enable those skilled in the art to readily implement them. Furthermore, for clarity, portions unrelated to the description of the exemplary embodiments have been omitted from the drawings.
[0045] In embodiments disclosed herein, it should be understood that terms such as “comprising” or “having” are intended to indicate the presence of features, numbers, steps, behaviors, components, portions or combinations thereof disclosed herein, and are not intended to exclude the possibility that one or more other features, numbers, steps, behaviors, components, portions or combinations thereof are present or added.
[0046] It should also be noted that, unless otherwise specified, the embodiments and features described in this disclosure can be combined with each other. The embodiments of this disclosure will now be described in detail with reference to the accompanying drawings and examples.
[0047] The technical solution provided in this disclosure uses a dynamic scale mechanism when multiple traffic cameras are present, adjusting the scale size according to actual traffic conditions. This solution enables timely and accurate display of each traffic camera, preventing situations where a fixed display scale leads to some cameras being outside the geographical coverage area of the electronic map rendered at that scale, causing users to overlook them. This can result in traffic violations due to undetected cameras or dangerous emergency maneuvers due to untimely camera detection. Therefore, this technical solution effectively reduces traffic safety hazards, improves navigation quality, and enhances the user experience.
[0048] Figure 1 A flowchart illustrating a navigation method according to an embodiment of the present disclosure is shown, such as... Figure 1 As shown, the navigation method includes the following steps S101-S104:
[0049] In step S101, based on the location of the navigation object and the pre-planned navigation route, it is determined whether there are at least two consecutive target objects in the navigation route;
[0050] In step S102, when it is determined that there are at least two target objects, the initial scale of the navigation object and the at least two target objects appearing simultaneously in the electronic map to be displayed is determined.
[0051] In step S103, it is determined whether the initial scale meets the preset conditions. When the initial scale meets the preset conditions, the initial scale is corrected.
[0052] In step S104, the electronic map and the navigation route containing the target object are rendered according to the positioning location of the navigation object and the corrected scale.
[0053] As mentioned above, with the development and progress of the society, there are more and more application software with map navigation function. When a user uses the navigation function provided by the application software, the application software renders the navigation route and the route-related information in the electronic map in the screen based on the positioning location of the navigation object and the set map scale, so that the user can understand the related conditions of the navigation route and drive safely. For the navigation function, the inventors find that there are continuous electronic eyes on some sections of the navigation route. In the existing continuous electronic eyes, only the electronic eyes within the geographic range covered by the electronic map rendered by the application software based on the positioning location of the navigation object and the map scale can be rendered in the screen. The electronic eyes that are not rendered cannot be rendered in the screen even if they are very close to the electronic eyes that have been rendered, because their positions are not within the geographic range covered by the electronic map. This will cause the user to ignore the electronic eyes, which violates the corresponding road driving regulations or suddenly notices the electronic eyes, thereby causing emergency driving behavior (such as sudden braking), which affects traffic safety.
[0054] In view of the above problems, in this embodiment, a navigation method is proposed, which uses a dynamic scale mechanism when there are multiple electronic eyes, to adjust the size of the scale according to the actual traffic situation. This technical solution can realize timely and accurate display of each electronic eye, and avoid the situation that some electronic eyes are not within the geographic range covered by the electronic map rendered by the fixed display scale, so that the user ignores the electronic eyes, and further causes driving violations due to the failure to discover the electronic eyes or dangerous emergency operations due to the failure to discover the electronic eyes in time. Therefore, this technical solution effectively reduces the traffic safety hazards, improves the navigation quality, and improves the user experience.
[0055] In an embodiment of the present disclosure, the navigation method can be applied to a navigation party such as a computer, a computing device, an electronic device, a server, etc. that can perform navigation.
[0056] In an embodiment of the present disclosure, the electronic map to be displayed refers to an electronic map that can display navigation content after being rendered by using the positioning location of the navigation object and the scale and other parameters.
[0057] In an embodiment of the present disclosure, the navigation object refers to an object that accepts navigation service according to the electronic map, such as a vehicle driving on the road according to the navigation route indicated by the electronic map, etc.
[0058] In an embodiment of the present disclosure, the target object refers to an object that needs to be observed to determine the display scale of the electronic map by its position, such as an electronic eye, a traffic monitoring device, a traffic monitoring camera, etc.
[0059] In an embodiment of the present disclosure, the initial scale refers to a scale initially determined for displaying the electronic map, which can be set as a default scale for displaying the electronic map.
[0060] In an embodiment of the present disclosure, the preset condition refers to a condition for determining whether the initial scale needs to be corrected, i.e. if the initial scale meets the preset condition, it means that the initial scale needs to be corrected. In an embodiment of the present disclosure, the preset condition can be set as that the scale exceeds a preset scale range, wherein the preset scale range is related to the road type, road attribute and navigation object speed of the navigation object, wherein the road type can be, for example, highway, national highway, provincial highway, county road, urban expressway, urban trunk road, ordinary road, etc.; the road attribute refers to whether the road is a straight road or a curved road, which can be represented by the average curvature of the road; the navigation object speed refers to the speed of the navigation object in its direction of travel, which can be taken as the average speed in the first preset time length before the current time in an embodiment of the present disclosure, wherein the first preset time length can be set according to actual application needs, for example, it can be set as 10 seconds.
[0061] In view of the application scenarios of multiple electronic eyes, it is possible that the user ignores the electronic eyes due to the fixed display scale, and thus driving violations occur due to the failure to discover the electronic eyes or emergency operations occur due to the failure to discover the electronic eyes in time. At this time, the display scale needs to be dynamically adjusted. In the application scenarios of single electronic eye, the above-mentioned situations rarely occur, and thus the display scale does not need to be corrected. Therefore, in the above-mentioned embodiments, firstly, whether there are continuous at least two target objects in the navigation route based on the positioning position of the navigation object and the pre-planned navigation route, that is, whether the current scene is a multiple electronic eye scene, is determined. When it is determined that there are continuous at least two target objects in the navigation route based on the positioning position of the navigation object and the pre-planned navigation route, firstly, the initial scale at which the navigation object and the at least two target objects simultaneously appear in the electronic map to be displayed is determined. Then, whether the initial scale meets a preset condition is determined. When it is determined that the initial scale meets the preset condition, the initial scale is corrected, and the electronic map and the navigation route containing the target objects are rendered according to the positioning position of the navigation object and the corrected scale. Otherwise, when the initial scale does not meet the preset condition, the initial scale does not need to be corrected. At this time, the electronic map and the navigation route containing the target objects can be rendered according to the positioning position of the navigation object and the initial scale.
[0062] In an embodiment of the present disclosure, in order to guarantee the stability of the electronic map rendering, the method can determine whether there are continuous at least two target objects in the navigation route after determining that the navigation object drives through the first target object closest to the navigation object in the navigation route.
[0063] That is, in an embodiment of the present disclosure, the determination of whether there are continuous at least two target objects in the navigation route based on the positioning position of the navigation object and the pre-planned navigation route can be implemented as:
[0064] determining whether the navigation object drives through the first target object closest to the navigation object in the navigation route based on the positioning position of the navigation object and the pre-planned navigation route;
[0065] when it is determined that the navigation object drives through the first target object closest to the navigation object in the navigation route, determining whether there are continuous at least two target objects in the navigation route based on the positioning position of the navigation object and the pre-planned navigation route.
[0066] To further ensure the stability of the electronic map rendering, the method can further start the judgment of the modification of the scale after a second preset time length after determining that there are at least two continuous target objects in the navigation route, such as whether the initial scale meets the preset condition, wherein the second preset time length can be set according to the actual application, such as 10 seconds.
[0067] That is, in an embodiment of the present disclosure, the step of judging whether the initial scale meets the preset condition can be implemented as:
[0068] In response to reaching a second preset time length after determining that there are at least two continuous target objects in the navigation route, judging whether the initial scale meets the preset condition.
[0069] In an embodiment of the present disclosure, the step of judging whether there are at least two continuous target objects in the navigation route based on the positioning position of the navigation object and the pre-planned navigation route can include the following steps:
[0070] Determining the first target object in the navigation route closest to the navigation object according to the positioning position of the navigation object;
[0071] Determining the distance between the navigation object and the first target object;
[0072] When the distance between the navigation object and the first target object is less than a preset effective distance, determining whether there are other at least two target objects within a first distance after the first target object, wherein the preset effective distance is related to the road type and road attribute where the navigation object is located, and the first distance is related to the road type;
[0073] If there are, it is determined that there are at least two continuous target objects in the navigation route.
[0074] In this embodiment, when it is determined that the distance between the navigation object and the first target object closest to the navigation object in the navigation route is less than a preset effective distance, it is determined whether there are other at least two target objects within a first distance after the first target object, wherein the preset effective distance is related to the road type and road attribute where the navigation object is located, and specific examples can be referred to Table 1; the first distance is related to the road type, and specific examples can be referred to Table 2; if there are other at least two continuous target objects within the first distance after the first target object, it can be determined that there are at least two continuous target objects in the navigation route, that is, a multi-electronic eye scene.
[0075] Table 1: Example of preset effective distance
[0076] Road type Road attribute Pre-set effective distance Highway Curvature < 10 2000 meters Highway Curvature ≥ 10 1000 meters National and provincial highway Curvature < 15 800 meters National and provincial highway Curvature ≥ 15 300 meters Urban expressway Curvature < 15 1500 meters Urban expressway Curvature ≥ 15 400 meters Ordinary road Curvature < 15 500 meters Ordinary road Curvature ≥ 15 200 meters
[0077] Table 2 first distance example table
[0078] Road type First distance Highway 2000 meters National and provincial highway 800 meters Urban expressway 1500 meters Ordinary road 500 meters
[0079] In an embodiment of the present disclosure, when the initial scale satisfies a preset condition, the step of correcting the initial scale in the step S102 can include the following steps:
[0080] determining a corresponding preset scale range according to a road type, a road attribute and a navigation object travel speed where the navigation object is currently located;
[0081] correcting the initial scale to a lower limit of the scale when the initial scale is lower than the lower limit of the scale in the preset scale range;
[0082] correcting the initial scale to an upper limit of the scale when the initial scale is higher than the upper limit of the scale in the preset scale range.
[0083] In this embodiment, when the initial scale is corrected, first, a corresponding preset scale range is determined according to a road type, a road attribute and a navigation object travel speed where the navigation object is currently located, and specific examples of the preset scale range can be referred to Table 3; then the initial scale is compared with the preset scale range, if the initial scale is lower than a lower limit of the scale in the preset scale range, the initial scale is corrected to the lower limit of the scale, if the initial scale is higher than an upper limit of the scale in the preset scale range, the initial scale is corrected to the upper limit of the scale, and if the initial scale is in the preset scale range, the initial scale is not corrected.
[0084] Table 3 preset scale range example table
[0085]
[0086]
[0087] In an embodiment of the present disclosure, when a road type where the navigation object is currently located is a preset road type, and a road attribute is a preset road attribute, or when a preset scale range to which the current scale belongs is a preset scale range corresponding to a higher navigation object travel speed, the preset scale range does not change due to a decrease in the navigation object travel speed.
[0088] In view of the fact that the navigation object travels at a high speed on a high-speed road, an urban expressway, an urban trunk road, and the like, and especially in a curved road section, the observation field of view of the navigation object is limited, at this time, the scale is not suitable for frequent adjustment. Therefore, in this embodiment, when the type of the road where the navigation object is currently located is a preset road type such as a high-speed road, an urban expressway, an urban trunk road, and the like, and the road attribute is a curve, the preset scale range does not change due to the decrease of the navigation object travel speed, that is, when the type of the road where the navigation object is located is a preset road type, and the road attribute is a preset road attribute, the judgment of whether to correct the scale is only started when the navigation object travel speed increases to change the preset scale range, when the navigation object travel speed decreases, the preset scale range does not change, at this time, the judgment of whether to correct the scale is not started.
[0089] In addition, in order to avoid the increase of the rendering workload of the electronic map and the navigation route caused by the frequent adjustment of the scale, when the preset scale range to which the current scale belongs is a preset scale range corresponding to a higher navigation object travel speed, the preset scale range does not change due to the decrease of the navigation object travel speed.
[0090] In an embodiment of the present disclosure, the step S103, that is, the step of rendering the electronic map and the navigation route containing the target object according to the positioning position of the navigation object and the corrected scale, can include the following steps:
[0091] In response to reaching a preset time interval, the electronic map and the navigation route containing the target object are rendered according to the positioning position of the navigation object and the corrected scale.
[0092] In order to avoid the rendering frequency of the electronic map and the navigation route being too high due to the scale correction being too frequent, and thus causing the display of the electronic map and the navigation route to be unstable, in this embodiment, the judgment of the scale correction and the correction of the scale can be performed in real time, but the rendering of the electronic map and the navigation route needs to be displayed according to the current scale at a preset time interval or at a preset time point. The preset time interval can be, for example, 10 seconds, assuming that the scale is corrected 3 times within a certain 10 seconds, but only when the 10 seconds are reached, the electronic map and the navigation route are rendered according to the positioning position of the navigation object and the corrected scale according to the scale corrected last time.
[0093] The following is an apparatus embodiment of the present disclosure, which can be used to execute the method embodiment of the present disclosure.
[0094] Figure 2A structural block diagram of a navigation device according to an embodiment of the present disclosure is shown, which can be realized by software, hardware or a combination of both as part of or all of an electronic device. As shown in the figure, the navigation device comprises: Figure 2
[0095] A judging module 201 is configured to judge whether there are at least two target objects in succession in the navigation route based on the positioning location of the navigation object and the pre-planned navigation route.
[0096] A determining module 202 is configured to determine the initial scale at which the navigation object and the at least two target objects appear in the electronic map to be displayed when it is determined that there are at least two target objects.
[0097] A correcting module 203 is configured to judge whether the initial scale meets a preset condition and correct the initial scale when the initial scale meets the preset condition.
[0098] A rendering module 204 is configured to render the electronic map and the navigation route containing the target objects according to the positioning location of the navigation object and the corrected scale.
[0099] As mentioned above, with the development and progress of society, there are more and more application software with map navigation function. When a user uses the navigation function provided by such application software, the application software will render the navigation route and route-related information in the electronic map in the screen based on the positioning location of the navigation object and the set map scale, so that the user can understand the relevant situation of the navigation route and drive safely. For the navigation function, the inventors find that there are continuous electronic eyes on some sections of the navigation route, and among the existing continuous electronic eyes, only the electronic eyes within the geographic range covered by the electronic map rendered by the application software based on the positioning location of the navigation object and the map scale can be rendered in the screen. The electronic eyes that are not rendered cannot be rendered in the screen even if they are very close to the electronic eyes that have been rendered, because their positions are not within the geographic range covered by the electronic map. This will lead to the fact that the user does not notice the electronic eyes, which violates the corresponding road driving regulations or suddenly notices the electronic eyes, thereby causing emergency driving behavior (such as sudden braking), which affects traffic safety.
[0100] In view of the above problems, in this embodiment, a navigation device is proposed, which uses a dynamic scale mechanism when there are multiple electronic eyes, to adjust the size of the scale according to the actual traffic situation. This technical solution can realize timely and accurate display for each electronic eye, avoid the situation that some electronic eyes are ignored by the user because they are not within the geographic range covered by the electronic map rendered by the map scale, and thus lead to the situation that driving violations occur due to the failure to discover the electronic eye or dangerous emergency operations occur due to the failure to discover the electronic eye in time, so this technical solution effectively reduces the traffic safety hazards, improves the navigation quality, and improves the user experience.
[0101] In an embodiment of the present disclosure, the navigation device can be implemented as a computer, a computing device, an electronic device, a server, or the like, which can perform navigation.
[0102] The technical terms and technical features involved in the above device-related embodiments are the same as or similar to the technical terms and technical features mentioned in the above method-related embodiments, and the explanation and description of the technical terms and technical features involved in the above device-related embodiments can refer to the explanation and description of the above method-related embodiments, which will not be repeated here.
[0103] The present disclosure also discloses an electronic device, Figure 3 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown as Figure 3 As shown, the electronic device 300 includes a memory 301 and a processor 302; wherein,
[0104] The memory 301 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 302 to implement the above method steps.
[0105] Figure 4 is a structural schematic diagram of a computer system suitable for implementing the navigation method according to an embodiment of the present disclosure.
[0106] As Figure 4 shown, the computer system 400 includes a processing unit 401, which can perform various processes in the above embodiments according to programs stored in a read-only memory (ROM) 402 or programs loaded from a storage portion 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the computer system 400 are also stored. The processing unit 401, the ROM 402, and the RAM 403 are connected to each other through a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0107] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a display such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as necessary. A removable media 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive 410 as necessary, so that a computer program read out therefrom is installed in the storage section 408 as necessary. Among them, the processing unit 401 can be implemented as a CPU, a GPU, a TPU, a FPGA, a NPU, etc.
[0108] In particular, according to embodiments of the present disclosure, the method described above can 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 non-transitory computer readable medium, the computer program containing program code for executing the navigation method. In such embodiments, the computer program can be downloaded and installed from a network via the communication section 409, and / or installed from the removable media 411.
[0109] The flow charts and block diagrams in the drawings are illustrations of possible architectures, functionalities, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flow charts and block diagrams can represent a module, a segment, or a portion of code which comprises one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and / or flow chart illustrations, and combinations thereof, can be implemented by special purpose hardware-based systems which perform the specified functions or operations, or combinations of special purpose hardware and computer instructions.
[0110] The units or modules described in the embodiments of the present disclosure can be implemented by means of software, or by means of hardware. The described units or modules can also be provided in a processor, and the names of these units or modules do not constitute a limitation on the units or modules themselves in some cases.
[0111] As another aspect, the embodiments of the present disclosure further provide a computer readable storage medium, which can be the computer readable storage medium included in the apparatus in the above-mentioned embodiments; or can exist separately and not be assembled into the apparatus. The computer readable storage medium stores one or more programs for being executed by one or more processors to perform the method described in the embodiments of the present disclosure.
[0112] The above description is merely the preferred embodiments of the present disclosure and the explanation of the applied technical principles. It should be understood by those skilled in the art that the inventive scope of the embodiments of the present disclosure is not limited to the technical solutions formed by the specific combinations of the above technical features, and should also cover other technical solutions formed by the combinations of the above technical features or equivalent features without departing from the inventive concept. For example, the technical solutions formed by the mutual replacement of the above features and the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) can also be covered.
Claims
1. A navigation method, comprising: determining, based on a positioning location of a navigation object and a pre-planned navigation route, whether there are at least two continuous target objects in the navigation route, the target objects referring to objects for monitoring driving behaviors of the navigation object; when it is determined that there are at least two target objects, determining an initial scale at which the navigation object and the at least two target objects appear in an electronic map to be displayed simultaneously; determining whether the initial scale meets a preset condition, and correcting the initial scale when the initial scale meets the preset condition; rendering the electronic map and the navigation route including the target objects according to the positioning location of the navigation object and the corrected scale. 2.The method of claim 1, wherein the determining, based on the positioning location of the navigation object and the pre-planned navigation route, whether there are at least two continuous target objects in the navigation route specifically comprises: determining, based on the positioning location of the navigation object and the pre-planned navigation route, whether the navigation object travels through a first target object closest to the navigation object in the navigation route; when it is determined that the navigation object travels through the first target object closest to the navigation object in the navigation route, determining, based on the positioning location of the navigation object and the pre-planned navigation route, whether there are at least two continuous target objects in the navigation route. 3.The method of claim 1 or 2, wherein the determining, based on the positioning location of the navigation object and the pre-planned navigation route, whether there are at least two continuous target objects in the navigation route comprises: determining a first target object closest to the navigation object in the navigation route according to the positioning location of the navigation object; determining a distance between the navigation object and the first target object; when the distance between the navigation object and the first target object is less than a preset effective distance, determining whether there are at least two other target objects within a first distance after the first target object, wherein the preset effective distance is related to a road type and a road attribute in which the navigation object is located, and the first distance is related to the road type; if yes, determining that there are at least two continuous target objects in the navigation route.
4. The method of claim 1 or 2, wherein the preset condition comprises: the scale is out of a preset scale range, wherein the preset scale range is related to the road type, the road attribute, and a navigation object travel speed in which the navigation object is located. 5.The method of claim 4, wherein the correcting the initial scale when the initial scale meets the preset condition comprises: determining a corresponding preset scale range according to the road type, the road attribute, and the navigation object travel speed in which the navigation object is located; when the initial scale is lower than a lower limit of scales in the preset scale range, correcting the initial scale to the lower limit of scales; when the initial scale is higher than an upper limit of scales in the preset scale range, correcting the initial scale to the upper limit of scales.
6. The method of claim 5, wherein, When the road type where the navigation object is located is a preset road type, and the road attribute is a preset road attribute, or when the preset scale range to which the current scale belongs is a preset scale range corresponding to a higher navigation object travel speed, the preset scale range does not change due to the decrease of the navigation object travel speed.
7. The method of any one of claims 1-2, 5-6, wherein the rendering the electronic map and the navigation route containing the target object according to the positioning location of the navigation object and the corrected scale comprises: in response to reaching a preset time interval, rendering the electronic map and the navigation route containing the target object according to the positioning location of the navigation object and the corrected scale.
8. A navigation device comprising: a judging module configured to judge whether there are at least two target objects in the navigation route based on the positioning location of the navigation object and the pre-planned navigation route, the target object referring to an object for monitoring the driving behavior of the navigation object; a determining module configured to determine an initial scale at which the navigation object and the at least two target objects appear in the electronic map to be displayed when it is determined that there are at least two target objects; a correcting module configured to judge whether the initial scale meets a preset condition, and correct the initial scale when the initial scale meets the preset condition; a rendering module configured to render the electronic map and the navigation route containing the target object according to the positioning location of the navigation object and the corrected scale.
9. An electronic device, comprising: a memory and at least one processor; wherein the memory is configured to store one or more computer instructions, wherein the one or more computer instructions are executed by the at least one processor to implement the method steps of any one of claims 1-7.
10. A computer program product comprising computer programs / instructions, wherein, The computer program / instructions, when executed by the processor, implement the method steps of any one of claims 1-7. The computer program / instructions, when executed by the processor, implement the method steps of any one of claims 1-7.
Citation Information
Patent Citations
Rendering method, device, storage medium and computer program
CN113868356A