CN112231125B - Map display method and device for intelligent vehicle-mounted internet terminal - Google Patents

Map display method and device for intelligent vehicle-mounted internet terminal Download PDF

Info

Publication number
CN112231125B
CN112231125B CN202011482083.4A CN202011482083A CN112231125B CN 112231125 B CN112231125 B CN 112231125B CN 202011482083 A CN202011482083 A CN 202011482083A CN 112231125 B CN112231125 B CN 112231125B
Authority
CN
China
Prior art keywords
data
map
threads
map data
request
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
CN202011482083.4A
Other languages
Chinese (zh)
Other versions
CN112231125A (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 CN202011482083.4A priority Critical patent/CN112231125B/en
Publication of CN112231125A publication Critical patent/CN112231125A/en
Application granted granted Critical
Publication of CN112231125B publication Critical patent/CN112231125B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/20Instruments for performing navigational calculations
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/36Input/output arrangements for on-board computers
    • G01C21/3667Display of a road map

Abstract

The application relates to a map display method and device for an intelligent vehicle-mounted networking terminal. The method comprises the following steps: creating a plurality of threads for a main process in advance; distributing, by the host process, a data request to the plurality of threads; respectively caching map data acquired by the multiple threads according to the data requests, and generating cache data of the map data; and pushing the cache data of the map data to the main process so that the main process renders the cache data and displays the cache data. According to the scheme, the display speed of the map data can be improved.

Description

Map display method and device for intelligent vehicle-mounted internet terminal
Technical Field
The application relates to the technical field of navigation, in particular to a map display method and device for an intelligent vehicle-mounted networking terminal.
Background
The expression forms of the map data in the related art are various, wherein the application of the multi-level map data beneficial to the storage and/or the update of the map data is more and more extensive, the composition of the multi-level map data is more and more complex, the map data volume of the multi-level map data is huge, and when a user interacts with a map, the map display can generate obvious blockage and the display is not smooth.
Disclosure of Invention
In order to solve the problems in the related art, the map display method and device of the intelligent vehicle-mounted networking terminal are provided, and the map data display speed can be improved.
The application provides a map display method for an intelligent vehicle-mounted internet terminal in a first aspect, and the method comprises the following steps:
creating a plurality of threads for a main process in advance;
distributing, by the host process, a data request to the plurality of threads;
respectively caching map data acquired by the multiple threads according to the data requests, and generating cache data of the map data;
and pushing the cache data of the map data to the main process so that the main process renders the cache data and displays the cache data.
Preferably, the creating a plurality of threads for the main process in advance includes:
determining the construction progression of the map data to be displayed according to the data request;
creating a plurality of threads for the main process in advance according to the number of the construction levels of the map data to be displayed, wherein the plurality of threads at least comprise one of the following threads: the map navigation system comprises an information point search thread, a navigation service thread, a map surface and point element display thread, a map label display thread and a map road display thread.
Preferably, the determining the number of the constituent levels of the map data to be displayed according to the data request includes:
determining the hierarchy of the map data to be displayed according to the data request;
and determining the construction progression of the map data to be displayed according to the data request and the hierarchy of the map data to be displayed.
Preferably, the caching the map data acquired by the plurality of threads according to the data request respectively to generate the cache data of the map data includes:
according to the data request distributed by the main process, caching information point search threads, navigation service threads, map surfaces and point element display threads, map label display threads and/or map data acquired by map road display threads according to the data request to generate the cache data of the map data.
Preferably, the method further comprises:
causing the plurality of threads to concurrently execute to process the data request;
and respectively caching the map data acquired by the multiple threads according to the data request, and generating cache data of the map data.
Preferably, the number of the plurality of threads is greater than or equal to the number of the structural levels of the map data to be displayed.
The second aspect of the present application provides a map display device of on-vehicle networking terminal of intelligence, the device includes:
the creating module is used for creating a plurality of threads for the main process in advance;
the request processing module is used for distributing the data request to the plurality of threads created by the creating module through the main process;
the cache module is used for caching map data acquired by the multiple threads created by the creation module according to the data requests distributed by the request processing module respectively to generate cache data of the map data;
and the data processing module is used for pushing the cache data of the map data generated by the cache module to the main process so as to enable the main process to render and display the cache data generated by the cache module.
Preferably, the creating module is specifically configured to:
determining the hierarchy of the map data to be displayed according to the data request;
determining the construction progression of the map data to be displayed according to the data request and the hierarchy of the map data to be displayed;
creating the multiple threads for the main process in advance according to the number of the composition levels of the map data to be displayed, wherein the multiple threads at least comprise one of the following threads: the map navigation system comprises an information point search thread, a navigation service thread, a map surface and point element display thread, a map label display thread and a map road display thread.
Preferably, the cache module is specifically configured to respectively cache information point search threads, navigation service threads, map surfaces and point element display threads, map label display threads, and/or map data acquired by a map road display thread according to the data request distributed by the request processing module through the main process, so as to generate cache data of the map data.
Preferably, the device further comprises an execution module;
and the execution module is used for enabling the plurality of threads created by the creation module to concurrently execute and process the data request.
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 map display method of the intelligent vehicle-mounted networking terminal, the construction level of the map data to be displayed of the specific level is determined according to the data request, a plurality of threads are established for the main process of the intelligent vehicle-mounted networking terminal in advance according to the construction level of the map data to be displayed of the specific level, the threads concurrently execute the data processing request, simultaneously obtain the map data corresponding to the data request, the time for obtaining the map data is shortened, the obtaining speed and the display speed of the map data can be improved, and the map data of the intelligent vehicle-mounted networking terminal can be smoothly and not blocked in display.
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 map display method of an intelligent vehicle-mounted internet terminal according to an embodiment of the present application;
fig. 2 is another schematic flow chart of a map display method of an intelligent vehicle-mounted internet terminal according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a map display device of an intelligent vehicle-mounted internet terminal according to an embodiment of the present application;
fig. 4 is another schematic structural diagram of a map display device of an intelligent vehicle-mounted internet terminal according to an embodiment of the present application;
fig. 5 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.
The map display method of the intelligent vehicle-mounted networking terminal can improve the display speed of map data.
The technical solutions of the embodiments of the present application are described in detail below with reference to the accompanying drawings.
The first embodiment is as follows:
fig. 1 is a schematic flowchart of a map display method of an intelligent vehicle-mounted internet terminal according to an embodiment of the present application.
Referring to fig. 1, a map display method of an intelligent vehicle-mounted internet terminal includes:
in step 101, a plurality of threads are created in advance for a host process.
In one embodiment, the threads are basic execution units for processing data and data requests by the main process of the intelligent vehicle-mounted networking terminal, and all tasks processed by the main process are executed in the threads, so that a plurality of threads are created for the main process of the intelligent vehicle-mounted networking terminal for processing the tasks in advance, each thread can independently process the tasks of the thread without influencing each other, and the speed of processing the data and the data requests by the main process of the intelligent vehicle-mounted networking terminal can be increased.
In step 102, a data request is distributed to a plurality of threads by a host process.
In one embodiment, the input of the user can be analyzed, the data request is obtained, and the data request is distributed to a plurality of threads of the main process through the main process.
In step 103, the map data acquired by the plurality of threads in response to the data request is cached, and cache data of the map data is generated.
In an embodiment, map data acquired by a plurality of threads according to the data requests are received, and the map data are respectively cached to generate cache data of the map data.
In step 104, the cache data of the map data is pushed to the host process, so that the host process renders the cache data and displays the rendered cache data.
In one embodiment, the cache data of the map data is pushed to the main thread, the main thread renders the cache data of the map data to generate a map, and the map is displayed on a display interface of the intelligent vehicle-mounted internet terminal.
According to the map display method of the intelligent vehicle-mounted networking terminal, the data request of the main process of the intelligent vehicle-mounted networking terminal is processed through the multiple threads, the time for obtaining the map data is shortened, the obtaining speed and the display speed of the map data can be improved, and the map data can be displayed smoothly without being jammed.
Example two:
fig. 2 is another schematic flow chart of a map display method of an intelligent vehicle-mounted internet terminal according to an embodiment of the present application. Fig. 2 describes the solution of the present application in more detail with respect to fig. 1.
Referring to fig. 2, a map display method of an intelligent vehicle-mounted internet terminal includes:
in step 201, a hierarchy of map data to be displayed is determined according to the data request.
In one embodiment, the intelligent vehicle-mounted networking terminal can provide services such as positioning, map query and navigation for a user. The intelligent vehicle-mounted Internet terminal may include, but is not limited to, a Mobile phone, a Mobile tablet, a Personal Digital Assistant (PDA), a vehicle-mounted intelligent Device located in an automobile, an intelligent wearable Device (such as a smart watch, a smart bracelet, etc.), a Mobile Internet Device (MID), and the like.
In one embodiment, the map data size is enormous due to the large amount of information such as roads, buildings, names, etc. contained in the map. For better management and tracking of map data, before the map data is used, the map data may be hierarchically processed and stored, and the hierarchically map data may be stored in the map database. For example, the map data may be divided into a plurality of data levels from top to bottom, where the number of data levels is M, and M is a positive integer, and one upper layer map data may correspond to a plurality of lower layer map data, and each layer map data expresses the connectivity characteristics of different map elements.
In one embodiment, different scales may correspond to different data levels. The scaling of the map to be displayed may be determined according to the data request, and the level N of the map data to be displayed, which is pre-stored in the map database corresponding to the data request, is determined according to the scaling, where N is one of the level numbers M. The hierarchy of the map data to be displayed is determined according to the data request, which can refer to the prior art and is not described in detail herein.
In step 202, the number of constituent levels of the map data to be displayed is determined according to the data request and the hierarchy of the map data to be displayed.
In one embodiment, the map data may include map elements such as points, lines, faces, descriptive text, or labels. For example, map data representing different levels of places such as cities, airports, gas stations, etc. by dots, line-type map data representing roads, rivers, etc. by broken lines, regional map data representing lakes, various land types, etc. by planes formed by polygons, and map data representing various names such as road names, place names, etc. by explanatory characters or labels.
In a specific embodiment, the hierarchy of the map data to be displayed is determined to be N according to the data request, and the number of the structural levels of the map data to be displayed is determined according to the map elements of the map data to be displayed with the hierarchy of N. For example, if the map elements of the map data to be displayed with the hierarchy N include points, lines, faces, explanatory characters, or labels, it is determined that the number of the constituent stages of the map data to be displayed is four; or, the map element points and the surfaces are combined into one map element according to the characteristics of the map element points and the surfaces, and it can be determined that the number of the structural stages of the map data to be displayed is three.
In step 203, a plurality of threads are created in advance for the main process according to the number of constituent levels of the map data to be displayed.
In an embodiment, the map elements of the map data to be displayed with the hierarchy N include four constituent elements, namely, a point, a line, a surface, a descriptive text, and a label, the number of constituent stages of the map data to be displayed with the hierarchy N is four, and four threads may be created for the main process in advance according to the number of constituent stages of the map data to be displayed.
In an embodiment, the number of created threads may be greater than or equal to the number of constituent levels of the map data to be displayed, or may be smaller than the number of constituent levels of the map data to be displayed.
In one embodiment, the map elements of the map data to be displayed with the hierarchy N include four constituent elements, namely, points, lines, faces, explanatory characters, and labels, and the map element points and the faces are combined into one map element according to the characteristics of the map element points and the faces, so that the number of the constituent stages of the map data to be displayed is determined to be three, and a plurality of threads can be created according to the number of the constituent stages of the map data to be displayed. The plurality of threads may include at least one of: POI (Point of Information, Chinese full name) search thread, navigation service thread, map surface and Point element display thread, map Label and map road display thread.
In step 204, the data request is distributed to the plurality of threads by the host process.
In one embodiment, the user input may be parsed to obtain data requests, which are distributed to multiple threads by the host process.
In a specific implementation mode, a data request for acquiring map data to be displayed is distributed to a plurality of threads through a main process, a data request for acquiring map elements and surface data is sent to a map surface and a display thread of the map elements, a data request for acquiring map element line data is sent to a display thread of a map road, a data request for acquiring descriptive characters or Label data of the map elements is sent to a display thread of a map Label, a data request for acquiring information point data of the map data to be displayed is sent to a POI search thread, and a data request for acquiring navigation data of the map data to be displayed is sent to a navigation service thread.
In step 205, multiple threads are concurrently enabled to execute the process data request.
In one embodiment, according to the data request, a plurality of threads are enabled to concurrently execute and process the data request, and map data to be displayed corresponding to the data request is requested and acquired from a map database.
In one embodiment, a plurality of threads request map data corresponding to the data request and the hierarchy of the map data to be displayed from a map database according to the hierarchy of the map data to be displayed. For example, if the determined map data to be displayed has a hierarchy of N according to the data request, the multiple threads acquire the map data to be displayed having the hierarchy of N according to the data request, the map elements of the map data to be displayed having the hierarchy of N include points, lines, faces, explanatory characters or labels, and the multiple threads concurrently execute the data processing request according to the data request and acquire the respective map element data from the map database. The display thread of the map surface and the point elements acquires the map element surface and the point data from the map data to be displayed with the hierarchy of N according to the data request; the display thread of the map road acquires map element line data from the map data to be displayed with the hierarchy N according to the data request; and the display thread of the map Label acquires the descriptive text or Label data of the map elements from the map data to be displayed with the hierarchy of N according to the data request.
In a specific embodiment, the created POI search thread may obtain, according to the data request, information point data in the map data to be displayed with the corresponding level N, where the information point data may include a name, a category, coordinates, and a classification of the information point.
In a specific embodiment, the created navigation service thread may obtain, for the user, navigation data in the map data to be displayed with the corresponding hierarchy level N according to the data request, where the navigation data may include various object data required for drawing a navigation route from a navigation start point to a navigation end point, such as route length, road condition data, electronic eye data, traffic light data, and the like.
In step 206, map data acquired by the threads according to the hierarchy of the map data to be displayed and the data request are cached, and cached data of the map data is generated.
In a specific embodiment, map data acquired from a map database by a plurality of threads is received according to a data request distributed by a main process, and the time for the plurality of threads to complete processing the data request and acquire the map data corresponding to the data request may be consistent or inconsistent, so that the POI search thread, the navigation service thread, the map surface and point element display thread, the map Label display thread, and/or the map road display thread can be cached according to the sequence for acquiring the map data to generate the cache data of the map data according to the map data acquired by the data request.
In step 207, the cache data of the map data is pushed to the host process, so that the host process renders the cache data for display.
In one embodiment, the cache data of the map data is pushed to the main thread, so that the main thread renders the cache data of the map data, a map is generated, and the map is displayed on a display interface of the intelligent vehicle-mounted internet terminal.
In one embodiment, the map elements of the map data to be displayed with the hierarchy N include four constituent elements of a point, a line, a face, an explanatory text, or a label, and a plurality of threads for acquiring the map element data, acquiring the information point data related to the data request, and acquiring the navigation data related to the data request are created according to the number of constituent levels of the map data to be displayed. The plurality of threads includes at least one of: the method comprises a POI searching thread, a navigation service thread, a map surface and point element display thread, a map Label display thread and a map road display thread. After the multiple threads receive the data requests distributed by the main process, the multiple threads are enabled to concurrently execute and process the data requests, and the multiple threads simultaneously request the map database to acquire map data corresponding to the data requests. The POI searching thread requests the map database and acquires information point data corresponding to the data request; the navigation service thread requests the map database and acquires navigation data corresponding to the data request; the display thread of the map surface and the point elements requests the map database and acquires the map element surface and the point data corresponding to the data request; the display thread of the map road requests the map database and acquires map element line data corresponding to the data request; and the display thread of the map Label requests the map database and acquires the map element descriptive characters or Label data corresponding to the data request. And receiving map data corresponding to the data request acquired from the map database by the multiple threads, and respectively caching the map data to generate cache data of the map data. And pushing the cache data of the map data to a main process of the intelligent vehicle-mounted networking terminal. And rendering the cache data of the map data by the main process to generate a map, and displaying the map on a display interface of the intelligent vehicle-mounted networking terminal.
According to the map display method of the intelligent vehicle-mounted networking terminal, the construction level of the map data to be displayed of the specific level is determined according to the data request, a plurality of threads are established for the main process of the intelligent vehicle-mounted networking terminal in advance according to the construction level of the map data to be displayed of the specific level, the threads concurrently execute the data processing request, simultaneously obtain the map data corresponding to the data request, the time for obtaining the map data is shortened, the obtaining speed and the display speed of the map data can be improved, and the map data of the intelligent vehicle-mounted networking terminal can be smoothly and not blocked in display.
Corresponding to the embodiment of the application function implementation method, the application also provides a map display device and electronic equipment of the intelligent vehicle-mounted networking terminal and a corresponding embodiment.
Example three:
fig. 3 is a schematic structural diagram of a map display device of an intelligent vehicle-mounted internet terminal according to an embodiment of the present application.
Referring to fig. 3, the map display device of the intelligent vehicle-mounted internet terminal includes a creation module 301, a request processing module 302, a cache module 303, and a data processing module 304.
A creating module 301, configured to create a plurality of threads for the main process in advance.
In an embodiment, the thread is a basic execution unit of the main process of the intelligent vehicle-mounted internet terminal for processing data and data requests, and all tasks processed by the main process are executed in the thread, so that the creating module 301 creates a plurality of threads for the main process of the intelligent vehicle-mounted internet terminal for processing tasks in advance, each thread can independently process its own task without influencing each other, and the speed of processing data and data requests by the main process of the intelligent vehicle-mounted internet terminal can be increased.
A request processing module 302, configured to distribute the data request to the multiple threads created by the creating module 301 through the host process.
In one embodiment, the request processing module 302 may parse the user's input to obtain the data request, and distribute the data request to the multiple threads of the host process through the host process.
The cache module 303 is configured to cache map data acquired by the multiple threads created by the creation module 301 according to the data request distributed by the request processing module 302, and generate cache data of the map data.
In an embodiment, the caching module 303 receives map data acquired by the multiple threads created by the creating module 301 according to the data request, and caches the map data respectively to generate cached data of the map data.
The data processing module 304 is configured to push the cache data of the map data generated by the cache module 303 to the host process, so that the host process renders the cache data generated by the cache module 303 and displays the rendered cache data.
In an embodiment, the data processing module 304 pushes the cache data of the map data to the main thread, and the main thread renders the cache data of the map data to generate a map, and displays the map on a display interface of the intelligent vehicle-mounted internet terminal.
According to the technical scheme, the data request of the main process of the intelligent vehicle-mounted networking terminal is processed through the multiple threads, the time for obtaining the map data is shortened, the obtaining speed and the displaying speed of the map data can be improved, and the map data can be displayed smoothly without blockage.
Example four:
fig. 4 is another schematic structural diagram of the map display device of the intelligent vehicle-mounted internet terminal according to the embodiment of the present application. Fig. 4 describes the solution of the present application in more detail with respect to fig. 3.
Referring to fig. 4, the map display device of the intelligent vehicle-mounted internet terminal comprises a creating module 301, a request processing module 302, a caching module 303, a data processing module 304 and an executing module 401.
A creating module 301, configured to determine, according to the data request, a hierarchy of the map data to be displayed; determining the number of the construction levels of the map data to be displayed according to the data request and the hierarchy of the map data to be displayed; and creating a plurality of threads for the main process in advance according to the construction level of the map data to be displayed.
In one embodiment, the intelligent vehicle-mounted networking terminal can provide services such as positioning, map query and navigation for a user. The intelligent vehicle-mounted Internet terminal may include, but is not limited to, a Mobile phone, a Mobile tablet, a Personal Digital Assistant (PDA), a vehicle-mounted intelligent Device located in an automobile, an intelligent wearable Device (such as a smart watch, a smart bracelet, etc.), a Mobile Internet Device (MID), and the like.
In one embodiment, the map data size is enormous due to the large amount of information such as roads, buildings, names, etc. contained in the map. For better management and tracking of map data, before the map data is used, the map data may be hierarchically processed and stored, and the hierarchically map data may be stored in the map database. For example, the map data may be divided into a plurality of data levels from top to bottom, where the number of data levels is M, and M is a positive integer, and one upper layer map data may correspond to a plurality of lower layer map data, and each layer map data expresses the connectivity characteristics of different map elements.
In one embodiment, different scales may correspond to different data levels. The creating module 301 may determine a scaling of the map to be displayed according to the data request, and determine a level N of the map data to be displayed, which is stored in the map database in advance corresponding to the data request, according to the scaling, where N is one of the level numbers M. The creating module 301 determines the hierarchy of the map data to be displayed according to the data request, which may refer to the prior art and is not described in detail herein.
In one embodiment, the map data may include map elements such as points, lines, faces, descriptive text, or labels. For example, map data representing different levels of places such as cities, airports, gas stations, etc. by dots, line-type map data representing roads, rivers, etc. by broken lines, regional map data representing lakes, various land types, etc. by planes formed by polygons, and map data representing various names such as road names, place names, etc. by explanatory characters or labels.
In a specific embodiment, the creating module 301 determines the hierarchy of the map data to be displayed as N according to the data request, and determines the number of the structural levels of the map data to be displayed according to the map elements of the map data to be displayed with the hierarchy as N. For example, if the map elements of the map data to be displayed with the hierarchy N include points, lines, faces, explanatory characters, or labels, the creating module 301 determines that the number of the constituent stages of the map data to be displayed is four; alternatively, the map element points and the surfaces are merged into one map element according to the characteristics of the map element points and the surfaces, and the creation module 301 may determine that the number of the constituent stages of the map data to be displayed is three.
In an embodiment, the map elements of the map data to be displayed with the hierarchy N include four constituent elements, namely, a point, a line, a surface, a descriptive text, and a label, the number of the constituent stages of the map data to be displayed with the hierarchy N is four, and the creating module 301 may create four threads for the main process in advance according to the number of the constituent stages of the map data to be displayed.
In an embodiment, the number of threads created by the creating module 301 may be greater than or equal to the number of structural levels of the map data to be displayed, or may be smaller than the number of structural levels of the map data to be displayed.
In a specific embodiment, the map elements of the map data to be displayed with the hierarchy N include four constituent elements, namely, points, lines, faces, and explanatory characters or labels, and the map element points and faces are merged into one map element according to the characteristics of the map element points and faces, so that the creating module 301 determines that the number of constituent stages of the map data to be displayed is three, and can create a plurality of threads according to the number of constituent stages of the map data to be displayed. The plurality of threads may include at least one of: the method comprises a POI searching thread, a navigation service thread, a map surface and point element display thread, a map Label display thread and a map road display thread.
A request processing module 302, configured to distribute the data request to the multiple threads created by the creating module 301 through the host process.
In one embodiment, the request processing module 302 may parse the user's input to obtain a data request, which is distributed to multiple threads by the host process.
In a specific embodiment, the request processing module 302 distributes a data request for obtaining map data to be displayed to a plurality of threads through a main process, sends a data request for obtaining map elements and surface data to a map surface and a display thread of point elements, sends a data request for obtaining map element line data to a display thread of a map road, sends a data request for obtaining descriptive text or Label data of the map elements to a display thread of a map Label, sends a data request for obtaining information point data of the map data to be displayed to a POI search thread, and sends a data request for obtaining navigation data of the map data to be displayed to a navigation service thread.
An executing module 401, configured to enable the multiple threads created by the creating module 301 to concurrently execute the processing data request.
In one embodiment, according to the data request, the execution module 401 enables multiple threads to concurrently execute and process the data request, and simultaneously requests and acquires the map data to be displayed corresponding to the data request from the map database.
In one embodiment, a plurality of threads request map data corresponding to the data request and the hierarchy of the map data to be displayed from a map database according to the hierarchy of the map data to be displayed. For example, if the determined map data to be displayed has a hierarchy of N according to the data request, the multiple threads acquire the map data to be displayed having the hierarchy of N according to the data request, the map elements of the map data to be displayed having the hierarchy of N include points, lines, faces, explanatory characters, or labels, and according to the data request, the execution module 401 causes the multiple threads to concurrently execute the data processing request, and simultaneously acquire each map element data from the map database. The display thread of the map surface and the point elements acquires the map element surface and the point data from the map data to be displayed with the hierarchy of N according to the data request; the display thread of the map road acquires map element line data from the map data to be displayed with the hierarchy N according to the data request; and the display thread of the map Label acquires the descriptive text or Label data of the map elements from the map data to be displayed with the hierarchy of N according to the data request.
In a specific embodiment, the POI search thread created by the creating module 301 may obtain, according to the data request, information point data in the map data to be displayed with a corresponding hierarchy N, where the information point data may include a name, a category, coordinates, and a classification of the information point.
In a specific embodiment, the navigation service thread created by the creating module 301 may obtain, for the user, navigation data in the map data to be displayed with a corresponding hierarchy level N according to the data request, where the navigation data may include various object data required for drawing a navigation route from a navigation start point to a navigation end point, such as route length, road condition data, electronic eye data, traffic light data, and the like.
The cache module 303 is configured to cache, respectively, the map data acquired by the multiple threads created by the creation module 301 according to the hierarchy of the map data to be displayed and the data request, and generate cache data of the map data.
In a specific embodiment, according to a data request obtained by a main process, the cache module 303 receives map data obtained from the map database by a plurality of threads, and the time for the plurality of threads to complete processing the data request and obtain the map data corresponding to the data request may be consistent or may not be consistent, so that the POI search thread, the navigation service thread, the map surface and point element display thread, the map Label display thread, and/or the map road display thread can be cached according to the sequence for obtaining the map data to generate the cache data of the map data according to the map data obtained by the data request.
The data processing module 304 is configured to push the cache data of the map data generated by the cache module 303 to the host process, so that the host process renders the cache data generated by the cache module and displays the rendered cache data.
In an embodiment, the data processing module 304 pushes the cache data of the map data generated by the cache module 303 to the main thread, so that the main thread renders the cache data of the map data, generates a map, and displays the map on a display interface of the intelligent vehicle-mounted internet terminal.
In one embodiment, the map elements of the map data to be displayed with the hierarchy N include four elements, namely, a point, a line, a surface, a descriptive text, and a label, and the creating module 301 creates a plurality of threads for acquiring the map element data, the information point data related to the data request, and the navigation data related to the data request according to the number of the structural levels of the map data to be displayed. The plurality of threads includes at least one of: the method comprises a POI searching thread, a navigation service thread, a map surface and point element display thread, a map Label display thread and a map road display thread. After the multiple threads receive the data request distributed by the request processing module 302 through the host process, the execution module 401 causes the multiple threads to concurrently execute the data request, and the multiple threads simultaneously request the map database and acquire the map data corresponding to the data request. The POI searching thread requests the map database and acquires information point data corresponding to the data request; the navigation service thread requests the map database and acquires navigation data corresponding to the data request; the display thread of the map surface and the point elements requests the map database and acquires the map element surface and the point data corresponding to the data request; the display thread of the map road requests the map database and acquires map element line data corresponding to the data request; and the display thread of the map Label requests the map database and acquires the map element descriptive characters or Label data corresponding to the data request. The cache module 303 receives map data corresponding to the data request, which is acquired from the map database by the multiple threads, and caches the map data to generate cache data of the map data. The data processing module 304 pushes the cache data of the map data to a main process of the intelligent vehicle-mounted internet terminal. And rendering the cache data of the map data by the main process to generate a map, and displaying the map on a display interface of the intelligent vehicle-mounted networking terminal.
According to the technical scheme, the construction level of the map data to be displayed of the specific level is determined according to the data request, the multiple threads are established for the main process of the intelligent vehicle-mounted internet terminal in advance according to the construction level of the map data to be displayed of the specific level, the multiple threads concurrently execute the data processing request, the map data corresponding to the data request are obtained, the time for obtaining the map data is shortened, the obtaining speed and the displaying speed of the map data can be improved, and the map data of the intelligent vehicle-mounted internet terminal can be smoothly and not blocked in display.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a schematic structural diagram of an electronic device shown in an embodiment of the present application.
Referring to fig. 5, the electronic device 50 includes a memory 501 and a processor 502.
The Processor 502 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 501 may include various types of storage units, such as system memory, Read Only Memory (ROM), and permanent storage. Wherein the ROM may store static data or instructions for the processor 502 or other modules of the computer. The persistent storage device may be a read-write storage device. The persistent storage 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 device employs a mass storage device (e.g., magnetic or optical disk, flash memory) as the persistent storage device. In other embodiments, the permanent storage 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 501 may comprise any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash, programmable read-only memory), magnetic and/or optical disks, may also be employed. In some embodiments, memory 501 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 disk, or the like. Computer-readable storage media do not contain carrier waves or transitory electronic signals transmitted by wireless or wired means.
The memory 501 has stored thereon executable code that, when processed by the processor 502, may cause the processor 502 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 device 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 map display method of an intelligent vehicle-mounted networking terminal is characterized by comprising the following steps:
determining the hierarchy of the map data to be displayed according to the data request;
determining the number of the construction levels of the map data to be displayed according to the data request and the hierarchy of the map data to be displayed;
creating a plurality of threads for a main process in advance according to the construction levels of the map data to be displayed, wherein the plurality of threads at least comprise one of the following threads: the method comprises the following steps of searching an information point, navigating a service thread, displaying a map surface and point elements, displaying a map label and displaying a map road;
distributing, by the host process, the data request to the plurality of threads;
respectively caching map data acquired by the multiple threads according to the data requests, and generating cache data of the map data;
and pushing the cache data of the map data to the main process so that the main process renders the cache data and displays the cache data.
2. The method according to claim 1, wherein the respectively caching the map data acquired by the plurality of threads according to the data request to generate cached data of the map data comprises:
according to the data request distributed by the main process, caching information point search threads, navigation service threads, map surfaces and point element display threads, map label display threads and/or map data acquired by map road display threads according to the data request to generate the cache data of the map data.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
causing the plurality of threads to concurrently execute to process the data request;
and respectively caching the map data acquired by the multiple threads according to the data request, and generating cache data of the map data.
4. The method according to claim 1 or 2, wherein the number of the plurality of threads is greater than or equal to the number of the constituent levels of the map data to be displayed.
5. The utility model provides a map display device of on-vehicle networking terminal of intelligence which characterized in that includes:
the creating module is used for determining the hierarchy of the map data to be displayed according to a data request, determining the construction level of the map data to be displayed according to the data request and the hierarchy of the map data to be displayed, and creating a plurality of threads for a main process in advance according to the construction level of the map data to be displayed, wherein the plurality of threads at least comprise one of the following threads: the method comprises the following steps of searching an information point, navigating a service thread, displaying a map surface and point elements, displaying a map label and displaying a map road;
the request processing module is used for distributing the data request to a plurality of threads created by the creation module through the main process;
the cache module is used for caching map data acquired by the multiple threads created by the creation module according to the data requests distributed by the request processing module respectively to generate cache data of the map data;
and the data processing module is used for pushing the cache data of the map data generated by the cache module to the main process so as to enable the main process to render and display the cache data generated by the cache module.
6. The apparatus according to claim 5, wherein the cache module is specifically configured to respectively cache information point search threads, navigation service threads, map surfaces and point element display threads, map label display threads, and/or map data acquired by map road display threads according to the data request according to a data request distributed by the request processing module through the main process, so as to generate cache data of the map data.
7. The apparatus of claim 5 or 6, further comprising an execution module;
and the execution module is used for enabling the plurality of threads created by the creation module to concurrently execute and process the data request.
CN202011482083.4A 2020-12-16 2020-12-16 Map display method and device for intelligent vehicle-mounted internet terminal Active CN112231125B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011482083.4A CN112231125B (en) 2020-12-16 2020-12-16 Map display method and device for intelligent vehicle-mounted internet terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011482083.4A CN112231125B (en) 2020-12-16 2020-12-16 Map display method and device for intelligent vehicle-mounted internet terminal

