CN110580848B - Method and apparatus for displaying map information - Google Patents

Method and apparatus for displaying map information Download PDF

Info

Publication number
CN110580848B
CN110580848B CN201810585247.2A CN201810585247A CN110580848B CN 110580848 B CN110580848 B CN 110580848B CN 201810585247 A CN201810585247 A CN 201810585247A CN 110580848 B CN110580848 B CN 110580848B
Authority
CN
China
Prior art keywords
row
interest point
line
interest
feature
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810585247.2A
Other languages
Chinese (zh)
Other versions
CN110580848A (en
Inventor
吴石磊
王斐
彭锋
杨维
孙敏琪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810585247.2A priority Critical patent/CN110580848B/en
Publication of CN110580848A publication Critical patent/CN110580848A/en
Application granted granted Critical
Publication of CN110580848B publication Critical patent/CN110580848B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B29/00Maps; Plans; Charts; Diagrams, e.g. route diagram
    • G09B29/003Maps
    • G09B29/006Representation of non-cartographic information on maps, e.g. population distribution, wind direction, radiation levels, air and sea routes
    • G09B29/007Representation of non-cartographic information on maps, e.g. population distribution, wind direction, radiation levels, air and sea routes using computer methods

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Ecology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Business, Economics & Management (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a method and a device for displaying map information. One embodiment of the method comprises: receiving feature data of at least one interest point feature of a target interest point sent by an electronic map server; determining a cell corresponding to each interest point feature in at least one interest point feature in a display area of a target interest point according to a corresponding relation between preset interest point features and cells in the interest point display area; according to a preset alignment rule, aligning all the determined cells in a display area of the target interest point, and determining aligned cells corresponding to each interest point feature in at least one interest point feature; and displaying the feature data of each interest point feature in the at least one interest point feature in the aligned cells corresponding to the interest point feature. This embodiment improves the user experience.

Description

Method and apparatus for displaying map information
Technical Field
The embodiment of the application relates to the technical field of electronic maps, in particular to a method and a device for displaying map information.
Background
Currently, electronic maps have been able to provide a wide range of services to users. In the electronic map, a POI (Point of Interest) may be a bank, a shop, a school, a bus station, a sight spot, etc. The user can search the POI through the electronic map, and various characteristics of the searched POI are displayed on the terminal equipment. Such as the name of the scene, the scene level, the number of visits, the address, etc. When POI information is displayed, a row and column mode is mostly adopted, a POI display area is divided into a plurality of cells, and each cell displays a POI characteristic.
With the continuous upgrading of the electronic map application, the display templates of all cells in the display area of the POI are also continuously adjusted. At present, the display templates of the POI are mostly upgraded simultaneously when the electronic map application is upgraded.
Disclosure of Invention
The embodiment of the application provides a method and a device for displaying map information.
In a first aspect, an embodiment of the present application provides a method for displaying map information, where the method includes: receiving feature data of at least one interest point feature of a target interest point sent by an electronic map server; determining a cell corresponding to each interest point feature in at least one interest point feature in a display area of a target interest point according to a corresponding relation between preset interest point features and cells in the interest point display area; according to a preset alignment rule, aligning all the determined cells in a display area of the target interest point, and determining aligned cells corresponding to each interest point feature in at least one interest point feature; and displaying the feature data of each interest point feature in the at least one interest point feature in the aligned cells corresponding to the interest point feature.
In some embodiments, the display area of the point of interest is divided into R rows, R being a positive integer; and the positive integer R is obtained by calculating the following line number: obtaining N historical interest point display patterns, wherein N is a positive integer, and the nth historical interest point display pattern comprises RnLine, N is a positive integer between 1 and N, line j of the nth historical point of interest presentation style presents Fn(j) Characteristic of individual points of interest, Fn(j) The point of interest feature includes Pn(j) Kind of interest Point feature Categories, Fn(j) Greater than or equal to Pn(j) J is 1 to RnA positive integer in between; for 1 to Max (R)1,R2,…,RN) With each positive integer k, the following expansion number determination steps are performed: merging the interest point feature categories included in the kth line in each historical interest point presentation style in the N historical interest point presentation styles, and removing repeated interest point feature categories to obtain a kth line interest point feature category set; the ratio of the first number divided by the second number is determined as the rate of change Roc (k) for the k-th row, wherein,the first number is the number of interest point feature categories in the k-th row of interest point feature category set, and the second number is Max (P)1(k),P2(k),…,PN(k) ); determining the number of expanded lines FR (k) corresponding to the k line according to the rate of change Roc (k) of the k line, wherein the number of expanded lines FR (k) is positively correlated with the rate of change Roc (k); will be provided with
Figure BDA0001689332630000021
Is determined as R, where k is 1 to Max (R)1,R2,…,RN) A positive integer in between.
In some embodiments, the ith row of the point of interest display area is divided into CiColumn, i is a positive integer between 1 and R, CiIs the value of the ith dimension component of the vector C, CiIs a positive integer.
In some embodiments, the extension number determining step further comprises: calculating the difference value of the variation rate Roc (k) of the k line minus the number FR (k) of the expanded lines corresponding to the k line; in response to the fact that the calculated difference value is determined to be a negative value, setting the number of the expansion columns corresponding to the k-th row and the expansion row of the k-th row to be zero; and in response to the fact that the calculated difference is determined to be a positive value, determining the number of expansion columns corresponding to the k-th row and the expansion row of the k-th row according to the calculated difference, wherein the number of the expansion columns is positively correlated with the calculated difference.
In some embodiments, vector C is obtained by the following column-count vector calculation steps: setting loop as 1, k as 1; the following vector value calculation steps are performed: for each positive integer m from loop to loop + FR (k) -1, the value C of the mth dimension component of the vector C is calculated according to the following formulam
Cm=Cmax(k)+Ce(k)
Wherein:
Figure BDA0001689332630000031
Figure BDA0001689332630000032
respectively showing the No. 1, No. 2, … and No. N historical interest pointsNumber of columns of the k-th row, Ce(k) Calculating the number of expansion columns corresponding to the obtained k-th row and the expansion row of the k-th row; in response to k being greater than or equal to Max (R)1,R2,…,RN) Outputting a vector C; in response to k being less than Max (R)1,R2,…,RN) The loop is updated to loop + fr (k), k is updated to k +1, and the column number vector value calculation step is continued.
In some embodiments, determining the number of expansion columns corresponding to the k-th row and the expansion row of the k-th row according to the calculated difference includes: and calculating the number of expansion columns corresponding to the k-th row and the expansion row of the k-th row according to the following formula:
Figure BDA0001689332630000033
wherein: roc (k) is the calculated rate of change of the k-th line; FR (k) is the number of expanded lines corresponding to the k-th line obtained by calculation; d1Is a constant greater than 0 and less than 1; ce(k) The number of expansion columns corresponding to the k-th row and the expansion row of the k-th row is calculated.
In some embodiments, determining the number fr (k) of the post-expansion lines corresponding to the k-th line according to the variation rate roc (k) of the k-th line includes: calculating the expanded line number FR (k) corresponding to the k line according to the following formula:
Figure BDA0001689332630000034
wherein: roc (k) is the calculated rate of change of the k-th line; roc1Is a constant greater than 1 and less than 2; roc2Is a constant greater than 2 and less than 3; fr (k) is the number of expanded lines corresponding to the k-th line obtained by calculation.
In some embodiments, the alignment rules include top left alignment, bottom left alignment, top right alignment, bottom right alignment, or middle alignment.
In a second aspect, an embodiment of the present application provides an apparatus for displaying map information, the apparatus including: the receiving unit is configured to receive feature data of at least one interest point feature of the target interest point sent by the electronic map server; the determining unit is configured to determine a cell corresponding to each interest point feature in at least one interest point feature in the display area of the target interest point according to the corresponding relation between the preset interest point features and the cells in the display area of the interest point; an alignment unit configured to align the determined cells in a display area of the target interest point according to a preset alignment rule, and determine aligned cells corresponding to each of the at least one interest point feature; a display unit configured to display feature data of each of the at least one point of interest feature in an aligned cell corresponding to the point of interest feature.
In some embodiments, the display area of the point of interest is divided into R rows, R being a positive integer; and the positive integer R is obtained by calculating the following line number: obtaining N historical interest point display patterns, wherein N is a positive integer, and the nth historical interest point display pattern comprises RnLine, N is a positive integer between 1 and N, line j of the nth historical point of interest presentation style presents Fn(j) Characteristic of individual points of interest, Fn(j) The point of interest feature includes Pn(j) Kind of interest Point feature Categories, Fn(j) Greater than or equal to Pn(j) J is 1 to RnA positive integer in between; for 1 to Max (R)1,R2,…,RN) With each positive integer k, the following expansion number determination steps are performed: merging the interest point feature categories included in the kth line in each historical interest point presentation style in the N historical interest point presentation styles, and removing repeated interest point feature categories to obtain a kth line interest point feature category set; determining the variation rate Roc (k) of the k-th row by dividing the ratio of a first number which is the number of the interest point feature categories in the interest point feature category set of the k-th row by a second number which is Max (P)1(k),P2(k),…,PN(k) ); determining the number of expanded lines FR (k) corresponding to the k line according to the rate of change Roc (k) of the k line, wherein the number of expanded lines FR (k) is positively correlated with the rate of change Roc (k); will be provided with
Figure BDA0001689332630000041
Is determined as R, where k is 1 to Max (R)1,R2,…,RN) A positive integer in between.
In some embodiments, the ith row of the point of interest display area is divided into CiColumn, i is a positive integer between 1 and R, CiIs the value of the ith dimension component of the vector C, CiIs a positive integer.
In some embodiments, the extension number determining step further comprises: calculating the difference value of the variation rate Roc (k) of the k line minus the number FR (k) of the expanded lines corresponding to the k line; in response to the fact that the calculated difference value is determined to be a negative value, setting the number of the expansion columns corresponding to the k-th row and the expansion row of the k-th row to be zero; and in response to the fact that the calculated difference is determined to be a positive value, determining the number of expansion columns corresponding to the k-th row and the expansion row of the k-th row according to the calculated difference, wherein the number of the expansion columns is positively correlated with the calculated difference.
In some embodiments, vector C is obtained by the following column-count vector calculation steps: setting loop as 1, k as 1; the following vector value calculation steps are performed: for each positive integer m from loop to loop + FR (k) -1, the value C of the mth dimension component of the vector C is calculated according to the following formulam
Cm=Cmax(k)+Ce(k)
Wherein:
Figure BDA0001689332630000051
Figure BDA0001689332630000052
the number of columns of the kth row, C, in the No. 1, No. 2, …, and No. N historical interest point display patterns, respectivelye(k) Calculating the number of expansion columns corresponding to the obtained k-th row and the expansion row of the k-th row; in response to k being greater than or equal to Max (R)1,R2,…,RN) Outputting a vector C; in response to k being less than Max (R)1,R2,…,RN) Update the loop to loop + FR (k), and update the loop to loop + FR (k)k is updated to k +1 and the column vector value calculation step is continued.
In some embodiments, determining the number of expansion columns corresponding to the k-th row and the expansion row of the k-th row according to the calculated difference includes: and calculating the number of expansion columns corresponding to the k-th row and the expansion row of the k-th row according to the following formula:
Figure BDA0001689332630000053
wherein: roc (k) is the calculated rate of change of the k-th line; FR (k) is the number of expanded lines corresponding to the k-th line obtained by calculation; d1Is a constant greater than 0 and less than 1; ce(k) The number of expansion columns corresponding to the k-th row and the expansion row of the k-th row is calculated.
In some embodiments, determining the number fr (k) of the post-expansion lines corresponding to the k-th line according to the variation rate roc (k) of the k-th line includes: calculating the expanded line number FR (k) corresponding to the k line according to the following formula:
Figure BDA0001689332630000054
wherein: roc (k) is the calculated rate of change of the k-th line; roc1Is a constant greater than 1 and less than 2; roc2Is a constant greater than 2 and less than 3; fr (k) is the number of expanded lines corresponding to the k-th line obtained by calculation.
In some embodiments, the alignment rules include top left alignment, bottom left alignment, top right alignment, bottom right alignment, or middle alignment.
In a third aspect, an embodiment of the present application provides a terminal device, including: one or more processors; a storage device, on which one or more programs are stored, which, when executed by the one or more processors, cause the one or more processors to implement the method as described in any implementation manner of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium on which a computer program is stored, where the computer program, when executed by one or more processors, implements the method as described in any implementation manner of the first aspect.
The method and the device for displaying map information provided by the embodiment of the application determine a cell corresponding to each interest point feature in at least one interest point feature in a display area of a target interest point by receiving feature data of at least one interest point feature of the target interest point sent by an electronic map server, according to a preset corresponding relationship between the interest point feature and the cell in the display area of the interest point, align the determined cells in the display area of the target interest point according to a preset alignment rule, determine an aligned cell corresponding to each interest point feature in at least one interest point feature, and finally display the feature data of each interest point feature in at least one interest point feature in the aligned cell corresponding to the interest point feature, so that the display style of a POI can be changed without upgrading an electronic map application, when the electronic map server sends the POI characteristic data to the terminal equipment, the data can be correspondingly sent according to the alignment rule applied by the electronic map, so that the display style of the POI can be changed, and the user experience is further improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for displaying map information according to the present application;
FIG. 3A is a flow chart diagram illustrating one embodiment of the row number calculating step according to the present application;
FIG. 3B is a flow chart diagram for one embodiment of the expanded number determining step according to the present application;
FIG. 4 is a schematic diagram of an embodiment of an apparatus for displaying map information according to the present application;
fig. 5 is a schematic structural diagram of a computer system suitable for implementing a terminal device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary system architecture 100 to which embodiments of the present method for displaying map information or apparatus for displaying map information may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as an electronic map application, a web browser application, a shopping-like application, a search-like application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices with display screens, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented as a plurality of software or software modules (for example, to provide an electronic map service), or as a single software or software module. And is not particularly limited herein.
The server 105 may be a server that provides various services, such as a background electronic map data server that provides support for electronic map applications displayed on the terminal devices 101, 102, 103. The background electronic map data server can analyze and process the received data such as the POI search request and feed back the processing result (such as the feature data of the POI) to the terminal device.
It should be noted that the method for displaying map information provided in the embodiments of the present application is generally executed by the terminal devices 101, 102, and 103, and accordingly, the apparatus for displaying map information is generally disposed in the terminal devices 101, 102, and 103.
The server 105 may be hardware or software. When the server 105 is hardware, it may be implemented as a distributed server cluster composed of a plurality of servers, or may be implemented as a single server. When the server is software, it may be implemented as a plurality of software or software modules (for example, for providing an electronic map service), or may be implemented as a single software or software module. And is not particularly limited herein.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for displaying map information in accordance with the present application is shown. The method for displaying map information includes the steps of:
step 201, receiving feature data of at least one interest point feature of a target interest point sent by an electronic map server.
In this embodiment, an execution subject (e.g., the terminal devices 101, 102, 103 shown in fig. 1) of the method for displaying map information may receive feature data of at least one point of interest feature of a target point of interest transmitted by an electronic map server through a wired connection manner or a wireless connection manner.
In this embodiment, the execution main body may have an electronic map application installed therein, and the electronic map server is a server for providing support for the electronic map application installed in the execution main body.
In this embodiment, the target point of interest may be any one of a large number of points of interest supported by the electronic map server.
As an example, the target point of interest may be obtained by: first, a user inputs a geographic name keyword in an electronic map application, for example, the keyword "Yihe Garden"; then, the executive body sends the geographic name key words to an electronic map server; and then, the electronic map server inquires the POI corresponding to the geographic name key words, determines the found POI as a target interest point, acquires the characteristic data of at least one interest point characteristic of the target interest point and sends the acquired characteristic data to the execution main body.
As an example, the target interest point may also be obtained by: the user clicks a certain POI in the electronic map displayed by the electronic map application, and then the execution subject may determine the POI clicked by the user as the target point of interest.
In this embodiment, each interest point may include feature data of at least one interest point feature, where the feature data of each interest point feature may characterize some attribute feature of the interest point. For example, the point of interest features may include, but are not limited to, the following: name, subtitle, distance, address, price, prompt information, profile information, star information, tag information, heat information, access volume, parent-child relationship, parent-child attributes, user comments, picture information, headings, business hours, business status, data status, and the like.
It should be noted that the wireless connection means may include, but is not limited to, a 3G/4G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a uwb (ultra wideband) connection, and other wireless connection means now known or developed in the future.
Step 202, determining a cell corresponding to each interest point feature in at least one interest point feature in the display area of the target interest point according to the corresponding relationship between the preset interest point features and the cells in the display area of the interest point.
In this embodiment, in order to display the feature data of each feature of interest point of an interest point, the feature data of each feature of interest point of the interest point is displayed in the display area corresponding to each interest point. The display area corresponding to each interest point can be divided into a plurality of cells, and each cell can display the feature data of one interest point feature. Here, the shape of the unit cell is not particularly limited, and for example, the unit cell may be rectangular, triangular, diamond, trapezoidal, or the like.
In this embodiment, the execution subject may be preset with a correspondence between the point of interest feature and a cell in the point of interest display area, that is, given an interest point feature, a cell corresponding to the interest point feature may be found in the display area of the interest point. In this way, the execution subject may determine, in the display area of the target interest point, a cell corresponding to each of the at least one interest point feature according to the correspondence between the preset interest point feature and the cell in the interest point display area.
Step 203, aligning the determined cells in the display area of the target interest point according to a preset alignment rule, and determining aligned cells corresponding to each interest point feature in at least one interest point feature.
In step 202, cells corresponding to each of the at least one interest point feature have been determined in the display area of the target interest point, but if there are idle cells between the determined cells, displaying the feature data of the interest point feature directly according to the determined cells may result in a large display area occupied by the display area displaying the interest point feature, and the display effect is messy and not favorable for the user to view.
In order to reduce the area of the display area for displaying the interest point features, the execution subject may first align the determined cells in the display area of the target interest point according to a preset alignment rule. Here, the alignment rule is a rule that is preset to group a plurality of cells at different positions in the display area of the point of interest together so as to reduce idle cells between the aligned cells as much as possible, so that the display area occupied by each aligned cell is smaller than the display area occupied by each aligned cell.
In some optional implementations of this embodiment, the preset alignment rule may include upper left alignment, lower left alignment, upper right alignment, lower right alignment, or middle alignment.
Since each cell determined in the display region of the target interest point before the alignment corresponds to one of the at least one interest point feature, after the alignment, the aligned cell corresponding to each of the at least one interest point feature may be determined according to the correspondence between the cells before the alignment and the cells after the alignment.
And step 204, displaying the feature data of each interest point feature in the at least one interest point feature on the aligned cells corresponding to the interest point feature.
The execution subject may display the received feature data of each of the at least one interest point feature in the aligned cells corresponding to the interest point feature, because after the alignment operation in step 203, the display area occupied by each cell after alignment is reduced and the display style is more ordered compared to each cell determined before alignment.
In some optional implementations of this embodiment, the display area of each interest point may be divided into R rows, where R is a positive integer, and the heights of the rows in the R rows may be the same or different. The positive integer R may be set by various implementations. For example, R may be the maximum of the number of rows included in the historical point of interest presentation style. For another example, R may be set manually by a technician based on historical experience.
Alternatively, the positive integer R may be calculated by the following number of calculation steps. Specifically, referring to fig. 3, fig. 3 shows a flow 300A according to an embodiment of the present application for calculating the number of rows, where the number of rows calculating step 300A includes the following steps 301 to 303:
step 301, obtaining N historical interest point display patterns.
Here, the execution subject of the line number calculation step may be the same as or different from the execution subject described above. If the execution subject of the line number calculation step is different from the execution subject, the execution subject of the line number calculation step may send the determined positive integer R to the execution subject, so that the execution subject may divide the interest point display area into R lines when displaying the interest point feature.
Here, the execution subject of the line number calculation step may first acquire N historical interest point presentation patterns, where N is a positive integer. Each historical interest point presentation style may include style information that historically displays various interest point features in the interest point display area, and specifically may include the following:
(1) the nth historical interest point display pattern comprises RnA row, N being a positive integer between 1 and N;
(2) and the jth line of the nth historical interest point display style shows Fn(j) Individual point of interest characteristics;
(3) f aboven(j) The point of interest feature includes Pn(j) Kind of interest Point feature Categories, Fn(j) Greater than or equal to Pn(j) J is 1 to RnA positive integer in between. In practice, each point of interest feature may be associated in advance and only one type of point of interest feature category may be associated, and each type of point of interest feature category may include a plurality of point of interest features. As an example, the individual interest point features included in the interest point feature category are shown in table 1:
Figure BDA0001689332630000111
TABLE 1
Step 302, for 1 to Max (R)1,R2,…,RN) Each positive integer k in between, the spreading number determining step is performed. Specifically, referring to fig. 3B, fig. 3B shows a flow 300B of one embodiment of an extension number determining step according to the present application, which includes the following steps 3021 to sub-steps 3024:
in the substep 3021, the interest point feature categories included in the kth row in each historical interest point presentation pattern of the N historical interest point presentation patterns are merged, and repeated interest point feature categories in the history interest point presentation patterns are removed to obtain a kth row of interest point feature category set.
That is, the interest point feature category set in the k-th row includes various interest point feature categories associated with respective interest point features that have appeared in the k-th row of each historical interest point representation pattern in the N historical interest point representation patterns.
And a substep 3022 of determining a ratio of the first number divided by the second number as the rate of change roc (k) of the k-th row.
Here, the first number is the number of interest point feature categories in the k-th row of interest point feature category set, and the second number is Max (P)1(k),P2(k),…,PN(k))。
That is, the variation rate of the k-th line represents a ratio of the number of all the interest point feature categories included in the k-th line of the N historical interest point presentation patterns to the maximum value of the interest point feature categories included in the k-th line of each historical interest point presentation pattern in the N historical interest point presentation patterns, that is, represents a variation frequency of the k-th line in history.
Substep 3023 determines the number fr (k) of post-expansion lines corresponding to the k-th line according to the rate of change roc (k) of the k-th line.
Here, it can be understood that, if the variation rate roc (k) of the k-th row is historically larger, which indicates that more rows need to be expanded on the k-th row to meet the future display requirement on the k-th row, therefore, various implementation manners may be adopted to determine the expanded row number fr (k) corresponding to the k-th row according to the variation rate roc (k) of the k-th row, where the expanded row number fr (k) is positively correlated with the variation rate roc (k). For example, the following may be followed: fr (k) is determined as the result of rounding up (aroc (k) + b), where a is a constant greater than 0 and b is a constant.
Optionally, sub-step 3023 may be performed as follows:
calculating the expanded line number FR (k) corresponding to the k line according to the following formula:
Figure BDA0001689332630000121
wherein:
roc (k) is the calculated rate of change of the k-th line.
Roc1Is a constant greater than 1 and less than 2.
Roc2Is a constant greater than 2 and less than 3.
Fr (k) is the number of expanded lines corresponding to the k-th line obtained by calculation.
Wherein, Roc1And Roc2May be a constant that is set in advance empirically by a skilled person. For example, Roc1Can be set to 1.2, Roc2May be set to 2.4. That is, if the variation rate of the kth row is less than or equal to 1.2, the number of expanded rows corresponding to the kth row is 1, that is, the kth row is not expanded; if the variation rate of the kth line is greater than 1.2 and less than or equal to 2.4, the number of the expanded lines corresponding to the kth line is 2, namely, the kth line is expanded into 1 line to 2 lines; if the variation rate of the kth line is greater than 2.4, the number of expanded lines corresponding to the kth line is 3, that is, the kth line is expanded by 2 to 3 again.
Substep 3024, adding
Figure BDA0001689332630000131
Is identified as R.
Via sub-step 3023, already for 1 to Max (R)1,R2,…,RN) Each positive integer k in between, the number of expanded rows corresponding to each row is calculated, then 1 to Max (R)1,R2,…,RN) Each positive integer k in between corresponds toOf the expanded number of rows FR (k), i.e. of
Figure BDA0001689332630000132
The total number of lines included in the expanded interest point presentation style is the value of R.
The number of lines included in the interest point feature display region is already determined through sub-step 3024, that is, the number of lines included in the expanded interest point feature display region is obtained through statistical analysis of the historical interest point presentation pattern and expansion of the number of lines included in the historical interest point presentation pattern.
In practice, in addition to the need for despreading over a row, sometimes over a column. That is, it is also necessary to determine the number of columns included in each of the R rows included in the interest point display area, that is, the ith row of the interest point display area may be divided into CiColumn, i is a positive integer between 1 and R, CiIs the value of the ith dimension component of the vector C, CiIs a positive integer. Here, the vector C may be obtained in various implementations. For example, the vector C may be the maximum of the number of rows included in the historical point of interest rendering pattern. For another example, the vector C may be set manually by a technician based on historical experience.
Optionally, step 302 for 1 to Max (R)1,R2,…,RN) The extended number determining step performed per positive integer k in between may further include sub-steps 3025 to 3028 as follows:
substep 3025, calculating the difference between the variation rate roc (k) of the k-th line and the number fr (k) of the expanded lines corresponding to the k-th line.
Substep 3026 determines whether the calculated difference is negative and if so, passes to substep 3027 and if not to substep 3028.
Substep 3027 sets the number of expansion columns corresponding to the k-th row and the expansion row of the k-th row to zero.
Here, if it is determined that the calculated difference is a negative value, which indicates that the rate of change roc (k) of the k-th row is smaller than the number of post-expansion rows fr (k) corresponding to the k-th row, no expansion column is required for the row, and therefore, the number of expansion columns corresponding to the k-th row and the expansion row of the k-th row can be set to zero.
And a substep 3028 of determining the number of expansion columns corresponding to the k-th row and the expansion row of the k-th row according to the calculated difference.
Here, if it is determined that the calculated difference is a negative value, which indicates that the variation rate roc (k) of the k-th row is greater than the number fr (k) of the expanded rows corresponding to the k-th row, the k-th row needs to expand the columns to meet the display requirement of the k-th row, and therefore, the number of the expanded columns corresponding to the expanded rows of the k-th row and the k-th row can be determined according to the calculated difference, where the number of the expanded columns is positively correlated with the calculated difference, that is, the larger the difference is, the more the number of the columns need to be expanded is. For example, the following may be followed: and determining the number of the expansion columns corresponding to the k-th row as a positive integer obtained by rounding up the result of the linear calculation of the calculated difference.
Optionally, sub-step 3028 may also be performed as follows:
and calculating the number of expansion columns corresponding to the k-th row and the expansion row of the k-th row according to the following formula:
Figure BDA0001689332630000141
wherein:
roc (k) is the calculated rate of change of the k-th line.
Fr (k) is the number of expanded lines corresponding to the k-th line obtained by calculation.
D1Is a constant greater than 0 and less than 1.
Ce(k) The number of expansion columns corresponding to the k-th row and the expansion row of the k-th row is calculated.
Wherein D is1May be a constant that is set in advance empirically by a skilled person. For example, D1May be set to 0.15. I.e., if
Figure BDA0001689332630000151
If the k-th row is greater than 0 and less than or equal to 0.15, the number of the expanded columns corresponding to the k-th row is 2, i.e. the k-th row is in the original existing column2 columns are expanded on the basis of the number; if it is not
Figure BDA0001689332630000152
If the number of the expansion columns corresponding to the kth row is greater than 0.15, the number of the expansion columns corresponding to the kth row is 4, that is, the kth row is expanded into 4 columns on the basis of the original existing number of the columns.
Based on the foregoing sub-steps 3025 to 3028, optionally, the vector C may be obtained through the following column number vector calculation steps:
in the first step, loop is set to 1 and k to 1.
And secondly, executing the following vector quantity value calculation steps: for each positive integer m from loop to loop + FR (k) -1, the value C of the mth dimension component of the vector C is calculated according to the following formulam
Cm=Cmax(k)+Ce(k)(3)
Wherein:
Figure BDA0001689332630000153
Figure BDA0001689332630000154
the numbers of columns in the kth row in the 1 st, 2 nd, … th and nth historical interest point presentation patterns, respectively.
Ce(k) The number of expansion columns corresponding to the k-th row and the expansion row of the k-th row is calculated.
After the second step, the same number of expansion columns is set for the k-th row and the expansion row of the k-th row.
Third, it is determined whether k is equal to or greater than Max (R)1,R2,…,RN). If the value is larger than or equal to the first step, outputting the vector C, if the value is smaller than the second step, updating the loop to loop + FR (k), updating k to k +1, and continuing to execute the second step.
The vector C is obtained through the column number vector calculation step.
The method provided by the above embodiment of the present application determines, in the display area of the target interest point, the cell corresponding to each of the at least one interest point feature according to the correspondence between the preset interest point feature and the cell in the display area of the interest point by receiving the feature data of the at least one interest point feature of the target interest point sent by the electronic map server, aligns the determined cells in the display area of the target interest point according to the preset alignment rule, determines the aligned cell corresponding to each of the at least one interest point feature, and displays the feature data of each of the at least one interest point feature in the aligned cell corresponding to the interest point feature, so that the display style of the POI can be changed without upgrading the electronic map application, when the electronic map server sends the POI characteristic data to the terminal equipment, the data can be correspondingly sent according to the alignment rule applied by the electronic map, so that the display style of the POI can be changed, and the user experience is further improved.
With further reference to fig. 4, as an implementation of the methods shown in the above-mentioned figures, the present application provides an embodiment of an apparatus for displaying map information, which corresponds to the method embodiment shown in fig. 2, and which is particularly applicable to various electronic devices.
As shown in fig. 4, the apparatus 400 for displaying map information of the present embodiment includes: a receiving unit 401, a determining unit 402, an aligning unit 403, and a display unit 404. The receiving unit 401 is configured to receive feature data of at least one point of interest feature of a target point of interest sent by an electronic map server; a determining unit 402, configured to determine, according to a preset correspondence between the point of interest features and the cells in the point of interest display area, cells corresponding to each of the at least one point of interest feature in the target point of interest display area; an aligning unit 403, configured to align the determined cells in the display area of the target interest point according to a preset alignment rule, and determine aligned cells corresponding to each interest point feature of the at least one interest point feature; and the display unit 404 is configured to display the feature data of each of the at least one point of interest feature in the aligned cells corresponding to the point of interest feature.
In this embodiment, specific processing of the receiving unit 401, the determining unit 402, the aligning unit 403, and the displaying unit 404 of the apparatus 400 for displaying map information and technical effects thereof may refer to related descriptions of step 201, step 202, step 203, and step 204 in the corresponding embodiment of fig. 2, which are not repeated herein.
In some optional implementations of this embodiment, the display area of the point of interest may be divided into R rows, where R is a positive integer; and the positive integer R may be calculated by the following number of calculation steps: obtaining N historical interest point display patterns, wherein N is a positive integer, and the nth historical interest point display pattern comprises RnLine, N is a positive integer between 1 and N, the jth line of the nth historical interest point presentation style presents Fn(j) A point of interest feature, above Fn(j) The point of interest feature includes Pn(j) Kind of interest Point feature Categories, Fn(j) Greater than or equal to Pn(j) J is 1 to RnA positive integer in between; for 1 to Max (R)1,R2,…,RN) With each positive integer k, the following expansion number determination steps are performed: merging the interest point feature categories included in the kth line in each historical interest point presentation style in the N historical interest point presentation styles, and removing repeated interest point feature categories to obtain a kth line interest point feature category set; determining a ratio obtained by dividing a first number by a second number as the variation rate Roc (k) of the k-th row, wherein the first number is the number of the interest point feature categories in the interest point feature category set of the k-th row, and the second number is Max (P)1(k),P2(k),…,PN(k) ); determining the number of expanded lines FR (k) corresponding to the k line according to the rate of change Roc (k) of the k line, wherein the number of expanded lines FR (k) is positively correlated with the rate of change Roc (k); will be provided with
Figure BDA0001689332630000171
Is determined as R, where k is 1 to Max (R)1,R2,…,RN) A positive integer in between.
In some optional implementations of the present embodiment, the ith row of the interest point display area may be divided into CiColumn, i is a positive integer between 1 and R, CiIs the value of the ith dimension component of the vector C, CiIs a positive integer.
In some optional implementation manners of this embodiment, the step of determining the number of extensions may further include: calculating the difference value of the variation rate Roc (k) of the k line minus the number FR (k) of the expanded lines corresponding to the k line; in response to the fact that the calculated difference value is determined to be a negative value, setting the number of the expansion columns corresponding to the k-th row and the expansion row of the k-th row to be zero; and in response to the fact that the calculated difference is determined to be a positive value, determining the number of expansion columns corresponding to the k-th row and the expansion row of the k-th row according to the calculated difference, wherein the number of the expansion columns is positively correlated with the calculated difference.
In some optional implementation manners of this embodiment, the vector C may be obtained through the following column number vector calculation steps: setting loop as 1, k as 1; the following vector value calculation steps are performed: for each positive integer m from loop to loop + FR (k) -1, the value C of the mth dimension component of the vector C is calculated according to the following formulam
Cm=Cmax(k)+Ce(k)
Wherein:
Figure BDA0001689332630000172
Figure BDA0001689332630000173
the number of columns of the kth row, C, in the No. 1, No. 2, …, and No. N historical interest point display patterns, respectivelye(k) Calculating the number of expansion columns corresponding to the obtained k-th row and the expansion row of the k-th row; in response to k being greater than or equal to Max (R)1,R2,…,RN) Outputting a vector C; in response to k being less than Max (R)1,R2,…,RN) The loop is updated to loop + fr (k), k is updated to k +1, and the column vector value calculation step is continued.
In some optional implementation manners of this embodiment, the determining, according to the calculated difference, the number of expansion columns corresponding to the k-th row and the expansion row of the k-th row may include: and calculating the number of expansion columns corresponding to the k-th row and the expansion row of the k-th row according to the following formula:
Figure BDA0001689332630000181
wherein: roc (k) is the calculated rate of change of the k-th line; FR (k) is the number of expanded lines corresponding to the k-th line obtained by calculation; d1Is a constant greater than 0 and less than 1; ce(k) The number of expansion columns corresponding to the k-th row and the expansion row of the k-th row is calculated.
In some optional implementation manners of this embodiment, the determining, according to the variation rate roc (k) of the k-th line, the number fr (k) of the expanded rows corresponding to the k-th line may include: calculating the expanded line number FR (k) corresponding to the k line according to the following formula:
Figure BDA0001689332630000182
wherein: roc (k) is the calculated rate of change of the k-th line; roc1Is a constant greater than 1 and less than 2; roc2Is a constant greater than 2 and less than 3; fr (k) is the number of expanded lines corresponding to the k-th line obtained by calculation.
In some optional implementations of this embodiment, the alignment rule may include upper left alignment, lower left alignment, upper right alignment, lower right alignment, or middle alignment.
It should be noted that, for details of implementation and technical effects of each unit in the apparatus for displaying map information provided in the embodiment of the present application, reference may be made to descriptions of other embodiments in the present application, and details are not repeated herein.
Referring now to FIG. 5, shown is a block diagram of a computer system 500 suitable for use in implementing a terminal device of an embodiment of the present application. The terminal device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU)501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An Input/Output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output section 507 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage portion 508 including a hard disk and the like; and a communication section 509 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program performs the above-described functions defined in the method of the present application when executed by the Central Processing Unit (CPU) 501. It should be noted that the computer readable medium described herein can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a receiving unit, a determining unit, an aligning unit, and a displaying unit. Where the names of the units do not in some cases constitute a limitation of the unit itself, for example, a receiving unit may also be described as a "unit receiving feature data of at least one point of interest feature".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be present separately and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: receiving feature data of at least one interest point feature of a target interest point sent by an electronic map server; determining a cell corresponding to each interest point feature in the at least one interest point feature in the display area of the target interest point according to a corresponding relation between preset interest point features and cells in the display area of the interest point; aligning each determined cell in the display area of the target interest point according to a preset alignment rule, and determining an aligned cell corresponding to each interest point feature in the at least one interest point feature; and displaying the feature data of each interest point feature in the at least one interest point feature on the aligned cell corresponding to the interest point feature.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (18)

