CN108920606A - map data processing method, device, terminal device and storage medium - Google Patents

map data processing method, device, terminal device and storage medium Download PDF

Info

Publication number
CN108920606A
CN108920606A CN201810685308.2A CN201810685308A CN108920606A CN 108920606 A CN108920606 A CN 108920606A CN 201810685308 A CN201810685308 A CN 201810685308A CN 108920606 A CN108920606 A CN 108920606A
Authority
CN
China
Prior art keywords
data
map
map block
directory
buffer area
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.)
Granted
Application number
CN201810685308.2A
Other languages
Chinese (zh)
Other versions
CN108920606B (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.)
Tencent Technology Shenzhen Co Ltd
Tencent Dadi Tongtu Beijing Technology Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Tencent Dadi Tongtu Beijing 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 Tencent Technology Shenzhen Co Ltd, Tencent Dadi Tongtu Beijing Technology Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810685308.2A priority Critical patent/CN108920606B/en
Publication of CN108920606A publication Critical patent/CN108920606A/en
Application granted granted Critical
Publication of CN108920606B publication Critical patent/CN108920606B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Navigation (AREA)

Abstract

The invention discloses a kind of map data processing method, device, terminal device and storage mediums, belong to Cartographic Technique field.The method includes:The map block request of data of any instance of electronic map application is obtained, the map block request of data includes the data directory of at least one map block data, and it includes at least two examples that the electronic map, which is applied,;Obtain map block data corresponding with the data directory in the map block request of data;By map block data buffer storage to common data buffer area, common data buffer area is the buffer area that at least two examples in electronic map application access jointly.The application passes through in electronic map application work, the map block data of different example requests are stored in common data buffer area, due to common data buffer area be can be applied by electronic map at least two example access, without repeating to provide map block data buffer storage for each example, storage resource needed for saving the storage of map block data.

Description