Publications (2)

Publication Number Publication Date
CN112231125A CN112231125A (en) 2021-01-15
CN112231125B true CN112231125B (en) 2021-03-09

Family

ID=74124801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011482083.4A Active CN112231125B (en) 2020-12-16 2020-12-16 Map display method and device for intelligent vehicle-mounted internet terminal

Country Status (1)

Country Link
CN (1) CN112231125B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115033656B (en) * 2022-08-15 2023-08-08 海纳云物联科技有限公司 Data processing method and device based on map caching technology and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101285688A (en) * 2008-05-30 2008-10-15 同济大学 Navigation system navigation method
US7944453B1 (en) * 2007-06-07 2011-05-17 Nvidia Corporation Extrapolation texture filtering for nonresident mipmaps
CN102750180A (en) * 2012-05-28 2012-10-24 中国科学院遥感应用研究所 Multithreading display mechanism of two-dimensional map tiles
CN104156482A (en) * 2014-08-26 2014-11-19 天津市普迅电力信息技术有限公司 Map tile data publishing method
CN109710716A (en) * 2018-12-24 2019-05-03 成都四方伟业软件股份有限公司 Map smoothness rendering method, terminal device and computer readable storage medium
CN111739136A (en) * 2019-06-14 2020-10-02 腾讯科技(深圳)有限公司 Rendering method, computer device, and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221928B (en) * 2018-11-27 2024-02-23 上海擎感智能科技有限公司 Thematic map display method and vehicle-mounted terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7944453B1 (en) * 2007-06-07 2011-05-17 Nvidia Corporation Extrapolation texture filtering for nonresident mipmaps
CN101285688A (en) * 2008-05-30 2008-10-15 同济大学 Navigation system navigation method
CN102750180A (en) * 2012-05-28 2012-10-24 中国科学院遥感应用研究所 Multithreading display mechanism of two-dimensional map tiles
CN104156482A (en) * 2014-08-26 2014-11-19 天津市普迅电力信息技术有限公司 Map tile data publishing method
CN109710716A (en) * 2018-12-24 2019-05-03 成都四方伟业软件股份有限公司 Map smoothness rendering method, terminal device and computer readable storage medium
CN111739136A (en) * 2019-06-14 2020-10-02 腾讯科技(深圳)有限公司 Rendering method, computer device, and storage medium