1. A method for displaying map information, comprising:
receiving feature data of at least one interest point feature of a target interest point sent by an electronic map server;
determining a cell corresponding to each interest point feature in the at least one interest point feature in the display area of the target interest point according to a corresponding relation between preset interest point features and cells in the display area of the interest point;
according to a preset alignment rule, aligning all the determined cells in the display area of the target interest point, and determining aligned cells corresponding to each interest point feature in the at least one interest point feature;
and displaying the feature data of each interest point feature in the at least one interest point feature in the aligned cells corresponding to the interest point feature.
2. The method of claim 1, wherein the display area of the point of interest is divided into R rows, R being a positive integer; and
the positive integer R is obtained by calculating the following line number:
obtaining N historical interest point display patterns, wherein N is a positive integer, and the nth historical interest point display pattern comprises RnLine, N is a positive integer between 1 and N, and line j of the nth historical interest point presentation style presents Fn(j) A point of interest feature, said Fn(j) The point of interest feature includes Pn(j) Kind of interest Point feature Categories, Fn(j) Greater than or equal to Pn(j) J is 1 to RnA positive integer in between;
for 1 to Max (R)1,R2,…,RN) With each positive integer k, the following expansion number determination steps are performed: merging the interest point feature categories included in the kth line in each historical interest point presentation style in the N historical interest point presentation styles, and removing repeated interest point feature categories to obtain a kth line interest point feature category set; determining a ratio obtained by dividing a first number by a second number as a variation rate Roc (k) of a k-th row, wherein the first number is the number of the interest point feature categories in the interest point feature category set of the k-th row, and the second number is Max (P)1(k),P2(k),…,PN(k) ); determining the number of expanded lines FR (k) corresponding to the k line according to the rate of change Roc (k) of the k line, wherein the number of expanded lines FR (k) is positively correlated with the rate of change Roc (k);
will be provided with
Figure FDA0001689332620000021
Is determined as R, where k is 1 to Max (R)1,R2,…,RN) A positive integer in between.
3. The method of claim 2, wherein the ith row of the point of interest display area is divided into CiColumn, i is a positive integer between 1 and R, CiIs the value of the ith dimension component of the vector C, CiIs a positive integer.
4. The method of claim 3, wherein the spreading number determining step further comprises:
calculating the difference value of the variation rate Roc (k) of the k line minus the number FR (k) of the expanded lines corresponding to the k line;
in response to the fact that the calculated difference value is determined to be a negative value, setting the number of the expansion columns corresponding to the k-th row and the expansion row of the k-th row to be zero;
and in response to the fact that the calculated difference is determined to be a positive value, determining the number of expansion columns corresponding to the k-th row and the expansion row of the k-th row according to the calculated difference, wherein the number of the expansion columns is positively correlated with the calculated difference.
5. The method of claim 4, wherein the vector C is obtained by the following column-count vector calculation steps:
setting loop as 1, k as 1;
the following vector value calculation steps are performed: for each positive integer m from loop to loop + FR (k) -1, the value C of the mth dimension component of the vector C is calculated according to the following formulam
Cm=Cmax(k)+Ce(k)
Wherein:
Figure FDA0001689332620000022
Figure FDA0001689332620000023
Figure FDA0001689332620000024
the number of columns of the kth row, C, in the No. 1, No. 2, …, and No. N historical interest point display patterns, respectivelye(k) Calculating the number of expansion columns corresponding to the obtained k-th row and the expansion row of the k-th row; in response to k being greater than or equal to Max (R)1,R2,…,RN) Outputting a vector C;
in response to k being less than Max (R)1,R2,…,RN) And updating the loop to loop + FR (k), updating k to k +1, and continuing to execute the column vector value calculation step.
6. The method according to claim 5, wherein the determining the number of expansion columns corresponding to the k-th row and the expansion row of the k-th row according to the calculated difference value comprises:
and calculating the number of expansion columns corresponding to the k-th row and the expansion row of the k-th row according to the following formula:
Figure FDA0001689332620000031
wherein:
roc (k) is the calculated rate of change of the k-th line;
FR (k) is the number of expanded lines corresponding to the k-th line obtained by calculation;
D1is a constant greater than 0 and less than 1;
Ce(k) the number of expansion columns corresponding to the k-th row and the expansion row of the k-th row is calculated.
7. The method according to claim 6, wherein the determining the number of extended rows fr (k) corresponding to the k-th row according to the variation rate roc (k) of the k-th row includes:
calculating the expanded line number FR (k) corresponding to the k line according to the following formula:
Figure FDA0001689332620000032
wherein:
roc (k) is the calculated rate of change of the k-th line;
Roc1is a constant greater than 1 and less than 2;
Roc2is a constant greater than 2 and less than 3;
fr (k) is the number of expanded lines corresponding to the k-th line obtained by calculation.
8. The method of any of claims 1-7, wherein the alignment rule comprises top left alignment, bottom left alignment, top right alignment, bottom right alignment, or middle alignment.
9. An apparatus for displaying map information, comprising:
the receiving unit is configured to receive feature data of at least one interest point feature of the target interest point sent by the electronic map server;
a determining unit configured to determine a cell corresponding to each of the at least one point of interest feature in the display area of the target point of interest according to a correspondence between preset point of interest features and cells in a point of interest display area;
an alignment unit configured to align the determined cells in the display area of the target interest point according to a preset alignment rule, and determine aligned cells corresponding to each of the at least one interest point feature;
a display unit configured to display the feature data of each of the at least one point of interest feature in the aligned cells corresponding to the point of interest feature.
10. The apparatus of claim 9, wherein the display area of the point of interest is divided into R rows, R being a positive integer; and
the positive integer R is obtained by calculating the following line number:
obtaining N historical interest point display patterns, wherein N is a positive integer, and the nth historical interest point display pattern comprises RnLine, N is a positive integer between 1 and N, and line j of the nth historical interest point presentation style presents Fn(j) A point of interest feature, said Fn(j) The point of interest feature includes Pn(j) Kind of interest Point feature Categories, Fn(j) Greater than or equal to Pn(j) J is 1 to RnA positive integer in between;
for 1 to Max (R)1,R2,…,RN) With each positive integer k, the following expansion number determination steps are performed: merging the interest point feature categories included in the kth line in each historical interest point presentation style in the N historical interest point presentation styles, and removing repeated interest point feature categories to obtain a kth line interest point feature category set; determining a ratio obtained by dividing a first number by a second number as a variation rate Roc (k) of a k-th row, wherein the first number is the number of the interest point feature categories in the interest point feature category set of the k-th row, and the second number is Max (P)1(k),P2(k),…,PN(k) ); determining the number of expanded lines FR (k) corresponding to the k line according to the rate of change Roc (k) of the k line, wherein the number of expanded lines FR (k) is positively correlated with the rate of change Roc (k);
will be provided with
Figure FDA0001689332620000041
Is determined as R, where k is 1 to Max (R)1,R2,…,RN) A positive integer in between.
11. The apparatus of claim 10, wherein an ith row of the point of interest display area is divided into CiColumn, i is a positive integer between 1 and R, CiIs the value of the ith dimension component of the vector C, CiIs a positive integer.
12. The apparatus of claim 11, wherein the spreading number determining step further comprises:
calculating the difference value of the variation rate Roc (k) of the k line minus the number FR (k) of the expanded lines corresponding to the k line;
in response to the fact that the calculated difference value is determined to be a negative value, setting the number of the expansion columns corresponding to the k-th row and the expansion row of the k-th row to be zero;
and in response to the fact that the calculated difference is determined to be a positive value, determining the number of expansion columns corresponding to the k-th row and the expansion row of the k-th row according to the calculated difference, wherein the number of the expansion columns is positively correlated with the calculated difference.
13. The apparatus of claim 12, wherein the vector C is obtained by the following column-count vector calculation steps:
setting loop as 1, k as 1;
the following vector value calculation steps are performed: for each positive integer m from loop to loop + FR (k) -1, the value C of the mth dimension component of the vector C is calculated according to the following formulam
Cm=Cmax(k)+Ce(k)
Wherein:
Figure FDA0001689332620000051
Figure FDA0001689332620000052
Figure FDA0001689332620000053
the number of columns of the kth row, C, in the No. 1, No. 2, …, and No. N historical interest point display patterns, respectivelye(k) Calculating the number of expansion columns corresponding to the obtained k-th row and the expansion row of the k-th row; in response to k being greater than or equal to Max (R)1,R2,…,RN) Outputting a vector C;
in response to k being less than Max (R)1,R2,…,RN) And updating the loop to loop + FR (k), updating k to k +1, and continuing to execute the column vector value calculation step.
14. The apparatus of claim 13, wherein the determining the k-th row and the number of expansion columns corresponding to the expansion row of the k-th row according to the calculated difference comprises:
and calculating the number of expansion columns corresponding to the k-th row and the expansion row of the k-th row according to the following formula:
Figure FDA0001689332620000061
wherein:
roc (k) is the calculated rate of change of the k-th line;
FR (k) is the number of expanded lines corresponding to the k-th line obtained by calculation;
D1is a constant greater than 0 and less than 1;
Ce(k) the number of expansion columns corresponding to the k-th row and the expansion row of the k-th row is calculated.
15. The apparatus according to claim 14, wherein the determining, according to the variation rate roc (k) of the k-th line, the number fr (k) of the expanded lines corresponding to the k-th line includes:
calculating the expanded line number FR (k) corresponding to the k line according to the following formula:
Figure FDA0001689332620000062
wherein:
roc (k) is the calculated rate of change of the k-th line;
Roc1is a constant greater than 1 and less than 2;
Roc2is a constant greater than 2 and less than 3;
fr (k) is the number of expanded lines corresponding to the k-th line obtained by calculation.
16. The apparatus of any of claims 9-15, wherein the alignment rule comprises top left alignment, bottom left alignment, top right alignment, bottom right alignment, or middle alignment.
17. A terminal device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-8.
18. A computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by one or more processors, implements the method of any one of claims 1-8.
CN201810585247.2A 2018-06-08 2018-06-08 Method and apparatus for displaying map information Active CN110580848B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810585247.2A CN110580848B (en) 2018-06-08 2018-06-08 Method and apparatus for displaying map information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810585247.2A CN110580848B (en) 2018-06-08 2018-06-08 Method and apparatus for displaying map information

