Map scale adjustment method, device, storage medium and program product

By combining map scale adjustment methods with road grade and speed, the adjustment time and values ​​are determined, solving the problem of frequent map scale changes affecting user experience, achieving more stable scale adjustment, and improving the navigation experience.

CN115146008BActive Publication Date: 2025-11-25ALIBABA INNOVATION PRIVATE LIMITED
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110349055.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-31
Publication Date
2025-11-25
Estimated Expiration
2041-03-31

AI Technical Summary

Technical Problem

Frequent changes in map scale during navigation can disrupt normal user experience, especially when user speed or road grade changes, leading to a poor user experience.

Method used

By obtaining the location and speed of the target object, combined with the road grade and driving speed, the adjustment time and value of the map scale are determined, and the scale is adjusted when a specific distance threshold is reached, reducing unnecessary frequent adjustments.

Benefits of technology

This effectively reduces the frequency of map scale adjustments, improves user experience, ensures that scale changes match user status and road changes, and avoids unnecessary adjustment interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115146008B_ABST
    Figure CN115146008B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a map scale adjustment method, device, storage medium and program product, wherein the map scale adjustment method comprises: obtaining a positioning position and a speed of a target object; determining a target road where the target object is located according to the positioning position of the target object; if the map scale has been adjusted on the ith target road, determining an adjustment time of the map scale on the jth target road based on the road levels of the ith road and the jth target road; determining a value of the map scale; when the determined adjustment time arrives, judging whether a distance from a matching position of the positioning position of the target object on the jth target road to an end point of the jth target road is greater than a set distance threshold value, and if yes, adjusting the map scale based on the adjustment time and the value of the map scale. The adjustment frequency of the scale is reduced, and the normal use is avoided from being affected by too frequent scale changes.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of electronics, and particularly relate to a map scale adjustment method and device, a storage medium and a program product. BACKGROUND

[0002] With the development and popularization of electronic technology, many users will use application software to view travel routes when traveling, such as map navigation application software, online car-hailing application software, and the like. In the related art, in order to facilitate users to view electronic maps, the scale of the distance on the map to the actual distance is usually taken as the scale. For example, in the navigation process, the user moves at a high speed and moves in a large range, and the scale is large, so the user's position is easy to exceed the display area on the map, and the user's view is not convenient. For another example, in the navigation process, the user moves at a low speed and moves in a small range, and if the scale is small, the user cannot determine the accurate position of himself. Therefore, in the navigation process, the scale of the electronic map needs to be adjusted according to the state of the user, but in some scenarios, if the scale changes too frequently, it will affect the normal use of the user. SUMMARY

[0003] In view of this, embodiments of the present application provide a map scale adjustment method, device, storage medium and program product to solve some or all of the above problems.

[0004] According to a first aspect of embodiments of the present application, a map scale adjustment method is provided, comprising:

[0005] obtaining a positioning position and a speed of a target object; determining a target road where the target object is located according to the positioning position of the target object; if the map scale has been adjusted on the ith target road, determining an adjustment time of the map scale on the jth target road based on the road levels of the ith road and the jth target road, j>i>1, and determining; determining the value of the map scale based on the road level of the jth target road and the driving speed of the target object on the jth target road; when the determined adjustment time arrives, judging whether the distance from the matching position of the positioning position of the target object on the jth target road to the end point of the jth target road is greater than the set distance threshold, and if so, adjusting the map scale based on the adjustment time and the value of the map scale.

[0006] According to a second aspect of the embodiments of the present application, a map scale adjustment device is provided, comprising: an acquisition module configured to acquire a positioning position of a target object; a road module configured to determine a target road on which the target object is located according to the positioning position of the target object; a time module configured to, if a map scale has been adjusted on an ith target road, determine an adjustment time of the map scale on a jth target road based on road levels of the ith road and the jth target road, j>i>1; a value module configured to determine a value of the map scale based on the road level of the jth target road and a driving speed of the target object on the jth target road; and an adjustment module configured to, when the determined adjustment time arrives, judge whether a distance from a matching position of the positioning position of the target object on the jth target road to an end point of the jth target road is greater than a set distance threshold, and if so, adjust the map scale based on the adjustment time and the value of the map scale.

[0007] According to a third aspect of the embodiments of the present application, an electronic device is provided, comprising: a processor, a memory, a communication interface and a communication bus, the processor, the memory and the communication interface complete communication with each other through the communication bus; the memory is configured to store at least one executable instruction, and the executable instruction causes the processor to perform operations corresponding to the map scale adjustment method of the first aspect.

[0008] According to a fourth aspect of the embodiments of the present application, a storage medium is provided, and the storage medium stores a computer program, which is executed by a processor to implement the map scale adjustment method of the first aspect.

[0009] According to a fifth aspect of the embodiments of the present application, a program product is provided, and the program product is executed by a processor to implement the map scale adjustment method of the first aspect.

