CN112559666B - Method and device for processing notes and electronic equipment - Google Patents

Method and device for processing notes and electronic equipment Download PDF

Info

Publication number
CN112559666B
CN112559666B CN202110188381.0A CN202110188381A CN112559666B CN 112559666 B CN112559666 B CN 112559666B CN 202110188381 A CN202110188381 A CN 202110188381A CN 112559666 B CN112559666 B CN 112559666B
Authority
CN
China
Prior art keywords
displayed
note
notes
batch
numbers
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
CN202110188381.0A
Other languages
Chinese (zh)
Other versions
CN112559666A (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.)
Zhidao Network Technology Beijing Co Ltd
Original Assignee
Zhidao Network Technology Beijing 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 Zhidao Network Technology Beijing Co Ltd filed Critical Zhidao Network Technology Beijing Co Ltd
Priority to CN202110188381.0A priority Critical patent/CN112559666B/en
Publication of CN112559666A publication Critical patent/CN112559666A/en
Application granted granted Critical
Publication of CN112559666B publication Critical patent/CN112559666B/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/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/26Visual data mining; Browsing structured data

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)
  • Remote Sensing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to a method and a device for processing notes and electronic equipment. The processing method comprises the following steps: acquiring a number corresponding to each note to be displayed; respectively determining a number batch corresponding to each number; each numbered batch comprises a plurality of numbers with preset quantity, and the numbers are different; sending each number contained in each number batch to a server; the server stores each serial number and corresponding notes in advance; and receiving the annotation corresponding to each number transmitted by the server. The processing method comprises the steps of simultaneously including the number of the to-be-displayed note and the number of the non-to-be-displayed note in each numbered batch, storing and displaying the to-be-displayed note after the client receives the note corresponding to each numbered batch, and pre-storing and displaying the non-to-be-displayed note when the note needs to be displayed, so that the number of times of requests of the client to the server is reduced, the processing load of the server is reduced, and the processing efficiency of the server is improved.

Description