Map data processing method, device, terminal device and storage medium
Technical field
The present invention relates to Cartographic Technique field, in particular to a kind of map data processing method, device, terminal device and deposit Storage media.
Background technique
With the development of the technologies such as internet and mobile terminal, electronic map becomes the essential portion of people's daily life Point.
In the application of part electronic map, electronic map application can provide multiple examples (Instance), this multiple reality Example carries out map denotation in different forms.For example, electronic map application provides three examples, first example is by electronically Figure is shown that second example is shown by desktop widget (widget), third using the navigation map of main interface A example is shown by the instrument board of automobile.
In the course of work of this multiple example, mutually indepedent between each example, each example separately maintains the ground of itself Tile data, storage resource cost needed for leading to the storage of map block data are larger.
Summary of the invention
The embodiment of the invention provides a kind of map data processing method, device, terminal device and storage mediums, so that electric When sub- map application works, storage resource needed for the storage of map block data can be saved.The technical solution is as follows:
On the one hand, a kind of map data processing method is provided, the method includes:
The map block request of data of any instance of electronic map application is obtained, the map block request of data includes at least The data directory of one map block data, it includes at least two examples that the electronic map, which is applied, and the example is used in user Output map picture on interface;
Obtain map block data corresponding with the data directory in the map block request of data;
By the map block data buffer storage to common data buffer area, the common data buffer area is the electronic map The buffer area that at least two example in accesses jointly.
On the other hand, a kind of map data processing device is additionally provided, described device includes:
Module is obtained, the map block request of data of any instance for obtaining electronic map application, the map block number It include the data directory of at least one map block data according to request, it includes at least two examples that the electronic map, which is applied, described Example is for output map picture on a user interface;
Processing module, for obtaining map block data corresponding with the data directory in the map block request of data;
Cache module is used for the map block data buffer storage to common data buffer area, the common data buffer area It is the buffer area that at least two example in the electronic map application accesses jointly.
On the other hand, a kind of terminal device is additionally provided, the terminal device includes processor and memory, the storage At least one instruction is stored in device, described instruction is loaded by the processor and executed to realize ground as described in relation to the first aspect Diagram data processing method.
On the other hand, a kind of computer readable storage medium is additionally provided, is stored at least one in the storage medium Instruction, described instruction are loaded by processor and are executed to realize map data processing method as described in relation to the first aspect.
Technical solution bring beneficial effect provided in an embodiment of the present invention is:
In electronic map application work, for the map block request of data that any one example is sent, obtain correspondingly Tile data be stored in common data buffer area, as common data buffer area be can be applied by electronic map in described at least Two example access provide map block data buffer storage without repeating for each example, save needed for the storage of map block data Storage resource.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of structural schematic diagram of electronic map system;
Fig. 2 is a kind of flow chart of map data processing method provided in an embodiment of the present invention;
Fig. 3 is the timing diagram of another map data processing method provided in an embodiment of the present invention;
Fig. 4 is the load flow chart of electronic map provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of map data processing device provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Fig. 1 is a kind of structural schematic diagram of electronic map system, and referring to Fig. 1, which includes terminal device 10 and vehicle-mounted Terminal 20, wherein terminal device 10 includes but is not limited to smart phone, tablet computer, intelligent wearable device etc., car-mounted terminal 20 may include aforementioned instrument board.Electronic map application is installed, electronic map application not only can be at end in terminal device 10 The navigation map of end equipment carries out map denotation, can also carry out map denotation in the desktop widget of terminal device, can be with By carrying out map denotation on automobile instrument panel, three kinds of display modes can be completed by three examples that electronic map is applied. Wherein, automobile instrument panel can simultaneously figure be shown with navigation map (or desktop widget), i.e., corresponding example is simultaneously Work;And navigation map and the usual timesharing of desktop widget are shown.
The course of work of each example is identical, including:Obtain map block data;Sample is carried out to the map block data got Formula matches to obtain rendering data;Image rendering is carried out using rendering data, obtains map picture.
These three examples are unrelated between each example in the above-mentioned course of work, and each example separately maintains itself Map block data, storage resource needed for leading to the storage of map block data spend larger.
It should be noted that aforementioned instrument board is only a kind of implementation, the example in electronic map application can also lead to Cross the output that other equipment having a display function carry out map picture.
Fig. 2 is a kind of flow chart of map data processing method provided in an embodiment of the present invention, referring to fig. 2, this method by Aforementioned terminals equipment executes, and this method includes:
Step 101:Obtain the map block request of data of any instance of electronic map application.
Wherein, it includes at least two examples that electronic map, which is applied,.Example namely object, example is for defeated on a user interface Map picture out, different examples are used for the output map picture in different user interfaces, wherein user interface can be for eventually Navigation map, desktop widget and the instrument board of end equipment.Electronic map is applied can be distinguished by two or more examples The map at different interfaces is exported, the different memory headrooms in each example counterpart terminal equipment have independent data and method. Each example has respectively corresponded a load thread and rendering thread, carries out data load and picture rendering;All examples are corresponding One data engine carries out data acquisition, and step 101~step 103 is executed by the data engine, passes through a data engine The data processing of all examples is carried out, process resource can be saved.
When electronic map application work in terminal device, load thread first loads map block data, then according to should Map block data generate rendering data, are rendered to obtain map picture finally by rendering thread.Wherein, load thread load When map block data, if there is no map block data to be loaded in caching, need to make requests to data engine, to obtain Map block data, and data engine then provides map block data according to step 101~step 103 for load thread.
Wherein, map block request of data includes the data directory of at least one map block data.In electronic map application, Map is divided into multiple map blocks, the corresponding individual map block data of each map block, each map block tool according to position There is the data directory of an index namely the corresponding map block data of the map block.
Wherein, map block data include:Point data, line number evidence, face data, wherein point data, line number evidence, face data are equal Including position and pattern, position, that is, corresponding longitude and latitude of middle data, line number can be by several according to the position of, face data The position of point data is constituted, such as the position of straight line can be indicated by the position of the point at both ends, and the position of rectangle plane can be by The position on four vertex indicates.Pattern refers to the type of the data corresponding pattern on map, such as the pattern of face data can Think school face, residential building etc., the pattern of line number evidence can be white dashed line, solid black lines etc., and the pattern of point data can be Word marking, point of interest etc..
Step 102:Obtain map block data corresponding with the data directory in map block request of data.
In embodiments of the present invention, map block data can store in local, such as off-line data, also can store and is taking It is engaged in the database of device, so step 102, practical is exactly the lookup data rope in the database of off-line data and/or server Draw corresponding map block data.All data directories pair in map block request of data are obtained for example, searching in off-line data The map block data answered;Alternatively, it is corresponding to search a part of data directory obtained in map block request of data in off-line data Map block data, search that obtain another part data directory in map block request of data corresponding in the database of server Map block data;Alternatively, not finding the corresponding map block of data directory in map block request of data in off-line data Data search in the database of server and obtain the corresponding map block number of all data directories in map block request of data According to.
Step 103:By map block data buffer storage to common data buffer area, which is that electronic map is answered The buffer area that at least two examples in access jointly.
Wherein, each map block data only store portion in common data buffer area.
After getting the corresponding map block data of the data directory in map block request of data, map block data are stored in Common data buffer area, to execute follow-up rendering operation.
The application is by for the map block request of data that different examples is sent, obtaining in electronic map application work Corresponding map block data deposit common data buffer area is taken, since common data buffer area is that can be applied by electronic map The access of at least two examples, for each example provide map block data buffer storage without repeating, save map block data and store Required storage resource.
Fig. 3 is the timing diagram of another map data processing method provided in an embodiment of the present invention, referring to Fig. 3, this method It is executed by aforementioned terminals equipment, the electronic map in the terminal device applies at least two examples, and each example has respectively corresponded One load thread and rendering thread, the corresponding data engine of all examples, this method can pass through load thread, rendering line Journey and data engine execute, and this method process includes:
Step 201:When detecting user's touch operation, by load thread according to user's touch operation, determines and need The map block data of acquisition.
In electronic map application, map is divided into multiple map blocks, the corresponding individual map block of each map block Data, each map block have the data directory of an index namely the corresponding map block data of the map block.
Wherein, map block data include:Point data, line number evidence, face data, wherein point data, line number evidence, face data are equal Including position and pattern, position, that is, corresponding longitude and latitude of middle data, line number can be by several according to the position of, face data The position of point data is constituted, such as the position of straight line can be indicated by the position of the point at both ends, and the position of rectangle plane can be by The position on four vertex indicates.Pattern refers to the type of the data corresponding pattern on map, such as the pattern of face data can Think school face, residential building etc., the pattern of line number evidence can be white dashed line, solid black lines etc., and the pattern of point data can be Word marking, point of interest (Point of Interest, POI) etc..
Specifically, load thread monitors the touch event that electronic map application is sent;When listening to touch event, explanation Detect user's touch operation;Otherwise, user's touch operation is detected.Wherein, touch event expression listens to the touch event The map of load thread corresponding example output touched.
For the example by the touch screen output map picture of terminal device:Terminal device is detected by touch screen User's touch operation notifies electronic map application when detecting the touch operation of user, and electronic map applies basis to work as at this time The map picture of preceding display determines corresponding example, and to the instance notification touch event, the example by load thread come Execute step 201.For the example by the touch screen output map picture of instrument board:If it is the screen inspection of instrument board User's touch operation is measured, then instrument board will notify the screen of terminal device instrument board that user's touch operation, terminal device occurs Notify electronic map application, electronic map is applied to the instrument board corresponding instance notification touch event, and the instrument board is corresponding Example executes step 201 by load thread.
In the step 201, according to user's touch operation, determines the map block data for needing to obtain, may include:
Determine the position on four vertex before the map picture currently shown is mobile;Map is determined according to user's touch operation The motion track and/or user gesture of picture;Four of the map picture after movement is determined according to motion track and/or user gesture The position on a vertex;According to the position on four of the map picture after movement vertex, the map picture after determining movement includes All map blocks;Determine existing map block in the map picture before movement;Have according in the map picture before movement Map block, determine remaining map block in all map blocks, obtain needing the map block data that obtain.
Wherein, position can be the longitude and latitude of the point.User gesture includes but is not limited to map amplification, map diminution etc..
Due to that although after touch operation, the corresponding range of map picture changes, may touch during touch operation In map picture after operation still some map block be before showed, so this partly tile data without weight It is new to obtain.
In the present embodiment, each map block can be a rectangle, and the position on four vertex of each map block is prior It is stored in terminal device, therefore, after the position on four vertex of the map picture after movement has been determined, that is, can determine movement All map blocks included by map picture afterwards.Such as, it is determined that behind the position on four vertex of the map picture after mobile, Search the map block in the rectangle of four vertex composition of the map picture of vertex after movement, the map picture after being moved Included all map blocks.Here the map block in rectangle that four vertex of the map picture of vertex after movement are constituted, Either a vertex in the rectangle, is also possible to two or more vertex in the rectangle.
When working at the same time below with reference to Fig. 4 to two examples (example A and B), map datum treatment process is illustrated:
In step 201, when the range of the corresponding map picture of example A changes, the corresponding load thread of example A is determined The new map block data for needing to obtain;When the range of the corresponding map picture of example B changes, the corresponding loaded line of example B Journey determines the new map block data for needing to obtain.
Step 202:The map block data for needing to obtain are searched in common data buffer area by load thread, if searched To acquisition in need map block data, then by load thread load acquisition in need map block data, and execute Step 208;If do not find acquisition in need map block data, by load thread first load the map found Block number executes step 203 according to (if not finding any map block data, this step does not need to be loaded).
Wherein, which is the buffer area that at least two examples in electronic map application access jointly, Also the buffer area of at least two examples access in being applied by electronic map.Common data buffer area is one in memory A presumptive area avoids different examples after obtaining identical map block data, divides by designing common data buffer area It is not stored in the different location of memory, memory source is caused to waste.
In this step, the map block data for needing to obtain are searched in common data buffer area, may include:As needed The data directory of the map block data of acquisition searches the map block data for needing to obtain in common data buffer area.Common data is slow It deposits area and is stored with map block data and corresponding data directory, it can be according to the sequence of data directory, sequential storage map block number According to thus easy-to-look-up.
As shown in figure 4, in step 202, the corresponding load thread of example A needs to obtain in the lookup of common data buffer area Map block data;The corresponding load thread of example B searches the map block data for needing to obtain in common data buffer area.Two It loads thread and carries out map block data search in the same common data buffer area.Example A and example B needs the map block obtained Data may be the same or different.
Step 203:Map block request of data is generated by load thread, map block request of data includes at least one map The data directory of block number evidence.
Wherein, the data directory for the map block data that map block request of data is obtained according to the needs not being searched is raw At.
As shown in figure 4, in step 203, the load thread map block that basis is not found respectively respectively of example A, example B Data generate map block request of data.
Step 204:Map block request of data is passed to the data engine in terminal device by load thread.
Correspondingly, data engine obtains the map block request of data of any instance of electronic map application.
Wherein, data engine be electronic map application in a processing unit, have off-line data storage and search, The functions such as line downloading.
As shown in figure 4, in step 204, example A, example B load thread map block request of data is sent to respectively Data engine, data engine receive the map block request of data that two load threads are sent.
Step 205:Map block data corresponding with the data directory in map block request of data are obtained by data engine.
In embodiments of the present invention, map block data can store in local, such as off-line data, also can store and is taking It is engaged in the database of device, so step 205, practical is exactly the lookup data rope in the database of off-line data and/or server Draw corresponding map block data.All data directories pair in map block request of data are obtained for example, searching in off-line data The map block data answered;Alternatively, it is corresponding to search a part of data directory obtained in map block request of data in off-line data Map block data, search that obtain another part data directory in map block request of data corresponding in the database of server Map block data;Alternatively, not finding the corresponding map block of data directory in map block request of data in off-line data Data search in the database of server and obtain the corresponding map block number of all data directories in map block request of data According to.
In the step 205, map block data corresponding with the data directory in map block request of data are obtained, including:
The corresponding map block data of data directory are searched in off-line data, off-line data is the offline of electronic map application Data namely at least two examples share the off-line data, and the corresponding map block data of each example are in the off-line data It searches.Specifically, it is searched, is determined in off-line data with the presence or absence of corresponding map in off-line data according to data directory Block number evidence.When finding the corresponding map block data of all data directories in off-line data, obtained in off-line data The corresponding map block data of the data directory found.Corresponding map block is indexed when finding partial data in off-line data When data, the corresponding map block data of the data directory found are obtained in off-line data, while downloading from map server The corresponding map block data of the data directory not found;When not finding any data directory correspondingly in off-line data When tile data, the corresponding map block data of all data directories are downloaded from map server.
Wherein, off-line data saves the map block data that terminal device was downloaded, and map server then saves electricity All map block data needed for sub- map application.In the present embodiment, all examples share off-line data, without being each reality Off-line data is separately provided in example, saves storage resource.
Wherein, the corresponding map block data of partial data index are found in off-line data namely data directory includes First data directory and the second data directory, when finding the corresponding map block data of the first data directory in off-line data, And when not finding the corresponding map block data of the second data directory, the first data directory is obtained in off-line data correspondingly Tile data, while the corresponding map block data of the second data directory are downloaded from map server.Wherein, the first data directory, Second data directory may each comprise one, two or more data directories.
Wherein, the corresponding map block data of the second data directory are downloaded from map server, including:
Downloading request is sent to map server, downloading request includes the second data directory;Map server is received to send Map block data.
Wherein, downloading request is sent to map server, including:
It whether there is the corresponding downloading task of the second data directory in judgement downloading queue, downloading queue is answered for electronic map Downloading queue namely at least two examples share the downloading queue, and the corresponding map block data of each example pass through this Download queue downloading.
When downloading downloading task corresponding there is no the second data directory in queue, the corresponding downloading of data directory is appointed Downloading queue is distributed in business;When downloading downloading task corresponding there are the second data directory in queue, then only need to wait under this The execution of load task.
Downloading request is sent to map server by downloading queue.
Wherein, the corresponding downloading task of data directory is distributed to downloading queue to refer to, by the corresponding downloading of data directory Task distributes to the download thread in downloading queue.Download online function by the downloading queue realize, the downloading queue namely Download thread queue may include multiple download threads, and in the same time, different download threads can download different maps Block number evidence, to realize the Parallel download of multiple map block data.
In the present embodiment, multiple examples share a downloading queue, save processing and storage resource.Due to different The map block data of example are obtained by data engine, are then stored in common data buffer area, so identical Map block data will not repeat to obtain, and naturally also just reduce the number downloaded from map server.It is downloaded in the downloading queue The quantity of thread can be designed according to actual needs, such as can be according to when defaulting map scale, in map picture The quantity of segment and requirement to electronic map application response speed design.
Optionally, this method further includes:
It will be saved in off-line data from the map block data downloaded in map server.By that will be downloaded from server Map block data store into off-line data so that subsequent when having identical map block data requirements, without downloading again, save Downloading process resource used is saved.
As shown in figure 4, in step 205, data engine obtains map block number by off-line data and/or download online According to.If in the map block data that example A and example B need to obtain, there are the part of overlapping, this partly tile data, number It only needs to obtain according to engine once, thus greatly reduces process resource consumption.
Step 206:By data engine by map block data buffer storage to common data buffer area.
After getting the corresponding map block data of the data directory in map block request of data, by map block data buffer storage To common data buffer area, so that each example can tile data executes rendering behaviour over the ground by corresponding rendering thread Make.
As shown in figure 4, in step 206, data engine is by map block data buffer storage to common data buffer area.Such as fruit In the map block data that example A and example B needs to obtain, there are the parts of overlapping, and partly tile data is slow in common data for this Area is deposited only to need to store once, so that storage resource be greatly saved.
Step 207:The map block data having not been obtained are searched in common data buffer area again by loading thread.
It in embodiments of the present invention, should if not finding the map block data for all needing to obtain in step 202 Lookup movement can periodically carry out, i.e., periodically search the map block data not found in common data buffer area, directly To found in common data buffer area acquisition in need map block data until.Also, thread is loaded in search procedure In, the map block data newly found can be loaded every time, the map block data of acquisition in need until being loaded with.
Wherein, the period distances of lookup movement can according to need design, such as 1 second or 0.5 second etc..
The step 207 is identical as step 202, is not described in detail herein.
As shown in figure 4, in step 207, the corresponding load thread of example A is in common data buffer area finding step 202 The map block data not found;The corresponding load thread of example B is not found in common data buffer area finding step 202 Map block data.
Step 208:By rendering thread, tile data progress pattern matching obtains rendering data over the ground.
Wherein, pattern matching refers to for different point, line, surface data, forms pattern using different patterns.For example, Corresponding face data is expressway, then is matched using the pattern of expressway, and pattern is formed.The wash with watercolours obtained by pattern matching Dye data are polar plot.
As shown in figure 4, in a step 208, the corresponding rendering thread of example A load thread corresponding to example A is got Map block data carry out pattern matching;The map that the corresponding rendering thread of example B load thread corresponding to example B is got Block number is according to progress pattern matching.
Step 209:Image rendering is carried out using rendering data by rendering thread, obtains map picture.
Image rendering is carried out using rendering data to refer to, vector to raster conversion is carried out to the pattern that back is formed, also will Vector graphics is converted into bitmap (grating image), eventually forms map picture.
As shown in figure 4, in step 209, the corresponding rendering thread of example A and the corresponding rendering thread of example B are adopted respectively Image rendering is carried out with respective rendering data.
The application is by for the map block request of data that different examples is sent, obtaining in electronic map application work Corresponding map block data deposit common data buffer area is taken, since common data buffer area is that can be applied by electronic map The access of at least two examples, for each example provide map block data buffer storage without repeating, save map block data and store Required storage resource.In addition, all embodiments share off-line data in this application, depositing for off-line data occupancy can be saved Store up resource;Meanwhile all embodiments share downloading queue, are not in the case where identical map block Data duplication is downloaded, Save process resource and Internet resources.
Fig. 5 is a kind of structural schematic diagram of map data processing device provided in an embodiment of the present invention, referring to Fig. 5, the dress Set including:Obtain module 301, processing module 302 and cache module 303.It obtains module 301 and is used to obtain electronic map application The map block request of data of any instance, map block request of data include the data directory of at least one map block data, electronics Map application includes at least two examples, and example is for output map picture on a user interface.Processing module 302 is for obtaining Map block data corresponding with the data directory in map block request of data.Cache module 303 is used for map block data buffer storage To common data buffer area, which is the caching that at least two examples in electronic map application access jointly Area.
Optionally, processing module 302 includes offline acquisition submodule 321 and online acquisition submodule 322.It is offline to obtain son Module 321 is used to search the corresponding map block data of data directory in off-line data, and off-line data is electronic map application Off-line data, the data directory include the first data directory and the second data directory;It is counted when finding first in off-line data According to indexing corresponding map block data, and when not finding the corresponding map block data of the second data directory, in off-line data Obtain the corresponding map block data of the first data directory;Online acquisition submodule 322 is used for from the second number of map server downloading According to the corresponding map block data of index.
Wherein, online acquisition submodule 322, for sending downloading request to map server, downloading request includes second Data directory;Receive the map block data that map server is sent.
Wherein, online acquisition submodule 322, for judge downloading queue in the presence or absence of the second data directory it is corresponding under Load task, downloading queue are the downloading queue of electronic map application;When there is no the second data directory is corresponding in downloading queue When downloading task, the corresponding downloading task of data directory is distributed into downloading queue;It is sent out by downloading queue to map server Downloading is sent to request.
Optionally, which further includes:Memory module 304, the map block number for will be downloaded to from map server According to being saved in off-line data.
Optionally, which further includes:Searching module 305, for being touched according to user when detecting user's touch operation Operation is touched, determines the map block data for needing to obtain;The map block data for needing to obtain are searched in common data buffer area;It generates Module 306, for when do not found in common data buffer area acquisition in need map block data when, according to not finding Map block data data directory generate map block request of data.
Optionally, searching module 305 are also used to periodically search the map block not found in common data buffer area Data.
It should be noted that:Map data processing device provided by the above embodiment is realizing map data processing method When, only the example of the division of the above functional modules, in practical application, it can according to need and divide above-mentioned function With being completed by different functional modules, i.e., the internal structure of device is divided into different functional modules, to complete above description All or part of function.In addition, map data processing device provided by the above embodiment and map data processing method are real It applies example and belongs to same design, specific implementation process is detailed in embodiment of the method, and which is not described herein again.
Fig. 6 is a kind of structural schematic diagram of terminal device provided in an embodiment of the present invention.The terminal device can be movement Terminal.Specifically:Terminal device 400 includes:Processor 401 and memory 402.
Processor 401 may include one or more processing cores, such as 4 core processors, 8 core processors etc..Place Reason device 401 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 401 also may include primary processor and coprocessor, master Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.? In some embodiments, processor 401 can be integrated with GPU (Graphics Processing Unit, image processor), GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 401 can also be wrapped AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning Calculating operation.
Memory 402 may include one or more computer readable storage mediums, which can To be non-transient.Memory 402 may also include high-speed random access memory and nonvolatile memory, such as one Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 402 can Storage medium is read for storing at least one instruction, at least one instruction performed by processor 401 for realizing this Shen Please in embodiment of the method provide assisting automobile driver method.
In some embodiments, terminal device 400 is also optional includes:Peripheral device interface 403 and at least one periphery Equipment.It can be connected by bus or signal wire between processor 401, memory 402 and peripheral device interface 403.It is each outer Peripheral equipment can be connected by bus, signal wire or circuit board with peripheral device interface 403.Specifically, peripheral equipment includes:It penetrates At least one in frequency circuit 404, touch display screen 405, camera 406, voicefrequency circuit 407, positioning component 408 and power supply 409 Kind.
Peripheral device interface 403 can be used for I/O (Input/Output, input/output) is relevant outside at least one Peripheral equipment is connected to processor 401 and memory 402.In some embodiments, processor 401, memory 402 and peripheral equipment Interface 403 is integrated on same chip or circuit board;In some other embodiments, processor 401, memory 402 and outer Any one or two in peripheral equipment interface 403 can realize on individual chip or circuit board, the present embodiment to this not It is limited.
Radio circuit 404 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal.It penetrates Frequency circuit 404 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 404 turns electric signal It is changed to electromagnetic signal to be sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit 404 wraps It includes:Antenna system, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, codec chip Group, user identity module card etc..Radio circuit 404 can be carried out by least one wireless communication protocol with other terminals Communication.The wireless communication protocol includes but is not limited to:Metropolitan Area Network (MAN), each third generation mobile communication network (2G, 3G, 4G and 5G), wireless office Domain net and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some embodiments, radio circuit 404 may be used also To include the related circuit of NFC (Near Field Communication, wireless near field communication), the application is not subject to this It limits.
Display screen 405 is for showing UI (User Interface, user interface).The UI may include figure, text, figure Mark, video and its their any combination.When display screen 405 is touch display screen, display screen 405 also there is acquisition to show The ability of the touch signal on the surface or surface of screen 405.The touch signal can be used as control signal and be input to processor 401 are handled.At this point, display screen 405 can be also used for providing virtual push button and/or dummy keyboard, also referred to as soft button and/or Soft keyboard.In some embodiments, display screen 405 can be one, and the front panel of terminal device 400 is arranged;In other realities It applies in example, display screen 405 can be at least two, be separately positioned on the different surfaces of terminal device 400 or in foldover design;? In still other embodiments, display screen 405 can be flexible display screen, is arranged on the curved surface of terminal device 400 or folds On face.Even, display screen 405 can also be arranged to non-rectangle irregular figure, namely abnormity screen.Display screen 405 can be adopted With LCD (Liquid Crystal Display, liquid crystal display), (Organic Light-Emitting Diode, has OLED Machine light emitting diode) etc. materials preparation.
CCD camera assembly 406 is for acquiring image or video.Optionally, CCD camera assembly 406 include front camera and Rear camera.In general, the front panel of terminal is arranged in front camera, the back side of terminal is arranged in rear camera.One In a little embodiments, rear camera at least two is main camera, depth of field camera, wide-angle camera, focal length camera shooting respectively Any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and wide-angle Camera fusion realizes that pan-shot and VR (Virtual Reality, virtual reality) shooting function or other fusions are clapped Camera shooting function.In some embodiments, CCD camera assembly 406 can also include flash lamp.Flash lamp can be monochromatic warm flash lamp, It is also possible to double-colored temperature flash lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for not With the light compensation under colour temperature.
Voicefrequency circuit 407 may include microphone and loudspeaker.Microphone is used to acquire the sound wave of user and environment, and will Sound wave, which is converted to electric signal and is input to processor 401, to be handled, or is input to radio circuit 404 to realize voice communication. For stereo acquisition or the purpose of noise reduction, microphone can be separately positioned on the different parts of terminal device 400 to be multiple. Microphone can also be array microphone or omnidirectional's acquisition type microphone.Loudspeaker is then used to that processor 401 or radio frequency will to be come from The electric signal of circuit 404 is converted to sound wave.Loudspeaker can be traditional wafer speaker, be also possible to piezoelectric ceramics loudspeaking Device.When loudspeaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, can also be incited somebody to action Electric signal is converted to the sound wave that the mankind do not hear to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 407 can be with Including earphone jack.
Positioning component 408 is used for the current geographic position of positioning terminal equipment 400, to realize navigation or LBS (Location Based Service, location based service).Positioning component 408 can be the GPS (Global based on the U.S. Positioning System, global positioning system), the dipper system of China, Russia Gray receive this system or European Union The positioning component of Galileo system.
Power supply 409 is used to be powered for the various components in terminal device 400.Power supply 409 can be alternating current, direct current Electricity, disposable battery or rechargeable battery.When power supply 409 includes rechargeable battery, which can support wired Charging or wireless charging.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, terminal device 400 further includes having one or more sensors 140.The one or more passes Sensor 140 includes but is not limited to:Acceleration transducer 411, gyro sensor 412, pressure sensor 413, fingerprint sensor 414, optical sensor 415 and proximity sensor 416.
Acceleration transducer 411 can detecte the acceleration in three reference axis of the coordinate system established with terminal device 400 Spend size.For example, acceleration transducer 411 can be used for detecting component of the acceleration of gravity in three reference axis.Processor The 401 acceleration of gravity signals that can be acquired according to acceleration transducer 411, control touch display screen 405 with transverse views or Longitudinal view carries out the display of user interface.Acceleration transducer 411 can be also used for game or the exercise data of user Acquisition.
Gyro sensor 412 can detecte body direction and the rotational angle of terminal device 400, gyro sensor 412 can cooperate with acquisition user to act the 3D of terminal device 400 with acceleration transducer 411.Processor 401 is according to gyroscope The data that sensor 412 acquires, may be implemented following function:Action induction (for example changed according to the tilt operation of user UI), image stabilization, game control and inertial navigation when shooting.
The lower layer of side frame and/or touch display screen 405 in terminal device 400 can be set in pressure sensor 413.When When the side frame of terminal device 400 is arranged in pressure sensor 413, user can detecte to the gripping signal of terminal device 400, Right-hand man's identification or prompt operation are carried out according to the gripping signal that pressure sensor 413 acquires by processor 401.Work as pressure sensing When the lower layer of touch display screen 405 is arranged in device 413, grasped by processor 401 according to pressure of the user to touch display screen 405 Make, realization controls the operability control on the interface UI.Operability control include button control, scroll bar control, At least one of icon control, menu control.
Fingerprint sensor 414 is used to acquire the fingerprint of user, collected according to fingerprint sensor 414 by processor 401 The identity of fingerprint recognition user, alternatively, by fingerprint sensor 414 according to the identity of collected fingerprint recognition user.It is identifying When the identity of user is trusted identity out, the user is authorized to execute relevant sensitive operation, the sensitive operation packet by processor 401 Include solution lock screen, check encryption information, downloading software, payment and change setting etc..Terminal can be set in fingerprint sensor 414 Front, the back side or the side of equipment 400.When being provided with physical button or manufacturer Logo on terminal device 400, fingerprint sensor 414 can integrate with physical button or manufacturer Logo.
Optical sensor 415 is for acquiring ambient light intensity.In one embodiment, processor 401 can be according to optics The ambient light intensity that sensor 415 acquires controls the display brightness of touch display screen 405.Specifically, when ambient light intensity is higher When, the display brightness of touch display screen 405 is turned up;When ambient light intensity is lower, the display for turning down touch display screen 405 is bright Degree.In another embodiment, the ambient light intensity that processor 401 can also be acquired according to optical sensor 415, dynamic adjust The acquisition parameters of CCD camera assembly 406.
Proximity sensor 416, also referred to as range sensor are generally arranged at the front panel of terminal device 400.Proximity sensor 416 for acquiring the distance between the front of user Yu terminal device 400.In one embodiment, when proximity sensor 416 is examined When measuring the distance between the front of user and terminal device 400 and gradually becoming smaller, touch display screen 405 is controlled by processor 401 Breath screen state is switched to from bright screen state;When proximity sensor 416 detect between user and the front of terminal device 400 away from When from becoming larger, touch display screen 405 being controlled by processor 401 and is switched to bright screen state from breath screen state.
It will be understood by those skilled in the art that structure shown in Fig. 6 does not constitute the restriction to terminal device 400, it can To include perhaps combining certain components than illustrating more or fewer components or being arranged using different components.
Above-mentioned memory further includes one, and perhaps more than one program one or more than one program are stored in storage In device, it is configured to be executed by CPU.The one or more programs include for carrying out figure provided in an embodiment of the present invention 2 or map data processing method shown in Fig. 3 instruction.
The embodiment of the invention also provides a kind of non-transitorycomputer readable storage mediums, when in the storage medium When instruction is executed by the processor of computing system, so that the map that computing system is able to carry out Fig. 2 or embodiment illustrated in fig. 3 provides Data processing method.
A kind of computer program product comprising instruction, when run on a computer, so that computer execution is above-mentioned The map data processing method that Fig. 2 or embodiment illustrated in fig. 3 provide.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of map data processing method, which is characterized in that the method includes:
The map block request of data of any instance of electronic map application is obtained, the map block request of data includes at least one The data directory of map block data, it includes at least two examples that the electronic map, which is applied, and the example is used in user interface Upper output map picture;
Obtain map block data corresponding with the data directory in the map block request of data;
By the map block data buffer storage to common data buffer area, the common data buffer area is the electronic map application In the buffer area that accesses jointly of at least two example.
2. the method according to claim 1, wherein the acquisition and the data in the map block request of data Corresponding map block data are indexed, including:
The corresponding map block data of the data directory are searched in off-line data, the off-line data is that the electronic map is answered Off-line data, the data directory include the first data directory and the second data directory;
When finding the corresponding map block data of first data directory in the off-line data, and described is not found When the corresponding map block data of two data directories, the corresponding map block of first data directory is obtained in the off-line data Data, while the corresponding map block data of second data directory are downloaded from map server.
3. according to the method described in claim 2, it is characterized in that, described download second data directory from map server Corresponding map block data, including:
Downloading request is sent to the map server, the downloading request includes second data directory;
Receive the map block data that the map server is sent.
4. according to the method described in claim 3, it is characterized in that, described send downloading request, packet to the map server It includes:
It whether there is the corresponding downloading task of second data directory in judgement downloading queue, the downloading queue is the electricity The downloading queue of sub- map application;
When downloading task corresponding there is no second data directory in the downloading queue, by second data directory Corresponding downloading task distributes to the downloading queue;
The downloading request is sent to the map server by the downloading queue.
5. according to the method described in claim 2, it is characterized in that, the method also includes:
It will be saved in the off-line data from the map block data downloaded in the map server.
6. method according to any one of claims 1 to 5, which is characterized in that described any for obtaining electronic map application The map block request of data of example, including:
When detecting user's touch operation, according to user's touch operation, the map block data for needing to obtain are determined;
The map block data for needing to obtain are searched in the common data buffer area;
When do not found in the common data buffer area acquisition in need map block data when, according to the ground not found The data directory of tile data generates the map block request of data.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
The map block data not found are periodically searched in the common data buffer area.
8. a kind of map data processing device, which is characterized in that described device includes:
Module is obtained, the map block request of data of any instance for obtaining electronic map application, the map block data are asked The data directory including at least one map block data is sought, it includes at least two examples, the example that the electronic map, which is applied, For output map picture on a user interface;
Processing module, for obtaining map block data corresponding with the data directory in the map block request of data;
Cache module, for by the map block data buffer storage to common data buffer area, the common data buffer area to be institute State the buffer area that at least two example in electronic map application accesses jointly.
9. a kind of terminal device, which is characterized in that the terminal device includes processor and memory, is stored in the memory There is at least one instruction, described instruction is loaded by the processor and executed as described in any one of claim 1 to 7 to realize Map data processing method.
10. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, institute in the storage medium Instruction is stated to be loaded by processor and executed to realize map data processing method as described in any one of claim 1 to 7.
CN201810685308.2A 2018-06-28 2018-06-28 Map data processing method, map data processing device, terminal equipment and storage medium Active CN108920606B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810685308.2A CN108920606B (en) 2018-06-28 2018-06-28 Map data processing method, map data processing device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810685308.2A CN108920606B (en) 2018-06-28 2018-06-28 Map data processing method, map data processing device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108920606A true CN108920606A (en) 2018-11-30
CN108920606B CN108920606B (en) 2020-10-23