[0010] The map scale adjustment method, device, storage medium and program product provided by the embodiments of the present application comprise the following steps: obtaining a positioning position and a speed of a target object; determining a target road where the target object is located according to the positioning position of the target object; if the map scale has been adjusted on the ith target road, determining an adjustment time of the map scale on the jth target road based on the road levels of the ith road and the jth target road, j>i>1; determining a value of the map scale based on the road level of the jth target road and the driving speed of the target object on the jth target road; when the determined adjustment time arrives, judging whether the distance from the matching position of the positioning position of the target object on the jth target road to the end point of the jth target road is greater than a set distance threshold value, and if yes, adjusting the map scale based on the adjustment time and the value of the map scale. It can be seen that, in order to reduce the problems caused by frequent adjustment of the map scale, when the scale adjustment time is determined, the road level of the road and whether the map scale has been adjusted before this adjustment are considered, and when the adjustment time arrives, the distance from the matching position of the positioning position of the target object on the target road to the end point of the target road is further determined, and if the distance is greater than the distance threshold value, the scale is adjusted, so that the frequency of adjustment of the map scale is effectively reduced, and the problem that the map scale changes too frequently in the prior art and affects normal use of the user is solved. BRIEF DESCRIPTION OF DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments described in the embodiments of the present application, and other drawings can also be obtained by those skilled in the art according to these drawings.

[0012] Figure 1 A scene schematic diagram of a map scale adjustment method provided by the first embodiment of the present application;

[0013] Figure 2 A flowchart of a map scale adjustment method provided by the first embodiment of the present application;

[0014] Figure 3 A scene schematic diagram of a map scale adjustment method provided by the second embodiment of the present application;

[0015] Figure 4 A flowchart of a map scale adjustment method provided by the second embodiment of the present application;

[0016] Figure 5 A structural block diagram of a map scale adjustment device provided by the third embodiment of the present application;

[0017] Figure 6Fig. 1 is a structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0018] In order to make the person skilled in the art better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all. Based on the embodiments in the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art should belong to the scope of protection of the embodiments of the present application.

[0019] The specific implementation of the embodiments of the present application will be further described below in combination with the drawings of the embodiments of the present application.

[0020] Embodiment one

[0021] The embodiment one of the present application provides a map scale adjustment method applied to an electronic device. In order to facilitate understanding, the application scenario of the map scale adjustment method provided by the embodiment one of the present application is described, and reference is made to Fig. 1. Figure 1 Figure 1 Fig. 1 is a scenario schematic diagram of a map scale adjustment method provided by the embodiment one of the present application. Figure 1 As shown in the scenario shown in Fig. 1, the scenario includes an electronic device 101 and a target object 102. The target object 102 takes a vehicle as an example, and the electronic device 101 can be a device that executes the map scale adjustment method provided by the embodiment one of the present application. The electronic device 101 can be a terminal independent of the vehicle, or a hardware system integrated on the vehicle. Whether the electronic device 101 and the vehicle are independent of each other or integrated does not affect the embodiment one of the present application.

[0022] The electronic device 101 acquires the positioning position and the speed of the target object 102, and determines the road grade of the target road where the target object is located and other information that can be used for map scale adjustment.

[0023] Specifically, the electronic device 101 can be a terminal independent of the vehicle, such as a smart phone, a tablet computer, a notebook computer, etc., or a hardware entity integrated on the vehicle, such as an in-vehicle infotainment or an in-vehicle multimedia system, etc., and the present application does not limit this. The electronic device 101 includes a display screen, and displays an electronic map to a user through the display screen. Of course, this is only an exemplary description, and does not represent that the present application is limited thereto.

[0024] ​The electronic device 101 can access a network, connect with the cloud through the network, and perform data interaction. In this application, the network includes a local area network (LAN), a wide area network (WAN), a mobile communication network, such as the World Wide Web (WWW), a Long Term Evolution (LTE) network, a 2G network, a 3G network, a 5G network, and the like. The cloud can include various devices connected through the network, such as servers, relay devices, device-to-device (D2D) devices, and the like. Of course, this is only an example and does not limit the application.

[0025] In combination Figure 1 The map scale adjustment method provided by the first embodiment of the application is described in detail in the scenario shown. It should be noted that Figure 1 This is only one application scenario of the map scale adjustment method provided by the first embodiment of the application, and does not mean that the map scale adjustment method must be applied to Figure 1 Alternatively, the map scale adjustment method provided by the first embodiment of the application can be applied to an electronic device, i.e., the electronic device is the execution subject of the map scale adjustment method provided by the first embodiment of the application, which is described with reference to Figure 2 Figure 2 A flowchart of a map scale adjustment method provided by the first embodiment of the application is shown. The method includes the following steps:

[0026] Step 201: Obtain the positioning position of the target object.

[0027] The target object can be a vehicle, a person, a drone, an electric vehicle, a bicycle, a terminal device, or the like. Any object that can be positioned on a road and can move can be used as a target object.

[0028] It should be noted that if the target object itself has a positioning function, the positioning position of the target object can be obtained directly by positioning the target object. If the target object does not have a positioning function, the positioning position of the target object can be obtained by a terminal device mounted on the target object. For example, the target object can be a vehicle, and the terminal device is on the vehicle, so the position of the vehicle and the position of the terminal device are the same. The positioning position obtained by positioning the terminal device on the vehicle is the positioning position of the target object. ​

[0029] Step 202, determining a target road where the target object is located according to the positioning position of the target object.

[0030] It should be noted that because the positioning position of the target object changes as the target object moves, the target road where the target object is located also changes. Alternatively, in an implementation, there can be multiple target roads where the target object is located, and the target road where the target object is currently located can be the jth target road, and the other target roads can be roads where the target object has passed.

[0031] Step 203, if the map scale is adjusted on the ith target road, determining an adjustment time of the map scale on the jth target road based on the road levels of the ith road and the jth target road.

