CN111813876A - Map interface display method and device, navigation equipment and readable storage medium - Google Patents

Map interface display method and device, navigation equipment and readable storage medium Download PDF

Info

Publication number
CN111813876A
CN111813876A CN201910294145.XA CN201910294145A CN111813876A CN 111813876 A CN111813876 A CN 111813876A CN 201910294145 A CN201910294145 A CN 201910294145A CN 111813876 A CN111813876 A CN 111813876A
Authority
CN
China
Prior art keywords
target
data
map
search service
search
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910294145.XA
Other languages
Chinese (zh)
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910294145.XA priority Critical patent/CN111813876A/en
Publication of CN111813876A publication Critical patent/CN111813876A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries

Abstract

The embodiment of the invention provides a map interface display method, a map interface display device, navigation equipment and a readable storage medium, wherein the method comprises the following steps: obtaining map binding data of a target search service; determining a target basic attribute representing the target search service from preset basic attributes representing the search service; one basic attribute represents at least one search service, one basic attribute corresponds to a plurality of field attributes, and the field attributes are used for describing a target data structure of map binding data of the search service represented by the corresponding basic attribute; converting the map binding data of the target search service into target data corresponding to a target data structure described by the target field attribute according to the target field attribute corresponding to the target basic attribute; and displaying the target data on a map interface. The embodiment of the invention can improve the universality and code reusability of the map binding point display.

Description