Family

ID=64423145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810685308.2A Active CN108920606B (en) 2018-06-28 2018-06-28 Map data processing method, map data processing device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108920606B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857821A (en) * 2018-12-28 2019-06-07 努比亚技术有限公司 A kind of recording method of motion profile, terminal and computer readable storage medium
CN110333835A (en) * 2019-05-09 2019-10-15 百度在线网络技术(北京)有限公司 Display methods, system, electronic equipment and the computer-readable medium of vehicle-mounted data image
CN110674134A (en) * 2019-09-16 2020-01-10 腾讯大地通途(北京)科技有限公司 Geographic information data storage method, query method and device
CN111672109A (en) * 2020-06-10 2020-09-18 腾讯科技(深圳)有限公司 Game map generation method, game testing method and related device
CN112333787A (en) * 2020-11-13 2021-02-05 Oppo广东移动通信有限公司 Data transmission method, device, storage medium, terminal and network access point equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101038550A (en) * 2006-03-17 2007-09-19 国际商业机器公司 Information processing apparatus and information processing method
CN102419770A (en) * 2011-11-23 2012-04-18 中兴通讯股份有限公司 File sharing system, method for realizing file sharing, and file index service equipment
CN104375857A (en) * 2014-10-22 2015-02-25 腾讯科技(深圳)有限公司 Method and device for enabling application program to operate multiple instances and terminal equipment
CN104618503A (en) * 2015-02-15 2015-05-13 西安酷派软件科技有限公司 Inter-system data synchronization and sharing method and device as well as terminal
US20160210273A1 (en) * 2015-01-15 2016-07-21 Sap Se In-memory workspace management
CN106021591A (en) * 2016-06-06 2016-10-12 北京奇虎科技有限公司 Data processing method and system for terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101038550A (en) * 2006-03-17 2007-09-19 国际商业机器公司 Information processing apparatus and information processing method
CN102419770A (en) * 2011-11-23 2012-04-18 中兴通讯股份有限公司 File sharing system, method for realizing file sharing, and file index service equipment
CN104375857A (en) * 2014-10-22 2015-02-25 腾讯科技(深圳)有限公司 Method and device for enabling application program to operate multiple instances and terminal equipment
US20160210273A1 (en) * 2015-01-15 2016-07-21 Sap Se In-memory workspace management
CN104618503A (en) * 2015-02-15 2015-05-13 西安酷派软件科技有限公司 Inter-system data synchronization and sharing method and device as well as terminal
CN106021591A (en) * 2016-06-06 2016-10-12 北京奇虎科技有限公司 Data processing method and system for terminal

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857821A (en) * 2018-12-28 2019-06-07 努比亚技术有限公司 A kind of recording method of motion profile, terminal and computer readable storage medium
CN109857821B (en) * 2018-12-28 2023-10-20 浙江海幻信息技术有限公司 Method for recording motion trail, terminal and computer readable storage medium
CN110333835A (en) * 2019-05-09 2019-10-15 百度在线网络技术(北京)有限公司 Display methods, system, electronic equipment and the computer-readable medium of vehicle-mounted data image
CN110674134A (en) * 2019-09-16 2020-01-10 腾讯大地通途(北京)科技有限公司 Geographic information data storage method, query method and device
CN110674134B (en) * 2019-09-16 2024-02-13 腾讯大地通途(北京)科技有限公司 Geographic information data storage method, query method and device
CN111672109A (en) * 2020-06-10 2020-09-18 腾讯科技(深圳)有限公司 Game map generation method, game testing method and related device
CN112333787A (en) * 2020-11-13 2021-02-05 Oppo广东移动通信有限公司 Data transmission method, device, storage medium, terminal and network access point equipment
CN112333787B (en) * 2020-11-13 2023-09-12 Oppo广东移动通信有限公司 Data transmission method, device, storage medium, terminal and network access point equipment