[0032] wherein j>i>1, i and j are integers, the jth target road is the target road where the target object is currently located, and the ith target road is a road where the target object has passed. The target road can be a type of road involved in the method of the present application. Illustratively, the target road can be a road on a navigation route of the target object, i.e., a road that the target object needs to pass according to the navigation route planning, or the target road is a road selected by the user during driving.

[0033] It should be noted that the real-world road reflected by the electronic map has a corresponding road level. For example, the road level can include national road, provincial road, county road, township road, urban road, and expressway. The road level can be set according to the speed limit, for example, the speed limit of the expressway is usually high, the speed limit of the national road is 80 km / h, the speed limit of the provincial road is 60 km / h, of course, this is only an illustrative example, according to the speed limit, the road level can be sequentially sorted from high to low: expressway, national road, provincial road, urban road, county road, and township road, of course, this is only an example, the speed limit of the urban road, county road, and township road can be different according to different regions, the road level of each road can be set according to the specific situation, the road level can be represented by numbers or letters, for example, the road level from high to low is 10-1, or the road level from high to low is A-Z, different road levels can correspond to different scales, or the same scale. Of course, this is only an illustrative example.

[0034] For the ith target road and the jth target road, the adjustment time is different when the road level meets different conditions, here, two specific examples are listed for illustration:

[0035] Optionally, in the first example, the adjustment time of the map scale on the jth target road is determined based on the road levels of the ith target road and the jth target road, including: when the road level of the jth target road is not a mountain road, or the road level of the jth target road is a mountain road and the curvature is less than the mountain road curvature, if the ith target road and the jth target road are adjacent roads and the road levels are different, the interval between the adjustment time of the map scale on the jth target road and the adjustment time of the map scale on the ith target road is greater than a preset time length; if the ith target road and the jth target road are not adjacent roads and the road levels are different, the adjustment time of the map scale on the jth target road is the current time.

[0036] It should be noted that the curvature of the target road refers to a curve representing the direction of the target road along the center or a certain edge of the target road, and the curvature of the curve is the curvature of the target road. The curvature of the curve represents the rotation rate of the tangent direction angle of the point on the curve to the arc length, and is used to indicate the degree of deviation of the curve from a straight line. In the first example, the road level of the jth target road is not a mountain road, or the road level of the jth target road is a mountain road and the curvature is less than the mountain road curvature. At this time, the jth target road has low bending degree, and there are two adjustment modes, 1, the ith target road and the jth target road are adjacent roads and the road levels are different. Because the two target roads are adjacent, the interval of the adjustment time is set to be greater than a preset time length. If the interval of the adjustment time is less than or equal to the preset time length, no adjustment is performed, which can reduce the adjustment frequency of the map scale. Moreover, because the bending degree is low, the road is relatively straight, and no impact on user use is caused. 2, if the ith target road and the jth target road are not adjacent roads and the road levels are different, it indicates that there are other roads between the two target roads, and it is likely that the road level has changed greatly. At this time, the adjustment time is determined as the current time, which can timely adjust the map scale and avoid affecting user use.

[0037] Optionally, based on the description of the first example, in the second example, the adjustment time of the map scale on the jth target road is determined based on the road levels of the ith target road and the jth target road, including: when the road level of the jth target road is a mountain road and the curvature is greater than or equal to the mountain road curvature, the adjustment time of the map scale on the jth target road is determined as the current time.

[0038] In the second example, the road level of the jth target road is a mountain road and the curvature is greater than or equal to the mountain road curvature, which indicates that the jth target road has a large bending degree and a large change in the moving direction of the target object. If the scale is not adjusted in time, it is likely to affect the normal use of the user. Therefore, the adjustment time is determined as the current time, which can timely adjust the map scale and avoid affecting user use.

[0039] In step 204, the value of the map scale is determined based on the road level of the jth target road and the driving speed of the target object on the jth target road.

[0040] Optionally, in an example, the speed of the target object can also be obtained, which can be the instantaneous speed of the target object or the average speed of the target object in a time period. For example, the moving distance of the target object in 10 seconds is obtained, and the average speed of the target object in 10 seconds can be obtained by dividing the moving distance by 10 seconds. Of course, this is only an example.

[0041] Two examples are listed here to illustrate in detail how to determine the value of the map scale. Optionally, in the first example, the value of the map scale is determined according to the average speed in a period, specifically, the value of the map scale is determined based on the road level of the jth target road and the driving speed of the target object on the jth target road, specifically comprising: determining the average driving speed of the target object on the jth target road in each time period according to a preset time period; when the jth target road is not a mountain road, if the average driving speed of the target object in the continuous time period is in a state of continuously increasing, the value of the map scale is determined based on the road level of the jth target road and the average driving speed in the latest time period; further optionally, if the average driving speed of the target object in the continuous time period is in a state of decreasing or remaining unchanged, it is determined that the value of the map scale remains unchanged. When the jth target road is not a mountain road, the map scale can only be allowed to change to a map scale corresponding to a higher speed, i.e., the map scale can only become smaller, but cannot become larger. Even if the target object slows down, the map scale will not become larger, which can further reduce the frequency of change of the map scale. The road section that is not a mountain road is usually relatively flat, and the speed reduction is only temporary. The map scale remains unchanged and will not affect the user's use.

