CN108280154B - Method and device for displaying map annotation information, terminal and readable storage medium - Google Patents

Method and device for displaying map annotation information, terminal and readable storage medium Download PDF

Info

Publication number
CN108280154B
CN108280154B CN201810017051.3A CN201810017051A CN108280154B CN 108280154 B CN108280154 B CN 108280154B CN 201810017051 A CN201810017051 A CN 201810017051A CN 108280154 B CN108280154 B CN 108280154B
Authority
CN
China
Prior art keywords
map
information
cache
block
annotation information
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
CN201810017051.3A
Other languages
Chinese (zh)
Other versions
CN108280154A (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.)
Shenzhen Mallparking Information Technology Co ltd
Original Assignee
Shenzhen Mallparking Information 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 Shenzhen Mallparking Information Technology Co ltd filed Critical Shenzhen Mallparking Information Technology Co ltd
Priority to CN201810017051.3A priority Critical patent/CN108280154B/en
Publication of CN108280154A publication Critical patent/CN108280154A/en
Application granted granted Critical
Publication of CN108280154B publication Critical patent/CN108280154B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Instructional Devices (AREA)
  • Navigation (AREA)

Abstract

The invention is applicable to the field of computers, and provides a method, a device, a terminal and a readable storage medium for displaying map annotation information, wherein the method comprises the following steps: determining a map marking information cache region according to a map marking information viewing request of a user, wherein the map marking information cache region comprises at least one map marking information cache block; when judging that the map labeling information corresponding to the map labeling information cache block is cached in the terminal, displaying the cached map labeling information to a user; when judging that the map labeling information of the map labeling information cache block is not cached in the terminal, acquiring the map labeling information corresponding to the map labeling information cache block, and displaying the map labeling information to a user; the method and the device realize the searching and storage of the target position information, reduce the acquisition of unnecessary cache data by the intelligent terminal when a user searches and stores the target position information by using the electronic map function, reduce the operation burden of the intelligent terminal and improve the operation smoothness of the intelligent terminal.

Description