Map interface display method and device, navigation equipment and readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of navigation, in particular to a map interface display method and device, navigation equipment and a readable storage medium.
Background
In the navigation guidance process, the map navigation application may provide a search service based on a Point of Interest (POI) for a user, for example, a search along a route (for searching a specific POI on a navigation route), a search at a via Point (for searching a via Point of a navigation route and setting a via Point), a search at a destination (for searching a destination of a navigation route and setting a destination), and the like.
The problems existing in the prior map binding point for displaying the search service on a map interface are as follows: each search service displays map nodes by using respective display logics, so that the realization is more complex and the code repeatability is higher; therefore, how to improve the map interface display mode to improve the universality of the map binding point display of the search service and improve the code reusability becomes a problem to be solved by the technical personnel in the field.
Disclosure of Invention
In view of this, embodiments of the present invention provide a map interface display method, an apparatus, a navigation device, and a readable storage medium, so as to improve the universality of map node display and improve the code reusability.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
a map interface display method comprises the following steps:
obtaining map binding data of a target search service;
determining a target basic attribute representing the target search service from preset basic attributes representing the search service; one basic attribute represents at least one search service, one basic attribute corresponds to a plurality of field attributes, and the field attributes are used for describing a target data structure of map binding data of the search service represented by the corresponding basic attribute;
converting the map binding data of the target search service into target data corresponding to a target data structure described by the target field attribute according to the target field attribute corresponding to the target basic attribute;
and displaying the target data on a map interface.
An embodiment of the present invention further provides a map interface display device, including:
the data acquisition module is used for acquiring the map bundling data of the target search service;
the basic attribute determining module is used for determining a target basic attribute representing the target search service from preset basic attributes representing the search service; one basic attribute represents at least one search service, one basic attribute corresponds to a plurality of field attributes, and the field attributes are used for describing a target data structure of map binding data of the search service represented by the corresponding basic attribute;
the data conversion module is used for converting the map binding data of the target search service into target data corresponding to a target data structure described by the target field attribute according to the target field attribute corresponding to the target basic attribute;
and the display module is used for displaying the target data on a map interface.
The embodiment of the invention also provides navigation equipment, which comprises at least one memory and at least one processor; the memory stores a program, and the processor calls the program to execute the map interface display method.
An embodiment of the present invention further provides a storage medium, where the storage medium stores a program for executing the map interface display method described above.
According to the map interface display method provided by the embodiment of the invention, basic attributes representing search services and field attributes corresponding to the basic attributes can be preset, one basic attribute represents at least one search service, and the field attribute corresponding to the basic attribute can describe a target data structure of map binding data of the search service, so that the embodiment of the invention has the capability of organizing the map binding data of different data structures in the form of the field attributes; furthermore, after obtaining the map binding data of the target search service, the embodiment of the invention can determine the target basic attribute representing the target search service, and convert the data structure of the map binding data of the target search service into the target data corresponding to the target data structure described by the target field attribute according to the target field attribute corresponding to the target basic attribute, so that the map binding data of the target search service can be organized in a general field attribute form, and the target data is displayed on a map interface, thereby realizing the display of the map binding of the target search service on the map interface.
The embodiment of the invention organizes and displays the map binding point data of different search services through a universal field attribute form, and can reduce the condition of respectively developing map binding point components matched with the data structure of the map binding point data of each search service, thereby achieving the effects of reducing the repeatability of code development and improving the universality of map binding point display and code reusability among a plurality of search services.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a diagram illustrating a conventional map binding display;
fig. 2 is a block diagram of a hardware structure of a navigation device according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a generic component;
FIG. 4 is a diagram of a generic data structure;
FIG. 5 is a diagram of field attributes;
FIG. 6 is another diagram of field attributes;
FIG. 7 is a flowchart of a map interface display method according to an embodiment of the present invention;
FIG. 8 is a schematic view of a search along the way to obtain the data of a fuel station map;
FIG. 9 is another schematic diagram of a generic component;
fig. 10 is a schematic diagram of a map interface display method according to an embodiment of the present invention;
FIG. 11 is a diagram illustrating an exemplary application provided by an embodiment of the present invention;
fig. 12 is a block diagram of a map interface display device according to an embodiment of the present invention;
fig. 13 is another block diagram of a map interface display device according to an embodiment of the present invention.
Detailed Description
Taking search services including search along the way, search at a waypoint, and search at a destination as an example, fig. 1 shows a conventional map binding point display manner, as shown in fig. 1:
after initiating a search request along the way, the search assembly along the way can obtain the map tie point data (namely a search result along the way) of the search along the way, and the map tie point data of the search along the way is displayed on a map interface by utilizing the search assembly along the way, so that the map layer of the map tie point data of the search along the way is superposed and displayed on the map interface, and the display of the map tie point of the search along the way on the map interface is realized; the data structure used by the map binding assembly for searching along the way is matched with the data structure of the map binding data for searching along the way;
after a route point searching request is initiated, a route point component can obtain the map tie point data (namely a route point searching result) searched by the route point, and the map tie point data searched by the route point is displayed on a map interface by using the route point map tie point component, so that a map layer for displaying the map tie point data searched by the route point is superposed on the map interface, and the map tie point searched by the route point is displayed on the map interface; the data structure used by the via point map binding component is matched with the data structure of the map binding data searched by the via points;
after a destination search request is initiated, the destination component can obtain the map tie point data (namely a destination search result) of destination search, and the map tie point data of the destination search is displayed on a map interface by using the destination map tie point component, so that the map layer for displaying the map tie point data of the destination search is superposed on the map interface, and the map tie point of the destination search is displayed on the map interface; the data structure used by the destination map pointing component matches the data structure of the map pointing data for the destination search.
It can be seen that the data structures of the map binding data of different search services may be different, and for different search services, the conventional map binding display mode is to set map binding display components respectively matched with the data structures of the map binding data of each search service, that is, each search service has a corresponding map binding display component, so that the map binding of each search service is displayed by using the corresponding map binding display component of each search service. The map binding point display components are respectively developed for different search services, so that the development workload is large, the implementation is complex, the situation of code repetition exists between the map binding point display components of different search services, and the code repeatability is high.
Based on this, embodiments of the present invention provide a map interface display method, an apparatus, a navigation device, and a readable storage medium, so as to improve a manner of displaying a map node on a map interface, improve universality of map node display among a plurality of search services, and improve code reusability. The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As an optional implementation of the disclosure of the embodiment of the present invention, fig. 2 shows a block diagram of an optional hardware structure of the navigation device provided in the embodiment of the present invention; the navigation equipment can be a vehicle machine equipment arranged in a vehicle, and can perform information interaction and control with the vehicle through a vehicle body communication bus and also perform information interaction with a network through a communication interface; in another alternative implementation, the navigation device may also be a terminal device that is placed on the vehicle but is independent from the vehicle, such as a smartphone, a tablet computer, or the like;
referring to fig. 2, the navigation apparatus may include: a processor 10, a communication interface 20, a memory 30 and a communication bus 40;
in the embodiment of the present invention, the processor 10, the communication interface 20 and the memory 30 can communicate with each other through the communication bus 40; it is clear that the illustration of the communication connection of the processor 10, the communication interface 20 and the memory 30 shown in fig. 2 is only an optional way;
optionally, the communication interface 20 may be an interface of a communication module, such as an interface of a GSM (Global System for mobile communications) module, an LTE (Long Term Evolution) module, and the like; the navigation equipment can carry out information interaction with the network through the communication interface 20;
the processor 10 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the present invention;
the memory 30 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory; in the embodiment of the present invention, the memory 30 may store a program for implementing the map interface display method provided in the embodiment of the present invention, and the processor 10 may call the program stored in the memory 30 to implement the map interface display method provided in the embodiment of the present invention;
alternatively, the above illustration is only one optional hardware structure of the navigation device provided by the embodiment of the present invention; it should be noted that the navigation device may also include other devices (not shown) that may not be necessary for understanding the disclosure of the embodiments of the present invention; these other components may not be necessary to understand the disclosure of embodiments of the present invention, which are not individually described herein.
Aiming at a plurality of search services, in order to improve the universality of map binding display, the embodiment of the invention can extract the universal part of the map binding display logic of the plurality of search services so as to set a universal component; therefore, after the map binding point data of each search service (namely the search result of each search service) is obtained, the map binding points of each search service can be displayed through the universal component, the map binding point components of each search service are prevented from being developed respectively, the code development repeatability is reduced, and the universality and the code reusability of the map binding point display are improved.
As an optional implementation of the disclosure in the embodiment of the present invention, the general component for displaying map nodes of multiple search services in a general manner, which is provided in the embodiment of the present invention, may at least implement: setting a general data structure, describing the map binding point data of each search service in the form of the general data structure, and performing display control on the map binding point data of each search service described in the general data structure, so that the map binding points of the search services are displayed on a map interface (for example, a map layer of the map binding point data described in the form of the general data structure is superposed on the map interface), and further, the possibility is provided for improving the universality of the map binding point display of each search service;
in an alternative implementation, as shown in fig. 3, the general components provided by the embodiment of the present invention may include: a data control component; the data control component can describe the map binding data of each search service in a general data structure form and perform display control;
optionally, the data control component may at least include a base class interface and a binding display control class corresponding to each search service; the base class interface can define the attribute of the general data structure, and construct a map interface display frame according to the logical relationship between the base class interface and other component interfaces of the navigation equipment (for example, a search interface of a component for executing search service);
as an alternative implementation, the attributes of the generic data structure defined by the base class interface may include: basic attributes representing search services (one basic attribute can represent at least one search service), and field attributes corresponding to the basic attributes of each search service; in the embodiment of the present invention, the basic attribute may be at least used for representing a search service, and one basic attribute may represent at least one search service; meanwhile, the basic attribute of a search service can also correspond to a field attribute and is used for describing a target data structure of the map binding data of the search service; in the embodiment of the invention, the target data structure of the map binding data of the search service is described by the form of field attribute;
the node display control class corresponding to each search service can inherit the basic attribute and the corresponding field attribute of the search service defined by the base class interface; after obtaining the map binding data of the search service, the binding display control class corresponding to each search service can describe the map binding data of the search service through a general data structure and perform display control based on the basic attribute and the corresponding field attribute of the inherited search service.
Therefore, aiming at a plurality of search services, the basic attribute for representing the search services can be set through a universal data structure in the embodiment of the invention; the target data structure of the map binding data of different search services can be described by a general field attribute and is corresponded by the basic attribute of the search service, for example, the field attribute of the search service is indexed by the basic attribute of the search service; furthermore, after the tie point display control class corresponding to each search service acquires the map tie point data of the search service, the tie point display control class can determine the basic attribute representing the search service, and call the field attribute corresponding to the basic attribute, so that the data structure of the map tie point data of the search service is converted into a target data structure corresponding to the description of the called field attribute, the map tie point data of the search service can be organized according to the field attribute, and the general organization of the map tie point data of different data structures is realized in the form of the field attribute;
it can be understood that the map binding data of the search service is generally obtained by the search service component in a search mode, the data structure of the map binding data obtained by the search generally depends on the setting of the search service component, and the target data structure referred to in the embodiment of the present invention is an expected data structure of the map binding data organized in a field attribute form; describing a target data structure of the map binding data of the search service in the form of field attributes, and converting the data structure of the map binding data of the search service obtained by searching into the target data structure, so that the map binding data of the search service can be organized according to the field attributes, and the general organization of the map binding data of different data structures can be realized in the form of the field attributes; the embodiment of the invention provides possibility for improving the universality and code reusability of the map binding point display through the setting of the field attribute.
In an alternative implementation, the attributes may include an attribute name and an attribute type; for example, in the embodiment of the present invention, the field attribute may include a field attribute name and a field attribute type, and the basic attribute representing the search service may include a basic attribute name and a basic attribute type.
For example, taking the search service including search along the way, search by way point and search by destination as an example, fig. 4 shows an alternative example of the general data structure, and as shown in fig. 4, the general data structure may at least include: basic attributes representing a search along the way, basic attributes representing a route point search and a destination search (since a route point search and a destination search can be implemented based on a navigation path, the same basic attributes are used); as further shown in fig. 4, the basic attribute name representing the basic attribute of the Route point search and the destination search is POI Info (POI information), and the basic attribute type is Route POI Info (Route POI information); for another example, the basic attribute name representing the basic attribute of the search Along the Way is Along Way poii Info (Poi information Along the Way), and the basic attribute type is Voice Along Way Poi (Poi Along the Way is searched by Voice, which is suitable for the case of searching Along the Way in a Voice search mode);
a basic attribute representing a search service may correspond to a plurality of field attributes for describing a target data structure of map binding data of the search service, and as shown in fig. 5, fig. 5 shows a plurality of field attributes corresponding to the basic attribute of route point search and destination search, which may describe POI data structures of the route point search and destination search, that is, a target data structure of map binding data of the route point search and destination search is described in such a manner that the field attributes include field attribute names and field attribute types; fig. 5 also exemplarily shows field attribute names and field attribute types included in the respective field attributes for the map binding data of the route point search and the destination search, which can be referenced synchronously;
as also shown in fig. 6, fig. 6 shows a field attribute corresponding to a basic attribute of the search along the way, which is used to describe a POI data structure of the search along the way, i.e. a target data structure of the map binding data of the search along the way is described in a way that the field attribute includes a field attribute name and a field attribute type; fig. 6 also exemplarily shows field attribute names and field attribute types included in each field attribute for map binding data searched along the way, which can be referenced synchronously.
As an optional implementation of the disclosure in the embodiment of the present invention, based on a set general data structure, fig. 7 shows an optional process of the map interface display method provided in the embodiment of the present invention, and referring to fig. 7, the process may include:
and S100, obtaining the map binding data of the target search service.
The target search service may be any one of a plurality of search services provided by a map navigation application, and the general data structure provided by the embodiment of the present invention is applicable to the target search service; for example, the general data structure set in the embodiment of the present invention is applicable to a plurality of search services to which a target search service belongs, and specifically, the attributes of the general data structure may include preset basic attributes representing the search services and field attributes corresponding to the basic attributes, where one basic attribute may represent at least one search service, and the field attribute corresponding to the basic attribute may describe a target data structure of map binding data of the represented search service, so that the target search service belongs to the search service represented by the preset basic attributes;
for example, the general data structure provided in the embodiment of the present invention may include at least basic attributes and corresponding field attributes of search services such as a search along the way, a search by way point, and a search by destination, and the target search service may be any one of the search services such as the search along the way, the search by way point, and the search by destination.
The map binding data of the target search service may be a search result of the target search service; executing the search logic of the target search service according to the search keyword to obtain the search result of the target search service; the search result of the target search service may include: POI information matched with the search key words and corresponding navigation information. According to the search keyword, the search mode of searching for the search result of the target search service can be, for example, a voice search mode, a manual search mode, and the like.
In an example, the map binding data of the target search service may be obtained by a component of the target search service through a voice search mode, for example, the component of the target search service may obtain a voice search request, analyze the voice search request, obtain a search keyword associated with the target search service, and then execute a search logic corresponding to the target search service according to the search keyword to obtain the map binding data of the target search service; after the component of the target search service obtains the map binding data of the target search service, the map binding data of the target search service can be transmitted to the general component arranged in the embodiment of the invention;
for example, taking a search for a gas station along the way as an example, fig. 8 shows a flow diagram of obtaining a map of a gas station by searching along the way and re-navigating based on the searched gas station, and can be referred to.
Optionally, the number of the map binding points of the target search service may be multiple, and one map binding point may correspond to one POI, that is, the search result of the target search service may include the map binding points of multiple POIs; for example, when searching along the way, multiple POIs along the navigation path may be searched, each POI may correspond to one map node data (the map node data of one POI may at least include the POI information and the corresponding navigation information), and then the map node data of multiple POIs along the navigation path may be acquired at this time.
Step S110, determining a target basic attribute representing the target search service from preset basic attributes representing the search service; one basic attribute represents at least one search service, and one basic attribute corresponds to a field attribute for describing a target data structure of map node data of the represented search service.
After the map binding data of the target search service is obtained, the basic attribute of the target search service can be determined from the basic attributes representing the search service preset by the general data structure, and for convenience of description, the basic attribute of the target search service can be called as the target basic attribute; in the embodiment of the present invention, a preset basic attribute may represent at least one search service;
with reference to the foregoing description of the generic data structure, the generic data structure provided by the embodiments of the present invention may include: the method comprises the steps of presetting basic attributes representing search services and field attributes corresponding to the basic attributes, wherein the field attributes are used for describing a target data structure of map binding data of the search services represented by the basic attributes; for example, the generic data structure may include: the method comprises the steps that basic attributes of the search along the way are represented, and field attributes corresponding to the basic attributes of the search along the way can be used for describing a target data structure of the map binding data of the search along the way; for a more specific description of the general data structure, reference is made to the above description, and no further description is given to the embodiments of the present invention.
And step S120, converting the map binding data of the target search service into target data corresponding to a target data structure described by the target field attribute according to the target field attribute corresponding to the target basic attribute.
After determining the target basic attribute representing the target search service, determining the target field attribute corresponding to the target basic attribute, so that the data structure of the map bundling point data of the target search service, which is described based on the target field attribute, is converted into a data structure corresponding to the target data structure described by the target field attribute, so as to obtain the target data corresponding to the map bundling point data of the target search service, and the map bundling point data of the target search service is organized in a field attribute form;
it should be noted that the data structure of the map binding data of the target search service obtained by the search may be different from the target data structure described in the field attribute form.
In an example, the field attribute may include a field attribute name and a field attribute type, and in the process of converting the map binding data of the target search service into the target data, the embodiment of the present invention may reorganize the data structure of the map binding data of the target search service by the field attribute name and the field attribute type of the target field attribute corresponding to the target basic attribute of the target search service, so as to organize the map binding data of the target search service in the form of the field attribute;
for example, map binding data of a target search service may have more data content, and in the embodiment of the present invention, data content matched with a field attribute name of a target field attribute may be determined from the map binding data of the target search service, so that a data type of the data content is converted according to a field attribute type of the target field attribute to obtain converted data content, and then target data is generated according to the field attribute name of the target field attribute and the converted data content;
with reference to fig. 6, the data structure of the searched map binding data of the search along the way may be different from that shown in fig. 6, and in the embodiment of the present invention, data content matching with each field attribute name shown in fig. 6 may be determined from the map binding data of the search along the way, for example, data content matching a data identifier (such as a data ID) of the data content in the map binding data with the field attribute name may be determined, so that the data type of the data content is converted according to the field attribute type corresponding to the field attribute name, and further, each field attribute name shown in fig. 6 and the corresponding converted data content may form target data, so as to organize the map binding data of the search along the way in the form of the field attribute.
It should be noted that the field attribute including the field attribute name and the field attribute type is only one optional form of the field attribute, and other forms of the field attribute may also be supported in the embodiment of the present invention, and the embodiment of the present invention is not limited to the form of the field attribute.
And step S130, displaying the target data on a map interface.
Optionally, displaying the target data on the map interface can be realized by displaying the texture corresponding to the target data on the map interface; for example, the embodiment of the present invention may define a texture (the defined texture may be a preset dynamic texture or a custom texture) for the target data to obtain the texture of the target data, so as to superimpose the texture of the target data on the map interface and display the target data on the map interface; overlaying the target data texture on the map interface may be adding Overlay logic (e.g., Overlay logic) to the target data texture, so as to Overlay the target data texture on the map interface in a manner of overlaying layers.
Optionally, the style of the target data texture may be a detail bubble, and the target data texture may be displayed on a map interface by the detail bubble including the content of the target data and displaying the detail bubble on the map interface.
According to the map interface display method provided by the embodiment of the invention, basic attributes representing search services and field attributes corresponding to the basic attributes can be preset, one basic attribute represents at least one search service, and the field attribute corresponding to the basic attribute can describe a target data structure of map binding data of the search service, so that the embodiment of the invention has the capability of organizing the map binding data of different data structures in the form of the field attributes; furthermore, after obtaining the map binding data of the target search service, the embodiment of the invention can determine the target basic attribute representing the target search service, and convert the data structure of the map binding data of the target search service into the data structure corresponding to the target data structure described by the target field attribute according to the target field attribute corresponding to the target basic attribute, so as to obtain the target data, so that the map binding data of the target search service can be organized in a general field attribute mode, and then the target data is displayed on a map interface, thereby realizing the display of the map binding of the target search service on the map interface.
The embodiment of the invention organizes and displays the map binding point data of different search services through a universal field attribute form, and can reduce the condition of respectively developing map binding point components matched with the data structure of the map binding point data of each search service, thereby achieving the effects of reducing the repeatability of code development and improving the universality of map binding point display and code reusability among a plurality of search services.
Based on the map interface display method provided by the embodiment of the invention, the general component can also be provided with a display effect control component for controlling the display effect of the target data texture; in the embodiment of the invention, the display effect control component is mainly used for avoiding excessive occupation of system resources and reducing display of useless information when the number of the map nodes of the search service to be displayed is excessive by setting the display avoidance logic; by way of example, fig. 9 shows another schematic diagram of general components provided by an embodiment of the present invention, which, as shown in fig. 9, may include a data control component and a display effect control component; further, the data control component may include a base class interface and a peer display control class corresponding to each search service.
The base class interface may define attributes of the generic data structure, such as a base attribute representing a search service, and a field attribute corresponding to the base attribute;
the node display control class corresponding to each search service can inherit the basic attribute and the corresponding field attribute of the corresponding search service defined by the base class interface, so that the data structure of the map node data of the corresponding search service is organized and display control is carried out in the field attribute form;
for example, after the target search service component searches and obtains the map binding data of the target search service, the binding display control class corresponding to the target search service can obtain the map binding data of the target search service, and according to the target field attribute corresponding to the target basic attribute of the inherited target search service, the data structure of the map binding data of the target search service is converted into the data structure corresponding to the target data structure described by the target field attribute, so as to obtain the target data; and defining texture for the target data to obtain the texture of the target data, and overlaying the texture of the target data on a map interface.
The display effect control component can preferentially display target data converted from the map binding data with higher priority conditions on the map interface according to the display avoidance logic when the map binding data of the search service is excessive, so that the data quantity displayed on the map interface is reduced;
for example, the embodiment of the present invention may set the display priority conditions of the map binding data for different search services, respectively, so that when the number of the map binding data of the target search service reaches a number threshold, it is considered that the map binding data of the target search service is excessive, and the target map binding data meeting the display priority conditions may be determined from the map binding data of the target search service according to the display priority conditions of the map binding data of the target search service, so as to preferentially display the target data obtained by converting the target map binding data; specifically, if the target data is obtained by converting the target map binding data, corresponding target data textures can be superimposed on the map interface, and if the target data is not obtained by converting the target map binding data, the corresponding target data textures can be cancelled from being superimposed on the map interface, so that excessive map binding points are prevented from being displayed on the map interface, and excessive occupation of system resources and display of useless information are reduced.
Optionally, the display priority conditions of the map binding data set for different search services may be different; in one example, the display priority condition of the map binding data of the target search service may be that the distance of the POI is closest and/or the arrival time is shortest; therefore, when the number of the map binding data of the target search service reaches the number threshold, the embodiment of the invention can determine the set number of the target map binding data with the shortest distance and/or the shortest arrival time of the POI from the map binding data of the target search service; when the target data is obtained by converting the target map binding data, superposing corresponding target data textures on a map interface; and when the target data is not converted from the target map binding data, canceling the superposition of corresponding target data textures on the map interface, so that the target map binding data meeting the display priority condition is preferentially displayed on the map interface.
Optionally, taking the search along the way as an example, the content of the target data may include: the mark number, the POI name, the time increase, the mileage increase and the content meeting the display priority condition; the display priority condition may be, for example, shortest arrival time, closest distance, etc.; if certain map binding point data simultaneously accords with a plurality of display priority conditions, the contents which have the highest priority order and accord with the display priority conditions can be displayed according to the priority order (such as the priority order with the shortest arrival time and the priority order higher than the priority order with the shortest distance) of the display priority conditions of different types; for example, when a gas station is searched along the way, and the arrival time of a certain gas station is shortest and the distance is shortest, when the map spot of the gas station is displayed, the content with the shortest arrival time can be displayed, but the content with the shortest distance is not displayed.
In an example, taking a search service as an example of a route point search, a destination search and a route search, fig. 10 shows an optional schematic of a map interface display method provided by an embodiment of the present invention, and with reference to fig. 10, a destination node display control class and a route node display control class can inherit a base attribute and a corresponding field attribute of the destination search and the route point search defined by a base class interface, and in the embodiment of the present invention, the destination search and the route node search may correspond to the same base attribute and correspond to the same field attribute;
the waypoint display control class can inherit the basic attribute and the corresponding field attribute of the waypoint search defined by the base class interface;
taking voice to initiate way point search, destination search and along-the-way search as examples, the way point search voice request can be transmitted to the way point component, and the way point component can search to obtain the search result of the way point search, namely the map bundling point data of the way point search is obtained through searching; the method comprises the steps that map binding data of path point searching can be transmitted to a path binding point display control class, and the path binding point display control class converts a data structure of the map binding data of the path point searching into a target data structure corresponding to the target data structure described by the inherited field attribute on the basis of the inherited basic attribute and the corresponding field attribute of the path point searching to obtain target data of the path point searching; defining texture and adding superposition logic to the target data searched by the approach point; furthermore, the display effect control component can determine target map binding data which meets the display priority condition according to the display priority condition of the map binding data searched by the route point, and superimposes the target data texture corresponding to the target data obtained by converting the target map binding data on a map interface to realize the display of the route point searched by the route point; the display priority condition of the map binding data searched for the route point is, for example, to preferentially display target data corresponding to a set number of map binding data having the shortest distance and/or the shortest arrival time to the route point;
the destination searching voice request can be transmitted to the destination component, and the destination component can search to obtain a searching result of destination searching, namely searching to obtain the map bundling data of the destination searching; the map node data of the destination search can be transmitted to a destination node display control class, and the destination node display control class converts the data structure of the map node data of the destination search into a target data structure corresponding to the target data structure described by the inherited field attribute on the basis of the inherited basic attribute and the corresponding field attribute of the destination search to obtain target data of the destination search; thereby defining texture and adding superposition logic to the target data of the destination search; furthermore, the display effect control component can determine target map binding data which meets the display priority condition according to the display priority condition of the map binding data searched by the destination, and superimpose the target data texture corresponding to the target data obtained by converting the target map binding data on a map interface to realize the display of the map binding searched by the destination;
the voice request of the search along the way can be transmitted to the search along the way component, and the search along the way component can search to obtain a search result of the search along the way, namely searching to obtain the data of the map prick point of the search along the way; the map binding data searched along the way can be transmitted to a map binding display control class, and the map binding data structure of the map binding data searched along the way is converted into a target data structure corresponding to the target data structure described by the inherited field attribute on the basis of the inherited basic attribute and the corresponding field attribute of the map binding data searched along the way by the map binding display control class, so that target data of the map binding data searched along the way are obtained; defining texture for target data searched along the way and adding superposition logic; furthermore, the display effect control component can determine target map binding point data meeting the display priority condition according to the display priority condition of the map binding point data searched along the way, and superimposes the target data texture corresponding to the target data obtained by converting the target map binding point data on a map interface to realize the display of the map binding point searched along the way; the display priority condition of the map binding data searched along the way is, for example, to preferentially display the target data corresponding to the set number of map binding data having the shortest distance and/or the shortest arrival time of the POI along the way.
As an optional application example of the embodiment of the present invention, the embodiment of the present invention is applicable to a scenario where a gas station is searched along a navigation guidance, so that the searched map node data of the gas station is organized by a general field attribute, and the display universality and code reusability of the map node are improved among a plurality of search services; referring to fig. 11, when the navigation apparatus is in the navigation state, the user may request to search for a gas station along the route by voice search, and the along-route search component may search for map data of the gas station along the navigation path;
the waypoint display control class of the waypoint search can inherit, the basic attribute and the corresponding field attribute of the waypoint search defined by the base class interface convert the data structure of the map waypoint data of the gas station into target data according to the field attribute corresponding to the basic attribute of the waypoint search, and display the target data in a detailed bubble form on a map interface, thereby realizing the display of the map waypoint of the gas station on the map interface; in the process, if the quantity of the searched map bundling point data of the gas station is large, the display effect control component can be used for canceling the display of the target data converted from the map bundling point data which does not meet the display priority condition; the display priority condition of the map binding data searched along the way is, for example, map binding data within 3 which is the nearest POI and/or the shortest arrival time is preferentially displayed;
after the map interface displays the map points of the gas stations, the user can select the gas stations needing to be accessed in a voice mode, and therefore the navigation equipment can replan the navigation path.
While various embodiments of the present invention have been described above, various alternatives described in the various embodiments can be combined and cross-referenced without conflict to extend the variety of possible embodiments that can be considered disclosed and disclosed in connection with the embodiments of the present invention.
The map interface display device described below may be regarded as a program function module that is required to be provided by a navigation device to implement the map interface display method provided by the embodiment of the present invention. The contents of the map interface display apparatus described below may be referred to in correspondence with the contents of the map interface display method described above.
Fig. 12 is an alternative block diagram of a map interface display device according to an embodiment of the present invention, and referring to fig. 12, the map interface display device may include:
a data obtaining module 100, configured to obtain map bundling data of a target search service;
a basic attribute determining module 200, configured to determine a target basic attribute representing a target search service from preset basic attributes representing the search service; one basic attribute represents at least one search service, one basic attribute corresponds to a plurality of field attributes, and the field attributes are used for describing a target data structure of map binding data of the search service represented by the corresponding basic attribute;
a data conversion module 300, configured to convert the map binding data of the target search service into target data corresponding to a target data structure described by the target field attribute according to the target field attribute corresponding to the target basic attribute;
a display module 400, configured to display the target data on a map interface.
Optionally, the field attribute includes a field attribute name and a field attribute type; the data conversion module 300 is configured to convert the map binding data of the target search service into target data corresponding to a target data structure described by the target field attribute according to the target field attribute corresponding to the target base attribute, and may specifically include:
determining data content matched with the field attribute name of the target field attribute from the map binding data of the target search service;
converting the data type of the data content according to the field attribute type of the target field attribute to obtain the converted data content;
and generating target data at least according to the field attribute name of the target field attribute and the converted data content.
Optionally, the display module 400 is configured to display the target data on a map interface, and specifically includes:
defining a texture for the target data to generate a target data texture;
and superposing the target data texture on a map interface.
Optionally, fig. 13 shows another optional block diagram of the map interface display apparatus according to the embodiment of the present invention, and in combination with fig. 12 and 13, the map interface display apparatus may further include:
the display control module 500 is configured to determine, if the number of the map bundling data of the target search service reaches a number threshold, target map bundling data meeting a display priority condition from the map bundling data of the target search service according to the display priority condition of the map bundling data of the target search service;
correspondingly, the display module 400 is configured to overlay the target data texture on the map interface, and may specifically include:
and if the target data is obtained by converting the data of the target map binding points, superposing the texture of the target data on a map interface.
Optionally, the display module 400 may be further configured to, if the target data is not obtained by converting the target map binding data, cancel superimposing the target data texture on the map interface.
Optionally, the display control module 500 is configured to determine, according to the display priority condition of the map binding data of the target search service, the target map binding data meeting the display priority condition from the map binding data of the target search service, and may specifically include:
and determining a set number of target map binding data with the nearest distance and/or the shortest arrival time of the POI from the map binding data of the target search service, wherein one POI corresponds to one map binding data.
Optionally, the data obtaining module 100 is configured to obtain the map binding data of the target search service, and may specifically include:
acquiring a voice search request;
analyzing the voice search request to obtain a search keyword associated with a target search service;
and executing the search logic corresponding to the target search service according to the search keyword to obtain the map binding data of the target search service.
In the above program function modules provided in the embodiment of the present invention, the basic attribute determining module 200, the data converting module 300, and the display module 400 may be implemented by a punctuation display control class of a target search service, and the display control module 500 may be implemented by a display effect control component.
An embodiment of the present invention further provides a navigation device, where a hardware architecture of the navigation device may be as shown in fig. 2, and the navigation device includes at least one memory and at least one processor; the memory stores a program, and the processor calls the program to execute the map interface display method provided by the embodiment of the invention.
The embodiment of the invention also provides a storage medium which can store a program for executing the map interface display method provided by the embodiment of the invention.
Optionally, the program may be used primarily to:
obtaining map binding data of a target search service;
determining a target basic attribute representing the target search service from preset basic attributes representing the search service; one basic attribute represents at least one search service, one basic attribute corresponds to a plurality of field attributes, and the field attributes are used for describing a target data structure of map binding data of the search service represented by the corresponding basic attribute;
converting the map binding data of the target search service into target data corresponding to a target data structure described by the target field attribute according to the target field attribute corresponding to the target basic attribute;
and displaying the target data on a map interface.
Although the embodiments of the present invention have been disclosed, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A map interface display method is characterized by comprising the following steps:
obtaining map binding data of a target search service;
determining a target basic attribute representing the target search service from preset basic attributes representing the search service; one basic attribute represents at least one search service, one basic attribute corresponds to a plurality of field attributes, and the field attributes are used for describing a target data structure of map binding data of the search service represented by the corresponding basic attribute;
converting the map binding data of the target search service into target data corresponding to a target data structure described by the target field attribute according to the target field attribute corresponding to the target basic attribute;
and displaying the target data on a map interface.
2. The map interface display method of claim 1, wherein the field attribute includes a field attribute name and a field attribute type;
the converting the map binding data of the target search service into the target data corresponding to the target data structure described by the target field attribute according to the target field attribute corresponding to the target basic attribute comprises:
determining data content matched with the field attribute name of the target field attribute from the map binding data of the target search service;
converting the data type of the data content according to the field attribute type of the target field attribute to obtain the converted data content;
and generating target data at least according to the field attribute name of the target field attribute and the converted data content.
3. The map interface display method according to claim 1 or 2, wherein the displaying the target data on the map interface includes:
defining a texture for the target data to generate a target data texture;
and superposing the target data texture on a map interface.
4. The map interface display method of claim 3, further comprising:
if the quantity of the map binding data of the target search service reaches a quantity threshold value, determining the target map binding data meeting the display priority condition from the map binding data of the target search service according to the display priority condition of the map binding data of the target search service;
the overlaying the target data texture on the map interface comprises:
and if the target data is obtained by converting the data of the target map binding points, superposing the texture of the target data on a map interface.
5. The map interface display method of claim 4, further comprising:
and if the target data is not obtained by converting the data of the target map binding point, canceling the superposition of the target data texture on a map interface.
6. The map interface display method of claim 4 or 5, wherein the determining, from the map node data of the target search service, the target map node data that meets the display priority condition according to the display priority condition of the map node data of the target search service comprises:
and determining a set number of target map binding data with the nearest distance and/or the shortest arrival time of the POI from the map binding data of the target search service, wherein one POI corresponds to one map binding data.
7. The map interface display method of claim 1, wherein the obtaining the map binding data of the target search service comprises:
acquiring a voice search request;
analyzing the voice search request to obtain a search keyword associated with a target search service;
and executing the search logic corresponding to the target search service according to the search keyword to obtain the map binding data of the target search service.
8. A map interface display device, comprising:
the data acquisition module is used for acquiring the map bundling data of the target search service;
the basic attribute determining module is used for determining a target basic attribute representing the target search service from preset basic attributes representing the search service; one basic attribute represents at least one search service, one basic attribute corresponds to a plurality of field attributes, and the field attributes are used for describing a target data structure of map binding data of the search service represented by the corresponding basic attribute;
the data conversion module is used for converting the map binding data of the target search service into target data corresponding to a target data structure described by the target field attribute according to the target field attribute corresponding to the target basic attribute;
and the display module is used for displaying the target data on a map interface.
9. A navigation device comprising at least one memory and at least one processor; the memory stores a program, and the processor calls the program to execute the map interface display method according to any one of claims 1 to 7.
10. A storage medium characterized by storing a program for executing the map interface display method of any one of claims 1 to 7.
CN201910294145.XA 2019-04-12 2019-04-12 Map interface display method and device, navigation equipment and readable storage medium Pending CN111813876A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910294145.XA CN111813876A (en) 2019-04-12 2019-04-12 Map interface display method and device, navigation equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910294145.XA CN111813876A (en) 2019-04-12 2019-04-12 Map interface display method and device, navigation equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN111813876A true CN111813876A (en) 2020-10-23