[0042] It should be noted that the speed can be divided into different speed intervals, and different speed intervals correspond to different map scales. The speed interval can be pre-set. Alternatively, in an implementation, the speed interval is uniformly divided, which can be 10 km / h as a speed interval, or every 20 km / h as a speed interval. For example, in units of km / h, (0, 20] is a speed interval, (20, 40] is a speed interval, (40, 60] is a speed interval, (60, 80] is a speed interval, and so on. Alternatively, in another implementation, the speed interval can also be non-uniformly divided, for example, in units of km / h, (0, 20] is a speed interval, (20, 50] is a speed interval, (50, 80] is a speed interval, and (80, 120] is a speed interval. Different speed intervals can correspond to different scales or the same scale. Of course, this is only an exemplary description. It should be further noted that the map scale (i.e., the scale) refers to the ratio of the distance on the map to the actual distance for the same road. The distance on the map can be the distance displayed in the electronic map. For example, if the scale is 1:80,000, it means that 1 cm on the map represents 800 m in actual distance. Therefore, if the speed interval increases, i.e., the speed increases, the scale can be reduced, so that the distance on the map can represent a longer actual distance, so that the electronic map display can adapt to the speed of the target object. If the speed interval decreases, i.e., the speed decreases, the scale can be increased, so that the distance on the map can represent a shorter actual distance, and the display can be more accurate. If the road grade of the jth target road is not a mountain road, or the road grade of the jth target road is a mountain road and the curvature is less than the mountain road curvature, and the average driving speed of the target object in the continuous time period is in a state of continuous increase, it means that the target object is accelerating on a relatively straight road. The value of the map scale can be reduced to adapt to the high-speed movement of the target object.

[0043] Based on the first example, in the second example, the value of the map scale is determined according to the instantaneous speed. Specifically, the value of the map scale is determined based on the road grade of the jth target road and the driving speed of the target object on the jth target road. Specifically, when the road grade of the jth target road is a mountain road and the curvature is less than the mountain road curvature, the value of the map scale is determined based on the road grade of the jth target road and the current instantaneous driving speed.

[0044] When the road grade of the jth target road is a mountain road and the curvature is greater than or equal to the mountain road curvature, if the driving speed of the target object is in a state of continuous decrease, the value of the map scale is determined based on the road grade of the jth target road and the current instantaneous driving speed. Further alternatively, if the driving speed of the target object is in a state of increase or invariance, the value of the map scale is determined to be unchanged.

[0045] When the road level of the jthtarget road is mountain road and the curvature is less than mountain road curvature, because there are more curves but the degree of curvature is low, the map scale can be allowed to be increased or decreased to adapt to the moving condition of the target object; if the road level of the jthtarget road is mountain road and the curvature is greater than or equal to mountain road curvature, the degree of curvature of the road is high, and the driving speed of the target object is low, if the acceleration is only temporary, the map scale does not need to be reduced, at this time the map scale can only be increased and cannot be reduced, on the one hand, the frequency of change of the map scale is reduced, on the other hand, the target object is reminded not to drive too fast to ensure safety.

[0046] Step 205, when the determined adjustment time arrives, it is judged whether the distance from the matching position of the positioning position of the target object on the jthtarget road to the end point of the jthtarget road is greater than the set distance threshold value, if yes, the map scale is adjusted based on the adjustment time and the value of the map scale.

[0047] It should be noted that the matching position of the positioning position of the target object on the jthtarget road refers to the corresponding position determined according to the positioning position of the target object on the jthtarget road, if the distance from the matching position to the end point of the jthtarget road is too short, the map scale is adjusted at this time, and the target object enters a new target road and is adjusted again, therefore, when the distance from the matching position to the end point of the jthtarget road is greater than the set distance threshold value, the map scale is adjusted, further reducing the frequency of adjustment of the map scale. For example, in an optional implementation, the method further comprises: if the distance from the matching position of the positioning position of the target object on the jthtarget road to the end point of the jthtarget road is less than or equal to the set distance threshold value, the scale is not adjusted. Further, the distance from the matching position of the positioning position of the target object on the jthtarget road to the end point of the jthtarget road is less than or equal to the set distance threshold value, it is determined that the jthtarget road is an invalid road, the method can further comprise: determining the first effective target road on which the target object is located after the jthtarget road according to the positioning position of the target object; determining whether to adjust the scale according to the road level of the first effective target road and the driving speed of the target object. It should be noted that the distance threshold value can be 200m, 100m or 300m, 500m, etc., the preset length is set according to the specific situation, which is only exemplarily described here.

[0048] The map scale adjustment method provided in this application embodiment obtains the location and speed of a target object; determines the target road where the target object is located based on the location of the target object; if the map scale has been adjusted on the i-th target road, then determines the adjustment time of the map scale on the j-th target road based on the road level of the i-th road and the j-th target road, where j > i > 1; determines the value of the map scale based on the road level of the j-th target road and the driving speed of the target object on the j-th target road; when the determined adjustment time arrives, it is determined whether the distance from the matching position of the target object's location on the j-th target road to the end point of the j-th target road is greater than a set distance threshold; if so, the map scale is adjusted based on the adjustment time and the value of the map scale. As can be seen, in order to reduce the problems caused by frequent map scale adjustments, this application considers the road grade and whether the map scale has been adjusted before when determining the scale adjustment time. When the adjustment time is up, it further determines the distance from the matching position of the target object on the target road to the end of the target road. If the distance is greater than the distance threshold, the scale will be adjusted. This effectively reduces the frequency of map scale adjustments and solves the problem that the excessively frequent changes in map scale in the prior art affect the normal use of the map.

[0049] Example 2

