CN115269050A - Multi-map calling method and device, storage medium and computer equipment - Google Patents

Multi-map calling method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN115269050A
CN115269050A CN202210925589.0A CN202210925589A CN115269050A CN 115269050 A CN115269050 A CN 115269050A CN 202210925589 A CN202210925589 A CN 202210925589A CN 115269050 A CN115269050 A CN 115269050A
Authority
CN
China
Prior art keywords
map
calling
preset
target
determining
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
CN202210925589.0A
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.)
Ping An E Wallet Electronic Commerce Co Ltd
Original Assignee
Ping An E Wallet Electronic Commerce 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 Ping An E Wallet Electronic Commerce Co Ltd filed Critical Ping An E Wallet Electronic Commerce Co Ltd
Priority to CN202210925589.0A priority Critical patent/CN115269050A/en
Publication of CN115269050A publication Critical patent/CN115269050A/en
Pending legal-status Critical Current

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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • 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/23Updating
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Remote Sensing (AREA)
  • Instructional Devices (AREA)

Abstract

The invention discloses a multi-map calling method and device, a storage medium and computer equipment. The map navigation method and the map navigation device relate to the technical field of map navigation and mainly aim to solve the problem of low map applicability. The method mainly comprises the steps of responding to a map calling operation instruction, obtaining target information and a map calling task carried in the map calling operation instruction, wherein the target information comprises at least one of user information and terminal equipment information; determining a target map type according to the target information, determining a first preset calling parameter according to the map calling task, determining a second preset calling parameter corresponding to the first preset calling parameter based on a target bridging component corresponding to the target map type, and calling target map data corresponding to the target map type according to the second preset calling parameter. Mainly for invoking different types of map data.

Description