Method and device for processing notes and electronic equipment
Technical Field
The present application relates to the field of navigation technologies, and in particular, to a method and an apparatus for processing a note, and an electronic device.
Background
The notations in the map include name notations which are notations for explaining various terrains and surface features having proprietary names, and the map without the name notations is very difficult to read. The name notes mainly comprise administrative region names of provinces, cities and counties, names of residents in towns, villages and the like, names of water systems of rivers, lakes and seas and the like, names of terrain units such as mountains, plateaus, plains, hills, basins and the like, traffic names of railways, highways, stations, airports, ports and the like, and other name notes. It is an indispensable part of the map, and occupies a considerable amount of load on the map.
In the related art, the name label of the electronic map is generally pre-stored in the server, and the client generally does not pre-store the name label. When the client is at a new location, the client needs to initiate a annotation request of the corresponding location to the server because the client only stores the name annotation of the historical location that has been experienced before and does not store the name annotation of the new location. Generally, the name notation in the display range of the location may involve hundreds, and the client needs to initiate a request to the server for each name notation separately, for a total of hundreds of requests. For tens of thousands of clients in the whole country, each client sends hundreds of requests in real time, so that the data processing pressure of the server is high, and the operation efficiency is low.
Disclosure of Invention
In order to overcome the problems in the related art, the application provides a method and a device for processing a note and an electronic device, and the method and the device for processing the note and the electronic device can reduce the data processing load of a server and improve the processing efficiency of the server.
The first aspect of the present application provides a method for processing a note, which includes:
acquiring a number corresponding to each note to be displayed;
respectively determining a number batch corresponding to each number; each numbering batch comprises a plurality of numbers in a preset number, and the numbers are different;
sending each serial number contained in each serial number batch to a server; the server stores the numbers and the corresponding notes in advance;
and receiving the annotation which is transmitted by the server and corresponds to each number.
In one embodiment, the obtaining a number corresponding to each note to be displayed includes:
determining a map tile corresponding to a screen display interface according to the screen display interface of a client;
and acquiring the number of the to-be-displayed note of the map element corresponding to each map layer according to the map layer corresponding to each map tile.
In one embodiment, each of the numbered batches includes a plurality of numbers with a preset number, and each of the numbers is a different number, including:
each serial number batch comprises a preset number of continuous serial numbers, and the continuous serial numbers comprise the serial numbers corresponding to the to-be-displayed notes.
In one embodiment, after the receiving the annotation corresponding to each of the numbers transmitted by the server, the method further includes:
and storing each number of each numbered batch and the corresponding note according to the number sequence and the preset word length to form a corresponding batch note storage file.
In one embodiment, the method further comprises:
and reading the batch note storage file according to the serial number sequence and the preset word length, and obtaining the note to be displayed corresponding to the serial number so as to display the note to be displayed on a screen display interface.
In one embodiment, the method further comprises:
and presetting a number corresponding to the to-be-displayed note according to the type of the map element.
In one embodiment, the category of the map element includes at least one of:
basic display elements, administrative divisions, roads and POIs. A second aspect of the present application provides a processing apparatus of a note, comprising:
the number acquisition module is used for acquiring a number corresponding to each note to be displayed;
the batch processing module is used for respectively determining the number batch corresponding to each number acquired by the number acquisition module; each numbering batch comprises a plurality of numbers in a preset number, and the numbers are different;
the annotation request module is used for sending each serial number batch determined by the batch processing module to a server; the server stores the numbers and the corresponding notes in advance;
and the note receiving module is used for receiving the note which is transmitted by the server and corresponds to each serial number.
A third aspect of the present application provides an electronic device comprising:
a processor; and
a memory having executable code stored thereon, which when executed by the processor, causes the processor to perform the method as described above.
A fourth aspect of the present application provides a non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to perform a method as described above.
The technical scheme provided by the application can comprise the following beneficial effects:
according to the technical scheme, corresponding numbers are stored in advance in the marks of the map elements by the client, when the marks to be displayed need to be displayed by the client, the numbers corresponding to the marks to be displayed are obtained, the number batches corresponding to the numbers are further obtained, the numbers in the number batches are sent to the server, the server sends the marks corresponding to the numbers in batches at one time, and the client receives the marks corresponding to the numbers in the number batches. According to the design, the serial number of the note to be displayed and the serial number of the note not to be displayed are simultaneously included in each serial number batch, after the client receives the note corresponding to each serial number batch, the note to be displayed is stored and displayed, and the note not to be displayed is stored in advance and displayed when the note needs to be displayed, so that the request frequency of the client to the server is reduced, the client does not need to make a server request before displaying the note each time, the processing load of the server is reduced, and the processing efficiency of the server is improved; meanwhile, the client can directly display the pre-stored notes when the notes are required to be displayed subsequently, so that the display efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The foregoing and other objects, features and advantages of the application will be apparent from the following more particular descriptions of exemplary embodiments of the application, as illustrated in the accompanying drawings wherein like reference numbers generally represent like parts throughout the exemplary embodiments of the application.
Fig. 1 is a schematic flowchart of a method for processing a note according to an embodiment of the present application;
FIG. 2 is another schematic flow chart diagram illustrating a method for processing annotations according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram of a processing device for notes according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device shown in an embodiment of the present application.
Detailed Description
Preferred embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While the preferred embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms "first," "second," "third," etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In the related art, for the locally non-stored annotations, the client needs to send annotation requests to the server one by one each time, which causes frequent request receiving of the server and large data processing load, and affects processing efficiency. In view of the foregoing problems, embodiments of the present application provide a method for processing a token, which can reduce a data processing load of a server and improve processing efficiency of the server. The technical solutions of the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Example one
Fig. 1 is a flowchart illustrating a method for processing a note according to an embodiment of the present application.
Referring to fig. 1, the processing method of the note includes:
step S110, a number corresponding to each note to be displayed is obtained.
And the client acquires the number corresponding to each note to be displayed aiming at the note to be displayed. In one embodiment, according to a screen display interface of a client, determining a map tile corresponding to the screen display interface; and acquiring the number of the to-be-displayed note of the map element corresponding to each map layer according to the map layer corresponding to each map tile.
In one embodiment, the client may be, but is not limited to, a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart wearable device, an in-vehicle smart device located in an automobile, and the like. In one embodiment, the client has a screen through which the electronic map is displayed. When the screen display interface displays the electronic map, the map tile corresponding to the currently displayed map area is determined according to the map area displayed by the screen display interface. It can be understood that the screen sizes of different clients are different, and the map area ranges displayed on the screen display interface are different. The number of the to-be-displayed note within the screen display interface range is only obtained, and the number of the note outside the screen display interface range is not obtained, so that the number request quantity of the to-be-displayed note is reduced, unnecessary data processing load is reduced, and processing efficiency is improved.
In the related art, the electronic map can be simulated and built through a tile map pyramid model. Specifically, the tile map pyramid model is a multi-resolution hierarchical model, and the resolution is lower and lower from the bottom layer to the top layer of the tile pyramid, but the represented geographic range is unchanged. Processing map data to prepare a required layer scheme; and slicing each level by adopting related software, selecting a slicing scheme in the slicing process, and according to different selected schemes, such as different pyramid levels, different map slicing ranges and the like, the sliced data are called as tiles.
It can be understood that, according to the difference of the map area range displayed on the screen display interface, the tiles corresponding to the map area ranges are different. In one embodiment, each tile stores a number (i.e., ID) corresponding to each annotation in advance, that is, the tile stores a number corresponding to a name annotation of a map element included in a corresponding map layer. The map layer corresponding to the tile is determined according to actual map data and is not limited to one map layer. And according to different numbers of map elements contained in the map layers, the number of the numbers corresponding to the stored tiles is different. After the client acquires the map area displayed on the screen display interface, the map tiles corresponding to the displayed map area can be determined according to the size of the interface, and then the numbers corresponding to the marks of the map elements in the map layer corresponding to each map tile can be acquired, wherein the numbers are the numbers of the marks to be displayed.
Step S120, respectively determining a number batch corresponding to each number; each numbering batch comprises a plurality of numbers in a preset number, and the numbers are different.
Specifically, each single numbered batch includes a predetermined number of different numbers, and the predetermined number is plural. In one embodiment, the predetermined number of different numbered batches may be the same or different. I.e. different numbered batches may contain the same number or different numbers. Preferably, for ease of management, each numbered batch contains the same predetermined number of numbers. For example, each numbered lot includes 100 distinct numbers, which are merely illustrative and not limiting in number. The numbers in the single numbered batch are arranged differently and are different from each other; the numbers in different numbered batches are also arranged differently and are different from each other. That is, each number has uniqueness, each number corresponds to different annotations, that is, each annotation also has uniqueness, and the number and the corresponding annotation are mapped to each other.
In one embodiment, each number is adjusted according to a predetermined number, and the number lot to which the number belongs is different. I.e. if the preset number changes, the numbered lot to which the numbering refers changes. The number corresponding to the request sent to the server subsequently changes as the number batch changes. For example, if the total number of the numbers is 1000, when the preset number of each numbered batch is 100, that is, each numbered batch includes 100 different numbers, the 1000 numbers are divided into 10 numbered batches in total. If 1000 numbers are numbered continuously according to 0-999, 0-99 are the 1 st number batch, 100-199 are the 2 nd number batch, and so on. When the number corresponding to one of the to-be-displayed notes acquired in step S110 is 180, the number 180 belongs to the number in the 2 nd batch. Similarly, when the predetermined number of each numbered batch is adjusted to 200, that is, each numbered batch includes 200 different numbers, the 1000 numbers are divided into 5 numbered batches. In this case, 0 to 199 are 1 st batches, 200 to 399 are 2 nd batches, and so on. In this case, the number 180 belongs to the 1 st lot. When sending the number to the server request note, only the numbers in the same number batch are sent. The above data are provided by way of example only to facilitate understanding, and do not limit the scope of the present solution.
After the numbers corresponding to the to-be-displayed notes are obtained, some numbers may belong to the same number batch, some numbers may belong to different number batches, the number batches corresponding to the actual number batches are determined respectively, and the numbers of the same number batch do not need to be obtained repeatedly. In one embodiment, the numbers of the numbered batches form a total number list, so that the server receives the numbers in the number list and searches for corresponding annotations according to the number list.
By obtaining the number of the note to be displayed, the number batch corresponding to each number can be determined. It can be understood that each serial number batch of the client includes not only the serial number of the note to be displayed, but also the serial number of the note not to be displayed, and the note not to be displayed is the note which is not required to be displayed by the client at this time. For example, in the numbered batches of 0-99, wherein the numbers of the current to-be-displayed notes are only 38 and 89, the other remaining numbers are the numbers of the current non-to-be-displayed notes.
Step S130, sending each serial number contained in each serial number batch to a server; the server stores the numbers and the corresponding notes in advance.
In one embodiment, the server stores in advance the notes and numbers corresponding to the map elements of the electronic map. And when the client sends each serial number in the serial number batch to the server, the server searches and sends the corresponding note according to each serial number.
In one embodiment, according to version updating of the electronic map, the client can update corresponding number data, and the server can correspondingly update corresponding notes and numbers thereof, so as to ensure that note requests sent by the client can be supported by the latest data of the server.
Step S140, receiving the annotations corresponding to each of the numbers transmitted by the server.
And based on the fact that each serial number batch contains the serial number of the to-be-displayed note and the serial number of the non-to-be-displayed note, the note sent by the server contains the to-be-displayed note and the non-to-be-displayed note, and the client receives all the notes sent by the server. The client stores the received notes, wherein the client can directly display the notes to be displayed on a screen; for the non-to-be-displayed notes, the client can store the notes until the notes are directly displayed on a screen next time when the notes need to be displayed, and a request to the server is not needed.
In summary, according to the technical scheme of the application, a client stores a corresponding number in advance for each annotation, and when the client needs to display the annotation to be displayed, the client further obtains a numbered batch corresponding to each number by obtaining the number corresponding to each annotation to be displayed, so that each number in each numbered batch is sent to the server, the server sends the annotation corresponding to each number in batch at one time, and the client receives the annotation corresponding to each number in each numbered batch in batch. According to the design, the serial number of the note to be displayed and the serial number of the note not to be displayed are simultaneously included in each serial number batch, after the client receives the note corresponding to each serial number batch, the note to be displayed is stored and displayed, and the note not to be displayed is stored in advance and displayed when the note needs to be displayed, so that the request frequency of the client to the server is reduced, the client does not need to make a server request before displaying the note each time, the processing load of the server is reduced, and the processing efficiency of the server is improved; meanwhile, the client can directly display the pre-stored notes, so that the display efficiency is improved.
Example two
For further description of the processing method of the note of the present application, referring to fig. 2, the processing method of the note includes:
and step S210, acquiring a number corresponding to each note to be displayed according to a screen display interface of the client.
It will be appreciated that when the client is in a new place, the client does not store the associated annotation file for the new place. When the electronic map displayed on the screen of the client needs to display the notes, the client initiates a request to the server.
In order to avoid overlarge request data caused by overlarge range of a request map area, the number of the corresponding to-be-displayed note is acquired in a targeted manner according to the currently displayed map area of the screen display interface of the client.
In order to improve the acquisition efficiency, in one embodiment, a number corresponding to the to-be-displayed note is preset according to the type of the map element. In one embodiment, the map elements include at least one of basic display elements, administrative divisions, roads, and POIs (points of Interest). The Basic Display elements (BMD) include, but are not limited to, rivers, lakes, forests, mountains, plateaus, plains, hills, basins, park scenic spots, and the like.
The client may classify and set numbers in the server in advance according to the types of the map elements. The numbers may not be set consecutively in the different types of map elements. For example, when all numbers in the administrative district category are numbered consecutively from 0 to 999, all numbers in the road category are numbered consecutively from 1999 to 9999. That is, the numbers of different categories are not consecutive, and the numbers in the same category are consecutive. The above data are for illustration only and not for limitation. By the design, data management and acquisition are facilitated through classified storage.
Step S220, respectively determining a number batch corresponding to each number; each serial number batch comprises a plurality of serial numbers with preset number, and each serial number is a continuous number different from the other serial numbers.
In one embodiment, each of the numbered batches includes a preset number of consecutive numbers, and the consecutive numbers include the number corresponding to the to-be-displayed note. For easy understanding, for example, when a single numbered lot includes 100 numbers, the 100 numbers may be consecutively numbered with 0 to 99, so that each number is different from each other, for easy identification and management. When a plurality of numbers in the numbers of the notes to be displayed belong to the same number batch, the corresponding number batch is obtained only once without repeated obtaining. In one embodiment, the numbering between different numbered batches may not be continuous. The uniqueness of each number in all numbered batches is ensured, the independence among the numbered batches is kept, and the number of each note to be displayed is ensured to be contained in each numbered batch, so that the note to be displayed cannot be acquired and displayed due to the omission of the number.
It can be understood that when the client requests a number of a note to be displayed, all the notes corresponding to all the numbers in the number batch to which the number belongs are requested, that is, only the number of the note to be displayed currently is not requested. Namely, the numbers in each numbered batch are composed of the number of the current to-be-displayed note and the number of the current non-to-be-displayed note. By the design, frequent request interaction between the client and the server is avoided, and data processing efficiency is improved.
Step S230, sending the consecutive distinct numbers corresponding to each serial number batch to a server for a note-making request, wherein the server stores each serial number and a corresponding note in advance.
It can be understood that, after the client determines the consecutive different numbers in the numbered batches corresponding to the number through the number of each note to be displayed, the client may send the consecutive different numbers in each numbered batch to the server to request to acquire the note corresponding to each number.
In one embodiment, the server has a Redis database, and the notes and corresponding numbers of the map elements are stored in advance in the Redis database. Specifically, a Remote directory Server (Remote directory Server) is an in-memory cache database, which is written in C language, and the data model is key-value. Redis is widely used because it can support rich data types, such as String, List, Hash, Set, Sorted Set, etc. Through with annotating data storage in Redis, through caching at Redis, avoid calling the local data of server to realize quick reading, further reduce the occupation to the server, reduce the operating load of server.
In the client, in one embodiment, in the map elements of the same type, each number is numbered consecutively, and the total number of the numbers may be greater than the number of the actual annotations in the type, that is, a blank number is reserved, so that a new number is adopted when a new annotation is subsequently added. In the server, in one embodiment, the server may set the corresponding number and the corresponding annotation according to the actual annotation number. I.e. the server may not reserve a null number. If the number of the request sent by the client does not exist in the server, the server returns a null value to the client.
Step S240, receiving the annotations corresponding to each serial number transmitted by the server, and storing each serial number of each serial number batch and the corresponding annotations according to the serial number sequence and the preset word length to form a corresponding batch annotation storage file.
It will be appreciated that upon request for each numbered annotation by the client, the server transmits the corresponding annotation to the client. After the client receives the annotations corresponding to each serial number, in order to facilitate reading and displaying the annotations in subsequent steps, in one embodiment, the client stores the annotations of each serial number batch according to the serial number sequence and the preset word length, and forms a corresponding batch annotation storage file. By adopting the design, the batch annotation storage file is adopted to store the annotations of each numbered batch, so that the centralized management is facilitated, the data redundancy caused by the over-scattering of the data is avoided, and the rapid reading and the display are facilitated. Specifically, the serial numbers are adopted based on the numbers of each numbered batch, and each number in each numbered batch has a corresponding number sequence. Further, each annotation is stored with a preset word length. For example, the predetermined word length of each token may be 100 bytes. Of course, each note may also be of other preset word lengths, which is not limited herein. That is to say, each note is stored by adopting the same preset word length, so that the positioning and searching are facilitated. In one embodiment, each note of the same numbered batch is stored in the same data file according to the numbering sequence and the preset word length, and each data file is a batch note storage file corresponding to each numbered batch. For example, when the preset number of serial numbers in the serial number batches is 100, the serial numbers of the serial number batches from 0 to 99 are stored as 0.data files, and the serial numbers of the serial number batches from 100 to 199 are stored as 1.data files. When the length of each marked preset word is 100, each data file contains 100 × 100=10000 bytes.
When the note name of the number 20 needs to be searched, the record start position of the note of the number 20 is at 20 × 100=2000 bytes, and the end position is at 2099 bytes. That is, the characters from 2000 bytes to 2099 bytes are the mark names of the number 20, so as to achieve the effect of quick search.
And step S250, the client reads the batch note storage file according to the serial number sequence and the preset word length, obtains the note to be displayed corresponding to the serial number, and displays the note to be displayed on a screen display interface.
Because each note has a preset fixed length and a determined number, the corresponding note name can be quickly positioned and obtained in the batch note storage file through simple and quick calculation, and the client can quickly display the note to be displayed at present on a screen display interface, so that the display efficiency is improved.
And when the screen display interface of the client is at a new position, the client determines a new number of the annotation to be displayed according to the map area displayed by the new screen display interface. If the number of the new annotation to be displayed corresponds to the number batch in the batch annotation storage file stored in the history, the batch annotation storage file can be directly and quickly read, the name of the annotation to be displayed is obtained and directly displayed on a screen display interface, a request to a server is not needed, the display efficiency is improved, and the processing load of the server is reduced.
In the embodiment, the serial numbers of the serial numbers corresponding to the notes to be displayed are sent to the client in batches, so that the client not only obtains the notes to be displayed, but also can store a part of the notes not to be displayed in advance, the client can directly display the notes subsequently when needing to display, the interaction frequency between the client and the server is reduced, the pressure of the server is reduced, and the display efficiency of the client is improved. Meanwhile, the client stores the received notes corresponding to each serial number batch respectively to form a batch note storage file, so that serial numbers and notes are prevented from being stored dispersedly, and data redundancy is avoided; meanwhile, each note is stored according to the serial number sequence and the fixed length mode, so that the client can quickly identify and read the note name, the reading is convenient, and the display efficiency is improved. In one embodiment, the processing method of the annotation is not only applicable to the processing of name annotation in the electronic map, but also applicable to the processing of symbol annotation or digital annotation in the electronic map.
Corresponding to the embodiment of the application function implementation method, the application also provides a processing device of the annotation, the electronic device and a corresponding embodiment. Specifically, the apparatus described in the embodiments of the present application may implement part or all of the processes in the embodiments of the processing method of the note described in the present application in conjunction with fig. 1-2.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a processing apparatus for a note shown in an embodiment of the present application.
Referring to fig. 3, this embodiment provides a processing apparatus of a note. The apparatus includes a number obtaining module 310, a batch processing module 320, a note requesting module 330, and a note receiving module 340. Wherein:
a number obtaining module 310, configured to obtain a number corresponding to each to-be-displayed note;
a batch processing module 320, configured to respectively determine a number batch corresponding to each of the numbers acquired 310 by the number acquiring module; each numbering batch comprises a plurality of numbers in a preset number, and the numbers are different;
a note request module 330, configured to send each numbered batch determined by the batch processing module 320 to a server; the server stores the numbers and the corresponding notes in advance;
a note receiving module 340, configured to receive the note corresponding to each of the numbers transmitted by the server.
In one specific implementation, the number obtaining module 310 determines, according to a screen display interface of the client, a map tile corresponding to the screen display interface; and acquiring the number of the to-be-displayed note of the map element corresponding to each map layer according to the map layer corresponding to each map tile. Further, the batch processing module 320 determines the number batch corresponding to each of the numbers, so as to determine the number of the same batch that needs to request the annotation. Each serial number batch comprises a preset number of continuous serial numbers, and each continuous serial number comprises the corresponding serial number of the to-be-displayed note. The annotation request module 330 sends the serial number of each serial number batch to the server to request the server to transmit the corresponding annotation to the client according to the serial numbers. The note receiving module 340 receives the notes, and stores each number of each numbered batch and the corresponding note according to the number sequence and the preset word length to form a corresponding batch note storage file. The client further comprises a display module 350, wherein the display module 350 reads the batch note storage file according to the serial number sequence and the preset word length, obtains the note to be displayed corresponding to the serial number, and displays the note to be displayed on a screen display interface.
According to the processing device of the notes, the number corresponding to each note to be displayed is obtained through the number obtaining module, the number batches corresponding to each number are further obtained through the batch processing module, therefore, the note requesting module can conveniently send each number in each number batch to the server for note requesting, and finally the note receiving module receives the note corresponding to each number transmitted by the server. The client requests the notes to be displayed and the notes not to be displayed simultaneously when requesting the notes of the server. After the client receives all the annotations, the annotations to be displayed can be stored and displayed, and the annotations not to be displayed can be stored in advance and displayed when needing to be displayed, so that the request times of the client to the server are reduced, the client does not need to make a server request before displaying the annotations every time, the processing load of the server is reduced, and the processing efficiency of the server is improved; meanwhile, the client can directly display the pre-stored notes, so that the display efficiency is improved.
For a detailed description of the processing apparatus of the above note, reference may be made to the description of the processing method of the note, and the description is not repeated here. The various modules in the noted processing means may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 4 is a schematic structural diagram of an electronic device shown in an embodiment of the present application.
Referring to fig. 4, an electronic device 400 includes a memory 410 and a processor 420.
The Processor 420 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 410 may include various types of storage units such as system memory, Read Only Memory (ROM), and permanent storage systems. Wherein the ROM may store static data or instructions that are required by the processor 420 or other modules of the computer. The persistent storage system may be a readable and writable storage system. The persistent storage system may be a non-volatile storage device that does not lose stored instructions and data even after the computer is powered off. In some embodiments, the persistent storage system employs a mass storage system (e.g., magnetic or optical disk, flash memory) as the persistent storage system. In other embodiments, the persistent storage system may be a removable storage device (e.g., floppy disk, optical drive). The system memory may be a read-write memory device or a volatile read-write memory device, such as a dynamic random access memory. The system memory may store instructions and data that some or all of the processors require at runtime. Further, the memory 410 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), magnetic and/or optical disks, may also be employed. In some embodiments, memory 410 may include a removable storage device that is readable and/or writable, such as a Compact Disc (CD), a read-only digital versatile disc (e.g., DVD-ROM, dual layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (e.g., SD card, min SD card, Micro-SD card, etc.), a magnetic floppy disc, or the like. Computer-readable storage media do not contain carrier waves or transitory electronic signals transmitted by wireless or wired means.
The memory 410 has stored thereon executable code that, when processed by the processor 420, may cause the processor 420 to perform some or all of the methods described above.
The aspects of the present application have been described in detail hereinabove with reference to the accompanying drawings. In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments. Those skilled in the art should also appreciate that the acts and modules referred to in the specification are not necessarily required in the present application. In addition, it can be understood that the steps in the method of the embodiment of the present application may be sequentially adjusted, combined, and deleted according to actual needs, and the modules in the system of the embodiment of the present application may be combined, divided, and deleted according to actual needs.
Furthermore, the method according to the present application may also be implemented as a computer program or computer program product comprising computer program code instructions for performing some or all of the steps of the above-described method of the present application.
Alternatively, the present application may also be embodied as a non-transitory machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) having stored thereon executable code (or a computer program, or computer instruction code) which, when executed by a processor of an electronic device (or electronic device, server, etc.), causes the processor to perform part or all of the various steps of the above-described method according to the present application.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the applications disclosed herein may be implemented as electronic hardware, computer software, or combinations of both.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems and methods according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Having described embodiments of the present application, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (7)