[0050] Based on the method described in Embodiment 1 above, Embodiment 2 of this application provides a map scale adjustment method applied to an electronic device. In this embodiment, the target object is a vehicle, and the electronic device can be a terminal device on the vehicle.

[0051] It should be noted that a road grade and a speed range can correspond to a map scale value. The higher the road grade, the larger the map scale; the higher the speed range (i.e., the faster the speed), the larger the map scale. Optionally, a map scale value can correspond to a combination of multiple road grades and speed ranges.

[0052] Reference Figure 3 As shown, Figure 3 This is a flowchart of a map scale adjustment method provided in Embodiment 2 of this application. The map scale adjustment method includes the following steps:

[0053] Step 301: Obtain the location and speed of the target object.

[0054] In this embodiment, the electronic device can obtain its own positioning position as the positioning position of the target object, and the electronic device can be positioned by a positioning system such as a Global Positioning System (GPS) for example. The electronic device can obtain the distance moved in a period of time, and calculate the speed by dividing the distance moved by the length of time.

[0055] In step 302, the target road on which the target object is located is determined according to the positioning position of the target object, and the road information of the target road is obtained, and the speed interval is determined according to the speed of the target object.

[0056] The road information of the target road can include the road grade of the target road, the curvature of the target road, and the length of the target road. Here, two specific examples are listed for illustration. In the first example, the electronic device sends the positioning position of the target object to the cloud, the cloud determines the target road on which the target object is located according to the positioning position of the target object, and sends the road information of the target road to the electronic device, and the electronic device receives the road information of the target road sent by the cloud; or the electronic device determines the target road on which the target object is located according to the positioning position of the target object, sends the request information to the cloud to request to obtain the road information of the target road, and the electronic device receives the road information of the target road sent by the cloud. In the second example, the electronic device receives the road information of at least one road sent by the cloud, and the electronic device determines the target road on which the target object is located according to the positioning position of the target object, and obtains the road information of the target road. Of course, this is only an example.

[0057] In step 303, it is determined whether the distance from the matching position of the positioning position of the target object on the jth target road to the end point of the jth target road is greater than the set distance threshold according to the road information of the jth target road.

[0058] If the distance is less than or equal to the distance threshold, step 304 is performed; if the distance is greater than the distance threshold, step 305 is performed.

[0059] In step 304, the jth target road is determined as an invalid road, which is not used as the basis for adjusting the scale.

[0060] If the jth target road is an invalid road, the first valid target road on which the target object is located after the jth target road is determined according to the positioning position of the target object; and it is determined whether to adjust the scale according to the road grade of the first valid target road and the driving speed of the target object.

[0061] In step 305, it is determined whether the road grade of the jth target road is a mountain road according to the road information of the jth target road, and it is determined whether the curvature of the jth target road is greater than or equal to the curvature of the mountain road.

[0062] The maximum curvature of the point on the curve representing the target road direction can be determined as the curvature of the target road, or the average curvature of the point on the curve of the target road is determined as the curvature of the target road, and the curvature of the target road is used to represent the bending degree of the target road. If the road grade of the jth target road is a mountain road, and the curvature of the jth target road is greater than or equal to the mountain road curvature, step 306 is performed; if the road grade of the jth target road is not a mountain road, and the curvature of the jth target road is less than the mountain road curvature, steps 307 and 308 are performed; if the road grade of the jth target road is not a mountain road, steps 309 and 310 are performed.

[0063] Step 306, if the driving speed of the target object is in a state of continuous decrease, the value of the map scale is determined based on the road grade of the jth target road and the current instantaneous driving speed; if the driving speed of the target object is in a state of increase or invariable, the value of the map scale is determined to be unchanged.

[0064] When the curvature of the target road is greater than or equal to the mountain road curvature, the adjustment of the map scale is not limited by the interval time, but can only be increased, cannot be decreased, can be timely adjusted, and the adjustment frequency of the map scale is decreased to facilitate the observation of the user.

[0065] Step 307, if the ith target road and the jth target road are adjacent roads and the road grades are different, the adjustment time of the map scale on the jth target road and the adjustment time of the map scale on the ith target road are determined to be greater than the preset time interval, and the value of the map scale is determined based on the road grade of the jth target road and the current instantaneous driving speed to adjust the map scale.

[0066] Step 308, if the ith target road and the jth target road are not adjacent roads and the road grades are different, the value of the map scale is determined based on the road grade of the jth target road and the current instantaneous driving speed to adjust the map scale.

[0067] If the curvature of the target road is less than the mountain road curvature, it means that the bending degree of the target road is small, and the target road is closer to a straight line, so the scale can be allowed to increase or decrease to adapt to the movement of the target object.

[0068] Step 309, if the ith target road and the jth target road are adjacent roads and the road grades are different, the adjustment time of the map scale on the jth target road and the adjustment time of the map scale on the ith target road are determined to be greater than the preset time interval, and the map scale is adjusted.

[0069] In step 310, if the ith target road and the jth target road are not adjacent roads and the road levels are different, the value of the map scale is determined based on the road level of the jth target road and the current instantaneous speed, and the map scale is adjusted.

[0070] In combination with step 309 and step 310, in the specific adjustment process, when the jth target road is not a mountain road, if the average driving speed of the target object in the continuous time period is in a state of continuous increase, the value of the map scale is determined based on the road level of the jth target road and the average driving speed in the latest time period; further optionally, if the average driving speed of the target object in the continuous time period is in a state of decrease or invariance, the value of the map scale is determined to be unchanged.