Also Published As

Publication number Publication date
CN108920606B (en) 2020-10-23

Similar Documents

Publication Publication Date Title
CN108920606A (en) map data processing method, device, terminal device and storage medium
CN108924737A (en) Localization method, device, equipment and computer readable storage medium
CN110347520A (en) Method, apparatus, electronic equipment and the medium of message distribution
CN110532170A (en) Build method, apparatus, electronic equipment and the medium of test environment
CN108762881A (en) Interface method for drafting, device, terminal and storage medium
CN110095128A (en) Obtain method, apparatus, equipment and the storage medium of missing road informations
CN110044638A (en) Test method, device and the storage medium of lane holding function
CN110288689A (en) The method and apparatus that electronic map is rendered
CN109948581A (en) Picture and text rendering method, device, equipment and readable storage medium storing program for executing
CN109886208A (en) Method, apparatus, computer equipment and the storage medium of object detection
CN109902089A (en) Querying method, device, electronic equipment and the medium indexed using isomery
CN109933594A (en) Obtain method, apparatus, electronic equipment and the medium of data
CN110211202A (en) Broken line method for drafting, device, electronic equipment and storage medium
CN108909717A (en) Lightweight horizontal determining method, device and the storage medium of electric car
CN110109770A (en) Adjustment method, device, electronic equipment and medium
CN110515962A (en) Data cached method, apparatus, electronic equipment and storage medium
CN111797017B (en) Method, device, test equipment and storage medium for storing log
CN113469360B (en) Reasoning method and device
CN110297684A (en) Theme display methods, device and storage medium based on virtual portrait
CN113051485B (en) Group searching method, device, terminal and storage medium
CN109359259A (en) Load the method and device of webpage
CN109299319A (en) Display methods, device, terminal and the storage medium of audio-frequency information
CN109117895A (en) Data clustering method, device and storage medium
CN112990421B (en) Method, device and storage medium for optimizing operation process of deep learning network
CN111984738B (en) Data association method, device, equipment and storage medium

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