1. A method for processing a note, comprising:
acquiring a number corresponding to each note to be displayed; respectively determining a number batch corresponding to each number; wherein some of the numbers belong to the same numbered batch and another part of the numbers belong to a different numbered batch; each serial number batch comprises a plurality of serial numbers with preset quantity, the serial numbers are different, the serial numbers comprise the serial numbers corresponding to the notes to be displayed and the serial numbers corresponding to the notes not to be displayed, and each serial number corresponds to different notes;
sending each serial number contained in each serial number batch to a server; the server stores the numbers and the corresponding notes in advance;
receiving the notes corresponding to each serial number transmitted by the server, storing each serial number of each serial number batch and the corresponding note according to the serial number sequence and the preset word length to form a corresponding batch note storage file, reading the batch note storage file by the client according to the serial number sequence and the preset word length to obtain the note to be displayed corresponding to the serial number, and displaying the note to be displayed on a screen display interface; the notes comprise the notes to be displayed and the notes not to be displayed, and the notes to be displayed are displayed on a screen; and the non-to-be-displayed notes are stored in the client and used for displaying the non-to-be-displayed notes on the screen if the number in the future is the same as the number of the current non-to-be-displayed note when the step of obtaining the number corresponding to each to-be-displayed note is carried out in the future.
2. The method according to claim 1, wherein the obtaining the number corresponding to each note to be displayed comprises:
determining a map tile corresponding to a screen display interface according to the screen display interface of a client;
and acquiring the number of the to-be-displayed note of the map element corresponding to each map layer according to the map layer corresponding to each map tile.
3. The method of claim 1, further comprising:
and presetting a number corresponding to the to-be-displayed note according to the type of the map element.
4. The method of claim 3, wherein the categories of map elements include at least one of:
basic display elements, administrative divisions, roads and POIs.
5. A note processing apparatus, comprising:
the number acquisition module is used for acquiring a number corresponding to each note to be displayed;
the batch processing module is used for respectively determining the number batch corresponding to each number acquired by the number acquisition module; wherein some of the numbers belong to the same numbered batch and another part of the numbers belong to a different numbered batch; each serial number batch comprises a plurality of serial numbers with preset quantity, the serial numbers are different, the serial numbers comprise the serial numbers corresponding to the notes to be displayed and the serial numbers corresponding to the notes not to be displayed, and each serial number corresponds to different notes;
the annotation request module is used for sending each serial number batch determined by the batch processing module to a server; the server stores the numbers and the corresponding notes in advance;
the note receiving module is used for receiving the notes corresponding to the serial numbers transmitted by the server, storing the serial numbers of the serial numbers and the corresponding notes according to the serial number sequence and the preset word length to form corresponding batch note storage files, and reading the batch note storage files by the client according to the serial number sequence and the preset word length to obtain the notes to be displayed corresponding to the serial numbers so as to display the notes to be displayed on a screen display interface; the notes comprise the notes to be displayed and the notes not to be displayed, and the notes to be displayed are displayed on a screen; and the non-to-be-displayed notes are stored in the client and used for displaying the non-to-be-displayed notes on the screen if the number in the future is the same as the number of the current non-to-be-displayed note when the step of obtaining the number corresponding to each to-be-displayed note is carried out in the future.
6. An electronic device, comprising:
a processor; and
a memory having executable code stored thereon, which when executed by the processor, causes the processor to perform the method of any one of claims 1-4.
7. A non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to perform the method of any one of claims 1-4.
CN202110188381.0A 2021-02-19 2021-02-19 Method and device for processing notes and electronic equipment Active CN112559666B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110188381.0A CN112559666B (en) 2021-02-19 2021-02-19 Method and device for processing notes and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110188381.0A CN112559666B (en) 2021-02-19 2021-02-19 Method and device for processing notes and electronic equipment