[0071] In combination with the above Figure 3 The map scale adjustment method shown in FIG. 8 is based on Figure 1 The scene shown in FIG. 9, as shown in Figure 4 The scene shown in FIG. 10. Figure 4 FIG. 11 is a scene diagram of a map scale adjustment method provided by an embodiment of the present application. Figure 4 The electronic device 101, the target object 102 and the cloud 103 are shown.

[0072] The electronic device can access the network, connect with the cloud through the network, and perform data interaction. Figure 3 Taking the target object as a vehicle as an example, Figure 4 The process of the vehicle passing through the ramp from the highway and driving to the urban road is shown.

[0073] When the vehicle enters the ramp from the highway, the electronic device obtains the positioning position and the speed of the vehicle, and determines that the jth target road where the vehicle is located is the ramp, obtains the road information of the ramp from the cloud, and determines that the length of the ramp is less than 200 m, so that the scale adjustment is not performed; after the vehicle enters the ramp, the speed of the vehicle is reduced from 80 km / h to 40 km / h, but because the current scene is not effective, the scale adjustment is not performed, when the vehicle enters the urban road through the highway toll station, the vehicle speed is 20 km / h, the road information of the urban road is obtained according to the positioning position of the vehicle, it is determined that the length of the urban road is greater than 200 m, because the road level of the urban road has changed compared with the highway, and the vehicle speed has also been reduced, at this time, because the highway and the urban road are not adjacent to the two target roads, there is a ramp in between, therefore, the new scale can be directly determined according to the road level of the urban road and the vehicle speed of 20 km / h, the new scale is greater than the original scale, therefore, the electronic map is visually enlarged, and the user can more accurately determine the position of the vehicle in the urban road. Of course, this is only an example.

[0074] The map scale adjustment method provided in the embodiments of the present application comprises the following steps: obtaining a positioning position and a speed of a target object; determining a target road where the target object is located according to the positioning position of the target object; if the map scale has been adjusted on the ith target road, determining an adjustment time of the map scale on the jth target road based on the road levels of the ith road and the jth target road, j>i>1; determining a value of the map scale based on the road level of the jth target road and the driving speed of the target object on the jth target road; when the determined adjustment time arrives, judging whether a distance from a matching position of the positioning position of the target object on the jth target road to an end point of the jth target road is greater than a set distance threshold value, and if yes, adjusting the map scale based on the adjustment time and the value of the map scale. It can be seen that, in order to reduce the problems caused by frequent adjustment of the map scale, when the scale adjustment time is determined, the road level of the road and whether the map scale has been adjusted before this adjustment are considered, and when the adjustment time arrives, it is further determined whether the distance from the matching position of the positioning position of the target object on the target road to the end point of the target road is greater than the distance threshold value, and if yes, the scale is adjusted, so that the adjustment frequency of the map scale is effectively reduced, and the problem that the map scale changes too frequently in the prior art and affects normal use of the user is solved.

[0075] Embodiment three

[0076] Based on the methods described in the above embodiment one and embodiment two, the embodiment three of the present application provides a map scale adjustment device for executing any one of the methods described in the above embodiment one and embodiment two, and referring to FIG. 5, the map scale adjustment device 50 comprises: Figure 5

[0077] The obtaining module 501 is configured to obtain a positioning position of a target object.

[0078] The road module 502 is configured to determine a target road where the target object is located according to the positioning position of the target object.

[0079] The time module 503 is configured to, if the map scale has been adjusted on the ith target road, determine an adjustment time of the map scale on the jth target road based on the road levels of the ith road and the jth target road, j>i>1.

[0080] The value module 504 is configured to determine a value of the map scale based on the road level of the jth target road and the driving speed of the target object on the jth target road.

[0081] ​The adjustment module 505 is used to determine, when the determined adjustment time arrives, whether the distance from the matching position of the target object on the j-th target road to the end point of the j-th target road is greater than a set distance threshold. If so, the map scale is adjusted based on the adjustment time and the value of the map scale.

[0082] Optionally, in one embodiment of this application, the time module 503 is used to determine that the interval between the adjustment time of the map scale on the j-th target road and the adjustment time of the map scale on the i-th target road is greater than a preset duration when the road grade of the j-th target road is not a mountain road, or the road grade of the j-th target road is a mountain road and the curvature is less than the curvature of a mountain road, if the i-th target road and the j-th target road are adjacent roads and have different road grades.

[0083] If the i-th target road and the j-th target road are not adjacent roads and have different road grades, then the adjustment time of the map scale on the j-th target road is determined to be the current time.

[0084] Optionally, in one embodiment of this application, the time module 503 is used to determine the adjustment time of the map scale on the j-th target road as the current time when the road grade of the j-th target road is a mountain road and the curvature is greater than or equal to the curvature of the mountain road.

[0085] Optionally, in one embodiment of this application, the numerical module 504 is used to determine the speed of the target object on the j-th target road in each time period according to a preset time period;

[0086] If the road grade of the j-th target road is not a mountain road, and the driving speed of the target object is continuously increasing over a continuous time period, the map scale value is determined based on the road grade of the j-th target road and the driving speed of the latest time period; if the average driving speed of the target object is decreasing or unchanged over a continuous time period, the map scale value is determined to remain unchanged.

[0087] Optionally, in one embodiment of this application, the numerical module 504 is used to determine the value of the map scale based on the road grade of the j-th target road and the current instantaneous driving speed when the road grade of the j-th target road is a mountain road and the curvature is less than the curvature of a mountain road.

