Map display method, electronic equipment and storage medium
By determining the target display scale in the map display and aggregating charging pile data by administrative region, non-overlapping anchor point location information is generated, which solves the problem of repeated anchor point coverage in the charging pile map, and improves user experience and map display efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- PATEO CONNECT (NANJING) CO LTD
- Filing Date
- 2024-11-20
- Publication Date
- 2026-05-22
Smart Images

Figure CN122072166A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of this application relate to the field of computer technology, and more specifically, to a map display method, electronic device, and storage medium. Background Technology
[0002] With the increasing popularity of electric vehicles, charging stations are being deployed more and more frequently. When the battery level of an electric vehicle is low, users can drive to a charging station to charge it, making travel more convenient.
[0003] However, with the increase in charging stations, how to make it convenient for users to view information about the charging stations is a problem that needs to be solved. Summary of the Invention
[0004] The embodiments of this application provide a map display method, electronic device, and storage medium that can at least partially solve the above-mentioned or other problems existing in the prior art.
[0005] One embodiment of this application provides a map display method, including: in response to detecting a charging pile map display request, determining scale layer data corresponding to a target display scale, wherein the scale layer data indicates the location information of anchor points to be displayed in the charging pile map at the target display scale and the charging pile information of the anchor points, wherein the location information of the anchor points to be displayed includes the location information of the anchor points corresponding to a single charging pile or the location information of the anchor points aggregated based on the location information of multiple charging piles, and the anchor points to be displayed do not overlap with each other after being displayed; and outputting a charging pile map based on the determined scale layer data.
[0006] Another embodiment of this application provides an electronic device, including at least one processor and a memory. The memory is communicatively connected to the at least one processor and stores instructions executable by the at least one processor. These instructions are executed by the at least one processor to enable the at least one processor to perform the map display method of the above-described embodiment.
[0007] Another embodiment of this application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the map display method as described above.
[0008] According to one embodiment of the map display method, electronic device and storage medium provided in this application, the executing entity can retrieve the corresponding scale layer data according to the target display scale. The location information of the anchor points to be displayed indicated by the scale layer data includes the location information of the anchor points corresponding to a single charging pile or the location information of the anchor points aggregated based on the location information of multiple charging piles. Moreover, the anchor points to be displayed do not overlap with each other after being displayed, which can solve the problem of repeated coverage of anchor points, facilitate users to view the charging pile information of the anchor points and improve the user experience.
[0009] In some embodiments of this application, the charging pile map display request includes a target display scale and selected label information; in response to detecting the charging pile map display request, determining the scale layer data corresponding to the target display scale includes: in response to detecting the charging pile map display request, determining the location information of the anchor point according to the target display scale in the charging pile map display request; determining the number of charging piles with label information among all charging piles corresponding to the anchor point according to the label information in the charging pile map display request; and determining the charging pile information of the anchor point according to the number of charging piles with label information.
[0010] In some embodiments of this application, the map display method further includes: in response to the update task being triggered, asynchronously refreshing the scale layer data corresponding to different display scale ranges based on the location information of the charging pile, the charging information of the charging pile, and the scale layer division rules.
[0011] In some embodiments of this application, different display scale ranges include a first display scale range, a second display scale range, a third display scale range, and a fourth display scale range; each display scale within the fourth display scale range > each display scale within the third display scale range > each display scale within the second display scale range > each display scale within the first display scale range; wherein, in the first scale layer data corresponding to the first display scale range, each charging pile is aggregated based on the provincial-level administrative region to which its location information belongs; in the second scale layer data corresponding to the second display scale range, each charging pile is aggregated based on the municipal-level administrative region to which its location information belongs; in the third scale layer data corresponding to the third display scale range, each charging pile is aggregated based on the county-level administrative region to which its location information belongs; and in the fourth scale layer data corresponding to the fourth display scale range, charging piles with overlapping conditions are aggregated.
[0012] In some embodiments of this application, the process of determining the fourth scale layer data includes: for each anchor point corresponding to a charging pile, determining the overlap between the charging pile and the other charging piles based on at least one of a first positional relationship, a second positional relationship, a third positional relationship, and a fourth positional relationship; determining the fourth scale layer data based on the location information of the charging piles, the charging information of the charging piles, and the overlap between each charging pile and the other charging piles; wherein, the first positional relationship indicates the positional relationship between the right boundary of the anchor point corresponding to the charging pile and the left boundary of the anchor points corresponding to the other charging piles; the second positional relationship indicates the positional relationship between the left boundary of the anchor point corresponding to the charging pile and the right boundary of the anchor points corresponding to the other charging piles; the third positional relationship indicates the positional relationship between the upper boundary of the anchor point corresponding to the charging pile and the lower boundary of the anchor points corresponding to the other charging piles; and the fourth positional relationship indicates the positional relationship between the lower boundary of the anchor point corresponding to the charging pile and the upper boundary of the anchor points corresponding to the other charging piles.
[0013] In some embodiments of this application, determining the overlap between the charging pile and the other charging piles based on at least one of a first positional relationship, a second positional relationship, a third positional relationship, and a fourth positional relationship includes: in response to an indication from at least one of the first positional relationship, the second positional relationship, the third positional relationship, and the fourth positional relationship that the positional relationship between the charging pile and the other charging piles meets the non-overlap condition, determining that the overlap between the charging pile and the other charging piles is non-overlapping.
[0014] In some embodiments of this application, determining the overlap between the charging pile and the other charging piles based on at least one of a first positional relationship, a second positional relationship, a third positional relationship, and a fourth positional relationship further includes: in response to the first positional relationship, the second positional relationship, the third positional relationship, and the fourth positional relationship all indicating that the positional relationship between the charging pile and the other charging piles does not meet the non-overlap condition, determining that the overlap between the charging pile and the other charging piles is an overlap.
[0015] In some embodiments of this application, the location information of anchor points in the first scale layer data is determined based on the location information of provincial-level administrative buildings within the corresponding provincial-level administrative region; the location information of anchor points in the second scale layer data is determined based on the location information of municipal-level administrative buildings within the corresponding municipal-level administrative region; the location information of anchor points in the third scale layer data is determined based on the location information of county-level administrative buildings within the corresponding county-level administrative region; or the location information of anchor points in the first scale layer data is determined based on the geometric center of the circumscribed polygon of the corresponding provincial-level administrative region; the location information of anchor points in the second scale layer data is determined based on the geometric center of the circumscribed polygon of the corresponding municipal-level administrative region; and the location information of anchor points in the third scale layer data is determined based on the geometric center of the circumscribed polygon of the corresponding county-level administrative region. Attached Figure Description
[0016] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings. Wherein:
[0017] Figure 1 A schematic block diagram of an exemplary system architecture to which the map display method of this disclosure can be applied is shown;
[0018] Figure 2 This is a flowchart illustrating a map display method according to the first embodiment of this application;
[0019] Figure 3a and Figure 3b This is a schematic diagram showing the positions of charging piles in some embodiments of this application;
[0020] Figure 4 This is a flowchart illustrating the map display method according to the second embodiment of this application;
[0021] Figure 5 These are schematic block diagrams of electronic devices according to some embodiments of this application. Detailed Implementation
[0022] To better understand this application, various aspects of this application will be described in more detail with reference to the accompanying drawings. It should be understood that these detailed descriptions are merely illustrative of exemplary embodiments of this application and are not intended to limit the scope of this application in any way. Throughout the specification, the same reference numerals refer to the same elements. The expression "and / or" includes any and all combinations of one or more of the associated listed items.
[0023] It should also be understood that expressions such as "comprising," "including," "having," "containing," and / or "comprising" are open-ended rather than closed-ended expressions in this specification, indicating the presence of the stated features, elements, and / or components, but not excluding the presence of one or more other features, elements, components, and / or combinations thereof. Furthermore, when expressions such as "at least one of..." appear after a list of listed features, they modify the entire list of features, not just individual elements in the list. Additionally, when describing embodiments of this application, the word "may" is used to mean "one or more embodiments of this application." And the term "exemplary" is intended to refer to examples or illustrations.
[0024] Unless otherwise specified, all terms used herein (including engineering and technical terms) shall have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. It should also be understood that, unless expressly stated herein, terms defined in common dictionaries shall be interpreted as having the meaning consistent with their meaning in the context of the relevant art, and not as having an idealized or overly formalized meaning.
[0025] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. Furthermore, unless explicitly limited or contradicted by the context, the specific steps included in the methods described in this application are not limited to the order in which they are described, but can be performed in any order or in parallel. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0026] Figure 1 A schematic block diagram of an exemplary system architecture to which the map display method of this disclosure can be applied is shown.
[0027] like Figure 1 As shown, system architecture 100 may include terminal devices 101, 102, and 103, a network 104, and a server 105. Network 104 serves as the medium for providing communication links between terminal devices 101, 102, and 103 and server 105. Network 104 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.
[0028] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, and 103, such as video applications, live streaming applications, instant messaging tools, email clients, social media platform software, etc.
[0029] The terminal devices 101, 102, and 103 here can be either hardware or software. When terminal devices 101, 102, and 103 are hardware, they can be various electronic devices with displays, such as in-vehicle infotainment systems. When terminal devices 101, 102, and 103 are software, they can be installed in the electronic devices listed above. They can be implemented as multiple software programs or software modules (e.g., multiple software programs or software modules used to provide distributed services) or as a single software program or software module. No specific limitations are made here.
[0030] Server 105 can be a server that provides various services, such as a backend server that supports terminal devices 101, 102, and 103. The backend server can process requests for charging pile map display and feed back the processing results (such as the scale layer data or charging pile map corresponding to the charging pile map display request) to the terminal devices.
[0031] It should be noted that the map display method provided in this embodiment can be executed by server 105 or terminal devices 101, 102, and 103.
[0032] It should be understood that, Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.
[0033] Currently, major OEMs have integrated a massive number of charging stations. How to handle the loading of large amounts of anchor point data on the map without impacting user experience is a pressing issue. For the front-end, map display relies not only on data returned from the back-end but also on anchor points on the map. However, overlapping anchor points often exist during map display.
[0034] Figure 2 This is a schematic flowchart of a map display method according to a first embodiment of this application. This map display method 200 can be executed via a server or a terminal device. Figure 2 As shown, the map display method 200 may include the following steps:
[0035] Step 201: In response to the detected charging pile map display request, determine the scale layer data corresponding to the target display scale.
[0036] In this embodiment, the execution entity can store scale layer data corresponding to various display scales. Upon detecting a charging pile map display request, the execution entity can determine the scale layer data corresponding to the target display scale based on the target display scale carried in the request. This scale layer data indicates the location information of the anchor points to be displayed on the charging pile map at the target display scale, as well as the charging pile information of those anchor points. The location information of the anchor points to be displayed may include the location information of an anchor point corresponding to a single charging pile or the location information of an anchor point aggregated from the location information of multiple charging piles; that is, the anchor point indicated by the scale layer data may correspond to one or more charging piles. Furthermore, the anchor points to be displayed do not overlap with each other; that is, there is no anchor point overlap in the charging pile map output based on this scale layer data, which is beneficial for users to view the charging pile information of each anchor point.
[0037] In some embodiments of this application, the charging pile map determined in this embodiment is displayed through a front-end map application. This map application can associate different gesture operations with map zoom-out or map zoom-in operations. Users can adjust the target display scale by performing different gesture operations on the relevant interface of the map application. The map application can also set an adjustment bar on its relevant interface for adjusting the display scale; users can determine the target display scale by adjusting this adjustment bar.
[0038] It should be understood that, without departing from the teachings of this application, those skilled in the art may devise other methods for determining the target display scale, and this application does not limit the methods for determining the target display scale.
[0039] In some embodiments of this application, each scale layer data may correspond to different scale ranges. For example, different display scale ranges include a first display scale range, a second display scale range, a third display scale range, and a fourth display scale range. Specifically, the display scales within the fourth display scale range > the display scales within the third display scale range > the display scales within the second display scale range > the display scales within the first display scale range. The execution entity may store the first scale layer data corresponding to the first display scale range, the second scale layer data corresponding to the second display scale range, the third scale layer data corresponding to the third display scale range, and the fourth scale layer data corresponding to the fourth display scale range. For example, the first display scale range may be [1:500km, 1:50km), the second display scale range may be [1:50km, 1:20km), the third display scale range may be [1:20km, 1:2km), and the fourth display scale range may be greater than or equal to 1:2km. Optionally, when the map scale is too small, the displayed area is too large, and the probability of user access is low. Therefore, settings such as not displaying anchor points can be configured for this scale range. For example, if the target display scale is less than 1:500km, anchor points can be not displayed, that is, charging station information can be not displayed.
[0040] As an example, since the map distances between charging piles are different and the overlap is different under different display scales, the aggregation rules of the scale layer data corresponding to each scale layer data can be different to ensure that the anchor points in the charging pile maps displayed under different display scales do not overlap.
[0041] For example, in the first scale layer data corresponding to the first display scale range, each charging pile is aggregated based on the provincial-level administrative region to which its location information belongs; that is, aggregated by province, charging piles within the same province are grouped together and displayed through a single anchor point. In the second scale layer data corresponding to the second display scale range, each charging pile is aggregated based on the municipal-level administrative region to which its location information belongs; that is, aggregated by city, charging piles within the same city are grouped together and displayed through a single anchor point. In the third scale layer data corresponding to the third display scale range, each charging pile is aggregated based on the county-level administrative region to which its location information belongs; that is, aggregated by county, charging piles within the same county are grouped together and displayed through a single anchor point. In the fourth scale layer data corresponding to the fourth display scale range, charging piles that overlap are aggregated; that is, multiple charging piles overlap at the target display scale and are aggregated if they do not overlap. Based on the above aggregation rules, the display effect of the scale layer data corresponding to each display scale range is shown in Table 1.
[0042] Table 1
[0043]
[0044] In the above embodiments, the device for generating data for each scale layer is designed to generate different scale layer data according to the display scale, which can reduce the problem of anchor point loading speed.
[0045] Optionally, if aggregation is required, the location information of the anchor points obtained from the aggregation can be set as needed.
[0046] For example, the location information of anchor points in the first scale layer data can be determined based on the location information of provincial-level administrative buildings within the corresponding provincial-level administrative region. The location information of anchor points in the second scale layer data is determined based on the location information of municipal-level administrative buildings within the corresponding municipal-level administrative region. The location information of anchor points in the third scale layer data is determined based on the location information of county-level administrative buildings within the corresponding county-level administrative region. For instance, the device used to generate the data for each scale layer can pre-import the latitude and longitude ranges of the province, city, district, and county, and in the subsequent process of aggregating anchor points, use the location information of administrative buildings in the province, city, district, and county as the location information for the anchor points. Since the locations of administrative buildings are usually relatively stable, using the location information of administrative buildings as the location information of anchor points can reduce data updates. Here, administrative buildings can refer to buildings that provide a working environment for administrative personnel.
[0047] Optionally, to facilitate charging pile aggregation based on provinces, cities, districts, and counties, the device used to generate data for each scale layer can associate and match the province, city, district / county corresponding to the charging pile based on the area code and latitude / longitude data in the basic charging station data synchronized from the charging pile supplier, and attach the charging pile data (e.g., charging pile information) to its corresponding province, city, district / county anchor point. During the calculation of charging pile information at the anchor point of a province, city, district / county, the device used to generate data for each scale layer can perform calculations based on the data of all charging piles attached to that anchor point. This calculation process can be referred to the relevant description above, and is not limited here.
[0048] For example, the location information of anchor points in the first scale layer data is determined based on the geometric center of the circumscribed polygon of the corresponding provincial-level administrative region. The location information of anchor points in the second scale layer data is determined based on the geometric center of the circumscribed polygon of the corresponding municipal-level administrative region. The location information of anchor points in the third scale layer data is determined based on the geometric center of the circumscribed polygon of the corresponding county-level administrative region. In other words, the device used to generate each scale layer data can determine the circumscribed polygon of the provincial, municipal, district, or county-level administrative regions based on the latitude and longitude range, thereby determining their geometric centers, and using the location information of these geometric centers as the location information of the anchor points corresponding to those administrative regions.
[0049] It should be understood that, without departing from the teachings of this application, those skilled in the art may design other locations as anchor point location information, and this application does not impose any restrictions on this.
[0050] As an example, under the aforementioned scale layer division and aggregation rules, the process by which the device for generating data for each scale layer determines the fourth scale layer data may include: for each charging pile's corresponding anchor point, determining the overlap between the charging pile and other charging piles based on at least one of the first, second, third, and fourth positional relationships between the charging pile and the other charging piles; and determining the fourth scale layer data based on the charging pile's location information, charging information, and the overlap between each charging pile and the other charging piles. In other words, during the process of determining the fourth scale layer data, the device for generating data for each scale layer determines whether to aggregate the charging pile with other charging piles based on whether the charging pile's anchor point overlaps with the anchor points of other charging piles. To determine whether the charging pile overlaps with other charging piles, the first, second, third, and fourth positional relationships between the charging pile and other charging piles can be used for judgment. Specifically, the first positional relationship indicates the positional relationship between the right boundary of the anchor point corresponding to the charging pile and the left boundary of the anchor points corresponding to the other charging piles; the second positional relationship indicates the positional relationship between the left boundary of the anchor point corresponding to the charging pile and the right boundary of the anchor points corresponding to the other charging piles; the third positional relationship indicates the positional relationship between the upper boundary of the anchor point corresponding to the charging pile and the lower boundary of the anchor points corresponding to the other charging piles; and the fourth positional relationship indicates the positional relationship between the lower boundary of the anchor point corresponding to the charging pile and the upper boundary of the anchor points corresponding to the other charging piles. In other words, the device used to generate the data for each scale layer can determine whether the charging pile overlaps with other charging piles based on the relationship between the boundary of the charging pile and the boundaries of other charging piles.
[0051] As an example, the process by which the apparatus for generating various scale layer data determines the overlap between a charging pile and other charging piles based on at least one of a first, second, third, and fourth positional relationship, may include: determining that the overlap between the charging pile and the other charging piles is non-overlapping in response to at least one of the first, second, third, and fourth positional relationships indicating that the positional relationship between the charging pile and the other charging piles meets a non-overlapping condition. In other words, when any one of the first, second, third, and fourth positional relationships indicates that the positional relationship between the charging pile and the other charging piles meets a non-overlapping condition, the apparatus for generating various scale layer data may determine that the overlap between the charging pile and the other charging piles is non-overlapping.
[0052] As an example, the process by which the apparatus for generating data for each scale layer determines the overlap between a charging pile and other charging piles based on at least one of a first, second, third, and fourth positional relationship, may further include: determining that the overlap between the charging pile and the other charging piles is an overlap in response to all of the first, second, third, and fourth positional relationships indicating that the positional relationship between the charging pile and the other charging piles does not meet the non-overlap condition. In other words, if all of the first, second, third, and fourth positional relationships indicate that the positional relationship between the charging pile and the other charging piles does not meet the non-overlap condition, the overlap between the charging pile and the other charging piles can be determined to be an overlap.
[0053] Optionally, the non-overlapping condition between the right boundary of the anchor point corresponding to the charging pile and the left boundary of the anchor points corresponding to other charging piles can be, for example, that the right boundary of the anchor point corresponding to the charging pile is to the left of the left boundary of the anchor points corresponding to other charging piles. The non-overlapping condition between the left boundary of the anchor point corresponding to the charging pile and the right boundary of the anchor points corresponding to other charging piles can be, for example, that the left boundary of the anchor point corresponding to the charging pile is to the right of the right boundary of the anchor points corresponding to other charging piles. The non-overlapping condition between the upper boundary of the anchor point corresponding to the charging pile and the lower boundary of the anchor points corresponding to other charging piles can be, for example, that the upper boundary of the anchor point corresponding to the charging pile is below the lower boundary of the anchor points corresponding to other charging piles. The non-overlapping condition between the lower boundary of the anchor point corresponding to the charging pile and the upper boundary of the anchor points corresponding to other charging piles can be, for example, that the lower boundary of the anchor point corresponding to the charging pile is below the upper boundary of the anchor points corresponding to other charging piles.
[0054] For ease of understanding, the following will use... Figure 3a and Figure 3bTaking the first and second charging piles as examples, the process of determining whether charging piles overlap is illustrated.
[0055] like Figure 3a As shown, in the first positional relationship between the anchor point (RA) of the first charging pile and the anchor point (RB) of the second charging pile, the right boundary b1-c1 of RA is located to the left of the left boundary a2-d2 of RB. It can be determined that the first positional relationship indicates that the first charging pile and the second charging pile do not overlap and do not need to be aggregated.
[0056] like Figure 3b As shown, in the first positional relationship between the anchor point (RA) of the first charging pile and the anchor point (RB) of the second charging pile, the right boundary b1-c1 of RA is located to the right of the left boundary a2-d2 of RB, which indicates that the first positional relationship does not meet the non-overlapping condition. In the second positional relationship between the anchor point (RA) of the first charging pile and the anchor point (RB) of the second charging pile, the left boundary a1-d1 of RA is located to the left of the right boundary b2-c2 of RB, which indicates that the second positional relationship does not meet the non-overlapping condition. In the third positional relationship between the anchor point (RA) of the first charging pile and the anchor point (RB) of the second charging pile, the upper boundary a1-b1 of RA is located above the lower boundary c2-d2 of RB, which indicates that the third positional relationship does not meet the non-overlapping condition. In the fourth positional relationship between the anchor point (RA) of the first charging pile and the anchor point (RB) of the second charging pile, the lower boundary c1-d1 of RA is located below the upper boundary a2-b2 of RB, which indicates that the fourth positional relationship does not meet the non-overlapping condition. Since the first, second, third, and fourth positional relationships all indicate that the non-overlapping condition is not met, it can be determined that the first and second charging piles overlap and need to be aggregated.
[0057] It should be understood that, without departing from the teachings of this application, the apparatus used to generate the data for each scale layer can be the execution entity itself or other external devices, without any limitation herein.
[0058] In some embodiments of this application, the charging pile information may include charging pile fee information, prompts indicating whether fast charging or slow charging is supported, rating information, etc., which are not limited here.
[0059] As an example, if an anchor point corresponds to multiple charging piles, the charging pile information for that anchor point can be calculated based on the charging information of each individual charging pile. For instance, regarding pricing information, the pricing information in the anchor point's charging pile information can be the average unit price calculated based on the pricing information of each charging pile. For indication information, the indication information in the anchor point's charging pile information can be determined based on the number of charging piles that support fast or slow charging and the number that do not support fast or slow charging, as shown in the pricing information of each charging pile. If the number of charging piles supporting fast or slow charging is greater than the number that do not support fast or slow charging, the indication information indicates that fast or slow charging is supported; if the number of charging piles supporting fast or slow charging is less than the number that do not support fast or slow charging, the indication information indicates that fast or slow charging is not supported. Optionally, if the indication information indicates that fast or slow charging is not supported, a label can be added after the information to inform the user that some of the multiple charging piles corresponding to that anchor point support fast or slow charging. For rating information, the rating information in the charging pile information of the anchor point can be the average rating calculated based on the rating information of each charging pile. Optionally, if there are high-rated charging piles (i.e., charging piles with ratings higher than a preset rating threshold) among the charging piles corresponding to the anchor point, a mark can be added after the average rating to indicate to the user that there are high-rated charging piles among the multiple charging piles corresponding to that anchor point.
[0060] As an example, if an anchor point corresponds to multiple charging piles, the charging pile information for that anchor point can be statistical information about the charging status of each charging pile. For instance, for pricing information, the pricing information in the anchor point's charging pile information could be a pricing range determined based on the pricing information of each charging pile. For instruction information, the instruction information in the anchor point's charging pile information could be the number of charging piles that support fast or slow charging and the number of charging piles that do not support fast or slow charging, as indicated in the pricing information of each charging pile. For rating information, the rating information in the anchor point's charging pile information could be a rating range determined based on the rating information of each charging pile.
[0061] It should be understood that, without departing from the teachings of this application, the implementing entity may process the charging information of each charging pile corresponding to the anchor point in other ways to determine the charging pile information of the anchor point, and this application does not restrict this.
[0062] In some embodiments of this application, the apparatus for generating layer data at different scales can support the function of creating new labels. These labels can be predefined labels or custom labels, such as free parking labels, 5-star user rating labels, and lowest unit price labels. The icon data corresponding to these labels can be annotated in an extended field of the charging pile data for subsequent data retrieval based on the label information. For example, the charging pile map display request detected by the executing entity may include a target display scale and selected label information. The selected label information can be chosen by the user on a terminal device. For example, the terminal device can display multiple selectable label information, and the user can select one or more of these label information as the label information to be displayed in this charging pile map display through an interactive system. The user-selected label information can be written together with the target display scale into the charging pile map display request so that the executing entity can output a charging pile map based on this charging pile map. The process by which the executing entity determines the scale layer data corresponding to the target display scale after detecting the charging pile map display request may include: determining the anchor point location information based on the target display scale in the charging pile map display request; determining the number of charging piles containing tag information among all charging piles corresponding to the anchor point based on the tag information in the charging pile map display request; and determining the charging pile information of the anchor point based on the number of charging piles containing tag information. In other words, after receiving the charging pile map display request, the executing entity determines the location information of each anchor point to be displayed based on its corresponding partitioning and aggregation rules, according to the target display scale. Based on the selected tag information, the executing entity determines the number of charging piles carrying the selected tag information among one or more charging piles of the aggregated anchor points to be displayed, as part of the charging pile information of the anchor point.
[0063] It should be understood that, without departing from the teachings of this application, the process of determining the number of charging piles carrying the selected label information among one or more charging piles at the anchor points to be displayed can be performed during the response to the charging pile map display request, or during the construction of the scale layer data. That is, during the construction of the scale layer data, the number of charging piles carrying the label information at each anchor point is calculated for each label information. This application does not impose any limitations on this.
[0064] In the above example, the map display method supports solving the personalized display anchor point problem by creating new labels in the charging pile data, thus improving the user experience. Furthermore, if the quantity determination process is completed during the construction of the scale layer data—that is, by pre-calculating the number of charging piles corresponding to each label—the amount of data calculation in the map display method can be reduced, map loading time can be decreased, and response speed can be improved.
[0065] Step 202: Based on the determined scale layer data, output the charging pile map.
[0066] In this embodiment, after the executing entity determines the scale layer data corresponding to the target display scale, it can determine and output the charging pile map based on the scale layer data so as to view the location information of the charging pile.
[0067] As an example, the execution entity mentioned above is the terminal device. For instance, after detecting a user's request to display a charging station map triggered by the interactive system, the terminal device can send the request to the server. Based on the charging station map display request, the server provides response data, which includes scale layer data corresponding to the target display scale. The terminal device determines the scale layer data corresponding to the target display scale based on the response data, and outputs the charging station map to its display screen based on the determined scale layer data. This display screen can be a screen configured on the terminal device itself or an external display screen; there are no restrictions here.
[0068] As another example, the execution entity mentioned above is the server. For instance, after receiving a charging station map display request from a terminal device, the server determines the scale layer data corresponding to the target display scale, and based on the determined scale layer data, outputs the charging station map to the terminal device for map display.
[0069] According to some embodiments of this application, the executing entity can retrieve the corresponding scale layer data based on the target display scale. The location information of the anchor points to be displayed indicated by the scale layer data includes the location information of the anchor points corresponding to a single charging pile or the location information of the anchor points aggregated based on the location information of multiple charging piles. Moreover, the anchor points to be displayed do not overlap with each other after being displayed, which can solve the problem of repeated coverage of anchor points, make it convenient for users to view the charging pile information of the anchor points, and improve the user experience.
[0070] Figure 4 This is a flowchart illustrating a map display method according to a second embodiment of this application. This embodiment is largely the same as the first embodiment, with the main difference being the addition of a step to refresh the scale layer data. For example... Figure 4 As shown, the map display method 400 may include the following steps:
[0071] Step 401: In response to the update task being triggered, the scale layer data corresponding to different display scale ranges is asynchronously refreshed based on the location information of the charging pile, the charging information of the charging pile, and the scale layer division rules.
[0072] In this embodiment, the executing entity can set up an update task, which can be triggered when the triggering conditions of the update task are met. After detecting that the update task has been triggered, the executing entity can asynchronously refresh the scale layer data corresponding to different display scale ranges based on the location information of the charging pile, the charging information of the charging pile, and the scale layer division rules.
[0073] As an example, the update task is triggered when the current time is a specified time each day, such as 00:00 daily. This is achieved through a scheduled task, triggering the update of the scale layer data. Optionally, the executing entity can attach the charging information of a charging pile to its corresponding province, city, district / county anchor point based on the charging pile's location information and scale layer division rules. After the update task is triggered, the executing entity can asynchronously calculate the data of the charging piles attached to the anchor points of each province, city, district / county to obtain the scale layer data. In this example, the scale layer data is pre-calculated and rendered at the specified time each day. Any additions or removals of charging pile data each day are asynchronously refreshed at this time; changes at other times are not considered. After the scale layer data is constructed or updated at this time, if the executing entity detects a charging pile map display request (triggered by the map application being opened or by the user zooming in on the scale in the map application), it loads the pre-processed scale layer data to output the charging pile map. This pre-loaded data output, instead of real-time rendering, significantly improves the response speed.
[0074] It should be understood that, without departing from the teachings of this application, the update task may also be triggered under other conditions, such as manual triggering, and this application does not restrict this.
[0075] In some implementations, the different display scale ranges include a first display scale range, a second display scale range, a third display scale range, and a fourth display scale range; the display scales within the fourth display scale range > the display scales within the third display scale range > the display scales within the second display scale range > the display scales within the first display scale range. Specifically, in the first scale layer data corresponding to the first display scale range, each charging pile is aggregated based on the provincial-level administrative region to which its location information belongs. In the second scale layer data corresponding to the second display scale range, each charging pile is aggregated based on the municipal-level administrative region to which its location information belongs. In the third scale layer data corresponding to the third display scale range, each charging pile is aggregated based on the county-level administrative region to which its location information belongs. In the fourth scale layer data corresponding to the fourth display scale range, charging piles with overlapping locations are aggregated. This process is largely the same as the relevant content of the first implementation method and will not be repeated here.
[0076] In some embodiments, the process of determining the fourth scale layer data includes: for each anchor point corresponding to a charging pile, determining the overlap between the charging pile and the other charging piles based on at least one of a first positional relationship, a second positional relationship, a third positional relationship, and a fourth positional relationship; determining the fourth scale layer data based on the location information of the charging piles, the charging information of the charging piles, and the overlap between each charging pile and the other charging piles; wherein, the first positional relationship indicates the positional relationship between the right boundary of the anchor point corresponding to the charging pile and the left boundary of the anchor points corresponding to the other charging piles; the second positional relationship indicates the positional relationship between the left boundary of the anchor point corresponding to the charging pile and the right boundary of the anchor points corresponding to the other charging piles; the third positional relationship indicates the positional relationship between the upper boundary of the anchor point corresponding to the charging pile and the lower boundary of the anchor points corresponding to the other charging piles; and the fourth positional relationship indicates the positional relationship between the lower boundary of the anchor point corresponding to the charging pile and the upper boundary of the anchor points corresponding to the other charging piles. This process is largely the same as the relevant content of the first embodiment and will not be repeated here.
[0077] In some embodiments, determining the overlap between the charging pile and the other charging piles based on at least one of a first, second, third, and fourth positional relationship includes: in response to an indication from at least one of the first, second, third, and fourth positional relationships that the positional relationship between the charging pile and the other charging piles meets a non-overlap condition, determining that the overlap between the charging pile and the other charging piles is non-overlapping. This process is largely the same as that in the first embodiment and will not be repeated here.
[0078] In some embodiments, determining the overlap between the charging pile and the other charging piles based on at least one of a first, second, third, and fourth positional relationship between the charging pile and the other charging piles further includes: determining that the overlap between the charging pile and the other charging piles is an overlap in response to all three positional relationships indicating that the positional relationship between the charging pile and the other charging piles does not meet the non-overlap condition. This process is largely the same as that in the first embodiment and will not be described again here.
[0079] In some implementations, the location information of anchor points in the first scale layer data is determined based on the location information of provincial administrative buildings within the corresponding provincial administrative region; the location information of anchor points in the second scale layer data is determined based on the location information of municipal administrative buildings within the corresponding municipal administrative region; and the location information of anchor points in the third scale layer data is determined based on the location information of county-level administrative buildings within the corresponding county-level administrative region.
[0080] In other implementations, the location information of anchor points in the first scale layer data is determined based on the geometric center of the circumscribed polygon of the provincial-level administrative region corresponding to the anchor point; the location information of anchor points in the second scale layer data is determined based on the geometric center of the circumscribed polygon of the municipal-level administrative region corresponding to the anchor point; and the location information of anchor points in the third scale layer data is determined based on the geometric center of the circumscribed polygon of the county-level administrative region corresponding to the anchor point.
[0081] Step 402: In response to the detected charging pile map display request, determine the scale layer data corresponding to the target display scale.
[0082] In this embodiment, step 402 is largely the same as step 201 in the first embodiment, and will not be described again here.
[0083] Step 403: Output a charging pile map based on the determined scale layer data.
[0084] In this embodiment, step 403 is largely the same as step 202 in the first embodiment, and will not be described again here.
[0085] According to some embodiments of this application, the executing entity can retrieve the corresponding scale layer data based on the target display scale. The location information of the anchor points to be displayed, indicated by the scale layer data, includes the location information of the anchor points corresponding to a single charging pile or the location information of the anchor points aggregated based on the location information of multiple charging piles. Furthermore, the anchor points to be displayed do not overlap, thus solving the problem of duplicate anchor point coverage, facilitating users' viewing of the charging pile information at the anchor points, and improving the user experience. In addition, the executing entity preloads different scale layer data instead of rendering in real time, which improves response speed.
[0086] It should be noted that the acquisition, storage, and application of user personal information involved in the technical solution disclosed herein all comply with relevant laws and regulations and do not violate public order and good morals. It should also be noted that the information in this embodiment was obtained after being authorized by the user (i.e., with the user's consent).
[0087] The steps of the various methods described above are only for clarity. In implementation, they can be combined into one step or some steps can be split into multiple steps. As long as they include the same logical relationship, they are all within the protection scope of this disclosure. Adding insignificant modifications or introducing insignificant designs to the algorithm or process, but without changing the core design of the algorithm and process, are also within the protection scope of this disclosure.
[0088] Embodiments of this application also provide an electronic device, such as... Figure 5As shown, the electronic device 500 may include: at least one processor and a memory, the memory being communicatively connected to the at least one processor and storing instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the map display method described above. For example, the electronic device 500 may be, for example, a server or a terminal device, without limitation.
[0089] One embodiment of this application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements a map display method.
[0090] Figure 5 This is a schematic block diagram of an electronic device 500 according to some embodiments of this application. For example... Figure 5 As shown, the electronic device 500 includes a processor 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a memory 508 into a random access memory (RAM) 503. The RAM 503 may also store various programs and data required for the operation of the electronic device 500. The processor 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0091] Multiple components in electronic device 500 are connected to I / O interface 505, including: input unit 506, such as buttons, touch screens, etc.; output unit 507, connected to various types of displays, speakers, etc., to output various forms of signals; memory 508, including any medium for storing computer-executable programs; and communication unit 509, such as network interface card, modem, wireless transceiver, etc. Communication unit 509 allows electronic device 500 to exchange information / data with other devices through such as local area networks or other wireless communication networks.
[0092] Processor 501 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. Processor 501 performs the various methods and processes described above, such as map display methods. For example, in some embodiments, the map display method may be implemented as a computer software program tangibly contained in a computer-readable storage medium, such as memory 508. In some embodiments, part or all of the computer program may be loaded and / or mounted on electronic device 500 via ROM 502 and / or communication unit 509. When the computer program is loaded into RAM 503 and executed by processor 501, one or more steps of the map display method described above may be performed. Alternatively, in other embodiments, processor 501 may be configured to perform map display methods by any other suitable means (e.g., by means of firmware).
[0093] Various aspects of this application have been described herein with reference to flowchart illustrations and / or timing diagrams of methods, apparatus (systems), and computer program products according to exemplary embodiments of this application. It should be understood that each step of the flowchart illustrations and / or timing diagrams, as well as combinations of steps in the flowchart illustrations and / or timing diagrams, can be implemented by computer-readable program instructions.
[0094] These computer-readable program instructions can be provided to a processor, general-purpose computer, special-purpose computer, or other programmable data processing unit in an electronic device to produce a machine such that, when executed by the processing unit of the computer or other programmable data processing device, they create means for implementing the functions / steps specified in one or more steps of a flowchart and / or timing diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing device, and / or other device to operate in a particular manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / steps specified in one or more steps of a flowchart and / or timing diagram.
[0095] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / steps specified in one or more steps of a flowchart and / or timing diagram.
[0096] The flowcharts and timing diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of devices, methods, and computer program products according to various embodiments of this application. In this regard, each step in a flowchart or timing diagram may represent a module, segment, or part of an instruction that contains one or more executable instructions for implementing a specified logical function. In some alternative embodiments, the functions indicated in the steps may occur in a different order than those indicated in the drawings. For example, two consecutive steps may actually be performed substantially in parallel, and they may sometimes be performed in reverse order, depending on the functions involved. It should also be noted that each step in a timing diagram and / or flowchart, and combinations of steps in timing diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0097] The above description is merely an illustration of the embodiments of this application and the technical principles employed. Those skilled in the art should understand that the scope of protection involved in this application is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the technical concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this application.
Claims
1. A map display method, comprising: In response to the detected charging pile map display request, the scale layer data corresponding to the target display scale is determined. The scale layer data indicates the location information of the anchor points to be displayed in the charging pile map under the target display scale and the charging pile information of the anchor points. The location information of the anchor points to be displayed includes the location information of the anchor points corresponding to a single charging pile or the location information of the anchor points aggregated based on the location information of multiple charging piles. The anchor points to be displayed do not overlap with each other after being displayed. Based on the determined scale layer data, the charging pile map is output.
2. The method according to claim 1, wherein, The charging pile map display request includes the target display scale and the selected label information; The step of determining the scale layer data corresponding to the target display scale in response to detecting a charging pile map display request includes: In response to the detection of a charging pile map display request, the location information of the anchor point is determined according to the target display scale in the charging pile map display request; Based on the tag information in the charging pile map display request, determine the number of charging piles containing the tag information among all charging piles corresponding to the anchor point; Based on the number of charging piles containing the tag information, the charging pile information of the anchor point is determined.
3. The method according to claim 1 or 2, further comprising: In response to the update task being triggered, the scale layer data corresponding to different display scale ranges is asynchronously refreshed based on the location information of the charging pile, the charging information of the charging pile, and the scale layer division rules.
4. The method according to claim 3, wherein, The different display scale ranges include a first display scale range, a second display scale range, a third display scale range, and a fourth display scale range; each display scale in the fourth display scale range > each display scale in the third display scale range > each display scale in the second display scale range > each display scale in the first display scale range. In the first scale layer data corresponding to the first display scale range, each charging pile is aggregated according to the provincial administrative region to which the location information of the charging pile belongs; In the second scale layer data corresponding to the second display scale range, each charging pile is aggregated according to the municipal administrative region to which the location information of the charging pile belongs; In the third scale layer data corresponding to the third display scale range, each charging pile is aggregated according to the county-level administrative region to which the location information of the charging pile belongs; In the fourth scale layer data corresponding to the fourth display scale range, charging piles that overlap are aggregated.
5. The method according to claim 4, wherein, The process of determining the data for the fourth scale layer includes: For each of the charging piles corresponding to the anchor point, the overlap between the charging pile and the other charging piles is determined based on at least one of the first positional relationship, second positional relationship, third positional relationship and fourth positional relationship between the charging pile and the other charging piles. The fourth scale layer data is determined based on the location information of the charging piles, the charging information of the charging piles, and the overlap between each charging pile and the other charging piles. Wherein, the first positional relationship indicates the positional relationship between the right boundary of the anchor point corresponding to the charging pile and the left boundary of the anchor points corresponding to the other charging piles; The second positional relationship indicates the positional relationship between the left boundary of the anchor point corresponding to the charging pile and the right boundary of the anchor points corresponding to the other charging piles; The third positional relationship indicates the positional relationship between the upper boundary of the anchor point corresponding to the charging pile and the lower boundary of the anchor points corresponding to the other charging piles; The fourth positional relationship indicates the positional relationship between the lower boundary of the anchor point corresponding to the charging pile and the upper boundary of the anchor points corresponding to the other charging piles.
6. The method according to claim 5, wherein, Determining the overlap between the charging pile and the other charging piles based on at least one of a first positional relationship, a second positional relationship, a third positional relationship, and a fourth positional relationship includes: In response to at least one of the first positional relationship, the second positional relationship, the third positional relationship, and the fourth positional relationship indicating that the positional relationship between the charging pile and the remaining charging piles meets the non-overlapping condition, the overlap between the charging pile and the remaining charging piles is determined to be non-overlapping.
7. The method according to claim 6, wherein, The step of determining the overlap between the charging pile and the other charging piles based on at least one of the first, second, third, and fourth positional relationships between the charging pile and the other charging piles further includes: In response to the fact that the first positional relationship, the second positional relationship, the third positional relationship, and the fourth positional relationship all indicate that the positional relationship between the charging pile and the other charging piles does not meet the non-overlapping condition, the overlap between the charging pile and the other charging piles is determined to be an overlap.
8. The method according to claim 4, wherein, The location information of anchor points in the first scale layer data is determined based on the location information of provincial-level administrative buildings within the corresponding provincial-level administrative region; the location information of anchor points in the second scale layer data is determined based on the location information of municipal-level administrative buildings within the corresponding municipal-level administrative region; the location information of anchor points in the third scale layer data is determined based on the location information of county-level administrative buildings within the corresponding county-level administrative region; or The location information of the anchor points in the first scale layer data is determined based on the geometric center of the circumscribed polygon of the provincial-level administrative region corresponding to the anchor point; the location information of the anchor points in the second scale layer data is determined based on the geometric center of the circumscribed polygon of the municipal-level administrative region corresponding to the anchor point; and the location information of the anchor points in the third scale layer data is determined based on the geometric center of the circumscribed polygon of the county-level administrative region corresponding to the anchor point.
9. An electronic device, characterized in that, include: At least one processor; as well as, A memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the map display method as described in any one of claims 1 to 8.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the map display method as described in any one of claims 1 to 8.