Publications (2)

Publication Number Publication Date
CN112559666A CN112559666A (en) 2021-03-26
CN112559666B true CN112559666B (en) 2021-06-25

Family

ID=75035958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110188381.0A Active CN112559666B (en) 2021-02-19 2021-02-19 Method and device for processing notes and electronic equipment

Country Status (1)

Country Link
CN (1) CN112559666B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105869513A (en) * 2013-06-03 2016-08-17 北京奇虎科技有限公司 Method and apparatus for displaying associated mark points on electronic map interface

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1028376B1 (en) * 1994-12-13 2007-08-22 Microsoft Corporation Data transfer with expanded clipboard formats
CN109147547A (en) * 2018-07-26 2019-01-04 浙江省测绘科学技术研究院 A kind of annotation bit selecting based on vector tile and dynamic preventing collision method
CN110471695A (en) * 2019-08-14 2019-11-19 苏州博雅达勘测规划设计集团有限公司 Graph annotation batch processing method, storage medium, system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105869513A (en) * 2013-06-03 2016-08-17 北京奇虎科技有限公司 Method and apparatus for displaying associated mark points on electronic map interface

Also Published As

Publication number Publication date
CN112559666A (en) 2021-03-26

Similar Documents

Publication Publication Date Title
US20210095988A1 (en) Apparatus and method for providing map data and system thereof
JP5027985B2 (en) Method and system for forming, updating and using a geographic database
US8224795B2 (en) Map data product, map data processing program product, map data processing method and map data processing device
EP2958033A1 (en) Tile-based distribution of searchable geospatial data to client devices
CN100582669C (en) Map data updating method
US8738595B2 (en) Location based full text search
US9280567B2 (en) Technique for structuring a navigation database
JP5327497B2 (en) Map data distribution system and map data update method
CN112100196B (en) Real-time traffic information processing method and system and electronic equipment
JP4456667B2 (en) Navigation device
CN112559666B (en) Method and device for processing notes and electronic equipment
CN112097785B (en) Vehicle-mounted intelligent device data processing method and device and electronic device
JP4671892B2 (en) Map data processing terminal and map data management method
CN112231125A (en) Map display method and device for intelligent vehicle-mounted internet terminal
US20140317516A1 (en) Address formatting on a digital map
JP2002324228A (en) Data management device and map data storage system
CN113449055A (en) Map retrieval method, system and related equipment
TWI427393B (en) Handheld device with positioning and photo-taking functions and positioning method therefor
CN114996600B (en) Multi-temporal image management database data writing and reading method and device
CN112287062B (en) Real-time traffic information synchronization method and device and electronic equipment
CN111896017B (en) Route determination method, device, equipment and storage medium
CN116149561B (en) Tile data transmission method and device, electronic equipment and storage medium
CN115952244B (en) On-line loading method, device and medium for vector slicing service in drawing software
CN116126992A (en) Map data processing method, map drawing device and medium
CN111815954A (en) Real-time traffic data transmission and display method, system and electronic equipment

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