[0088] When the road level of the jth target road is a mountain road and the curvature is greater than or equal to the mountain road curvature, if the driving speed of the target object is in a state of continuously decreasing, the value of the map scale is determined based on the road level of the jth target road and the current instantaneous driving speed; if the driving speed of the target object is in a state of increasing or being unchanged, the value of the map scale is determined to be unchanged.

[0089] Optionally, in an embodiment of the present application, the adjusting module 505 is further configured to not adjust the map scale if the matching position of the positioning position of the target object on the jth target road is less than or equal to a set distance threshold from the end point of the jth target road.

[0090] The map scale adjusting device provided in the embodiment of the present application acquires the positioning position and the speed of the target object; determines the target road on which the target object is located according to the positioning position of the target object; if the map scale has been adjusted on the ith target road, determines the adjustment time of the map scale on the jth target road based on the road levels of the ith road and the jth target road, j>i>1; determines the value of the map scale based on the road level of the jth target road and the driving speed of the target object on the jth target road; when the determined adjustment time arrives, judges whether the distance from the matching position of the positioning position of the target object on the jth target road to the end point of the jth target road is greater than a set distance threshold, and if yes, adjusts the map scale based on the adjustment time and the value of the map scale. It can be seen that, in order to reduce the problems caused by frequent adjustment of the map scale, the road levels of the roads and whether the map scale has been adjusted before the present adjustment are considered when the adjustment time is determined, and when the adjustment time arrives, the distance from the matching position of the positioning position of the target object on the target road to the end point of the target road is further determined, and if the distance is greater than the distance threshold, the map scale is adjusted, so that the frequency of adjustment of the map scale is effectively reduced, and the problem that the map scale changes too frequently to affect the normal use of the user in the prior art is solved.

[0091] Embodiment Four

[0092] Based on the method described in Embodiments One and Two, Embodiment Four of the present application provides an electronic device for executing any of the methods described in Embodiments One and Two, and the details are described with reference to Figure 6 Figure 6 FIG. 1 shows a structural schematic diagram of an electronic device provided in Embodiment Four of the present application, and the specific implementation of the electronic device is not limited in the embodiments of the present application.

[0093] As Figure 6 ​As shown, the electronic device can include a processor 602, a communications interface 604, a memory 606, and a communications bus 608.

[0094] Wherein:

[0095] The processor 602, the communications interface 604, and the memory 606 complete the communication with each other through the communications bus 608.

[0096] The communications interface 604 is configured to communicate with other electronic devices, such as terminal devices or servers.

[0097] The processor 602 is configured to execute the program 610, and specifically can execute the related steps in the above method embodiments.

[0098] Specifically, the program 610 can include program code, which includes computer operation instructions.

[0099] The processor 602 can be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the electronic device can be the same type of processor, such as one or more CPUs; or can be different types of processors, such as one or more CPUs and one or more ASICs.

[0100] The memory 606 is configured to store the program 610. The memory 606 can include a high-speed RAM memory, and can also include a non-volatile memory, such as at least one disk memory.

[0101] The program 610 can specifically be used to cause the processor 602 to execute any one of the methods in the above embodiment one and embodiment two.

[0102] The specific implementation of each step in the program 610 can refer to the corresponding description in the above map scale adjustment method embodiments, and will not be described here. Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above method embodiments, and will not be described here.

[0103] The electronic device provided in the embodiments of the present application acquires the positioning position and speed of a target object, determines a target road where the target object is located according to the positioning position of the target object, determines the adjustment time of the map scale on the jth target road based on the road grades of the ith and jth target roads if the map scale has been adjusted on the ith target road, j>i>1, determines the value of the map scale based on the road grade of the jth target road and the driving speed of the target object on the jth target road, and adjusts the map scale based on the adjustment time and the value of the map scale when the determined adjustment time arrives, if the distance between the matching position of the positioning position of the target object on the jth target road and the end point of the jth target road is greater than the set distance threshold. It can be seen that, in order to reduce the problems caused by frequent adjustment of the map scale, the embodiments of the present application consider the road grade of the road and whether the map scale has been adjusted before this adjustment when determining the adjustment time of the scale, and further determine the distance between the matching position of the positioning position of the target object on the target road and the end point of the target road when the adjustment time arrives, and only adjust the scale if the distance is greater than the distance threshold, thereby effectively reducing the adjustment frequency of the map scale and solving the problem that the frequent change of the map scale in the prior art affects normal use of the user.

[0104] Embodiment five

[0105] Based on the method described in the above embodiment one, the embodiment five of the present application provides a storage medium having a computer program stored thereon, which is executed by a processor to implement any method described in the embodiment one and the embodiment two.

[0106] Embodiment six

[0107] Based on the method described in the above embodiment one, the embodiment six of the present application provides a program product, which is executed by a processor to implement any method described in the embodiment one and the embodiment two. The program product can be a map navigation application software or other application software integrated with map navigation capability, including a network car-hailing application software or a life service type application software (such as take-out or fresh food delivery) or a logistics type application software. The examples are only for illustration and should not be considered as limiting or exhaustive of the program product.

[0108] It should be noted that, according to the needs of implementation, each component / step described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or part of the operations of the components / steps can be combined into a new component / step, to achieve the purpose of the embodiments of the present application.