Also Published As

Publication number Publication date
CN112231125A (en) 2021-01-15

Similar Documents

Publication Publication Date Title
US11468765B2 (en) Generating road segment attributes based on spatial referencing
US20220244053A1 (en) Apparatus and method for providing map data and system thereof
EP2565583B1 (en) Navigation device, method of outputting a map, and method of generating a database
CN112100196B (en) Real-time traffic information processing method and system and electronic equipment
US20110196610A1 (en) Schematic maps
US8281246B2 (en) Travelogue-based contextual map generation
US20150062114A1 (en) Displaying textual information related to geolocated images
US20140223360A1 (en) Providing indoor facility information on a digital map
CN111522838B (en) Address similarity calculation method and device
US20180188052A1 (en) Vehicle Routing Guidance to an Authoritative Location for a Point of Interest
US20230409611A1 (en) Improving Offline Map Data Availability
NO338963B1 (en) Information point
US20170013080A1 (en) Caching geographic data according to server-specified policy
CN112231125B (en) Map display method and device for intelligent vehicle-mounted internet terminal
JP7186864B2 (en) Selection of points of interest for display on personalized digital maps
US20150120751A1 (en) Apparatus and method for processing map data by real-time index creation and system thereof
US7200489B2 (en) Efficient geographic name searching system and method
CN110046210B (en) Map information updating method and device, electronic equipment and storage medium
CN112097785B (en) Vehicle-mounted intelligent device data processing method and device and electronic device
CN113449055A (en) Map retrieval method, system and related equipment
CN112559666B (en) Method and device for processing notes and electronic equipment
CN115762144A (en) Method and device for generating traffic guidance information
CN110580270A (en) Address output method and system, computer system, and computer-readable storage medium
CN114440861B (en) Method, device and equipment for generating traffic comprehensive pole
CN109933640B (en) Geographic information reading device

Legal Events

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