Multi-map calling method and device, storage medium and computer equipment
Technical Field
The invention relates to the technical field of map navigation, in particular to a multi-map calling method and device, a storage medium and computer equipment.
Background
With the rapid development of navigation and positioning technologies, maps are widely applied to application software in various fields. The main map service providers at present mainly include: baidu, god, teng Song, google, etc. Each service provider has its own advantages and disadvantages in different application scenarios. For example, tencent maps and Baidu maps have relatively perfect support for domestic maps and relatively weak support for foreign maps, and display of foreign maps has fuzzy areas. The google map has strong functional support to foreign maps, but cannot be accessed at home.
The existing application software can only call map data of a map service provider according to preset codes, and the quality of the map function completely depends on the inherent attribute of the called map data, so that the performance of the map function in different regions has great difference, the requirements of users in different regions and the requirements of regional transformation of the users cannot be met, and the applicability of the map is low.
Disclosure of Invention
In view of this, the present invention provides a method and an apparatus for calling multiple maps, a storage medium, and a computer device, and mainly aims to solve the problem of low applicability of the existing map.
According to one aspect of the invention, a multi-map calling method is provided, which comprises the following steps:
responding to a map calling operation instruction, and acquiring target information and a map calling task carried in the map calling operation instruction, wherein the target information comprises at least one of user information and terminal equipment information;
determining a target map type according to the target information, and determining a first preset calling parameter according to the map calling task, wherein the first preset calling parameter corresponds to the map calling task of any preset map type;
and determining a second preset calling parameter corresponding to the first preset calling parameter based on a target bridging component corresponding to the target map type, and calling target map data corresponding to the target map type according to the second preset calling parameter, wherein the target bridging component comprises a first mapping relation and a second mapping relation which are used for representing the corresponding logical relation of the first preset calling parameter and the second preset calling parameter.
Further, the determining, based on the target bridging component corresponding to the target map type, a second preset invoking parameter corresponding to the first preset invoking parameter comprises:
determining a target bridging component corresponding to the target map type from bridging components corresponding to different preset map types according to the preset map type;
determining a first original calling parameter corresponding to the first preset calling parameter based on the first mapping relation, and acquiring a second original calling parameter from a map database according to the first original calling parameter;
and determining a second preset calling parameter corresponding to the second original calling parameter based on the second mapping relation.
Further, before determining the first invocation parameter according to the map invocation task, the method further comprises:
respectively configuring corresponding first preset calling parameters and second preset calling parameters for different expected map calling tasks;
aiming at each expected map calling task, constructing a first mapping relation between first original calling parameters of different preset map types and the first preset calling parameters, and constructing a second mapping relation between second original calling parameters of different preset map types and the second preset calling parameters;
and aiming at each preset map type, constructing a bridging component according to the first mapping relation and the second mapping relation to obtain bridging components corresponding to different preset map types.
Further, the determining the target map type according to the target information includes:
if the user information and/or the terminal equipment information correspond to an associated map type, determining the associated map type as a target map type, the associated map type is a preset map type which has an association relation with the user information and/or the terminal equipment information;
if the associated map type corresponding to the user information or the terminal equipment information does not exist, acquiring the global map calling frequency, user cache data and position information;
and determining the type of the target map according to the global map calling frequency, the user cache data and the position information.
Further, the determining a target map type according to the map global calling frequency, the user cache data, and the location information includes:
determining first calling distribution corresponding to different preset map types according to the map global calling frequency meeting a preset time interval, wherein the first calling distribution is used for representing the calling frequency of different preset map types in a global geographic area;
matching the first calling distribution with the position information to determine a second calling distribution, wherein the second distribution is used for representing calling frequencies of different preset map types in the geographic area corresponding to the position information;
fitting the second calling distribution with cache data of at least one preset map type in the user cache data to determine a target map type; or the like, or, alternatively,
and determining the preset map type with the maximum corresponding distribution value in the second calling distribution as the target map type.
Further, after determining a second preset invoking parameter corresponding to the first preset invoking parameter based on the target bridging component corresponding to the preset map type, the method further includes:
monitoring abnormal information generated in the calling and rendering processes of the target map data, and generating an abnormal operation log according to the abnormal information;
and if the abnormal information meets the preset map type switching condition, re-determining the target map type according to the target information, and calling target map data according to the updated target map type.
Further, the method further comprises:
if the map calling task is a lower-order calling task based on a previous map calling task, determining the target map type corresponding to the previous map calling task as an associated map type, wherein the associated map type has an association relation with the target information corresponding to the previous map calling task.
According to another aspect of the present invention, there is provided a multi-map calling apparatus including:
the map calling system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for responding to a map calling operation instruction, acquiring target information and a map calling task carried in the map calling operation instruction, and the target information comprises at least one of user information and terminal equipment information;
the first determining module is used for determining a target map type according to the target information and determining a first preset calling parameter according to the map calling task, wherein the first preset calling parameter corresponds to at least one map calling task of a preset map type;
and the second determining module is used for determining a second preset calling parameter corresponding to the first preset calling parameter based on a target bridging component corresponding to the target map type, and calling target map data corresponding to the target map type according to the second preset calling parameter, wherein the target bridging component comprises a first mapping relation and a second mapping relation which are used for representing the corresponding logical relation of the first preset calling parameter and the second preset calling parameter.
Further, the second determining module includes:
the first determining unit is used for determining a target bridging component corresponding to the target map type from bridging components corresponding to different preset map types according to the preset map types;
the second determining unit is used for determining a first original calling parameter corresponding to the first preset calling parameter based on the first mapping relation and acquiring a second original calling parameter from a map database according to the first original calling parameter;
and a third determining unit, configured to determine, based on the second mapping relationship, a second preset invoking parameter corresponding to the second original invoking parameter.
Further, the apparatus further comprises:
the configuration module is used for configuring corresponding first preset calling parameters and second preset calling parameters for different expected map calling tasks respectively;
the construction module is used for constructing a first mapping relation between first original calling parameters of different preset map types and the first preset calling parameters and constructing a second mapping relation between second original calling parameters of different preset map types and the second preset calling parameters aiming at each expected map calling task;
the construction module is further configured to construct a bridging component according to the first mapping relation and the second mapping relation for each preset map type, so as to obtain bridging components corresponding to different preset map types.
Further, the first determining module comprises:
a fourth determining unit, configured to determine, if the user information and/or the terminal device information corresponds to an associated map type, the associated map type as a target map type, where the associated map type is a preset map type having an association relationship with the user information and/or the terminal device information;
the obtaining unit is used for obtaining the global map calling frequency, the user cache data and the position information if the associated map type corresponding to the user information or the terminal equipment information does not exist;
and the fifth determining unit is used for determining the type of the target map according to the global map calling frequency, the user cache data and the position information.
Further, the air conditioner is provided with a fan,
in a specific application scenario, the fifth determining unit is further configured to determine, according to the map global calling frequency that meets a preset time interval, first calling distributions corresponding to different preset map types, where the first calling distributions are used to represent calling frequencies of different preset map types in a global geographic area;
matching the first calling distribution with the position information to determine a second calling distribution, wherein the second distribution is used for representing calling frequencies of different preset map types in the geographic area corresponding to the position information;
fitting the second calling distribution with cache data of at least one preset map type in the user cache data to determine a target map type; or the like, or a combination thereof,
and determining the preset map type with the maximum corresponding distribution value in the second calling distribution as the target map type.
Further, the apparatus further comprises:
the monitoring module is used for monitoring abnormal information generated in the calling and rendering processes of the target map data and generating an abnormal operation log according to the abnormal information;
and the updating module is used for re-determining the type of the target map according to the target information and calling target map data according to the updated type of the target map if the abnormal information meets the preset map type switching condition.
Further, the apparatus further comprises:
a third determining module, configured to determine, if the map call task is a lower-order call task based on a previous map call task, the target map type corresponding to the previous map call task as an associated map type, where the associated map type has an association relationship with the target information corresponding to the previous map call task.
According to still another aspect of the present invention, a storage medium is provided, and the storage medium stores at least one executable instruction, which causes a processor to execute operations corresponding to the above-mentioned multiple map calling method.
According to still another aspect of the present invention, there is provided a computer apparatus including: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the multi-map calling method.
By means of the technical scheme, the technical scheme provided by the embodiment of the invention at least has the following advantages:
the invention provides a multi-map calling method and device, a storage medium and computer equipment, wherein the embodiment of the invention responds to a map calling operation instruction to obtain target information and a map calling task carried in the map calling operation instruction, wherein the target information comprises at least one of user information and terminal equipment information; determining a target map type according to the target information, and determining a first preset calling parameter according to the map calling task, wherein the first preset calling parameter corresponds to the map calling task of any preset map type; the method comprises the steps of determining a second preset calling parameter corresponding to a first preset calling parameter based on a target bridging component corresponding to the target map type, calling target map data corresponding to the target map type according to the second preset calling parameter, selecting the preset map type based on analysis of multi-dimensional data, calling map data of different preset map types based on normalized unified calling parameters, achieving selectivity of the preset map types, greatly reducing workload of developers and effectively improving applicability of map data calling.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart of a method for calling multiple maps according to an embodiment of the present invention;
FIG. 2 is a flow diagram illustrating another method for multiple map calls provided by embodiments of the present invention;
FIG. 3 is a flow chart of a method for invoking multiple maps according to an embodiment of the present invention;
FIG. 4 is a block diagram illustrating a multi-map calling apparatus according to an embodiment of the present invention;
fig. 5 shows a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by 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 embodiment of the invention provides a multi-map calling method, aiming at the problems that in the existing application software, map data of a map service provider can be usually called according to a preset code, the quality of a map function completely depends on the inherent attribute of the called map data, so that the performance of the map function in different regions has larger difference, the requirements of users in different regions and the requirements of regional transformation of the users cannot be met, and the applicability of a map is lower, and the method comprises the following steps of:
101. and responding to a map calling operation instruction, and acquiring target information and a map calling task carried in the map calling operation instruction.
In the embodiment of the invention, the calling of the map is involved in the using process of a plurality of application programs. For example, the shopping application acquires logistics information of goods, and the riding application acquires recommended locations for getting on and off the bus. When the operation of a user directly indicates map calling or indirectly triggers a map operation instruction, target information and a map calling task are required to be acquired in order to select an optimal preset map type from a plurality of types of pre-configured maps and acquire map data meeting the map display requirement. The target information at least comprises one of user information and terminal equipment information, and the user information can be a user login account number, a user mobile phone number and the like. The terminal device information may be a device ID, and the embodiment of the present invention is not particularly limited. The map calling task is used for representing specific display requirements of the map, such as displaying the map near a target point, displaying a navigation route to a specified place and the like.
102. And determining the type of a target map according to the target information, and determining a first preset calling parameter according to the map calling task.
In the embodiment of the invention, because the different preset map types have different expression conditions in different geographical positions and different application scenes, different users have different use habits on the map. Therefore, an optimal preset map type needs to be selected from the preset map types as the target map type according to the user information and/or the terminal device information in the target information. For example, the target map type is determined according to the user usage habit. For another example, the target map type is determined according to the use frequency of each preset map type in the current geographic area. The preset map types do not necessarily include all mainstream preset map types, such as Tencent maps, baidu maps, gauder maps, google maps, and the like. The type of the map can be configured according to the actual application scene requirements. For example, only the Baidu map and the Gade map are set as preset map types, and the embodiment of the present invention is not particularly limited. By defining the preset map type according to needs, the size of the map data package file of the application program can be reduced, and meanwhile, the flow consumption and the storage space consumption are reduced. After the target map type is determined, in order to acquire map data meeting a map calling task from a map database corresponding to the target map type, an input parameter for calling the map data, namely a first preset calling parameter, needs to be determined according to the map calling task.
In addition, while the preset map type is calculated and recommended, a multi-dimensional user portrait can be constructed according to the user information and the use information associated with the user information, a getting-on/off place is recommended for the user according to the user portrait, and route selection is recommended according to user habits, for example, a route with shorter distance or shorter time is selected.
It should be noted that the first preset invoking parameter corresponds to a map invoking task of any preset map type. That is, the first preset invoking parameter may be used to invoke map data from a map database of any one preset map type, and the invoking parameter is a uniform invoking parameter for all the preset map types corresponding to the same map invoking task. The first preset calling parameter only has a corresponding relation with the map calling task and is not limited by the type of the preset map. By setting the unified preset calling parameters for the plurality of preset map types, the compiling of corresponding codes for calling of each preset map type is avoided, when the preset map types are updated, the codes of the calling parameters do not need to be modified, and the workload of developers is greatly reduced.
103. And determining a second preset calling parameter corresponding to the first preset calling parameter based on a target bridging component corresponding to the target map type, and calling target map data corresponding to the target map type according to the second preset calling parameter.
In the embodiment of the invention, because the data calling methods corresponding to different types of map data are different, such as different input and output formats. After the target map type is determined, in order to call the data of the target map type based on the common first preset call parameter, the call parameter needs to be converted by using a target bridging component with the same attribute corresponding to the target map type, so as to obtain a second preset call parameter for calling the target map data. For example, the first preset invoking parameter is converted into an entry parameter which can be identified by the map data invoking method of the target map type, and then an exit parameter returned according to the entry parameter is converted into a common invoking parameter applicable to any preset map type, namely, a second preset invoking parameter. And further calling the map data and the target map data which are of the type of the target map and meet the map calling task according to the second preset calling parameter. The calling of the target map data may be realized based on one data calling plug-in, and may be an RN (read Native) plug-in, which is not specifically limited in the embodiment of the present invention.
In addition, the map data calling plug-in can determine the currently recommended actual preset map type through a map calling method corresponding to the map calling task. And performing difference display according to the actual preset map type. For example, the history address storage function converts the cached address list according to the actual preset map type, and returns the address list according with the current preset map type.
It should be noted that the target bridging component is a bridging component uniquely corresponding to the target map type, and the bridging component for the same preset map type may further include a bridging component supporting two operating systems, i.e., an IOS system and an Android system. The bridging component is used for completing format conversion among original method names, input parameters, output parameters and shared first preset calling parameters and second preset calling parameters corresponding to different preset map types. The target bridging component comprises a corresponding logic relation of the first preset calling parameter and the second preset calling parameter. Based on the logical relationship, a second preset invoking parameter for invoking the target map data may be determined according to the first preset invoking parameter. The map data calling interface specifications of different preset map types are unified, so that the map data calling plug-in can call the map data of different types without perception, the workload of developers is greatly reduced, and meanwhile, the preset map types are selected according to the requirements of different application scenes, and the applicability of the map is effectively improved.
For further explanation and limitation, as shown in fig. 2, the step 103 of determining, according to the first preset invoking parameter, a second preset invoking parameter corresponding to the first preset invoking parameter by using the target bridging component corresponding to the preset map type includes:
201. and determining a target bridging component corresponding to the target map type from bridging components corresponding to different preset map types according to the preset map type.
202. And determining a first original calling parameter corresponding to the first preset calling parameter based on the first mapping relation, and acquiring a second original calling parameter from a map database according to the first original calling parameter.
203. And determining a second preset calling parameter corresponding to the second original calling parameter based on the second mapping relation.
In the embodiment of the invention, the target map type is determined based on the target information and can be any one of the preset map types, and the calling methods of the preset map types are different. Therefore, a target bridging component corresponding to the current target map type needs to be called from a plurality of pre-configured bridging components based on the target map type. For example, if the target map type is a Baidu map, the bridge component corresponding to the Baidu map is determined as the target bridge component. The target bridging component comprises a first mapping relation and a second mapping relation corresponding to the target map type. After the target bridging component is determined, the first preset calling parameter is converted into an input parameter which can be identified by the corresponding map database of the target map type, namely the first original calling parameter, based on the first mapping relation. And inputting the first original calling parameter into the map database to obtain a return value, namely a second original calling parameter, and further performing format conversion on the second original calling parameter based on a second mapping relation to obtain a second preset calling parameter with the same format as the first preset calling parameter. Through format conversion of the calling parameters by the target bridging component, map data matched with the map calling task can be called by different preset map types based on unified preset calling parameters, the condition that only one preset map type can be used is avoided, multi-map calling based on different application scenes is realized, and the degree of freedom of selection of the preset map types is improved.
For further explanation and limitation, in one embodiment of the present invention, before determining the first invocation parameter according to the map invocation task in step 102, the method further comprises:
respectively configuring corresponding first preset calling parameters and second preset calling parameters for different expected map calling tasks;
aiming at each expected map calling task, constructing a first mapping relation between first original calling parameters of different preset map types and the first preset calling parameters, and constructing a second mapping relation between second original calling parameters of different preset map types and the second preset calling parameters;
and aiming at each preset map type, constructing a bridging component according to the first mapping relation and the second mapping relation to obtain bridging components corresponding to different preset map types.
In the embodiment of the invention, the expected map calling task comprises executing a map command to set map animation, deleting the map animation, setting a map floating window, deleting the map floating window, calculating the angle of a vehicle head, drawing a path, clearing the path, inquiring nearby points, setting a map central point, setting map range display and the like. Since the method names for realizing the tasks in different preset map types and the parameters corresponding to the method names are different, uniform method names and corresponding calling parameters are configured for the same map calling task in different preset map types. The calling parameters comprise input parameters and output parameters. The first preset calling parameter comprises a method name and an input parameter corresponding to the method name. The second preset invoking parameter comprises an output parameter.
In order to convert original calling methods and calling parameters corresponding to different preset map types into first preset calling parameters and second preset calling parameters which can be recognized by a unified calling interface, a first mapping relation between the first preset calling parameters and original input parameters of the different preset map types and a second mapping relation between the second preset calling parameters and original output parameters of the different preset map types are respectively constructed, and the first mapping relation and the second mapping relation corresponding to the different preset map types are respectively stored in a bridging component corresponding to the preset map types. When the first preset calling parameter or the second original calling parameter is received, the conversion between the original calling parameter and the unified preset calling parameter can be completed.
It should be noted that, each method supported by a preset map type does not completely correspond to an expected map call task, and if the current preset map type does not support the expected map call task, the first preset call parameter represents a parameter that does not support the method. The first mapping relation and the second mapping relation are established for the original calling methods and parameters corresponding to different preset map types in advance, and the mapping relation is provided for conversion of the calling methods and the calling parameters, so that accurate calling of map data of different preset map types is achieved.
For further explanation and limitation, in an embodiment of the present invention, as shown in fig. 3, the step 102 of determining a target map type according to claim 1 according to the target information comprises:
301. and if the user information and/or the terminal equipment information correspond to an associated map type, determining the associated map type as a target map type.
302. And if the associated map type corresponding to the user information or the terminal equipment information does not exist, acquiring the global map calling frequency, user cache data and position information.
303. And determining the type of a target map according to the global map calling frequency, the user cache data and the position information.
In the embodiment of the invention, the associated map type is a preset map type which has an association relation with user information or terminal equipment information. In some specific application scenarios, a user or a device needs to preferentially use a certain preset map type. For example, after a new preset map type is on line, it is necessary to recommend employees of a designated company or users within a designated range to preferentially use the new preset map type, so as to implement internal testing of a new product. In order to invoke the preset map type needing to be used preferentially, an association relationship needs to be established between user information and/or terminal equipment information and the preset map type needing to be used preferentially in advance. In addition, the associated map type further includes a default preset map type and/or associated restriction information set by the user through the terminal, for example, a company of the user designates an entering place range, a leaving place range, and the like. And in the process of confirming the target map type, preferentially confirming whether the current user information and/or terminal equipment information is bound with the associated map type, and if the associated map type exists, directly determining the associated map type as the target map type. And if the associated map type does not exist, acquiring relevant data such as the global map calling frequency, the user cache data, the position information and the like to analyze and recommend the preset map type if the preset map type corresponding to the current user or the terminal equipment is not fixed. The map global calling frequency is data called by each type of map in terminal equipment in a preset area, and the data includes, for example, the map calling frequency, the rating ranking, the recommended ranking and the like. The preset area may be the world, a designated country, or a designated province, and the embodiment of the present invention is not particularly limited. The user cache data is cache data in the use process of the user map and can reflect the use habits of the user. For example, the frequency with which the user invokes different types of maps, etc.
It should be noted that two models of the preset map types are intelligently recommended by associating the map types and based on the global map calling frequency, the user cache data and the position information, so that the selection of the preset map types meets the intelligent requirements and the individual requirements of different users, and the flexibility and the application range of the multi-map calling process are effectively improved.
For further explanation and limitation, in an embodiment of the present invention, the step 303 of determining a target map type according to the map global invocation frequency, the user cache data and the location information includes:
and determining first calling distribution corresponding to different preset map types according to the map global calling frequency meeting the preset time interval.
And matching the first calling distribution with the position information to determine a second calling distribution.
Fitting the second calling distribution with cache data of at least one preset map type in the user cache data to determine a target map type; or the like, or, alternatively,
and determining the preset map type with the maximum corresponding distribution value in the second calling distribution as the target map type.
In the embodiment of the invention, the first calling distribution corresponding to different preset map types is used for representing the calling frequency of different preset map types in different geographic areas, namely the calling frequency of each preset map type in different geographic areas. And the second distribution is used for representing the calling frequency of different preset map types in the geographic area corresponding to the position information. In order to accurately recommend the preset map types, the calling frequency of each preset map type matched with the current geographic position, namely the second calling distribution, is matched from different geographic areas by combining the geographic position of the current terminal equipment. For example, if the current geographic location is Tiananmen, the second calling distribution is a distribution of calling frequencies of different preset map types in Beijing or China. After the second call distribution is obtained, the preset map type with the maximum distribution value (with the highest call frequency) in the second call distribution may be directly determined as the target map type. The use frequency distribution of different preset map types of the user can be obtained according to the cache data statistics about the preset map types in the user cache data; and fitting the second calling distribution with the use frequency distribution of the user to obtain a preset map type recommendation result fused with the user habits. The fitting method may be an interpolation method or a curve fitting method, and the embodiment of the present invention is not particularly limited. According to the method, the preset map type can be recommended by fully fusing factors in multiple aspects such as map calling frequency, current position information, user use habits and the like. The method and the device have the advantages that the recommendation of the preset map type is more representative, meanwhile, the personalized consideration of the recommendation of the preset map type is increased, and therefore the user experience of map users is effectively improved.
For further explanation and limitation, in one embodiment of the present invention, after the determining, based on the target bridge component corresponding to the preset map type, the second preset invoking parameter corresponding to the first preset invoking parameter, the method further includes:
and monitoring abnormal information generated in the calling and rendering processes of the target map data, and generating an abnormal operation log according to the abnormal information.
And if the abnormal information meets the preset map type switching condition, re-determining the target map type according to the target information, and calling target map data according to the updated target map type.
In the embodiment of the invention, after the second preset calling parameter is determined, in order to ensure the smooth proceeding of the target map data calling and rendering process, the process is monitored. And judging the monitored abnormal information based on the preset map type switching condition, and determining whether the target map type needs to be determined again to realize the switching of the preset map type. The preset map type switching condition may be that the map data cannot be opened or identified, and the like, and is also customized according to specific application requirements, and embodiments of the present invention are not specifically limited. The monitored abnormal information can be recorded as an abnormal log, and in the process of calling the map data, the error reporting information of the interface records the log so as to facilitate the elimination and early warning of subsequent accidents. By monitoring the target map data calling process, the stability of the target map data calling process can be guaranteed, and therefore the success rate of data calling is improved.
In an embodiment of the present invention, for further explanation and limitation, the method further comprises:
if the map calling task is a lower-order calling task based on a previous map calling task, determining the target map type corresponding to the previous map calling task as an associated map type, wherein the associated map type has an association relation with the target information corresponding to the previous map calling task.
In the embodiment of the invention, the lower-order calling task is a subtask of the whole task displayed relative to the map. For example, a map animation is shown as an overall task, and a drawing path is a subtask. When the currently executed map calling task is a next-order task, the preset map type does not need to be updated again, so that the current target map type can be determined as the associated map type corresponding to the current user or the terminal device, and the re-analysis of the recommended data of the preset map type is avoided.
The invention provides a multi-map calling method, which comprises the steps of responding to a map calling operation instruction, obtaining target information and a map calling task carried in the map calling operation instruction, wherein the target information comprises at least one of user information and terminal equipment information; determining a target map type according to the target information, and determining a first preset calling parameter according to the map calling task, wherein the first preset calling parameter corresponds to the map calling task of any preset map type; the method comprises the steps of determining a second preset calling parameter corresponding to a first preset calling parameter based on a target bridging component corresponding to the target map type, calling target map data corresponding to the target map type according to the second preset calling parameter, selecting the preset map type based on analysis of multi-dimensional data, calling map data of different preset map types based on normalized unified calling parameters, achieving selectivity of the preset map types, greatly reducing workload of developers and effectively improving applicability of map data calling.
Further, as an implementation of the method shown in fig. 1, an embodiment of the present invention provides a multi-map calling apparatus, and as shown in fig. 4, the apparatus includes:
the obtaining module 41 is configured to, in response to a map call operation instruction, obtain target information and a map call task carried in the map call operation instruction, where the target information includes at least one of user information and terminal device information;
a first determining module 42, configured to determine a target map type according to the target information, and determine a first preset invoking parameter according to the map invoking task, where the first preset invoking parameter corresponds to at least one map invoking task of a preset map type;
a second determining module 43, configured to determine a second preset invoking parameter corresponding to the first preset invoking parameter based on a target bridging component corresponding to the target map type, and invoke target map data corresponding to the target map type according to the second preset invoking parameter, where the target bridging component includes a first mapping relationship and a second mapping relationship, where the first mapping relationship and the second mapping relationship are used to represent a logical relationship corresponding to the first preset invoking parameter and the second preset invoking parameter.
Further, the second determining module 43 includes:
the first determining unit is used for determining a target bridging component corresponding to the target map type from bridging components corresponding to different preset map types according to the preset map type;
the second determining unit is used for determining a first original calling parameter corresponding to the first preset calling parameter based on the first mapping relation and acquiring a second original calling parameter from a map database according to the first original calling parameter;
and a third determining unit, configured to determine, based on the second mapping relationship, a second preset invoking parameter corresponding to the second original invoking parameter.
Further, the apparatus further comprises:
the configuration module is used for configuring corresponding first preset calling parameters and second preset calling parameters for different expected map calling tasks respectively;
the construction module is used for constructing a first mapping relation between first original calling parameters of different preset map types and the first preset calling parameters and constructing a second mapping relation between second original calling parameters of different preset map types and the second preset calling parameters aiming at each expected map calling task;
the construction module is further configured to construct a bridging component according to the first mapping relationship and the second mapping relationship for each preset map type, so as to obtain bridging components corresponding to different preset map types.
Further, the first determining module 42 includes:
a fourth determining unit, configured to determine, if the user information and/or the terminal device information corresponds to an associated map type, the associated map type as a target map type, where the associated map type is a preset map type having an association relationship with the user information and/or the terminal device information;
the obtaining unit is used for obtaining the global map calling frequency, the user cache data and the position information if the associated map type corresponding to the user information or the terminal equipment information does not exist;
and the fifth determining unit is used for determining the type of the target map according to the global map calling frequency, the user cache data and the position information.
Further, the air conditioner is provided with a fan,
in a specific application scenario, the fifth determining unit is further configured to determine, according to the map global calling frequency that meets a preset time interval, first calling distributions corresponding to different preset map types, where the first calling distributions are used to represent calling frequencies of different preset map types in a global geographic area;
matching the first calling distribution with the position information, and determining a second calling distribution, wherein the second distribution is used for representing calling frequencies of different preset map types in a geographic area corresponding to the position information;
fitting the second calling distribution with cache data of at least one preset map type in the user cache data to determine a target map type; or the like, or, alternatively,
and determining the preset map type with the maximum corresponding distribution value in the second calling distribution as the target map type.
Further, the apparatus further comprises:
the monitoring module is used for monitoring abnormal information generated in the calling and rendering processes of the target map data and generating an abnormal operation log according to the abnormal information;
and the updating module is used for re-determining the type of the target map according to the target information and calling target map data according to the updated type of the target map if the abnormal information meets the preset map type switching condition.
Further, the apparatus further comprises:
a third determining module, configured to determine, if the map call task is a lower-order call task based on a previous map call task, the target map type corresponding to the previous map call task as an associated map type, where the associated map type has an association relationship with the target information corresponding to the previous map call task.
The invention provides a multi-map calling device, which responds to a map calling operation instruction to acquire target information and a map calling task carried in the map calling operation instruction, wherein the target information comprises at least one of user information and terminal equipment information; determining a target map type according to the target information, and determining a first preset calling parameter according to the map calling task, wherein the first preset calling parameter corresponds to the map calling task of any preset map type; the method comprises the steps of determining a second preset calling parameter corresponding to a first preset calling parameter based on a target bridging component corresponding to the target map type, calling target map data corresponding to the target map type according to the second preset calling parameter, selecting the preset map type based on analysis of multi-dimensional data, calling map data of different preset map types based on normalized unified calling parameters, achieving selectivity of the preset map types, greatly reducing workload of developers and effectively improving applicability of map data calling.
According to an embodiment of the present invention, a storage medium is provided, where at least one executable instruction is stored, and the computer executable instruction can execute the multi-map calling method in any of the above method embodiments.
Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the computer device.
As shown in fig. 5, the computer apparatus may include: a processor (processor) 502, a Communications Interface 504, a memory 506, and a communication bus 508.
Wherein: the processor 502, communication interface 504, and memory 506 communicate with each other via a communication bus 508.
A communication interface 504 for communicating with network elements of other devices, such as clients or other servers.
The processor 502 is configured to execute the program 510, and may specifically perform the relevant steps in the above-described multiple map calling method embodiment.
In particular, program 510 may include program code that includes computer operating instructions.
The processor 502 may be a central processing unit CPU, or an Application Specific Integrated Circuit ASIC (Application Specific Integrated Circuit), or one or more Integrated circuits configured to implement an embodiment of the present invention. The computer device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 506 for storing a program 510. The memory 506 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 510 may specifically be used to cause the processor 502 to perform the following operations:
responding to a map calling operation instruction, and acquiring target information and a map calling task carried in the map calling operation instruction, wherein the target information comprises at least one of user information and terminal equipment information;
determining a target map type according to the target information, and determining a first preset calling parameter according to the map calling task, wherein the first preset calling parameter corresponds to the map calling task of any preset map type;
and determining a second preset calling parameter corresponding to the first preset calling parameter based on a target bridging component corresponding to the target map type, and calling target map data corresponding to the target map type according to the second preset calling parameter, wherein the target bridging component comprises a first mapping relation and a second mapping relation which are used for representing the corresponding logical relation of the first preset calling parameter and the second preset calling parameter.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made without departing from the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A multi-map calling method, comprising:
responding to a map calling operation instruction, and acquiring target information and a map calling task carried in the map calling operation instruction, wherein the target information comprises at least one of user information and terminal equipment information;
determining a target map type according to the target information, and determining a first preset calling parameter according to the map calling task, wherein the first preset calling parameter corresponds to the map calling task of any preset map type;
and determining a second preset calling parameter corresponding to the first preset calling parameter based on a target bridging component corresponding to the target map type, and calling target map data corresponding to the target map type according to the second preset calling parameter, wherein the target bridging component comprises a first mapping relation and a second mapping relation which are used for representing a corresponding logical relation between the first preset calling parameter and the second preset calling parameter.
2. The method of claim 1, wherein the determining a second preset invocation parameter corresponding to the first preset invocation parameter based on a target bridging component corresponding to the target map type comprises:
determining a target bridging component corresponding to the target map type from bridging components corresponding to different preset map types according to the preset map type;
determining a first original calling parameter corresponding to the first preset calling parameter based on the first mapping relation, and acquiring a second original calling parameter from a map database according to the first original calling parameter;
and determining a second preset calling parameter corresponding to the second original calling parameter based on the second mapping relation.
3. The method of claim 1, wherein prior to determining a first invocation parameter in accordance with the map invocation task, the method further comprises:
respectively configuring corresponding first preset calling parameters and second preset calling parameters for different expected map calling tasks;
aiming at each expected map calling task, constructing a first mapping relation between first original calling parameters of different preset map types and the first preset calling parameters, and constructing a second mapping relation between second original calling parameters of different preset map types and the second preset calling parameters;
and aiming at each preset map type, constructing a bridging component according to the first mapping relation and the second mapping relation to obtain bridging components corresponding to different preset map types.
4. The method of claim 1, wherein determining a target map type based on the target information comprises:
if the user information and/or the terminal equipment information correspond to an associated map type, determining the associated map type as a target map type, wherein the associated map type is a preset map type which has an association relationship with the user information and/or the terminal equipment information;
if the associated map type corresponding to the user information or the terminal equipment information does not exist, acquiring the global map calling frequency, user cache data and position information;
and determining the type of a target map according to the global map calling frequency, the user cache data and the position information.
5. The method of claim 4, wherein determining the target map type according to the map global invocation frequency, the user cache data and the location information comprises:
determining first calling distribution corresponding to different preset map types according to the map global calling frequency meeting a preset time interval, wherein the first calling distribution is used for representing the calling frequency of different preset map types in a global geographic area;
matching the first calling distribution with the position information to determine a second calling distribution, wherein the second distribution is used for representing calling frequencies of different preset map types in the geographic area corresponding to the position information;
fitting the second calling distribution with cache data of at least one preset map type in the user cache data to determine a target map type; or the like, or, alternatively,
and determining the preset map type with the maximum corresponding distribution value in the second calling distribution as the target map type.
6. The method of claim 1, wherein after determining a second preset invoking parameter corresponding to the first preset invoking parameter based on the target bridging component corresponding to the preset map type, the method further comprises:
monitoring abnormal information generated in the calling and rendering processes of the target map data, and generating an abnormal operation log according to the abnormal information;
and if the abnormal information meets the preset map type switching condition, re-determining the target map type according to the target information, and calling target map data according to the updated target map type.
7. The method of any one of claims 1-6, further comprising:
if the map calling task is a lower-order calling task based on a previous map calling task, determining the target map type corresponding to the previous map calling task as an associated map type, wherein the associated map type has an association relation with the target information corresponding to the previous map calling task.
8. A multiple map recall apparatus, comprising:
the map calling system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for responding to a map calling operation instruction, acquiring target information and a map calling task carried in the map calling operation instruction, and the target information comprises at least one of user information and terminal equipment information;
the first determining module is used for determining a target map type according to the target information and determining a first preset calling parameter according to the map calling task, wherein the first preset calling parameter corresponds to at least one map calling task of a preset map type;
and the second determining module is used for determining a second preset calling parameter corresponding to the first preset calling parameter based on a target bridging component corresponding to the target map type, and calling target map data corresponding to the target map type according to the second preset calling parameter, wherein the target bridging component comprises a first mapping relation and a second mapping relation which are used for representing the corresponding logical relation of the first preset calling parameter and the second preset calling parameter.
9. A storage medium having stored therein at least one executable instruction that causes a processor to perform operations corresponding to the multiple map call method of any of claims 1-7.
10. A computer device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface are communicated with each other through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the multi-map calling method of any one of claims 1-7.
CN202210925589.0A 2022-08-03 2022-08-03 Multi-map calling method and device, storage medium and computer equipment Pending CN115269050A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210925589.0A CN115269050A (en) 2022-08-03 2022-08-03 Multi-map calling method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210925589.0A CN115269050A (en) 2022-08-03 2022-08-03 Multi-map calling method and device, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN115269050A true CN115269050A (en) 2022-11-01