[0109] The above-described methods according to embodiments of the present application can be implemented in hardware, firmware, or software, or any combination thereof, and can be stored in a recording medium such as CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk, or be downloaded by network from a remote recording medium or non-transitory machine-readable medium originally stored in a remote recording medium or non-transitory machine-readable medium and to be stored in a local recording medium, so that such software implementing the methods described herein can be stored in a recording medium on a general-use computer, a special-purpose processor, or programmable or special-purpose hardware (such as ASIC or FPGA). It can be understood that the computer, processor, microprocessor controller, or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the map scale adjustment methods described herein. Furthermore, when a general-purpose computer accesses code for implementing the map scale adjustment methods shown herein, the execution of the code transforms the general-purpose computer into a special-purpose computer for executing the map scale adjustment methods shown herein.

[0110] Those skilled in the art can understand that the units and method steps of the examples described in combination with the embodiments disclosed herein can be realized in electronic hardware or in a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of the present application.

[0111] The above embodiments are only used to illustrate but not limit the embodiments of the present application, and a person of ordinary skill in the art can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application, therefore all equivalent technical solutions belong to the scope of the embodiments of the present application, and the patent protection scope of the embodiments of the present application should be defined by the claims.

Claims

1. A map scale adjustment method, comprising: obtaining a positioning position of a target object; determining a target road on which the target object is located according to the positioning position of the target object; if a map scale has been adjusted on an ith target road, determining an adjustment time of the map scale on a jth target road based on road levels of the ith target road and the jth target road, j>i>1, the jth target road being a target road on which the target object is currently located, and the ith target road being a road on which the target object has traveled; determining a value of the map scale based on the road level of the jth target road and a travel speed of the target object on the jth target road; when the determined adjustment time arrives, judging whether a matching position of the positioning position of the target object on the jth target road to an end point of the jth target road is greater than a set distance threshold, and if so, adjusting the scale based on the adjustment time and the value of the map scale.

2. The method of claim 1, wherein, The determining of the adjustment time of the map scale on the jth target road based on the road levels of the ith target road and the jth target road comprises: if the jth target road is not a mountain road, or the jth target road is a mountain road and a curvature is less than a mountain road curvature, and the ith target road and the jth target road are adjacent roads and have different road levels, determining that an interval between the adjustment time of the map scale on the jth target road and the adjustment time of the map scale on the ith target road is greater than a preset time length; if the ith target road and the jth target road are not adjacent roads and have different road levels, determining that the adjustment time of the map scale on the jth target road is a current time.

3. The method of claim 2, wherein, The determining of the adjustment time of the map scale on the jth target road based on the road levels of the ith target road and the jth target road comprises: if the jth target road is a mountain road and the curvature is greater than or equal to the mountain road curvature, determining that the adjustment time of the map scale on the jth target road is the current time.

4. The method of claim 1, wherein, The determining of the value of the map scale based on the road level of the jth target road and the travel speed of the target object on the jth target road comprises: determining the travel speed of the target object on the jth target road in each time period according to a preset time period; if the target object has a continuously increasing travel speed in continuous time periods, determining the value of the map scale based on the road level of the jth target road and the travel speed in the latest time period, and if the average travel speed of the target object in the continuous time periods is in a decreasing or constant state, determining that the value of the map scale is constant.

5. The method of claim 4, wherein, The determining of the value of the map scale based on the road level of the jth target road and the travel speed of the target object on the jth target road comprises: determining the value of the map scale based on the road level of the jth target road and the current instantaneous driving speed when the road level of the jth target road is a mountain road and the curvature is less than the mountain road curvature; determining the value of the map scale based on the road level of the jth target road and the current instantaneous driving speed when the road level of the jth target road is a mountain road and the curvature is greater than or equal to the mountain road curvature, and the driving speed of the target object is in a state of continuously decreasing; and determining that the value of the map scale is unchanged when the driving speed of the target object is in a state of increasing or being unchanged.

6. The method according to any one of claims 1 to 5, wherein, The method further comprises: not adjusting the map scale if the distance from the matching position of the positioning position of the target object on the jth target road to the end of the jth target road is less than or equal to the set distance threshold. 7.A map scale adjustment device, comprising: an acquisition module configured to acquire a positioning position of a target object; a road module configured to determine a target road on which the target object is located according to the positioning position of the target object; a time module configured to determine an adjustment time of a map scale on a jth target road based on the road levels of an ith target road and the jth target road if the map scale has been adjusted on the ith target road, j>i>1, the jth target road being a target road on which the target object is currently located, and the ith target road being a road on which the target object has traveled; a value module configured to determine a value of the map scale based on the road level of the jth target road and a driving speed of the target object on the jth target road; an adjustment module configured to, when the determined adjustment time arrives, judge whether a distance from a matching position of the positioning position of the target object on the jth target road to an end of the jth target road is greater than a set distance threshold, and if so, adjust the map scale based on the adjustment time and the value of the map scale.

8. An electronic device comprising: a processor, a memory, a communication interface, and a communication bus, the processor, the memory, and the communication interface being in communication with each other through the communication bus; the memory being configured to store at least one executable instruction, the executable instruction causing the processor to perform operations corresponding to the map scale adjustment method of any one of claims 1-7. 9.A storage medium having a computer program stored thereon, the program being executed by a processor to implement the map scale adjustment method of any one of claims 1-7. 10.A program product being executed by a processor to implement the map scale adjustment method of any one of claims 1-7.

Citation Information

Patent Citations

  • Navigation head for auto-changing scale and method thereof

    CN101387521A

  • Navigation system

    JP1999295082A