Method and device for displaying map annotation information, terminal and readable storage medium
Technical Field
The invention belongs to the field of computers, and particularly relates to a method, a device, a terminal and a readable storage medium for displaying map annotation information.
Background
With the rapid development of social economy, the application of electronic maps has deepened into the aspects of our lives, and the electronic map function is set in an intelligent terminal (such as a mobile phone), so that the searching and storage of target position information can be realized.
In the prior art, in order to search and store target position information, a map area in which data needs to be cached is determined according to longitude and latitude coordinates of a target reference point position and a preset cache radius, and then map data caching is performed, so that the target position information is searched and stored.
However, the conventional map data caching method is generally not intelligent, when the change of the target reference point position reaches a set condition, the target reference point position needs to be re-determined, and the map data is re-requested and cached according to the target reference point position and the pre-stored cache radius, for example, when a user caches the map data of a target a with a radius of 50 meters, and when the user acquires the map data of a target B60 meters away from the target a, the new map data is cached according to the coordinates of the target B and the radius of 50 meters, so that the overlapped part of the map data of the target a and the map data of the target B is repeatedly cached, so that the intelligent terminal needs to re-cache unnecessary map data, occupies a large memory of the intelligent terminal, and if the cached data exists in the new map data to avoid the repeated caching, due to the complexity of the area description, a large amount of calculation is needed to determine the map data which does not need to be cached repeatedly, and the large amount of calculation can cause huge operation burden to the intelligent terminal, so that the problems of blockage and unsmooth operation are caused, and the use experience of a user is influenced.
Disclosure of Invention
The embodiment of the invention provides a method for displaying map annotation information, and aims to solve the problems that a traditional map data caching method adds huge operation burden to an intelligent terminal, so that the problems of blockage and unsmooth operation occur, and the use experience of a user is influenced.
The embodiment of the invention is realized in such a way that a map annotation information display method is applied to a terminal, and the method comprises the following steps:
determining a map marking information cache region according to a map marking information viewing request of a user, wherein the map marking information cache region comprises at least one map marking information cache block;
when the map labeling information corresponding to the map labeling information cache block is judged to be cached in the terminal, the cached map labeling information is displayed to a user;
and when judging that the map labeling information of the map labeling information cache block is not cached in the terminal, acquiring the map labeling information corresponding to the map labeling information cache block, and displaying the map labeling information to a user.
The embodiment of the invention also provides a device for displaying the map annotation information, which is applied to a terminal, and the device comprises:
the map annotation information cache device comprises a cache region determining unit, a map annotation information cache region determining unit and a map annotation information cache region determining unit, wherein the cache region determining unit is used for determining the map annotation information cache region according to a map annotation information viewing request of a user, and the map annotation information cache region comprises at least one map annotation information cache block;
the first map annotation information display unit is used for displaying the cached map annotation information to a user when judging that the map annotation information corresponding to the map annotation information cache block is cached in the terminal;
and the second map annotation information display unit is used for acquiring the map annotation information corresponding to the map annotation information cache block and displaying the map annotation information to the user when judging that the map annotation information of the map annotation information cache block is not cached in the terminal.
In the embodiment of the invention, the map annotation information cache region is determined according to the map annotation information viewing request of a user, the map annotation information cache region comprises at least one map annotation information cache block, and the cache region is formed by replacing each position coordinate with the block, so that when the user acquires the map information, the position coordinate is not needed to be used as a basic unit to describe the region range, the complexity of the region range is simplified, the calculation of the map data which does not need to be cached repeatedly is simplified, and the operation burden of the mobile phone is reduced; when the map labeling information corresponding to the map labeling information cache block is judged to be cached in the terminal, the cached map labeling information is displayed to a user; when judging that the map labeling information of the map labeling information cache block does not have cache in the terminal, acquiring the map labeling information corresponding to the map labeling information cache block, and displaying the map labeling information to a user to realize searching and storing of target position information, so that when the user searches and stores the target position information by using an electronic map function, the intelligent terminal is reduced from acquiring unnecessary cache data, the operation burden of the intelligent terminal is reduced, the operation smoothness of the intelligent terminal is improved, and the use experience of the user is increased.
Drawings
Fig. 1 is a flowchart illustrating an implementation of a method for displaying map annotation information according to an embodiment of the present invention;
FIG. 2 is a block diagram of a first embodiment of the present invention;
fig. 3 is a schematic diagram of a cache determination method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of another cache determination method according to an embodiment of the present invention;
fig. 5 is a schematic diagram of another cache determination method according to an embodiment of the present invention;
fig. 6 is a flowchart of an implementation of a map annotation information displaying method according to a second embodiment of the present invention;
FIG. 7 is a flowchart of an implementation of a method for displaying map annotation information according to an embodiment of the present invention;
FIG. 8 is a block diagram illustrating core block determination according to a second embodiment of the present invention;
fig. 9 is a flowchart of an implementation of a map annotation information displaying method according to a third embodiment of the present invention;
FIG. 10 is a flow chart of a method for displaying map annotation information according to another preferred embodiment of the present invention;
FIG. 11 is a schematic diagram of map area determination provided by the third embodiment of the present invention;
fig. 12 is a schematic structural diagram of a map annotation information display apparatus according to a fifth embodiment of the present invention;
fig. 13 is a schematic structural diagram of a map annotation information display apparatus according to a sixth embodiment of the present invention;
fig. 14 is a schematic structural diagram of a map marking information display apparatus according to a seventh embodiment of the present invention;
FIG. 15 is a schematic structural diagram of a map annotation information display device according to an embodiment of the present invention;
fig. 16 is a schematic structural diagram of a map annotation information presentation device according to yet another preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
According to the map labeling information display method provided by the embodiment of the invention, the electronic map is formed by taking the block as a unit, so that the map can be divided according to the block, the complexity of the area range is simplified, when a user searches and stores the target position information by using the electronic map function, the calculation of the map data which does not need to be cached repeatedly is simplified, unnecessary cache data obtained by an intelligent terminal is reduced, the operation burden of the intelligent terminal is lightened, the operation smoothness of the intelligent terminal is improved, and the use experience of the user is increased.
Example one
Fig. 1 shows a flowchart of an implementation of a map annotation information presentation method according to an embodiment of the present invention, and for convenience of description, only a part related to the present invention is shown.
In step S101, a map annotation information cache region is determined according to a map annotation information viewing request of a user, where the map annotation information cache region includes at least one map annotation information cache block.
In the embodiment of the present invention, the map annotation information refers to application data displayed on a map, and the map annotation information may be information such as a position of a parking lot on the map, a name of the parking lot, and an empty parking space of the parking lot, which are applied to a parking client, or a position of a shared bicycle on the map, model information of the shared bicycle, and charging standard information, which are applied to a shared bicycle client.
It should be understood by those skilled in the art that the map marking information should be viewed based on a certain target position or a certain target area as an object to acquire the data information.
In the embodiment of the present invention, the area refers to a range in which a user needs to view map annotation information in an electronic map, for example, the area may be a circle formed by taking a certain coordinate in the electronic map as a center and taking 50 meters as a radius, or a rectangle formed by taking a certain coordinate in the electronic map as a center and taking a length and a width of 50 meters respectively, and the like.
In the embodiment of the invention, the block refers to the minimum unit of the map labeling information cache region, is generated according to the minimum unit of the longitude coordinate and the minimum unit of the latitude coordinate, and forms the map through the block, so that the map can be divided according to the block, the complexity of the region range is simplified, the calculation of the map data which does not need to be cached repeatedly is simplified, and the operation burden of the mobile phone is reduced.
It should be understood by those skilled in the art that, in the embodiment of the present invention, both the longitude coordinate minimum unit and the latitude coordinate minimum unit of the generated block may be selected according to actual situations to adapt to electronic maps in different environments and different architectures, which is not limited specifically.
In the embodiment of the invention, the map annotation information viewing request can be input by a user through dragging and sliding operations or manual input of the electronic map.
As an example, fig. 2 shows a schematic block diagram provided by an implementation of the present invention, in the world map of fig. 2, the longitude coordinate minimum unit and the latitude coordinate minimum unit of the generated block are both set to be 1 °, so that the block size of the world map is shown as block a, the world map is composed of 360 × 180 blocks, and it should be understood that the blocks are illustrated here only for convenience of understanding and do not have any limiting meaning.
In step S102, when it is determined that the map annotation information corresponding to the map annotation information cache block is cached in the terminal, the cached map annotation information is displayed to the user.
In practical application, as shown in fig. 3, the target position is currently located at B, blocks 1 to 9 are cached based on the target current position B, and when the target position moves to B ', blocks 1 to 9 are required to be cached based on the target position B ', at this time, since the blocks 1 to 9 are cached at the terminal, re-caching is not required for the target position B ', and the map label information of the cached blocks 1 to 9 is displayed to the user.
In step S103, when it is determined that the map annotation information of the map annotation information cache block is not cached in the terminal, the map annotation information corresponding to the map annotation information cache block is obtained and displayed to the user.
In the embodiment of the invention, the acquired map labeling information is stored in the terminal, so that a user can judge whether the map labeling information is cached in the terminal when viewing the map labeling information.
In practical application, as shown in fig. 4, the target position is currently located at C, the block 4 is cached based on the target current position C, when the target position moves to C ', the block 1 needs to be cached based on the target position C', at this time, since the block 1 does not have a cache at the terminal, the target position C 'needs to be cached again, and the map marking information of the block 1 corresponding to the target position C' is obtained and displayed to the user.
Alternatively, in another practical application of the present invention, as shown in fig. 5, the target position is currently located at D, the blocks 5, 6, 8 and 9 are cached based on the target current position D, when the target position moves to D ', the blocks 1, 2, 4 and 5 need to be cached based on the target position D', at this time, since the block 5 has been cached at the terminal, the block 5 does not need to be cached again; and block 1, block 2 and block 4 are not cached in the terminal, re-caching is required for block 1, block 2 and block 4, and the map label information of the re-cached block 1, block 2, block 4 and cached block 5 is shown to the user.
In the embodiment of the invention, the map annotation information cache region is determined according to the map annotation information viewing request of a user, the map annotation information cache region comprises at least one map annotation information cache block, and the cache region is formed by replacing each position coordinate with the block, so that when the user acquires the map information, the position coordinate is not needed to be used as a basic unit to describe the region range, the complexity of the region range is simplified, the calculation of the map data which does not need to be cached repeatedly is simplified, and the operation burden of the mobile phone is reduced; when the map labeling information corresponding to the map labeling information cache block is judged to be cached in the terminal, the cached map labeling information is displayed to a user; when judging that the map labeling information of the map labeling information cache block does not have cache in the terminal, acquiring the map labeling information corresponding to the map labeling information cache block, and displaying the map labeling information to a user to realize searching and storing of target position information, so that when the user searches and stores the target position information by using an electronic map function, the unnecessary cache data acquired by the intelligent terminal is reduced, the operation burden of the intelligent terminal is reduced, the operation smoothness of the intelligent terminal is improved, and the use experience of the user is increased.
Example two
Fig. 6 is a flowchart illustrating an implementation of a map annotation information displaying method according to a second embodiment of the present invention, and for convenience of description, only a part related to the present invention is shown.
Step S101 includes step S601 and step S602.
In step S601, the coordinates of the information cache reference point are determined according to the map annotation information viewing request of the user.
In the embodiment of the present invention, the cache reference point refers to a point located when the cache map annotation information is viewed.
When a user drags or slides the electronic map through the display interface, a comparison point is preset on the display interface, and after the dragging or sliding operation is finished, a point on the electronic map, which is overlapped with the comparison point, is used as an information cache reference point. By way of example, when a user caches map annotation information through a 200 × 600 display interface, a midpoint (100,300) of the display interface is used as a comparison point, and when a point where the comparison point (100,300) is overlapped in the electronic map after the user drags or slides the electronic map is a point B, the point B is an information cache reference point.
In step S602, according to a preset first rule, a map annotation information cache region corresponding to the coordinates of the information display reference point is determined.
In the embodiment of the present invention, the preset first rule may be that a core block is used as a center, a certain number of blocks are extended to the periphery to serve as cache blocks, and the core block and the cache blocks serve as cache areas for map labeling information. In the embodiment of the present invention, the number of the blocks expanded to the periphery may be 1 block, 5 blocks, or 10 blocks, and the like, which is not limited specifically, and may be selected according to the size of the map.
As an optimized embodiment of the present invention, step S701 and step S702 are further included in step S602, as shown in fig. 7.
In step S701, a block where the information display reference point is located is determined according to the coordinates of the information display reference point.
In step S702, a block where the information display reference point is located and a block around the block where the information display reference point is located, which satisfies a preset first map annotation information cache area expansion condition, are determined as a map annotation information cache area.
In the embodiment of the present invention, after determining the coordinates of the information cache reference point, a block corresponding to the reference point in the electronic map may be determined according to the coordinates of the reference point, where the block is a core block of the cache area.
In practical applications, as shown in fig. 8, the coordinate of the reference point of the information cache is determined as E according to the request for viewing the map annotation information of the user, and it can be determined that the block corresponding to the reference point in the electronic map is the number E, the block corresponding to the reference point is the number E, and the blocks 1 to 8 are the cache areas of the map annotation information.
In the embodiment of the invention, the coordinates of the information caching reference point are determined, and the map labeling information caching area corresponding to the coordinates of the information display reference point is determined according to the preset first rule, so that the map labeling information can be cached around the designated positioning point as the center, and the accuracy of the map labeling information is improved.
EXAMPLE III
Fig. 9 is a flowchart illustrating an implementation of a map annotation information displaying method according to a third embodiment of the present invention, and for convenience of description, only a part related to the present invention is shown.
Step S201 includes step S901 and step S902.
In step S901, a map area displayed in the information display window is determined according to a map annotation information viewing request of a user.
In the embodiment of the invention, the information display window refers to a display screen of the terminal.
In the embodiment of the invention, the displayed map area refers to an area corresponding to the electronic map according to the size of the screen of the user terminal.
The map area in the screen display area can be determined by determining the longitude and latitude of two points at the left lower part and the right upper part of the screen of the user terminal on the map. As an example, when the user views the map annotation information through the 200 × 600 terminal screen, the longitude and latitude of the two points at the bottom left and top right of the terminal screen of the user on the map are (100 ) and (300,700), respectively, and then the area enclosed by the longitude 100 to 300 and the latitude 100 to 700 in the electronic map is the map area displayed in the information display window.
In step S902, a map annotation information cache region corresponding to the map region displayed in the information display window is determined according to a preset second rule.
In the embodiment of the present invention, the preset second rule may be that a map area displayed in the display window is used as a center, a certain number of extension blocks are extended to the periphery, and a block corresponding to the map area and the extension blocks form a cache area of the map annotation information. In the embodiment of the present invention, the number of the blocks expanded to the periphery may be 1 block, 5 blocks, or 10 blocks, and the like, which is not limited specifically, and may be selected according to the size of the map.
As another preferred embodiment of the present invention, step S902 further includes step S1001 and step S1002, as shown in fig. 10.
In step S1001, according to the map area displayed in the information display window, a cache block corresponding to the map area displayed in the information display window is determined.
In step S1002, a cache block corresponding to the map area displayed in the information display window and a block around the cache block corresponding to the map area displayed in the information display window, which satisfies a preset second map annotation information cache area expansion condition, are determined as a map annotation information cache area.
In the embodiment of the present invention, after the map area displayed in the information display window is determined, the block corresponding to the map area in the electronic map may be determined through the map area.
In practical applications, as shown in fig. 11, it is determined that the map area displayed in the information display window is an F area surrounded by 64 ° to 66 ° longitude and 24 ° to 27 ° latitude according to the map annotation information viewing request of the user, and a block is extended from the F area to the periphery as a buffer area according to a preset second rule, in the embodiment of the present invention, the area extended to the periphery is surrounded by 63 ° to 67 ° longitude and 23 ° to 28 ° latitude, and the area surrounded by 63 ° to 67 ° longitude and 23 ° to 28 ° latitude is a buffer area of the map annotation information.
In the embodiment of the invention, the map area displayed in the information display window is determined, and the map marking information cache area corresponding to the map area displayed in the information display window is determined according to the preset second rule, so that a user can acquire the map marking information area which can be displayed by the intelligent terminal through the intelligent terminal, and simultaneously can prestore the map marking information which is not the map marking information area which can be displayed by the intelligent terminal, so that the map marking information can be used by the user, the service level of a product is increased, and the use experience of the user is improved.
Example four
In the embodiment of the present invention, step S101 specifically further includes:
and when judging that the map marking information corresponding to the map marking information cache block is cached in the terminal and the time for caching the map marking information corresponding to the map marking information cache block is less than a preset threshold value, displaying the cached map marking information to a user.
In the embodiment of the present invention, the preset threshold refers to a duration of the map annotation information cache, and the preset threshold may be 1 minute, 5 minutes, and the like, and is not particularly limited, and may be selected according to an actual situation.
In the embodiment of the invention, the condition that the information is asymmetric due to the fact that the cache data is not updated for a long time is avoided by determining that the time for caching the map annotation information corresponding to the map annotation information cache block is less than the preset threshold value, and the timeliness of the cached map annotation information in the terminal is ensured, so that the accuracy of the map annotation information is ensured, and the service level and the competitiveness of the product are improved.
EXAMPLE five
Fig. 12 is a schematic structural diagram of a map marking information display apparatus according to a fifth embodiment of the present invention, and for convenience of description, only the parts related to the present invention are shown.
The cache region determining unit 1210 is configured to determine a map annotation information cache region according to a map annotation information viewing request of a user, where the map annotation information cache region includes at least one map annotation information cache block.
In the embodiment of the present invention, the map annotation information refers to application data displayed on a map, and the map annotation information may be information such as a position of a parking lot on the map, a name of the parking lot, and an empty parking space of the parking lot, which are applied to the parking client, or a position of a shared vehicle on the map, model information of the shared vehicle, and charging standard information, which are applied to the shared vehicle client.
It should be understood by those skilled in the art that the map marking information should be viewed based on a certain target position or a certain target area as an object to acquire the data information.
In the embodiment of the present invention, the area refers to a range in which a user needs to view map annotation information in an electronic map, for example, the area may be a circle formed by taking a certain coordinate in the electronic map as a center and taking a radius of 50 meters, or a rectangle formed by taking a certain coordinate in the electronic map as a center and taking a length and a width of 50 meters respectively, and the like.
In the embodiment of the invention, the block refers to the minimum unit of the map labeling information cache region, is generated according to the minimum unit of the longitude coordinate and the minimum unit of the latitude coordinate, and the map is formed by the blocks, so that the map can be divided according to the block, the complexity of the region range is simplified, the calculation of map data which does not need to be cached repeatedly is further simplified, and the operation burden of a mobile phone is reduced.
It should be understood by those skilled in the art that, in the embodiment of the present invention, both the longitude coordinate minimum unit and the latitude coordinate minimum unit of the generated block may be selected according to actual situations to adapt to electronic maps in different environments and different architectures, which is not limited specifically.
In the embodiment of the invention, the map annotation information viewing request can be input by a user through dragging, sliding operation or manual input of the electronic map.
As an example, fig. 2 shows a schematic block diagram provided by an implementation of the present invention, in the world map of fig. 2, the longitude coordinate minimum unit and the latitude coordinate minimum unit of the generated block are both set to be 1 °, so that the block size of the world map is shown as block a, the world map is composed of 360 × 180 blocks, and it should be understood that the blocks are illustrated here only for convenience of understanding and do not have any limiting meaning.
The first map annotation information displaying unit 1220 is configured to display the cached map annotation information to a user when it is determined that the map annotation information corresponding to the map annotation information cache block is cached at the terminal.
In practical application, as shown in fig. 3, the target position is currently located at B, blocks 1 to 9 are cached based on the target current position B, and when the target position moves to B ', blocks 1 to 9 are required to be cached based on the target position B ', at this time, since the blocks 1 to 9 are cached at the terminal, re-caching is not required for the target position B ', and the map label information of the cached blocks 1 to 9 is displayed to the user.
And the second map annotation information display unit 1230 is configured to, when it is determined that the map annotation information of the map annotation information cache block is not cached in the terminal, obtain the map annotation information corresponding to the map annotation information cache block, and display the map annotation information to the user.
In the embodiment of the invention, the acquired map labeling information can be stored in the terminal, so that a user can judge whether the map labeling information is cached in the terminal when viewing the map labeling information.
In practical application, as shown in fig. 4, the target position is currently located at C, the block 4 is cached based on the target current position C, when the target position moves to C ', the block 1 needs to be cached based on the target position C', at this time, since the block 1 does not have a cache at the terminal, the target position C 'needs to be cached again, and the map marking information of the block 1 corresponding to the target position C' is obtained and displayed to the user.
Optionally, in another practical application of the present invention, as shown in fig. 5, the target location is currently located at D, the block 5, the block 6, the block 8 and the block 9 are cached based on the target current location D, when the target location moves to D ', the block 1, the block 2, the block 4 and the block 5 need to be cached based on the target location D', at this time, since the block 5 is cached at the terminal, the block 5 does not need to be cached again; and block 1, block 2 and block 4 are not cached in the terminal, re-caching is required for block 1, block 2 and block 4, and the map label information of the re-cached block 1, block 2, block 4 and cached block 5 is shown to the user.
In the embodiment of the invention, the map annotation information cache region is determined according to the map annotation information viewing request of a user, the map annotation information cache region comprises at least one map annotation information cache block, and the cache region is formed by replacing each position coordinate with the block, so that when the user acquires the map information, the position coordinate is not needed to be used as a basic unit to describe the region range, the complexity of the region range is simplified, the calculation of the map data which does not need to be cached repeatedly is simplified, and the operation burden of the mobile phone is reduced; when the map labeling information corresponding to the map labeling information cache block is judged to be cached in the terminal, the cached map labeling information is displayed to a user; when judging that the map labeling information of the map labeling information cache block does not have cache in the terminal, acquiring the map labeling information corresponding to the map labeling information cache block, and displaying the map labeling information to a user to realize searching and storing of target position information, so that when the user searches and stores the target position information by using an electronic map function, the intelligent terminal is reduced from acquiring unnecessary cache data, the operation burden of the intelligent terminal is reduced, the operation smoothness of the intelligent terminal is improved, and the use experience of the user is increased.
EXAMPLE six
Fig. 13 is a schematic structural diagram of a map marking information display apparatus according to a sixth embodiment of the present invention, and for convenience of description, only the parts related to the present invention are shown.
The buffer area determining unit 1210 includes a coordinate determining subunit 1310 and a first buffer area determining subunit 1320.
The coordinate determination subunit 1310 is configured to determine coordinates of the information cache reference point according to the map annotation information viewing request of the user.
In the embodiment of the present invention, the cache reference point refers to a point located when the cache map annotation information is viewed.
When a user drags or slides the electronic map through the display interface, a comparison point is preset on the display interface, and after the dragging or sliding operation is finished, a point on the electronic map, which is overlapped with the comparison point, is used as an information cache reference point. By way of example, when a user caches map annotation information through a 200 × 600 display interface, a midpoint (100,300) of the display interface is used as a comparison point, and when a point where the comparison point (100,300) is overlapped in the electronic map after the user drags or slides the electronic map is a point B, the point B is an information cache reference point.
A first buffer area determining subunit 1320, configured to determine, according to a preset first rule, a map annotation information buffer area corresponding to the coordinate of the information display reference point.
In the embodiment of the present invention, the preset first rule may be that a core block is used as a center, a certain number of blocks are extended to the periphery to serve as a cache block, and the core block and the cache block serve as a cache area of the map annotation information. In the embodiment of the present invention, the number of the blocks expanded to the periphery may be 1 block, 5 blocks, or 10 blocks, and the like, which is not limited specifically, and may be selected according to the size of the map.
As an advantageous embodiment of the present invention, the first buffer area determining subunit 1320 further includes a block determining subunit 1321 and a third buffer area determining subunit 1322, as shown in fig. 14.
The block determining subunit 1321 is configured to determine, according to the coordinates of the information display reference point, a block where the information display reference point is located.
A third cache region determining subunit 1322 is configured to determine, as a map annotation information cache region, a block where the information display reference point is located and a block around the block where the information display reference point is located that meets a preset first map annotation information cache region expansion condition.
In the embodiment of the present invention, after the coordinates of the information cache reference point are determined, the block corresponding to the reference point in the electronic map may be determined according to the coordinates of the reference point, where the block is a core block of the cache area.
In practical application, as shown in fig. 8, the coordinate of the information cache reference point is determined as E according to the map annotation information viewing request of the user, and the reference point E can determine that the block corresponding to the reference point in the electronic map is the number E, the block corresponding to the test point is the number E, and the blocks 1 to 8 are the cache area of the map annotation information.
In the embodiment of the invention, the coordinates of the information caching reference point are determined, and the map labeling information caching area corresponding to the coordinates of the information display reference point is determined according to the preset first rule, so that the map labeling information can be cached around the designated positioning point as the center, and the accuracy of the map labeling information is improved.
EXAMPLE seven
Fig. 15 is a schematic structural diagram of a map annotation information presentation device according to a seventh embodiment of the present invention, and for convenience of description, only the parts related to the present invention are shown.
The map region determination sub-unit 1510 and the second buffer region determination sub-unit 1520 are included in the buffer region determination unit 1210.
The map area determining subunit 1510 is configured to determine, according to the map annotation information viewing request of the user, a map area displayed in the information display window.
In the embodiment of the present invention, the information presentation window refers to a presentation screen of the terminal.
In the embodiment of the invention, the displayed map area refers to an area corresponding to the electronic map according to the size of the screen of the user terminal.
The map area in the screen display area can be determined by determining the longitude and latitude of two points at the left lower part and the right upper part of the screen of the user terminal on the map. As an example, when the user views the map annotation information through the 200 × 600 terminal screen, the longitude and latitude of the two points at the bottom left and top right of the terminal screen of the user on the map are (100 ) and (300,700), respectively, and then the area enclosed by the longitude 100 to 300 and the latitude 100 to 700 in the electronic map is the map area displayed in the information display window.
The second cache region determining subunit 1520 is configured to determine, according to a preset second rule, a map annotation information cache region corresponding to the map region displayed in the information display window.
In the embodiment of the present invention, the preset second rule may be that a map area displayed in the display window is used as a center, a certain number of extension blocks are extended to the periphery, and a block corresponding to the map area and the extension blocks form a cache area of the map annotation information. In the embodiment of the present invention, the number of the blocks expanded to the periphery may be 1 block, 5 blocks, or 10 blocks, and the like, which is not limited specifically, and may be selected according to the size of the map.
As another preferred embodiment of the present invention, the second buffer area determining subunit 1520 further includes a buffer block determining subunit 1521 and a fourth buffer area determining subunit 1522, as shown in fig. 16.
The buffer block determination subunit 1521 is configured to determine, according to the map area displayed in the information display window, a buffer block corresponding to the map area displayed in the information display window.
A fourth cache region determining subunit 1522, configured to determine, as a map annotation information cache region, a cache region corresponding to the map region displayed in the information display window and a region around the cache region corresponding to the map region displayed in the information display window, where the expansion condition of the second map annotation information cache region is met, as a preset second map annotation information cache region.
In the embodiment of the present invention, after the map area displayed in the information display window is determined, the block corresponding to the map area in the electronic map may be determined through the map area.
In practical application, as shown in fig. 11, it is determined that the map area displayed in the information display window is an F area surrounded by 64 ° to 66 ° longitude and 24 ° to 27 ° latitude according to the request for viewing the map annotation information of the user, and according to a preset second rule, the F area is extended by one block to four sides as a buffer area, then in the embodiment of the present invention, the area extended to four sides is surrounded by 63 ° to 67 ° longitude and 23 ° to 28 ° latitude, and the area surrounded by 63 ° to 67 ° longitude and 23 ° to 28 ° latitude is the buffer area of the map annotation information.
In the embodiment of the invention, the map area displayed in the information display window is determined, and the map marking information cache area corresponding to the map area displayed in the information display window is determined according to the preset second rule, so that a user can acquire the map marking information area which can be displayed by the intelligent terminal through the intelligent terminal, and simultaneously can prestore the map marking information which is not the map marking information area which can be displayed by the intelligent terminal, so that the map marking information can be used by the user, the service level of a product is increased, and the use experience of the user is improved.
Example eight
In the first map annotation information presentation unit 1220, there are included:
and the first map annotation information display subunit is used for displaying the cached map annotation information to a user when judging that the map annotation information corresponding to the map annotation information caching block is cached in the terminal and the time for caching the map annotation information corresponding to the map annotation information caching block is less than a preset threshold value.
In the embodiment of the present invention, the preset threshold refers to a duration of the map annotation information cache, and the preset threshold may be 1 minute, 5 minutes, and the like, and is not particularly limited, and may be selected according to an actual situation.
In the embodiment of the invention, the condition that the information is asymmetric due to the fact that the cache data is not updated for a long time is avoided by determining that the time for caching the map annotation information corresponding to the map annotation information cache block is less than the preset threshold value, and the timeliness of the cached map annotation information in the terminal is ensured, so that the accuracy of the map annotation information is ensured, and the service level and the competitiveness of the product are improved.
An embodiment of the present invention provides a user terminal, where the user terminal includes: a processor, a memory, and a computer program, such as an alarm clock reminder, stored in the memory and executable on the processor. The processor, when executing the computer program, implements the functions of the above embodiments of the map annotation information presentation apparatus, such as the functions of the map annotation information presentation apparatus shown in fig. 7.
Illustratively, a computer program can be partitioned into one or more modules, which are stored in memory and executed by a processor to implement the present invention. One or more of the modules may be a series of computer program instruction segments capable of performing certain functions, the instruction segments being used to describe the execution of the computer program in the user terminal. For example, the computer program may be divided into various modules as shown in fig. 7.
Those skilled in the art will appreciate that the above description of a user terminal is by way of example only and is not intended to be limiting of user terminals and may include more or less components than those described above, or some of the components may be combined, or different components may be included, such as input output devices, network access devices, buses, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, which is the control center of the subscriber terminal and connects the various parts of the entire subscriber terminal using various interfaces and lines.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the user terminal by executing or executing the computer programs and/or modules stored in the memory and calling data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The user terminal integrated module/unit, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method according to the above embodiments may be implemented by a computer program, which may be stored in a readable storage medium and used by a processor to implement the steps of the above embodiments of the method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like.
The above description is intended to be illustrative of the preferred embodiment of the present invention and should not be taken as limiting the invention, but rather, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the invention.

Claims (8)

1. A method for displaying map annotation information is applied to a terminal, and is characterized by comprising the following steps:
determining a map marking information cache region according to a map marking information viewing request of a user, wherein the map marking information cache region comprises at least one map marking information cache block;
when the map labeling information corresponding to the map labeling information cache block is judged to be cached in the terminal, the cached map labeling information is displayed to a user;
when judging that the map labeling information of the map labeling information cache block is not cached in the terminal, acquiring the map labeling information corresponding to the map labeling information cache block, and displaying the map labeling information to a user;
the determining a map annotation information cache area according to a map annotation information viewing request of a user includes:
determining the coordinates of an information cache reference point according to a map marking information viewing request of a user; when a user drags or slides a map through a display interface, presetting a comparison point on the display interface, and after the dragging or sliding operation is finished, taking a point on the map, which is coincident with the comparison point, as an information cache reference point;
determining a map marking information cache region corresponding to the coordinates of the information display reference point according to a preset first rule;
the determining, according to a preset first rule, a map annotation information cache region corresponding to the coordinates of the information display reference point includes:
determining a block where the information display reference point is located according to the coordinates of the information display reference point;
determining a block where the information display reference point is located and a block which meets a preset first map labeling information cache region expansion condition around the block where the information display reference point is located as a map labeling information cache region;
when judging that the map labeling information corresponding to the map labeling information cache block is cached in the terminal, the method for displaying the cached map labeling information to the user comprises the following steps:
and when judging that the map marking information corresponding to the map marking information cache block is cached in the terminal and the time for caching the map marking information corresponding to the map marking information cache block is less than a preset threshold value, displaying the cached map marking information to a user.
2. The method for displaying the map labeling information of claim 1, wherein the determining the cache area of the map labeling information according to the request for viewing the map labeling information of the user comprises:
determining a map area displayed in an information display window according to a map marking information viewing request of a user;
and determining a map marking information cache region corresponding to the map region displayed in the information display window according to a preset second rule.
3. The method for displaying map annotation information according to claim 2, wherein the determining, according to a preset second rule, a map annotation information cache area corresponding to a map area displayed in the information display window includes:
determining a cache block corresponding to the map area displayed in the information display window according to the map area displayed in the information display window;
and determining a cache block corresponding to the map area displayed in the information display window and a block which meets the expansion condition of the preset second map annotation information cache area around the cache block corresponding to the map area displayed in the information display window as a map annotation information cache area.
4. A device for displaying map annotation information is applied to a terminal, and is characterized in that the device comprises:
the map annotation information cache device comprises a cache region determining unit, a map annotation information cache region determining unit and a map annotation information cache region determining unit, wherein the cache region determining unit is used for determining the map annotation information cache region according to a map annotation information viewing request of a user, and the map annotation information cache region comprises at least one map annotation information cache block;
the first map annotation information display unit is used for displaying the cached map annotation information to a user when judging that the map annotation information corresponding to the map annotation information cache block is cached in the terminal;
the second map annotation information display unit is used for acquiring the map annotation information corresponding to the map annotation information cache block and displaying the map annotation information to the user when judging that the map annotation information of the map annotation information cache block is not cached in the terminal;
wherein, the buffer area determining unit includes:
the coordinate determining subunit is used for determining the coordinate of the information cache reference point according to the map marking information viewing request of the user; when a user drags or slides a map through a display interface, presetting a comparison point on the display interface, and after the dragging or sliding operation is finished, taking a point on the map, which is coincident with the comparison point, as an information cache reference point;
the first cache region determining subunit is configured to determine, according to a preset first rule, a map annotation information cache region corresponding to the coordinates of the information display reference point;
the first cache region determination subunit includes:
the block determining subunit is used for determining a block where the information display reference point is located according to the coordinates of the information display reference point;
a third cache region determining subunit, configured to determine, as a map annotation information cache region, a block in which the information display reference point is located and a block around the block in which the information display reference point is located that meets a preset first map annotation information cache region expansion condition;
the first map marking information display unit comprises: and the first map annotation information display subunit is used for displaying the cached map annotation information to a user when judging that the map annotation information corresponding to the map annotation information caching block is cached in the terminal and the time for caching the map annotation information corresponding to the map annotation information caching block is less than a preset threshold value.
5. The map annotation information presentation device of claim 4, wherein the buffer area determination unit includes:
the map area determining subunit is used for determining the map area displayed in the information display window according to the map marking information viewing request of the user;
and the second cache region determining subunit is configured to determine, according to a preset second rule, a map annotation information cache region corresponding to the map region displayed in the information display window.
6. The apparatus as claimed in claim 5, wherein the second buffer area determination subunit comprises:
a cache block determination subunit, configured to determine, according to the map area displayed in the information display window, a cache block corresponding to the map area displayed in the information display window;
and the fourth cache area determining subunit is configured to determine, as the map annotation information cache area, a cache area corresponding to the map area displayed in the information display window and a block around the cache area corresponding to the map area displayed in the information display window, where the block meets a preset second map annotation information cache area expansion condition.
7. A terminal, characterized in that the terminal comprises a processor for implementing the steps of the method according to any one of claims 1-3 when executing a computer program stored in a memory.
8. A readable storage medium having stored thereon a computer program, characterized in that: the computer program realizing the steps of the method according to any one of claims 1-3 when executed by a processor.
CN201810017051.3A 2018-01-09 2018-01-09 Method and device for displaying map annotation information, terminal and readable storage medium Active CN108280154B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810017051.3A CN108280154B (en) 2018-01-09 2018-01-09 Method and device for displaying map annotation information, terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810017051.3A CN108280154B (en) 2018-01-09 2018-01-09 Method and device for displaying map annotation information, terminal and readable storage medium

Publications (2)

Publication Number Publication Date
CN108280154A CN108280154A (en) 2018-07-13
CN108280154B true CN108280154B (en) 2022-09-06

Family

ID=62803213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810017051.3A Active CN108280154B (en) 2018-01-09 2018-01-09 Method and device for displaying map annotation information, terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN108280154B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019136589A1 (en) * 2018-01-09 2019-07-18 深圳市小猫信息技术有限公司 Map label information display method and device, terminal, and readable storage medium
CN110807075B (en) * 2019-08-30 2022-10-25 腾讯科技(深圳)有限公司 Map data query method and device, computer equipment and storage medium
CN110909094A (en) * 2019-10-17 2020-03-24 苏宁云计算有限公司 Method, device and system for marking target block in map

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102222084A (en) * 2011-05-13 2011-10-19 北京百度网讯科技有限公司 Method and device for displaying retrieval result on map
CN102915503A (en) * 2011-08-01 2013-02-06 异奇网股份有限公司 Location-based service system and method
CN105025100A (en) * 2015-07-16 2015-11-04 山东慧行天下文化传媒有限公司 IOS system-based hand-drawn map intelligent guide and navigation system
CN105339931A (en) * 2013-02-08 2016-02-17 康特迈国际公司 Method and device for handling data containers

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1828586A (en) * 2005-12-21 2006-09-06 泰为信息科技(上海)有限公司 Computer electronic map formation and display method based on Flash technology
US20090244095A1 (en) * 2008-04-01 2009-10-01 Research In Motion Limited Run-time label cache for efficient map labeling
CN103425754B (en) * 2013-07-24 2016-06-08 浙江大学 Tile type Map Services buffer memory Real-time and Dynamic update method suitable in user's online editing
EP2869215A1 (en) * 2013-10-31 2015-05-06 Hewlett-Packard Development Company, L.P. Tile-based graphical exploration of collections of objects
CN104391868B (en) * 2014-10-28 2018-12-18 用友优普信息技术有限公司 The device and method of dynamic page static
US10482848B2 (en) * 2015-08-07 2019-11-19 International Business Machines Corporation Facile and precise georeferencing and overlaying of map tiles
CN106202447B (en) * 2016-07-15 2019-10-01 西安测绘研究所 A kind of digital cartography system having production and management integration

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102222084A (en) * 2011-05-13 2011-10-19 北京百度网讯科技有限公司 Method and device for displaying retrieval result on map
CN102915503A (en) * 2011-08-01 2013-02-06 异奇网股份有限公司 Location-based service system and method
CN105339931A (en) * 2013-02-08 2016-02-17 康特迈国际公司 Method and device for handling data containers
CN105025100A (en) * 2015-07-16 2015-11-04 山东慧行天下文化传媒有限公司 IOS system-based hand-drawn map intelligent guide and navigation system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
A Spatial Caching Framework for Map Operations in Geographical Information Systems;Marcos R. Vieira 等;《2012 IEEE 13th International Conference on Mobile Data Management》;20121112;89-98 *
基于地形图资料与GIS的民国江南城市人口估算;江伟涛;《中国经济史研究》;20150715(第4期);39-56 *
基于基站的用户定位***设计与实现;甄乾鹏;《中国优秀硕士学位论文全文数据库 (信息科技辑)》;20170215;I136-1042 *

Also Published As

Publication number Publication date
CN108280154A (en) 2018-07-13

Similar Documents

Publication Publication Date Title
CN110035180B (en) Card display method, device, terminal and storage medium
CN109977192B (en) Unmanned aerial vehicle tile map rapid loading method, system, equipment and storage medium
CN109192054B (en) Data processing method and device for map region merging
CN108280154B (en) Method and device for displaying map annotation information, terminal and readable storage medium
US20150185990A1 (en) Personalized viewports for interactive digital maps
CN103268730B (en) Electronic map interface shows the method and apparatus of association mark point
CN101008573A (en) Method for displaying map date matching the current position in mobile device
CN110276024B (en) Information display method and device
US10878598B2 (en) Aspect fit techniques
CN106500684B (en) Method and device for processing navigation path information
US20140071170A1 (en) Non-uniformly scaling a map for emphasizing areas of interest
JP2019016393A (en) System and method for disambiguating item selection
CN111258519B (en) Screen split implementation method, device, terminal and medium
CN110188782B (en) Image similarity determining method and device, electronic equipment and readable storage medium
CN115129278A (en) Image display control method, system, readable storage medium and electronic device
CN110487264B (en) Map correction method, map correction device, electronic equipment and storage medium
CN112699043A (en) Method and device for generating test case
CN110069604B (en) Text search method, text search device and computer-readable storage medium
CN109299416B (en) Webpage processing method and device, electronic equipment and storage medium
CN116644089A (en) Query statement generation method, device, equipment and storage medium
WO2019136589A1 (en) Map label information display method and device, terminal, and readable storage medium
CN111857915B (en) Application page display method and device
CN110660313A (en) Information presentation method and device
CN111192191B (en) Display method, device and readable storage medium
CN110399582B (en) Page display method and device

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