Family

ID=83747358

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210925589.0A Pending CN115269050A (en) 2022-08-03 2022-08-03 Multi-map calling method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN115269050A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116501516A (en) * 2023-04-18 2023-07-28 南京领行科技股份有限公司 Multi-map calling method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116501516A (en) * 2023-04-18 2023-07-28 南京领行科技股份有限公司 Multi-map calling method, device, equipment and storage medium
CN116501516B (en) * 2023-04-18 2024-03-22 南京领行科技股份有限公司 Multi-map calling method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US20200267221A1 (en) Method, system, and device for controlling an internet of things device
CN107896162B (en) Deployment method and device of monitoring system, computer equipment and storage medium
JP5054120B2 (en) Apparatus and method for providing and providing an indication of communication events on a map
EP3968702A1 (en) Communication method and apparatus, entity and computer readable storage medium
CN111581563A (en) Page response method and device, storage medium and electronic equipment
JP5433538B2 (en) Communication volume reduction method
CN105224609A (en) Index query method and device
CN110677462A (en) Access processing method, system, device and storage medium for multi-block chain network
CN104602186A (en) Contact positioning method
CN113886336A (en) Flow detection method, device, equipment and medium
CN111444442B (en) Information recommendation method and device
CN114169536A (en) Data management and control method and related device
CN111045848B (en) Log analysis method, terminal device and computer readable storage medium
CN115269050A (en) Multi-map calling method and device, storage medium and computer equipment
CN108804403B (en) Method and device for realizing service chart
CN111367500A (en) Data processing method and device
US20140195458A1 (en) Methods, systems, and computer program products for compiling experience ratings for service providers
CN114297533A (en) GIS service determination method and device and electronic equipment
CN115186214A (en) Page configuration method and device, computer equipment and computer readable storage medium
CN110166272A (en) The method, apparatus and system of terminal device index mediation service are provided
CN111221651B (en) Load balancing configuration method, device, server and readable storage medium
CN113791766A (en) Method for combining data interfaces, electronic device and readable storage medium
CN114422436A (en) Gateway, gateway control method, gateway control device, electronic equipment and storage medium
CN113704664A (en) Method and device for generating routing address for accessing page
CN111770487A (en) Access Point Name (APN) information configuration method, equipment and medium

Legal Events

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