Publications (2)

Publication Number Publication Date
CN110580848A CN110580848A (en) 2019-12-17
CN110580848B true CN110580848B (en) 2021-09-07

Family

ID=68809011

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810585247.2A Active CN110580848B (en) 2018-06-08 2018-06-08 Method and apparatus for displaying map information

Country Status (1)

Country Link
CN (1) CN110580848B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101937463A (en) * 2010-09-10 2011-01-05 西安交通大学 Method for automatically generating form for workflow model
CN102411559A (en) * 2010-09-21 2012-04-11 金蝶软件(中国)有限公司 Method and device for marking data information
CN104035948A (en) * 2013-09-29 2014-09-10 腾讯科技(深圳)有限公司 Geographic position display method and device
CN104199952A (en) * 2014-09-12 2014-12-10 百度在线网络技术(北京)有限公司 Method and device for acquiring information of interest points

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8699991B2 (en) * 2010-01-20 2014-04-15 Nokia Corporation Method and apparatus for customizing map presentations based on mode of transport
US20140301645A1 (en) * 2013-04-03 2014-10-09 Nokia Corporation Method and apparatus for mapping a point of interest based on user-captured images

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101937463A (en) * 2010-09-10 2011-01-05 西安交通大学 Method for automatically generating form for workflow model
CN102411559A (en) * 2010-09-21 2012-04-11 金蝶软件(中国)有限公司 Method and device for marking data information
CN104035948A (en) * 2013-09-29 2014-09-10 腾讯科技(深圳)有限公司 Geographic position display method and device
CN104199952A (en) * 2014-09-12 2014-12-10 百度在线网络技术(北京)有限公司 Method and device for acquiring information of interest points