Family

ID=72843972

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910294145.XA Pending CN111813876A (en) 2019-04-12 2019-04-12 Map interface display method and device, navigation equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111813876A (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005096183A1 (en) * 2004-03-31 2005-10-13 Pioneer Corporation Data selection device, method, program, and recording medium
US20100268448A1 (en) * 2009-04-17 2010-10-21 Linh Doan Dynamic destination map display for navigation system
CN101874261A (en) * 2007-11-27 2010-10-27 三菱电机株式会社 Map information processor and data structure of map information
US20110191751A1 (en) * 2010-02-03 2011-08-04 Oracle International Corporation Declarative attribute security using custom properties
CN102200902A (en) * 2010-03-24 2011-09-28 卡西欧计算机株式会社 Map display control apparatus, map display control method and computer readable medium
CN104251705A (en) * 2013-06-26 2014-12-31 罗伯特·博世有限公司 Method, apparatus and device for representing POI on a map
CN105447101A (en) * 2015-11-12 2016-03-30 北京锐安科技有限公司 Map engine implementation method and apparatus
US20160162172A1 (en) * 2013-08-01 2016-06-09 Yogesh Chunilal Rathod Presenting plurality types of interfaces and functions for conducting various activities
CN105787002A (en) * 2016-02-22 2016-07-20 上海新炬网络技术有限公司 Multi-layer map displaying method based on services
CN107015791A (en) * 2016-10-28 2017-08-04 阿里巴巴集团控股有限公司 A kind of processing method for generating chart components system, apparatus and system
CN108073727A (en) * 2018-02-02 2018-05-25 斑马网络技术有限公司 The data processing method and device of place search
CN109087159A (en) * 2018-06-13 2018-12-25 北京三快在线科技有限公司 Business object information methods of exhibiting, device, electronic equipment and storage medium
CN109345946A (en) * 2018-07-27 2019-02-15 阿里巴巴集团控股有限公司 Map data displaying method, device, electronic equipment and computer storage medium
CN109389409A (en) * 2018-09-17 2019-02-26 内蒙古易商信息科技有限公司 Method for processing business and system

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005096183A1 (en) * 2004-03-31 2005-10-13 Pioneer Corporation Data selection device, method, program, and recording medium
CN101874261A (en) * 2007-11-27 2010-10-27 三菱电机株式会社 Map information processor and data structure of map information
US20100268448A1 (en) * 2009-04-17 2010-10-21 Linh Doan Dynamic destination map display for navigation system
US20110191751A1 (en) * 2010-02-03 2011-08-04 Oracle International Corporation Declarative attribute security using custom properties
CN102200902A (en) * 2010-03-24 2011-09-28 卡西欧计算机株式会社 Map display control apparatus, map display control method and computer readable medium
CN104251705A (en) * 2013-06-26 2014-12-31 罗伯特·博世有限公司 Method, apparatus and device for representing POI on a map
US20160162172A1 (en) * 2013-08-01 2016-06-09 Yogesh Chunilal Rathod Presenting plurality types of interfaces and functions for conducting various activities
CN105447101A (en) * 2015-11-12 2016-03-30 北京锐安科技有限公司 Map engine implementation method and apparatus
CN105787002A (en) * 2016-02-22 2016-07-20 上海新炬网络技术有限公司 Multi-layer map displaying method based on services
CN107015791A (en) * 2016-10-28 2017-08-04 阿里巴巴集团控股有限公司 A kind of processing method for generating chart components system, apparatus and system
CN108073727A (en) * 2018-02-02 2018-05-25 斑马网络技术有限公司 The data processing method and device of place search
CN109087159A (en) * 2018-06-13 2018-12-25 北京三快在线科技有限公司 Business object information methods of exhibiting, device, electronic equipment and storage medium
CN109345946A (en) * 2018-07-27 2019-02-15 阿里巴巴集团控股有限公司 Map data displaying method, device, electronic equipment and computer storage medium
CN109389409A (en) * 2018-09-17 2019-02-26 内蒙古易商信息科技有限公司 Method for processing business and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘莹;: "基于FME的MapGIS插件开发与研究", 软件导刊, no. 05, pages 74 - 75 *
王战英;王占宏;: "基于元数据的分布式通用查询系统研究与实现", 微型电脑应用, no. 08, pages 48 - 52 *
王莉利;高新伟;王增藩;: "基于ArcGIS Engine的油田地理信息系统的设计与实现", 陕西理工学院学报(自然科学版), no. 03, pages 47 - 51 *

Similar Documents

Publication Publication Date Title
CN106897205B (en) Test data generation method and device
CN110795642B (en) Position name generating method and position name display method
US20150185022A1 (en) Stereoscopic indoor route providing apparatus, system and method
US20180100742A1 (en) API for Obtaining Geographic Location Data
US20180143034A1 (en) System and method for determining location
CN111651685A (en) Interest point obtaining method and device, electronic equipment and storage medium
CN106528762B (en) Electronic map processing method and processing system for identifying interest points
WO2018071374A1 (en) Api for obtaining geographic location data
CN102567385A (en) Point-of-interest information search device, system and method
CN110020333A (en) Data analysing method and device, electronic equipment, storage medium
CN111813876A (en) Map interface display method and device, navigation equipment and readable storage medium
JP5294592B2 (en) Route search server and route search program
JP2016206896A (en) Position information anonymization method, movement information anonymization method, and device
JP5132694B2 (en) DATA GENERATION DEVICE, DATA GENERATION METHOD, AND ROUTE SEARCH DEVICE
US10182307B2 (en) System for providing location-based social networking services to users of mobile devices
JP2013036748A (en) Car navigation device, car navigation system, car navigation method, and car navigation program
CN106649315A (en) Method and device for processing path navigation
US20200272951A1 (en) Operation support device, vehicle, operation management device, and operation support method
US20210090197A1 (en) Systems and methods for dynamically connecting one or more transportation vehicles to customers
JP2005017218A (en) Facility information searching system
CN113607183A (en) Transportation route planning method and device for vehicle, storage medium and terminal
JP5912328B2 (en) Point name output device, navigation device, point name output method, and program
CN112432646A (en) Route navigation method, storage medium and equipment
US20190098442A1 (en) Method of operating a device, the device shown carrying out the method, and a system including the deice and a server in a system providing location-based social networking services to users of mobile devices
JP6546798B2 (en) Information processing apparatus and information presentation system

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