Navigation route display method and device, electronic equipment, medium and program product
By calculating the target bounding box and the map center point, the problem of inflexible navigation route display after user zooming was solved, enabling navigation route display at a fixed scale and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ALIBABA (CHINA) CO LTD
- Filing Date
- 2022-09-06
- Publication Date
- 2026-06-05
AI Technical Summary
After the user zooms in or out, existing technologies struggle to effectively display navigation routes at a fixed scale, resulting in inflexible navigation route display and a poor user experience.
By obtaining the second fixed scale indicated by the zoom operation, the target bounding box of the navigation route is calculated, and the map center point is obtained based on the target bounding box and the map area. The navigation route is then displayed at a fixed scale using the map center point and the map projection center point.
It enables the display of navigation routes at a fixed scale after the user zooms in or out, improving the flexibility of navigation route display and user experience.
Smart Images

Figure CN115597622B_ABST
Abstract
Description
Technical Field
[0001] This application relates to map navigation technology, and more particularly to a navigation route display method, device, electronic device, medium, and program product. Background Technology
[0002] Map navigation applications bring great convenience to people's daily travel. Electronic devices with map navigation applications installed can obtain and display navigation routes based on the user's origin and destination. Users can also adjust the scale used to display the navigation route by zooming in and out. However, how to display the navigation route at a fixed scale after the user zooms in is a problem that urgently needs to be solved. Summary of the Invention
[0003] This application provides a navigation route display method, apparatus, electronic device, medium, and program product for displaying navigation routes at a fixed scale.
[0004] In a first aspect, this application provides a navigation route display method, the method comprising:
[0005] The navigation route is displayed on the map area using a first fixed scale.
[0006] In response to a user's zoom operation, obtain a second fixed scale indicated by the zoom operation;
[0007] If the first fixed scale and the second fixed scale are different in size, then obtain the target bounding box including the navigation route under the second fixed scale;
[0008] Based on the target bounding box and the map area, obtain the map center point under the second fixed scale;
[0009] Based on the map center point and the map projection center point, the navigation route is displayed on the map area using the second fixed scale.
[0010] Optionally, obtaining the target bounding box including the navigation route at the second fixed scale includes:
[0011] If the level of the second fixed scale is less than or equal to the level of the target fixed scale corresponding to the panoramic navigation route, then the target bounding box including the navigation route under the second fixed scale is obtained according to the shape point coordinate set of the panoramic navigation route.
[0012] If the level of the second fixed scale is greater than the level of the target fixed scale, then starting from the current positioning position, the bounding box is calculated sequentially along the navigation route until a target bounding box that meets the preset conditions is obtained. The preset conditions are that the width of the bounding box is greater than or equal to the width of the map area, and / or that the length of the bounding box is greater than or equal to the length of the map area.
[0013] Optionally, the step of calculating bounding boxes sequentially along the navigation route from the current location until a target bounding box that meets preset conditions is obtained includes:
[0014] Starting from the current location, increase the preset number of navigation segments in the navigation route to obtain the bounding box;
[0015] If the bounding box does not meet the preset conditions, the preset number of navigation sections will continue to increase until a target bounding box that meets the preset conditions is obtained.
[0016] Optionally, obtaining the target bounding box including the navigation route at the second fixed scale based on the set of shape point coordinates of the panoramic navigation route includes:
[0017] Based on the set of shape point coordinates of the panoramic navigation route, obtain the coordinates of the first corner and the second corner of the target bounding box, wherein the first corner and the second corner are diagonal;
[0018] The target bounding box is obtained based on the coordinates of the first corner and the second corner.
[0019] Optionally, obtaining the map center point at the second fixed scale based on the target bounding box and the map area includes:
[0020] The target bounding box is matched with the image area to make at least a portion of the target bounding box overlap with the image area, thus obtaining an overlapping area.
[0021] The center point of the overlapping area is taken as the center point of the map under the second fixed scale.
[0022] Optionally, the step of performing region matching between the target bounding box and the map region includes:
[0023] If the length of the target bounding box is greater than the length of the drawing area, and the width of the target bounding box is less than the width of the drawing area, then the target bounding box is divided into M sub-bounding boxes along the length direction; where M is an integer greater than or equal to 2.
[0024] Using the length direction of the sub-boundary box where the current location is located as a reference, the target bounding box is filled into the drawing area so that a part of the target bounding box coincides with the drawing area.
[0025] Optionally, the step of performing region matching between the target bounding box and the map region includes:
[0026] If the length of the target bounding box is less than the length of the image area, and the width of the target bounding box is greater than the width of the image area, then the target bounding box is divided into N sub-bounding boxes along the width direction; where N is an integer greater than or equal to 2.
[0027] Using the width direction of the sub-boundary box where the current location is located as a reference, the target bounding box is filled into the drawing area so that a part of the target bounding box coincides with the drawing area.
[0028] Optionally, the step of performing region matching between the target bounding box and the map region includes:
[0029] If the length of the target bounding box is less than the length of the drawing area, and the width of the target bounding box is less than the width of the drawing area, then the target bounding box is filled into the drawing area.
[0030] Optionally, the step of performing region matching between the target bounding box and the map region includes:
[0031] If the length of the target bounding box is greater than the length of the image region, and the width of the target bounding box is greater than the width of the image region, then the target bounding box is divided into Q sub-bounding boxes; where Q is greater than or equal to 4.
[0032] Using the length and width directions of the sub-boundary box where the current location is located as a reference, the target bounding box is filled into the drawing area so that a portion of the target bounding box coincides with the drawing area.
[0033] Secondly, this application provides a location-based service provision method, which uses the method described in the first aspect to display navigation routes in order to provide location-based services to the service recipient. The location-based services include one or more of navigation, map rendering, and route planning.
[0034] Thirdly, this application provides a navigation route display device, the device comprising:
[0035] The first display module is used to display the navigation route in the map area using a first fixed scale.
[0036] The processing module is configured to respond to a user's zoom operation by obtaining a second fixed scale indicated by the zoom operation; when the first fixed scale and the second fixed scale are different in size, obtaining a target bounding box including the navigation route under the second fixed scale; and obtaining the map center point under the second fixed scale based on the target bounding box and the map area.
[0037] The second display module is used to display the navigation route on the map area according to the map center point and the map projection center point, using the second fixed scale.
[0038] Fourthly, this application provides an electronic device, including: a processor, a memory, and a display device; the processor is communicatively connected to the memory;
[0039] The display device is coupled to the processor, and the processor controls the display device to display the navigation route;
[0040] The memory stores computer-executed instructions;
[0041] The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1 to 9.
[0042] Fifthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the navigation route display method as described in any of the first aspects.
[0043] In a sixth aspect, this application provides a computer program product, including a computer program that, when executed by a processor, implements the method described in any of the first aspects.
[0044] The navigation route display method, apparatus, electronic device, medium, and program product provided in this application, when displaying a navigation route on a map area using a first fixed scale, can respond to the user's zoom operation to obtain a second fixed scale indicated by the zoom operation. When the second fixed scale is different in size from the first fixed scale, a target bounding box including the navigation route under the second fixed scale can be obtained. Through the target bounding box and the map area, the map center point under the second fixed scale can be obtained. Based on the map center point and the map projection center point, the navigation route under the second fixed scale can be displayed. Through the above method, navigation route display is achieved according to the second fixed scale corresponding to the user's zoom operation, enabling the electronic device to maintain the display of map information under that fixed scale for the user, improving the flexibility of navigation route display and enhancing the user experience. Attached Figure Description
[0045] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0046] Figure 1 A schematic diagram of a drawing area provided in this application;
[0047] Figure 2 A schematic diagram of the three Euler angles;
[0048] Figure 3 A flowchart illustrating a navigation route display method provided in this application;
[0049] Figure 4 A schematic diagram of a target bounding box provided in this application;
[0050] Figure 5 A schematic diagram of the target bounding box corresponding to a panoramic navigation route provided in this application;
[0051] Figure 6 This application provides a schematic diagram of a process for obtaining a target bounding box;
[0052] Figure 7a A schematic diagram showing the size relationship between the drawing area provided in this application and the four target bounding boxes;
[0053] Figure 7b A schematic diagram of the length and width directions of a target bounding box provided in this application;
[0054] Figure 8 A schematic diagram showing the relationship between the drawing area provided in this application and the size of the first type of target bounding box;
[0055] Figure 9 A schematic diagram showing the relationship between the drawing area provided in this application and the size of the second type of target bounding box;
[0056] Figure 10 A schematic diagram showing the relationship between the size of the drawing area provided in this application and the size of the third type of target bounding box;
[0057] Figure 11 A schematic diagram showing the relationship between the drawing area provided in this application and the size of the fourth type of target bounding box;
[0058] Figure 12 This application provides a schematic diagram of the structure of a navigation route display device;
[0059] Figure 13This is a schematic diagram of an electronic device structure provided in this application.
[0060] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0061] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0062] The following is a brief explanation of some of the terms and concepts used in this application:
[0063] Map area: In the display area of an electronic device, the area used to display a map can be called the map area. For example, Figure 1 This is a schematic diagram of a drawing area provided in this application. For example... Figure 1 As shown, the display area of the electronic device is abstracted, and the area enclosed by ABCD in the display area of the electronic device can be used as the drawing area.
[0064] Bounding box: In computer graphics and computational geometry, the bounding volume of a group of objects is a closed space that completely encloses the group of objects. This closed space is called a bounding box. Encapsulating complex objects within simple bounding boxes can improve the efficiency of geometric operations. Generally, it is easier to check for overlaps between simpler objects.
[0065] Map center point: This map center point refers to the center point of the bounding box of the navigation route.
[0066] Map projection center point: The map projection center point is usually the center point of the above-mentioned map area.
[0067] Route Overview: By adjusting at least one parameter such as the map scale, map center point, or map projection center point, the entire planned navigation route is displayed within the electronic device's display area. This can also be called overview mode. Navigation routes displayed in this overview mode are called overview navigation routes.
[0068] Navigation route (Route): In a planned route, each of the multiple paths can be called a navigation route.
[0069] A navigation segment is the space between one navigation action and the next. A navigation route can consist of N navigation segments.
[0070] A navigation link is a small section within a navigation segment. It consists of multiple shape points (coordinates) and a navigation segment can consist of N navigation links.
[0071] Shape Points: The navigation section consists of multiple shape points, which are latitude and longitude coordinate points.
[0072] Euler angles: These represent three values for any rotation in three-dimensional (3D) space. Euler angles were proposed by Leonhard Euler in the 18th century. Currently, there are three types of Euler angles: pitch, yaw, and roll. Figure 2 This is a schematic diagram of the three types of Euler angles. For example... Figure 2 As shown in ①, in the XYZ coordinate system, the pitch angle is the angle of rotation around the X-axis (to the right), which can describe the angle of looking up or down. For example... Figure 2 As shown in ②, in the XYZ coordinate system, the yaw angle is the angle of rotation around the Y-axis (the upward direction), representing the degree of looking left or right. Figure 2 As shown in ③, in the XYZ coordinate system, the roll angle is the angle of rotation around the Z-axis (forward), representing how the camera rolls, and is commonly used in spacecraft cameras. This application mainly relates to the yaw angle.
[0073] Map scale: Map scale represents the ratio of the length of a line segment on a map to the actual length of the corresponding location on the ground.
[0074] Scale class: The larger the denominator of a scale, the smaller the scale and the smaller its class. The smaller the denominator of a scale, the larger the scale and the larger its class. For example, if scale 1 is 1:5000 and scale 2 is 1:500, then scale 1 has a smaller class than scale 2.
[0075] Fixed scale: If the electronic device displays the navigation route according to a fixed scale as long as the user does not adjust the scale, then the fixed scale can be called a fixed scale.
[0076] Electronic devices with map navigation applications installed can provide navigation services to users. In related technologies, after obtaining the navigation route between the origin and destination, the electronic device can display the navigation route at a certain scale in the map area of the electronic device.
[0077] Users can also adjust the scale used to display navigation routes by zooming in and out. For example, if a user needs to view detailed traffic information for a specific road segment, they can zoom in to increase the scale used by the electronic device to display the navigation route. However, how to display the navigation route at a fixed scale after the user has adjusted the scale is a problem that urgently needs to be solved.
[0078] In view of the aforementioned problems with existing navigation route display methods, this application proposes a method for displaying navigation routes according to a fixed scale indicated by the user's zoom operation after the user performs a zoom operation. This method enables electronic devices to display navigation routes according to a fixed scale indicated by the user's zoom operation, improving the flexibility of navigation route display and enhancing the user experience.
[0079] Optionally, the entity executing the navigation route display method provided in this application can be any electronic device with processing and display functions. In some embodiments, the electronic device can be referred to as a user equipment (UE), terminal, etc. For example, the electronic device can be a mobile phone, a portable Android device (PAD), a personal digital assistant (PDA), a handheld device with wireless communication functions, a computing device, an in-vehicle device, or a wearable device, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, etc. This application does not specifically limit the form of the electronic device.
[0080] It should be understood that this application does not limit the application scenarios of the navigation route display method. For example, this application does not limit the display mode of the electronic device's navigation interface. For example, the display mode of the electronic device's navigation interface can be a locked state (the map constantly moves with the current location, and since the car icon also moves, the two cancel each other out, visually giving the impression that the car icon is locked to a fixed point on the screen), a panoramic state (the map center point and zoom level are adjusted to appropriate values so that the entire navigation route is displayed in the visible area), or a normal state (the map remains stationary, only the car icon moves). In some embodiments, the electronic device can also execute the navigation route display method after the user triggers the familiar route mode. Here, the familiar route mode refers to displaying the navigation route in panoramic mode. In addition, the following navigation routes can be navigation routes corresponding to any mode of travel such as driving, walking, or cycling.
[0081] The technical solutions of this application will be described in detail below with reference to specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
[0082] Figure 3 This is a flowchart illustrating a navigation route display method provided in this application. Figure 3 As shown, the method includes the following steps:
[0083] S101. Display the navigation route on the map area using the first fixed scale.
[0084] Optionally, the first fixed scale can be determined by the electronic device based on the display mode of the current navigation route and the actual length of the navigation route. The display mode can be a panoramic mode or a non-panoramic mode. It should be understood that this application does not limit how the electronic device determines the first fixed scale based on the display mode of the current navigation route and the length of the navigation route. The first fixed scale can also be pre-stored by the user in the electronic device.
[0085] Furthermore, it should be understood that this application does not limit how the electronic device obtains the aforementioned navigation route. Optionally, any existing navigation route acquisition method can be referred to, which will not be elaborated upon here.
[0086] S102. In response to the user's zoom operation, obtain the second fixed scale indicated by the zoom operation.
[0087] Optionally, the electronic device can respond to the user's operation of zooming in or out of the map. That is, the second fixed scale can be smaller than the first fixed scale, or it can be greater than or equal to the first fixed scale.
[0088] S103. If the first fixed scale and the second fixed scale are different in size, obtain the target bounding box including the navigation route under the second fixed scale.
[0089] Optionally, the electronic device can, for example, start from the current location and expand the bounding box segment by segment along the navigation route until a target bounding box is obtained, so that the target bounding box can include a longer navigation route, thereby allowing the electronic device to display as much of the navigation route as possible. For example, Figure 4 This is a schematic diagram of a target bounding box provided in this application. For example... Figure 4 As shown, the target bounding box can be a bounding box composed of EFGH.
[0090] It should be understood that this application does not limit the shape of the aforementioned target enclosure. Figure 4This is merely an illustrative example of a target bounding box that includes a navigation route, using a rectangle as an example. For instance, the target bounding box could also be a circle, an ellipse, a parallelogram, etc.
[0091] If the first fixed scale and the second fixed scale are the same size, the electronic device may optionally continue to use the first fixed scale to display the navigation route in the map area.
[0092] S104. Based on the target bounding box and the map area, obtain the map center point at the second fixed scale.
[0093] For example, an electronic device may use the center point of the area where the target bounding box overlaps with the map area as the center point of the map at a second fixed scale.
[0094] S105. Based on the map center point and the map projection center point, display the navigation route on the map area using a second fixed scale.
[0095] For example, the center point of the map projection can be the center point of the map area. (As described above...) Figure 1 Taking the map area shown as an example, the center point of the map projection can be the center point of the area enclosed by ABCD.
[0096] It should be understood that this application does not limit the method by which an electronic device displays a navigation route on a map area using the second fixed scale based on the map center point and the map projection center point. Optionally, any existing method for displaying a navigation route on a map area using a fixed scale based on the map center point and the map projection center point can be referred to, which will not be elaborated here.
[0097] It should be understood that this application does not limit whether the electronic device displays other content when displaying the aforementioned navigation route. For example, the electronic device may also display a vehicle logo, current speed, and current road condition information. For instance, when a user travels along the navigation route, the electronic device may display the current location moving along the navigation route within the map area.
[0098] Furthermore, it should be understood that this application does not limit the execution frequency (i.e., the update frequency of navigation information) of the navigation route display method. For example, the execution frequency can be 1 Hz. Optionally, when updating the navigation route display, the electronic device can use animation to transition the current location and / or navigation route, ensuring the smoothness of the map display. Taking the animation transition of the current location as an example, the electronic device can gradually move the current location to achieve an animation transition, ensuring the smoothness of the current location display.
[0099] In this embodiment, when displaying the navigation route on the map area using a first fixed scale, the system can respond to the user's zoom operation to obtain a second fixed scale indicated by the zoom operation. When the second fixed scale differs in size from the first fixed scale, the target bounding box including the navigation route under the second fixed scale can be obtained. The map center point under the second fixed scale can be obtained through the target bounding box and the map area. Based on the map center point and the map projection center point, the navigation route under the second fixed scale can be displayed. Through this method, the navigation route is displayed according to the second fixed scale corresponding to the user's zoom operation, allowing the electronic device to maintain the display of map information under that fixed scale, improving the flexibility of navigation route display and enhancing the user experience.
[0100] The following section provides a detailed explanation of how electronic devices acquire the target bounding box, including the navigation route, at a second fixed scale.
[0101] The electronic device can determine the target bounding box of the navigation route based on the size relationship between the level of the second fixed scale and the level of the target fixed scale. The panoramic navigation route can be displayed on the map area using the aforementioned target fixed scale. That is, the target fixed scale is the scale that enables the electronic device to display the panoramic navigation route. Optionally, the electronic device can determine the target fixed scale based on the panoramic navigation route and the map area.
[0102] The following section provides a detailed explanation of how electronic devices acquire the target bounding box, including the navigation route, at the second fixed scale, using two scenarios as examples: when the level of the second fixed scale is less than or equal to the level of the target fixed scale, and when the level of the second fixed scale is greater than the level of the target fixed scale.
[0103] Scenario 1: If the level of the second fixed scale is less than or equal to the level of the target fixed scale corresponding to the panoramic navigation route, it means that the actual distance corresponding to each unit distance on the map (e.g., 1 cm) in the map area under the second fixed scale is greater than or equal to the actual distance corresponding to each unit distance on the map area under the target fixed scale. In other words, the panoramic navigation route can be completely displayed in the map area. Therefore, the electronic device can obtain the target bounding box including the navigation route under the second fixed scale based on the shape point coordinate set of the panoramic navigation route.
[0104] Taking a rectangle as an example, the electronic device can optionally obtain the coordinates of the first corner and the second corner of the target bounding box based on the set of shape point coordinates of the panoramic navigation route. The first and second corners are diagonally opposite each other. Then, the electronic device can obtain the target bounding box based on the coordinates of the first and second corners.
[0105] Optionally, the aforementioned shape point can be a two-dimensional point or a three-dimensional point. Taking the shape point as a two-dimensional point as an example, its coordinates can be latitude and longitude coordinates. Taking the shape point as a three-dimensional point as an example, its coordinates can be latitude, longitude, and elevation length coordinates.
[0106] For example, Figure 5 This is a schematic diagram of the target bounding box corresponding to a panoramic navigation route provided in this application. For example... Figure 5 As shown, the target bounding box corresponding to the panoramic navigation route is the bounding box composed of EFGH. Taking E as the first angle mentioned above as an example, then G is the second angle. Taking F as the first angle mentioned above as an example, then H is the second angle.
[0107] The electronic device can, for example, obtain the coordinates of the first and second corners of the target bounding box based on a second fixed scale and the yaw angle of the navigation route. Taking a yaw angle of 0 (meaning the electronic device always displays the map and navigation route with north at the top, south at the bottom, west on the left, and east on the right) as an example, assuming the longitude of the actual area corresponding to the map displayed by the electronic device gradually increases from left to right and the latitude gradually increases from bottom to top, the target bounding box is rectangular, and the first corner of the target bounding box is the upper left corner of the rectangle (e.g., Figure 5 E shown in the diagram), the second corner is the bottom right corner of the rectangle (e.g. Figure 5 Given G), and M(lon, lat), the coordinates of the first and second corners of the target bounding box can be represented by the following formulas (1)-(4):
[0108] E(lon)=MIN(M.lon) (1)
[0109] E(lat) = MAX(M.lat) (2)
[0110] G(lon) = MAX(M.lon) (3)
[0111] G(lat)=MIN(M.lat) (4)
[0112] Where E(lon) represents the x-coordinate of the first corner of the target bounding box, and MIN(M.lon) represents the smallest longitude in the aforementioned set of shape point coordinates. E(lat) represents the y-coordinate of the first corner of the target bounding box, and MAX(M.lat) represents the largest latitude in the aforementioned set of shape point coordinates. G(lon) represents the x-coordinate of the first corner of the target bounding box, and MAX(M.lon) represents the largest longitude in the aforementioned set of shape point coordinates. G(lat) represents the y-coordinate of the first corner of the target bounding box, and MIN(M.lat) represents the smallest latitude in the aforementioned set of shape point coordinates.
[0113] In this example, after the electronic device determines the coordinates of two opposite corners of the target bounding box (the first and second corners mentioned above), it can determine the target bounding box based on these coordinates. For example, the electronic device can first obtain the other two corners of the rectangle corresponding to the target bounding box using the coordinates of the first and second corners (e.g., ...). Figure 5 The coordinates of F and H shown are then determined. The electronic device can then connect the four corners of the rectangle in the order of adjacent corners (e.g., ...). Figure 5 The target bounding box is obtained by following the order of E, F, G, and H shown in the diagram.
[0114] It should be understood that this application does not limit the yaw angle of the navigation route displayed by the electronic device. In some embodiments, the electronic device may also obtain the coordinates of the first and second corners of the target bounding box based on the coordinate set of shape points of the panoramic navigation route, while always keeping the vehicle logo facing upwards, and obtain the target bounding box based on the coordinates of the first and second corners. In this implementation, the yaw angle of the navigation route can change as the map rotates.
[0115] In this embodiment, when the level of the second fixed scale is less than or equal to the level of the target fixed scale, the target bounding box including the navigation route is obtained by using the shape point coordinate set of the panoramic navigation route. This allows the electronic device to display the panoramic navigation route, increasing the length of the navigation route displayed by the electronic device and enabling the display of as many navigation routes as possible, thereby further improving the user experience.
[0116] The second scenario: If the level of the second fixed scale is greater than the level of the target fixed scale corresponding to the panoramic navigation route, it means that the electronic device cannot display the panoramic navigation route in the map area according to the second fixed scale. Optionally, the electronic device can start from the current positioning position and calculate bounding boxes sequentially along the navigation route until a target bounding box that meets preset conditions is obtained. These preset conditions can be: the width of the bounding box is greater than or equal to the width of the map area; or, the length of the bounding box is greater than or equal to the length of the map area; or, both the width of the bounding box and the length of the bounding box are greater than or equal to the length of the map area. Optionally, the method by which the electronic device calculates each bounding box can refer to the method described in the above embodiments, and will not be repeated here.
[0117] For example, Figure 6 This is a schematic diagram illustrating a process for obtaining a target bounding box, as provided in this application. Figure 6As shown, the area enclosed by ABCD can be used as the map area. Starting from the current location, the electronic device calculates the bounding box along the navigation route, obtaining bounding box a. The electronic device then determines whether bounding box a meets the aforementioned preset conditions. If it is determined that bounding box a does not meet the preset conditions, the electronic device continues to calculate the bounding box along the navigation route, obtaining bounding box b. Then, if it is determined that bounding box b does not meet the preset conditions, the electronic device continues to calculate the bounding box along the navigation route, obtaining bounding box c. If it is determined that bounding box c does not meet the preset conditions, the electronic device again continues to calculate the bounding box along the navigation route, obtaining bounding box d. For example... Figure 6 As shown, if the electronic device can determine that the bounding box d meets the above preset conditions, then the bounding box d can be used as the target bounding box EFGH.
[0118] Optionally, during the acquisition of the target bounding box, the electronic device can start from the current positioning position and obtain the bounding box by increasing the preset number of navigation nodes, navigation segments, or shape points in the navigation route. The following section details how the electronic device acquires the target bounding box, using the example of increasing navigation nodes:
[0119] The electronic device can start from the current location and increase the number of navigation segments in the navigation route by a preset number to obtain a bounding box. Then, the electronic device can determine whether the bounding box meets the aforementioned preset conditions. If the bounding box does not meet the preset conditions, the preset number of navigation segments can be increased until a target bounding box that meets the preset conditions is obtained. It should be understood that this application does not limit the aforementioned preset number. For example, the preset number can be 1.
[0120] In this implementation, taking the aforementioned preset quantity of 1 as an example, the electronic device can, for instance, use the navigation segment to which the current location belongs as the first navigation segment. Then, the electronic device can follow the navigation route to obtain the next navigation segment of the first navigation segment as the second navigation segment. Then, the electronic device can, for instance, determine a bounding box that includes all shape points between the current location and the endpoint shape point of the second navigation segment, based on the current location and the second navigation segment. This allows the electronic device to increase the navigation route by one navigation segment starting from the current location to obtain the bounding box.
[0121] It should be understood that whether the bounding box is obtained by increasing the preset number of navigation nodes, navigation segments, or shape points in the navigation route can be determined based on the actual needs of the navigation route display. For example, obtaining the bounding box by increasing the preset number of navigation nodes in the navigation route reduces the computational load on the electronic device and improves the efficiency of obtaining the target bounding box, thereby improving the efficiency of navigation route display, compared to obtaining the bounding box by increasing the preset number of shape points in the navigation route. Compared to obtaining the bounding box by obtaining the bounding box by using the preset number of navigation segments in the navigation route, it reduces the variation span between bounding boxes, improves the accuracy of obtaining the target bounding box, and thus improves the accuracy of navigation route display.
[0122] Therefore, if the actual requirement is high accuracy in displaying the navigation route, the bounding box can be obtained by increasing the number of shape points in the navigation route starting from the current location. If the actual requirement is high efficiency in displaying the navigation route, the bounding box can be obtained by increasing the number of navigation segments in the navigation route starting from the current location. If both accuracy and efficiency are required, the bounding box can be obtained by increasing the number of navigation sections in the navigation route starting from the current location.
[0123] Optionally, when determining whether the bounding box meets preset conditions, the electronic device can transform the image region to a real-world coordinate system according to a second fixed scale. The electronic device can obtain the width and length of the image region in the real-world coordinate system. Then, the electronic device can use the width and length of the image region in the real-world coordinate system to determine whether the bounding box meets the preset conditions.
[0124] Taking a yaw angle of 0 for the navigation route as an example, the width of the bounding box can refer to its length in the east-west direction, and the length of the bounding box can refer to its length in the north-south direction. The width of the map area can refer to the horizontal length of the map area after it has been transformed to the real-world coordinate system according to a second fixed scale, for example... Figure 1 The length of line segment AB (or line segment DC) in the real-world coordinate system is shown. The length of the map region can refer to the vertical length of the map region after it has been transformed to the real-world coordinate system according to a second fixed scale, for example... Figure 1 The length of line segment AD (or line segment BC) in the real-world coordinate system shown.
[0125] In this embodiment, when the level of the second fixed scale is greater than the level of the target fixed scale, the target bounding box obtained according to the preset condition is that the width of the bounding box is greater than or equal to the width of the map area, or the length of the bounding box is greater than or equal to the length of the map area. This allows the target bounding box to include more navigation routes, thereby displaying as many navigation routes as possible and further improving the user experience.
[0126] The following section provides a detailed explanation of how electronic devices obtain the map center point at a second fixed scale based on the target bounding box and the map area:
[0127] The electronic device can first perform region matching between the target bounding box and the map area, ensuring that at least a portion of the target bounding box overlaps with the map area, thus obtaining an overlapping region. Then, the electronic device can use the center point of this overlapping region as the map center point at a second fixed scale. By using the center point of the overlapping region as the map center point at this second fixed scale, the map center point is located within the target bounding box and within the map area, thereby improving the accuracy of navigation route display based on this map center point and further enhancing the user experience.
[0128] Taking the example of an electronic device displaying the current location as a car logo, Figure 7a This is a schematic diagram illustrating the size relationship between the drawing area provided in this application and the four target bounding boxes. For example... Figure 7a As shown, the size relationship between the target bounding box and the drawing area can include the following four cases: 1. The length of the target bounding box is greater than the length of the drawing area, and the width of the target bounding box is less than the width of the drawing area; 2. The length of the target bounding box is less than the length of the drawing area, and the width of the target bounding box is greater than the width of the drawing area; 3. The length of the target bounding box is less than the length of the drawing area, and the width of the target bounding box is less than the width of the drawing area; 4. The length of the target bounding box is greater than the length of the drawing area, and the width of the target bounding box is greater than the width of the drawing area.
[0129] Therefore, the following section will use the four scenarios mentioned above as examples to explain in detail how electronic devices perform region matching between the target bounding box and the drawing area:
[0130] 1. If the length of the target bounding box is greater than the length of the image area, and the width of the target bounding box is less than the width of the image area, optionally, the electronic device can divide the target bounding box into M sub-bounding boxes along its length. Then, the electronic device can fill the target bounding box into the image area based on the length direction of the sub-bounding box where the current positioning position is located, so that a part of the target bounding box coincides with the image area. Here, M is an integer greater than or equal to 2.
[0131] Taking a mobile phone or tablet as an example, Figure 7b This is a schematic diagram illustrating the length and width directions of a target bounding box provided in this application. Assuming the length direction of the target bounding box is vertically upward, as shown... Figure 7b As shown, the length and width directions of the target bounding box remain unchanged when the electronic device is placed vertically or horizontally.
[0132] Optionally, the electronic device can determine the value of M based on the length of the target bounding box extending beyond the drawing area, such that the length of each sub-bounding box at the second fixed scale is less than or equal to the length of the drawing area. It should be understood that this application does not limit how the electronic device divides the target bounding box into M sub-bounding boxes along the length direction. For example, the electronic device can divide the target bounding box into M sub-bounding boxes of the same size along the length direction. In some embodiments, the sizes of the different sub-bounding boxes can also be different.
[0133] Optionally, the electronic device can transform the map region to a real-world coordinate system according to a second fixed scale. Then, the electronic device can translate the map region along the length of the sub-bounding box including the current positioning position in this real-world coordinate system until the sub-bounding box is completely entered into the map region, thereby filling the target bounding box into the map region.
[0134] For example, taking the case where M equals 2, Figure 8 This is a schematic diagram showing the relationship between the drawing area provided in this application and the size of the first type of target bounding box. For example... Figure 8 Taking ① and ② as examples, the electronic device can divide the target bounding box into two sub-bounding boxes along its length, namely sub-bounding box a and sub-bounding box b. Figure 8 Taking ① as an example, if the current location is within a sub-boundary box (b), the electronic device can use the length direction of sub-boundary box b as a reference to fill the target bounding box into the map area, resulting in an area where the target bounding box overlaps with the map area. Taking a yaw angle of 0 as an example, the length direction of sub-boundary box b can be north-south, meaning it overlaps with... Figure 8 The horizontal arrow shown in ① is perpendicular to the direction. Figure 8 Taking ② as an example, if the current location is within a sub-boundary box called sub-boundary box a, then the electronic device can move along the length of sub-boundary box a (e.g., along the direction of the sub-boundary box a). Figure 8 Using the direction of the horizontal arrow shown in ② as a reference, fill the target bounding box into the drawing area to obtain the area where the target bounding box coincides with the drawing area.
[0135] It should be understood that Figure 8 The position of the target bounding box in the width direction (the direction perpendicular to the length direction) is merely an illustrative example. This application ensures that the target bounding box does not exceed the drawing area in the width direction, but does not limit the position of the target bounding box in the width direction. Optionally, the target bounding box can be centered in the drawing area in the width direction.
[0136] In this implementation, for a target bounding box whose length is greater than the length of the map area and whose width is less than the width of the map area, the target bounding box is divided into M sub-bounding boxes along its length direction. This allows the electronic device to determine the sub-bounding box where the current location is located. Using the length direction of this sub-bounding box as a reference, the target bounding box is filled into the map area, ensuring that the overlapping area between the sub-bounding box and the map area includes the map center point and that the overlap area between the map area and the target bounding box is large. This allows the electronic device to display more navigation routes and ensures that the current location is displayed in the map area, further improving the user experience.
[0137] 2. If the length of the target bounding box is less than the length of the drawing area, and the width of the target bounding box is greater than the width of the drawing area, the electronic device may optionally divide the target bounding box into N sub-bounding boxes along the width direction. Then, the electronic device may fill the target bounding box into the drawing area based on the width direction of the sub-bounding box where the current positioning position is located, so that a part of the target bounding box coincides with the drawing area.
[0138] Wherein, N is an integer greater than or equal to 2. Optionally, the electronic device may determine the value of N based on the width of the target bounding box extending beyond the drawing area, such that the length of each sub-bounding box at the second fixed scale is less than or equal to the length of the drawing area. It should be understood that this application does not limit how the electronic device divides the target bounding box into N sub-bounding boxes along the width direction. For example, the electronic device may divide the target bounding box into N sub-bounding boxes of the same size along the width direction. In some embodiments, the sizes of different sub-bounding boxes may also be different.
[0139] Optionally, the electronic device can translate the sub-boundary box, including the current location, along the width direction of the sub-boundary box into the drawing area until the sub-boundary box is completely inside the drawing area, thereby filling the drawing area with the target bounding box.
[0140] For example, taking the case where N equals 2, Figure 9 This is a schematic diagram illustrating the relationship between the drawing area provided in this application and the size of the second type of target bounding box. For example... Figure 9 Taking ① and ② as examples, the electronic device can divide the target bounding box into two sub-bounding boxes along the width direction, namely sub-bounding box c and sub-bounding box d. Figure 9 Taking ① as an example, if the current location's bounding box is sub-bounding box c, the electronic device can use the width direction of sub-bounding box c as a reference to fill the target bounding box into the map area, resulting in an area where the target bounding box overlaps with the map area. Taking a yaw angle of 0 as an example, the width direction of sub-bounding box c can be east-west, that is, it overlaps with... Figure 9The vertical arrow shown in ① is perpendicular to the direction. Figure 9 Taking ② as an example, if the current location is within a sub-boundary box called sub-boundary box d, then the electronic device can move along the width of sub-boundary box d (e.g., with...). Figure 9 Using the vertical arrow (as shown in ②) as a reference, fill the target bounding box into the drawing area to obtain the area where the target bounding box coincides with the drawing area.
[0141] It should be understood that Figure 9 The position of the target bounding box in the length direction (the direction perpendicular to the width direction) is merely an illustrative example. This application does not limit the position of the target bounding box in the length direction while ensuring that it does not exceed the drawing area. Optionally, the target bounding box can be centered in the drawing area in the length direction.
[0142] In this implementation, for a target bounding box whose width is greater than the width of the map area and whose length is less than the length of the map area, the target bounding box is divided into N sub-bounding boxes along its width direction. This allows the electronic device to determine the sub-bounding box where the current location is located. Using the width direction of this sub-bounding box as a reference, the target bounding box is filled into the map area. This ensures that the overlapping area between the sub-bounding box and the map area includes the map center point, and that the overlap area between the map area and the target bounding box is large. This allows the electronic device to display more navigation routes and ensures that the current location is displayed in the map area, further improving the user experience.
[0143] 3. If the length of the target bounding box is less than the length of the drawing area, and the width of the target bounding box is less than the width of the drawing area, the electronic device may optionally fill the drawing area with the target bounding box.
[0144] It should be understood that this application does not limit the implementation method of the electronic device filling the target bounding box within the drawing area. For example, Figure 10 This is a schematic diagram illustrating the relationship between the size of the drawing area provided in this application and the size of the third type of target bounding box. For example... Figure 10 As shown, the electronic device can center the target bounding box in the drawing area along both the length and width directions, filling the drawing area to create an overlapping region. For example, as shown... Figure 10 As shown, the target bounding box can include the current positioning location. The length and width directions mentioned here are the same as in the above embodiment and will not be repeated here.
[0145] Alternatively, the electronic device can center the target bounding box in the drawing area along its length, but not in the drawing area along its width, and fill the drawing area. Or, the electronic device can center the target bounding box in the drawing area along its width, but not in the drawing area along its length, and fill the drawing area. Or, the target bounding box can be neither centered in the drawing area along its length nor its width, but still fill the drawing area.
[0146] In this implementation, by filling the target bounding box within the map area, the electronic device can display the navigation routes included by the target bounding box within the map area. This ensures that the electronic device can display more navigation routes and that the current location can be displayed within the map area, further improving the user experience.
[0147] 4. If the length of the target bounding box is greater than the length of the drawing area, and the width of the target bounding box is greater than the width of the drawing area, the electronic device may optionally divide the target bounding box into Q sub-bounding boxes. Then, the electronic device may fill the target bounding box into the drawing area based on the length and width directions of the sub-bounding box where the current positioning position is located, so that a part of the target bounding box coincides with the drawing area.
[0148] Optionally, the specific implementation of filling the target bounding box into the drawing area can refer to the method described in the foregoing embodiments, and will not be repeated here.
[0149] Wherein, Q is greater than or equal to 4. Optionally, the electronic device may determine the value of Q based on the width of the target bounding box extending beyond the drawing area, such that the length of each sub-bounding box at the second fixed scale is less than or equal to the length of the drawing area, and the width is less than or equal to the width of the drawing area. It should be understood that this application does not limit how the electronic device divides the target bounding box into Q sub-bounding boxes. For example, the electronic device may divide the target bounding box into Q sub-bounding boxes of the same size. In some embodiments, the sizes of different sub-bounding boxes may also be different.
[0150] For example, taking the case where Q equals 4, Figure 11 This is a schematic diagram showing the relationship between the drawing area provided in this application and the size of the fourth type of target bounding box. For example... Figure 11 Taking ①, ②, ③, and ④ as examples, the electronic device can divide the target bounding box into four sub-bounding boxes: sub-bounding box e, bounding box f, bounding box g, and sub-bounding box h. Figure 11Taking ① as an example, if the current location is within a sub-boundary box h, the electronic device can use the width and length directions of sub-boundary box h as a reference to fill the target bounding box into the image area, resulting in an area where the target bounding box overlaps with the image area. Figure 11 Taking ② as an example, if the current location is a sub-boundary box g, the electronic device can use the width and length directions of the sub-boundary box g as a reference to fill the target bounding box into the drawing area, thus obtaining the area where the target bounding box and the drawing area overlap. Figure 11 ③ and ④ are similar to the implementation methods described above, and will not be repeated here. The length and width directions mentioned here can be referred to in the above embodiments, and will not be repeated here.
[0151] It should be understood that the above Figures 8-11 The area enclosed by ABCD is the map area.
[0152] In this implementation, a target bounding box whose width and length are both greater than the width and length of the map area are divided into Q sub-bounding boxes. This allows the electronic device to determine the sub-bounding box containing the current location. Using the width and length directions of these sub-bounding boxes as a reference, the target bounding box is filled into the map area. This ensures that the overlapping area between the sub-bounding boxes and the map area includes the map center point, and that the overlap between the map area and the target bounding box is substantial. This allows the electronic device to display more navigation routes while ensuring the current location is displayed within the map area, further improving the user experience.
[0153] Figure 12 This is a schematic diagram of a navigation route display device provided in this application. Figure 12 As shown, the navigation route display device includes: a first display module 21, a processing module 22, and a second display module 23. Among them,
[0154] The first display module 21 is used to display the navigation route in the map area using a first fixed scale.
[0155] Processing module 22 is configured to respond to a user's zoom operation by obtaining a second fixed scale indicated by the zoom operation; when the first fixed scale and the second fixed scale are different in size, obtaining a target bounding box including the navigation route under the second fixed scale; and obtaining the map center point under the second fixed scale based on the target bounding box and the map area.
[0156] The second display module 23 is used to display the navigation route on the map area according to the map center point and the map projection center point, using the second fixed scale.
[0157] Optionally, processing module 22 is specifically configured to: when the level of the second fixed scale is less than or equal to the level of the target fixed scale corresponding to the panoramic navigation route, obtain a target bounding box including the navigation route based on the shape point coordinate set of the panoramic navigation route; when the level of the second fixed scale is greater than the level of the target fixed scale, calculate the bounding box sequentially along the navigation route starting from the current positioning position until a target bounding box satisfying a preset condition is obtained. The preset condition is that the width of the bounding box is greater than or equal to the width of the map area, and / or, the length of the bounding box is greater than or equal to the length of the map area.
[0158] Optionally, the processing module 22 is specifically used to increase the number of navigation segments in the navigation route from the current location to obtain a bounding box; when the bounding box does not meet the preset conditions, the number of navigation segments is increased until a target bounding box that meets the preset conditions is obtained.
[0159] Optionally, the processing module 22 is specifically used to obtain the coordinates of the first corner and the second corner of the target bounding box based on the set of shape point coordinates of the panoramic navigation route, wherein the first corner and the second corner are diagonal; and to obtain the target bounding box based on the coordinates of the first corner and the second corner of the target bounding box.
[0160] Optionally, the processing module 22 is specifically used to perform region matching between the target bounding box and the map area, so that at least a part of the target bounding box coincides with the map area to obtain an overlapping area; and to use the center point of the overlapping area as the map center point under the second fixed scale.
[0161] Optionally, processing module 22 is specifically configured to, when the length of the target bounding box is greater than the length of the drawing area and the width of the target bounding box is less than the width of the drawing area, divide the target bounding box into M sub-bounding boxes along the length direction; and, using the length direction of the sub-bounding box where the current positioning position is located as a reference, fill the target bounding box into the drawing area so that a portion of the target bounding box coincides with the drawing area. Here, M is an integer greater than or equal to 2.
[0162] Optionally, the processing module 22 is specifically configured to, when the length of the target bounding box is less than the length of the drawing area and the width of the target bounding box is greater than the width of the drawing area, divide the target bounding box into N sub-bounding boxes along the width direction; and, using the width direction of the sub-bounding box where the current positioning position is located as a reference, fill the target bounding box into the drawing area so that a portion of the target bounding box overlaps with the drawing area. Here, N is an integer greater than or equal to 2.
[0163] Optionally, the processing module 22 is specifically used to fill the drawing area with the target bounding box when the length of the target bounding box is less than the length of the drawing area and the width of the target bounding box is less than the width of the drawing area.
[0164] Optionally, the processing module 22 is specifically configured to, when the length of the target bounding box is greater than the length of the drawing area and the width of the target bounding box is greater than the width of the drawing area, divide the target bounding box into Q sub-bounding boxes; and, based on the length and width directions of the sub-bounding box where the current positioning position is located, fill the target bounding box into the drawing area so that a portion of the target bounding box overlaps with the drawing area. Wherein, Q is greater than or equal to 4.
[0165] The navigation route display device provided in this application is used to execute the navigation route display method embodiment executed by the aforementioned map data acquisition device. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0166] Figure 13 This is a schematic diagram of an electronic device structure provided in this application. Figure 13 As shown, the electronic device 300 may include at least one processor 301, a memory 302, and a display device 304.
[0167] Display device 304 is coupled to processor 301, and processor 301 controls display device 304 to display navigation route.
[0168] The memory 302 is used to store programs. Specifically, the program may include program code, which includes computer operation instructions.
[0169] The memory 302 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0170] The processor 301 is used to execute computer execution instructions stored in the memory 302 to implement the navigation route display method described in the foregoing method embodiments. The processor 301 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.
[0171] Optionally, the electronic device 300 may also include a communication interface 303. In specific implementations, if the communication interface 303, memory 302, and processor 301 are implemented independently, they can be interconnected via a bus to complete communication. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc., but this does not imply that there is only one bus or one type of bus.
[0172] Optionally, in a specific implementation, if the communication interface 303, memory 302 and processor 301 are integrated on a single chip, then the communication interface 303, memory 302 and processor 301 can communicate through an internal interface.
[0173] This application also provides a location-based service provision method. This method can utilize the methods described in any of the foregoing embodiments to display navigation routes, thereby providing location-based services to the served object. The location-based service may include one or more of navigation, map rendering, and route planning.
[0174] This application also provides a computer-readable storage medium, which may include various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. Specifically, the computer-readable storage medium stores program instructions, which are used in the methods described in the above embodiments.
[0175] This application also provides a program product including executable instructions stored in a readable storage medium. At least one processor of an electronic device can read the executable instructions from the readable storage medium, and the processor executes the executable instructions to cause the electronic device to implement the navigation route display methods provided in the various embodiments described above.
[0176] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A method for displaying navigation routes, characterized in that, The method includes: The navigation route is displayed on the map area using a first fixed scale. In response to a user's zoom operation, obtain a second fixed scale indicated by the zoom operation; If the first fixed scale and the second fixed scale are different in size, then obtain the target bounding box including the navigation route under the second fixed scale; Based on the target bounding box and the map area, obtain the map center point under the second fixed scale; Based on the map center point and the map projection center point, the navigation route is displayed on the map area using the second fixed scale. The step of obtaining the target bounding box including the navigation route at the second fixed scale includes: If the level of the second fixed scale is less than or equal to the level of the target fixed scale corresponding to the panoramic navigation route, then the target bounding box including the navigation route under the second fixed scale is obtained according to the shape point coordinate set of the panoramic navigation route. If the level of the second fixed scale is greater than the level of the target fixed scale, then starting from the current positioning position, the bounding box is calculated sequentially along the navigation route until a target bounding box that meets the preset conditions is obtained. The preset conditions are that the width of the bounding box is greater than or equal to the width of the map area, and / or that the length of the bounding box is greater than or equal to the length of the map area.
2. The method according to claim 1, characterized in that, The step of calculating bounding boxes sequentially along the navigation route from the current location until a target bounding box that meets preset conditions is obtained includes: Starting from the current location, increase the preset number of navigation segments in the navigation route to obtain the bounding box; If the bounding box does not meet the preset conditions, the preset number of navigation sections will continue to increase until a target bounding box that meets the preset conditions is obtained.
3. The method according to claim 1, characterized in that, The step of obtaining the target bounding box including the navigation route at the second fixed scale based on the set of shape point coordinates of the panoramic navigation route includes: Based on the set of shape point coordinates of the panoramic navigation route, obtain the coordinates of the first corner and the second corner of the target bounding box, wherein the first corner and the second corner are diagonal; The target bounding box is obtained based on the coordinates of the first corner and the second corner.
4. The method according to any one of claims 1-3, characterized in that, The step of obtaining the map center point at the second fixed scale based on the target bounding box and the map area includes: The target bounding box is matched with the image area to make at least a portion of the target bounding box overlap with the image area, thus obtaining an overlapping area. The center point of the overlapping area is taken as the center point of the map under the second fixed scale.
5. The method according to claim 4, characterized in that, The step of matching the target bounding box with the map region includes: If the length of the target bounding box is greater than the length of the drawing area, and the width of the target bounding box is less than the width of the drawing area, then the target bounding box is divided into M sub-bounding boxes along the length direction; where M is an integer greater than or equal to 2. Using the length direction of the sub-boundary box where the current location is located as a reference, the target bounding box is filled into the drawing area so that a part of the target bounding box coincides with the drawing area.
6. The method according to claim 4, characterized in that, The step of matching the target bounding box with the map region includes: If the length of the target bounding box is less than the length of the image area, and the width of the target bounding box is greater than the width of the image area, then the target bounding box is divided into N sub-bounding boxes along the width direction; where N is an integer greater than or equal to 2. Using the width direction of the sub-boundary box where the current location is located as a reference, the target bounding box is filled into the drawing area so that a part of the target bounding box coincides with the drawing area.
7. The method according to claim 4, characterized in that, The step of matching the target bounding box with the map region includes: If the length of the target bounding box is less than the length of the drawing area, and the width of the target bounding box is less than the width of the drawing area, then the target bounding box is filled into the drawing area.
8. The method according to claim 4, characterized in that, The step of matching the target bounding box with the map region includes: If the length of the target bounding box is greater than the length of the image region, and the width of the target bounding box is greater than the width of the image region, then the target bounding box is divided into Q sub-bounding boxes; where Q is greater than or equal to 4. Using the length and width directions of the sub-boundary box where the current location is located as a reference, the target bounding box is filled into the drawing area so that a portion of the target bounding box coincides with the drawing area.
9. A location-based service provision method, characterized in that, The method uses the method described in any one of claims 1-8 to display navigation routes, thereby providing location-based services to the served object, wherein the location-based services include one or more of navigation, map rendering, and route planning.
10. A navigation route display device, characterized in that, The device includes: The first display module is used to display the navigation route in the map area using a first fixed scale. The processing module is configured to respond to a user's zoom operation by obtaining a second fixed scale indicated by the zoom operation; when the first fixed scale and the second fixed scale are different in size, obtaining a target bounding box including the navigation route under the second fixed scale; and obtaining the map center point under the second fixed scale based on the target bounding box and the map area. The second display module is used to display the navigation route on the map area according to the map center point and the map projection center point, using the second fixed scale. The processing module is specifically used to obtain the target bounding box including the navigation route under the second fixed scale if the level of the second fixed scale is less than or equal to the level of the target fixed scale corresponding to the panoramic navigation route, based on the shape point coordinate set of the panoramic navigation route. If the level of the second fixed scale is greater than the level of the target fixed scale, then starting from the current positioning position, the bounding box is calculated sequentially along the navigation route until a target bounding box that meets the preset conditions is obtained. The preset conditions are that the width of the bounding box is greater than or equal to the width of the map area, and / or that the length of the bounding box is greater than or equal to the length of the map area.
11. An electronic device, characterized in that, include: Processor, memory, and display device; The processor is communicatively connected to the memory; The display device is coupled to the processor, and the processor controls the display device to display the navigation route; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1 to 8.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the navigation route display method as described in any one of claims 1 to 8.
13. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 8.