Also Published As

Publication number Publication date
CN110580848A (en) 2019-12-17

Similar Documents

Publication Publication Date Title
CN107315824B (en) Method and device for generating thermodynamic diagram
US20200193372A1 (en) Information processing method and apparatus
US11118927B2 (en) Computer-implemented method for recommending booths-to-visit
CN110619078B (en) Method and device for pushing information
CN111433762A (en) Graphically organizing content in a user interface of a software application
CN108011949B (en) Method and apparatus for acquiring data
CN109118456A (en) Image processing method and device
CN112836128A (en) Information recommendation method, device, equipment and storage medium
CN108898604A (en) Method and apparatus for handling image
CN107330087B (en) Page file generation method and device
CN109325227A (en) Method and apparatus for generating amendment sentence
CN110580848B (en) Method and apparatus for displaying map information
CN115719270A (en) Credit evaluation method, device, apparatus, medium, and program product
CN115408297A (en) Test method, device, equipment and medium
CN111552715B (en) User query method and device
CN113468354A (en) Method and device for recommending chart, electronic equipment and computer readable medium
CN113822745A (en) Article display method and device
CN109634827A (en) Method and apparatus for generating information
CN111125501A (en) Method and apparatus for processing information
US20230147521A1 (en) High-precision-map data collection methods, device and storage medium
CN115033268A (en) Page content configuration method and device, electronic equipment and storage medium
CN113900574A (en) Data display method and device, electronic equipment and computer readable medium
CN115525365A (en) Method, device and equipment for determining target data entity and storage medium
CN117216164A (en) Financial data synchronous processing method, apparatus, device, medium and program product
CN110634381A (en) Method and device for determining labeling style

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant