CN111221588A - Multi-classification asynchronous loading and duplicate removal method and device for map - Google Patents
Multi-classification asynchronous loading and duplicate removal method and device for map Download PDFInfo
- Publication number
- CN111221588A CN111221588A CN201911120201.4A CN201911120201A CN111221588A CN 111221588 A CN111221588 A CN 111221588A CN 201911120201 A CN201911120201 A CN 201911120201A CN 111221588 A CN111221588 A CN 111221588A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- map
- memory
- data
- classification
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 230000008520 organization Effects 0.000 claims abstract description 10
- 238000013500 data storage Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 3
- 230000000694 effects Effects 0.000 abstract description 6
- 230000008569 process Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000003153 chemical reaction reagent Substances 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 239000003208 petroleum Substances 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Remote Sensing (AREA)
- Data Mining & Analysis (AREA)
- Instructional Devices (AREA)
Abstract
The invention discloses a multi-classification asynchronous loading and duplicate removal method for a map, which comprises the following steps: step one, an organization request corresponding to a map moving or zooming instruction sent by a user through a mobile terminal is disassembled into single requests of a plurality of minimum units; step two, comparing the single request of the minimum unit stored in the memory of the mobile terminal with the single request of the minimum unit of the current instruction, reserving intersection data in the memory of the mobile terminal, deleting difference data between the result of the current instruction and the result of the mobile terminal, and storing the result of the current instruction and the difference data of the memory of the mobile terminal in the memory of the mobile terminal; and step three, updating the label points displayed by the map of the mobile terminal according to the data stored in the memory of the mobile terminal. The invention also discloses a multi-classification asynchronous loading and de-weighting device for the map, electronic equipment and a storage medium. The method and the device can enable the first screen content on the map to be loaded and presented more quickly and weaken the abrupt effect of content presentation.
Description
Technical Field
The invention relates to mobile terminal program algorithm design. More particularly, the invention relates to a method and a device for multi-classification asynchronous loading and de-duplication of a map.
Background
In an application architecture of a mobile terminal, in order to load contents on a map faster, query pressure of a server needs to be reduced, and response efficiency of the service needs to be increased. In order to enable faster loading of the first screen data presented by the map to the user, data in a large category needs to be split into identifiable single data requests, such as: the food can be subdivided into eight major cuisine or distinguished according to the content of the food, such as a face point, a hot pot and the like, so as to reduce the data range to increase the response speed of the service, when a user moves or zooms a map, because the operation is frequent, the loading speed of a marking point on the map is limited by the running speed, the loading is slow, and the same marking point may exist in different operation instructions at the same time, so that the marking point can present a sharp effect such as display-disappearance-display.
Disclosure of Invention
An object of the present invention is to solve at least the above problems and to provide at least the advantages described later.
It is still another object of the present invention to provide a method and an apparatus for multi-category asynchronous loading and de-duplication of a map, which can enable faster loading presentation of the first screen content on the map and weaken the obtrusive effect of content presentation.
To achieve these objects and other advantages in accordance with the purpose of the invention, there is provided a map multi-classification asynchronous loading and deduplication method, comprising:
step one, an organization request corresponding to a map moving or zooming instruction sent by a user through a mobile terminal is disassembled into single requests of a plurality of minimum units;
step two, comparing the single request of the minimum unit stored in the memory of the mobile terminal with the single request of the minimum unit of the current instruction, reserving intersection data in the memory of the mobile terminal, deleting difference data between the result of the current instruction and the result of the mobile terminal, and storing the result of the current instruction and the difference data of the memory of the mobile terminal in the memory of the mobile terminal;
and step three, updating the label points displayed by the map of the mobile terminal according to the data stored in the memory of the mobile terminal.
Preferably, in the second step, the single request of the minimum unit stored in the memory of the mobile terminal is a single request of splitting an organization request corresponding to a command for moving or zooming a map, which is sent by the user through the mobile terminal last time, into a plurality of minimum units.
Preferably, the disassembly is performed according to the traffic classification or time-consuming of the instructions.
Preferably, the single request of the minimum unit is stored in the mobile terminal memory according to the service classification.
Preferably, the specific disassembling mode is as follows: the method comprises the steps of dividing according to the type of requested service, distributing a unique identifier to each service, regarding the classification corresponding to the identifier as a minimum request unit, if the corresponding request under the identifier takes longer time, enabling a service end to carry out optimized disassembly on the classified service by utilizing an analysis result, continuously distributing the unique identifier to the disassembled sub-services, and so on, so as to achieve the request standard of the minimum unit.
The asynchronous loading of map multi-classification and device of removing duplications includes:
the data disassembling module is used for disassembling an organization request corresponding to a map moving or zooming instruction sent by a user through a mobile terminal into a single request of a plurality of minimum units;
a data storage module storing a single request for a plurality of minimum units;
the data comparison module is used for comparing the single request of the minimum unit stored in the data storage module with the single request of the minimum unit of the current instruction, reserving intersection data in a memory of a mobile terminal, deleting difference data between the result of the current instruction and the result of the mobile terminal, and storing the result of the current instruction and the difference data of the data storage module in the data storage module;
and the data display module updates the annotation points displayed by the map at the mobile terminal according to the data stored by the data storage module.
An electronic device, comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method.
A storage medium having stored thereon a computer program which, when executed by a processor, implements the method.
The invention at least comprises the following beneficial effects:
the invention mainly aims at the content classification asynchronous acquisition and duplicate removal presentation of the map on the client. The basic unit of control is a single data request, presentation to result; a plurality of single requests are combined together to form a multi-classification asynchronous request scheme, so that the first screen content on the map can be loaded and presented more quickly, and the abrupt effect of content presentation is weakened.
Additional advantages, objects, and features of the invention will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the invention.
Drawings
FIG. 1 is a schematic representation of the steps of the process of the present invention;
FIG. 2 is a schematic diagram of the architecture of the process of the present invention.
Detailed Description
The present invention is further described in detail below with reference to the attached drawings so that those skilled in the art can implement the invention by referring to the description text.
It will be understood that terms such as "having," "including," and "comprising," as used herein, do not preclude the presence or addition of one or more other elements or groups thereof.
It is to be noted that the experimental methods described in the following embodiments are all conventional methods unless otherwise specified, and the reagents and materials are commercially available unless otherwise specified.
As shown in fig. 1-2, the present invention provides a map multi-classification asynchronous loading and deduplication method, which includes:
step one, a mobile terminal and a server interact to carry out instruction analysis through an instruction of moving or zooming a map sent by a user through the mobile terminal, a corresponding organization request is disassembled into a plurality of single requests of minimum units, the disassembly can be carried out according to the same type of data, the disassembly mode is large and small, the disassembly mode is one in small, the single request of the minimum unit refers to services which cannot be continuously divided, for example, the classification of a gas station is inquired, the gas station can be divided into a country and a private, and then the division can be carried out according to brands, such as medium petroleum, medium sea oil and the like;
step two, the memory of the mobile terminal stores the single request results of a plurality of minimum units, if the first instruction of the APP is loaded for the first time by the user, the data stored in the memory of the mobile terminal is empty, if the second instruction of the APP is loaded for the user, the data stored in the memory of the mobile terminal is the request results of all the minimum units corresponding to the last instruction, if the first or second instruction of the APP is not loaded for the first time by the user, the data stored in the memory of the mobile terminal is a data set of a plurality of minimum units obtained by deleting and complementing the single request results of a plurality of minimum units corresponding to the last instruction or a plurality of instructions (the processing of the step two), the single request of the minimum unit corresponding to the current instruction of the user forms another set, the two sets are compared, for the memory of the mobile terminal, the single request stored in the memory of the mobile terminal and the same type of minimum units in the current instruction are compared, deleting the data in the memory, which does not have the single request result, reserving the data of the request result of the minimum unit intersected with the instruction, comparing the request result of the remaining minimum unit with the data in the memory of the mobile terminal, and storing the data which is not in the memory of the mobile terminal to form a new data set;
and step three, updating the label points displayed by the map of the mobile terminal according to the data stored in the memory of the mobile terminal.
In the technical scheme, the content classification of the map on the client side is mainly subjected to asynchronous acquisition and duplicate removal presentation. The basic unit of control is a single data request, presentation to result; a plurality of single requests are combined together to form a multi-classification asynchronous request scheme, so that the first screen content on the map can be loaded and presented more quickly, and the abrupt effect of content presentation is weakened. Taking a gas station as an example, a gas station A, B, C is displayed in a current map, A, B, C is cached in a memory at the same time, a user moves or zooms the map to form a secondary request for updating the gas station, the request result contains B, C, F, G points, at the moment, two comparisons are needed, in the first step, A, B, C cached in the memory is compared with B, C, F, G in the request result, and after the comparison is completed, the cache in the memory is updated to B, C; and comparing the request result with the updated cache data, updating the cache in the memory to B, C, F, G after the request result is completed, and finally displaying B, C, F, G on the map, wherein the map cannot reload B, C points since the B, C points are displayed on the map from the beginning, so that the display-deletion-redisplay process of the map data is solved.
In another technical solution, in the second step, the single request of the minimum unit stored in the memory of the mobile terminal is a single request of splitting an organization request corresponding to a command for moving or zooming a map, which is sent by the user through the mobile terminal last time, into a plurality of minimum units. Only comparing the data of two adjacent instructions can reduce the occupation of the memory, reduce the comparison times and load the data quickly.
In another technical scheme, the disassembly is carried out according to the service classification of the instruction or the consumed time. And the service function singleness and logic simplicity can be ensured according to the business classification disassembly. The time-consuming service is disassembled, so that the requests with small time consumption can be preferentially displayed in the plurality of disassembled requests, and the effect of overlong waiting time is avoided.
In another technical scheme, the single request of the minimum unit is stored in the memory of the mobile terminal according to the service classification. The situation that when a new request is initiated each time, the classification needs to be repeatedly acquired from the server is avoided, and the situation that the map has no data due to the fact that the server classification interface is failed to acquire is avoided.
In another technical scheme, the specific disassembling mode is as follows: the method comprises the steps of dividing according to the type of requested service, distributing a unique identifier to each service, regarding the classification corresponding to the identifier as a minimum request unit, if the corresponding request under the identifier takes longer time, enabling a service end to carry out optimized disassembly on the classified service by utilizing an analysis result, continuously distributing the unique identifier to the disassembled sub-services, and so on, so as to achieve the request standard of the minimum unit. The method is self-determined according to different services, and can be used for dividing the major classes into minor classes, splitting the time-consuming services and splitting the time-consuming services into parts with small time consumption and large time consumption. The service classification includes: parts and links of a clothed walking, etc., such as gas stations or hospitals, etc., as mentioned herein, such as dividing hospitals into different levels.
The asynchronous loading of map multi-classification and device of removing duplications includes:
the data disassembling module is used for disassembling an organization request corresponding to a map moving or zooming instruction sent by a user through a mobile terminal into a single request of a plurality of minimum units;
a data storage module storing a single request for a plurality of minimum units;
the data comparison module is used for comparing the single request of the minimum unit stored in the data storage module with the single request of the minimum unit of the current instruction, reserving intersection data in a memory of a mobile terminal, deleting difference data between the result of the current instruction and the result of the mobile terminal, and storing the result of the current instruction and the difference data of the data storage module in the data storage module;
and the data display module updates the annotation points displayed by the map at the mobile terminal according to the data stored by the data storage module.
An electronic device, comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method.
A storage medium having stored thereon a computer program which, when executed by a processor, implements the method.
The number of apparatuses and the scale of the process described herein are intended to simplify the description of the present invention. Applications, modifications and variations of the present invention will be apparent to those skilled in the art.
While embodiments of the invention have been described above, it is not limited to the applications set forth in the description and the embodiments, which are fully applicable in various fields of endeavor to which the invention pertains, and further modifications may readily be made by those skilled in the art, it being understood that the invention is not limited to the details shown and described herein without departing from the general concept defined by the appended claims and their equivalents.
Claims (8)
1. The map multi-classification asynchronous loading and duplicate removal method is characterized by comprising the following steps:
step one, an organization request corresponding to a map moving or zooming instruction sent by a user through a mobile terminal is disassembled into single requests of a plurality of minimum units;
step two, comparing the single request of the minimum unit stored in the memory of the mobile terminal with the single request of the minimum unit of the current instruction, reserving intersection data in the memory of the mobile terminal, deleting difference data between the result of the current instruction and the result of the mobile terminal, and storing the result of the current instruction and the difference data of the memory of the mobile terminal in the memory of the mobile terminal;
and step three, updating the label points displayed by the map of the mobile terminal according to the data stored in the memory of the mobile terminal.
2. The map multi-classification asynchronous loading and de-duplication method of claim 1, wherein in step two, the single request of the minimum unit stored in the memory of the mobile terminal is a single request of the minimum units disassembled from the organization request corresponding to the instruction of moving or zooming the map sent by the mobile terminal last time.
3. The map multi-classification asynchronous loading and deduplication method of claim 1, wherein the disassembly is performed according to a business classification or a time consumption of the instruction.
4. The map multi-classification asynchronous loading and de-duplication method of claim 3 wherein the smallest unit of the single request is stored in the mobile-side memory according to the service classification.
5. The map multi-classification asynchronous loading and de-duplication method of claim 4, wherein the specific way of disassembly is: the method comprises the steps of dividing according to the type of requested service, distributing a unique identifier to each service, regarding the classification corresponding to the identifier as a minimum request unit, if the corresponding request under the identifier takes longer time, enabling a service end to carry out optimized disassembly on the classified service by utilizing an analysis result, continuously distributing the unique identifier to the disassembled sub-services, and so on, so as to achieve the request standard of the minimum unit.
6. The asynchronous loading of map multi-classification and device that removes the duplications, its characterized in that includes:
the data disassembling module is used for disassembling an organization request corresponding to a map moving or zooming instruction sent by a user through a mobile terminal into a single request of a plurality of minimum units;
a data storage module storing a single request for a plurality of minimum units;
the data comparison module is used for comparing the single request of the minimum unit stored in the data storage module with the single request of the minimum unit of the current instruction, reserving intersection data in a memory of a mobile terminal, deleting difference data between the result of the current instruction and the result of the mobile terminal, and storing the result of the current instruction and the difference data of the data storage module in the data storage module;
and the data display module updates the annotation points displayed by the map at the mobile terminal according to the data stored by the data storage module.
7. An electronic device, comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method of any of claims 1-5.
8. Storage medium on which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911120201.4A CN111221588A (en) | 2019-11-15 | 2019-11-15 | Multi-classification asynchronous loading and duplicate removal method and device for map |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911120201.4A CN111221588A (en) | 2019-11-15 | 2019-11-15 | Multi-classification asynchronous loading and duplicate removal method and device for map |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111221588A true CN111221588A (en) | 2020-06-02 |
Family
ID=70827682
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911120201.4A Pending CN111221588A (en) | 2019-11-15 | 2019-11-15 | Multi-classification asynchronous loading and duplicate removal method and device for map |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111221588A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102426596A (en) * | 2011-11-03 | 2012-04-25 | 北京地拓科技发展有限公司 | Map loading method and device |
CN105574019A (en) * | 2014-10-14 | 2016-05-11 | 高德软件有限公司 | Query parameter processing method and device |
CN105607927A (en) * | 2015-12-18 | 2016-05-25 | 小米科技有限责任公司 | Page display method and apparatus |
CN106971386A (en) * | 2016-01-14 | 2017-07-21 | 广州市动景计算机科技有限公司 | Judge method, device and the client device of image integrity degree and page loading degree |
CN107864173A (en) * | 2017-06-26 | 2018-03-30 | 平安普惠企业管理有限公司 | Terminal page caching method, system and readable storage medium storing program for executing |
CN108334555A (en) * | 2017-12-31 | 2018-07-27 | 广州都市圈网络科技有限公司 | Vector is changed the line map velocity optimization method, system, electronic equipment and storage medium |
CN108446066A (en) * | 2018-03-14 | 2018-08-24 | 杭州骑迹科技有限公司 | A kind of loading method and mobile terminal of map label |
-
2019
- 2019-11-15 CN CN201911120201.4A patent/CN111221588A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102426596A (en) * | 2011-11-03 | 2012-04-25 | 北京地拓科技发展有限公司 | Map loading method and device |
CN105574019A (en) * | 2014-10-14 | 2016-05-11 | 高德软件有限公司 | Query parameter processing method and device |
CN105607927A (en) * | 2015-12-18 | 2016-05-25 | 小米科技有限责任公司 | Page display method and apparatus |
CN106971386A (en) * | 2016-01-14 | 2017-07-21 | 广州市动景计算机科技有限公司 | Judge method, device and the client device of image integrity degree and page loading degree |
CN107864173A (en) * | 2017-06-26 | 2018-03-30 | 平安普惠企业管理有限公司 | Terminal page caching method, system and readable storage medium storing program for executing |
CN108334555A (en) * | 2017-12-31 | 2018-07-27 | 广州都市圈网络科技有限公司 | Vector is changed the line map velocity optimization method, system, electronic equipment and storage medium |
CN108446066A (en) * | 2018-03-14 | 2018-08-24 | 杭州骑迹科技有限公司 | A kind of loading method and mobile terminal of map label |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10719559B2 (en) | System for identifying, associating, searching and presenting documents based on time sequentialization | |
CN101860449A (en) | Data query method, device and system | |
US9607107B2 (en) | Information processing apparatus and information processing method | |
US9563695B2 (en) | Personalized electronic magazine | |
CN111523977B (en) | Method, device, computing equipment and medium for creating wave order set | |
CN103186622B (en) | The update method of index information and device in a kind of text retrieval system | |
CN107092652B (en) | Navigation method and device for target page | |
CN104391725A (en) | Page display method and page display device | |
CN103853802B (en) | Device and method for indexing digital content | |
US20200257762A1 (en) | Text classification and sentimentization with visualization | |
CN106970958A (en) | A kind of inquiry of stream file and storage method and device | |
CN107315753B (en) | Paging method and device across multiple databases | |
CN109815240A (en) | For managing method, apparatus, equipment and the storage medium of index | |
CN104765782A (en) | Index sequencing updating method and device | |
CN109739854A (en) | A kind of date storage method and device | |
CN111221588A (en) | Multi-classification asynchronous loading and duplicate removal method and device for map | |
CN111858581A (en) | Page query method and device, storage medium and electronic equipment | |
CN107480269B (en) | Object display method and system, medium and computing equipment | |
CN110008243A (en) | A kind of tables of data processing method and processing device | |
CN102799996A (en) | Network advertisement strategy matching method and system | |
CN112052330B (en) | Application keyword distribution method and device | |
CN114048847A (en) | Method, device and equipment for caching graph neural network data and storage medium | |
CN106528590A (en) | A query method and apparatus | |
CN107169845B (en) | Merchant attribute query method and device and server | |
CN112597760A (en) | Method and device for extracting domain words in document |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200602 |
|
RJ01 | Rejection of invention patent application after publication |