Multi-map calling method and device, storage medium and computer device
By using a multi-map calling method and a bridging component to transform calling parameters, the problem of map performance differences in different regions within a single map application is solved. This achieves flexibility in multi-map applications, reduces the workload of developers, and improves the applicability of map data and user experience.
Patent Information
- Application Number
- CN202210925589.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-03
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2042-08-03
AI Technical Summary
Existing map applications typically only access map data from one map service provider, resulting in significant differences in map functionality across different regions. This fails to meet the needs of users in different areas and has low applicability.
This paper provides a method for calling multiple maps. By obtaining target information and map calling tasks, the target map type is determined, and the calling parameters are transformed using a bridging component to achieve unified calling of multiple map types. This includes building mapping relationships and listening for exception information to optimize map type selection.
This enables more flexible and selective use of map data, improves the applicability of map data, reduces the workload of developers, and enhances the applicability of map data retrieval and user experience.
Smart Images

Figure CN115269050B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of map navigation, in particular to a multi-map calling method and device, storage medium and computer equipment. BACKGROUND
[0002] With the rapid development of navigation and positioning technology, maps are widely used in application software in various fields. Currently, the main map service providers include Baidu, Gaode, Tencent, Google, etc. Each service provider has its own advantages and disadvantages in different application scenarios. For example, Tencent Map and Baidu Map have relatively perfect support for domestic maps, but relatively weak support for foreign maps, and there are fuzzy areas in the display of foreign maps. While Google Map has very powerful support for foreign map functions, but it cannot be accessed in China.
[0003] In a current application software, only one map data of a map service provider can be called according to a preset code, and the advantages and disadvantages of the map function completely depend on the inherent properties of the called map data, resulting in that the performance of the map function in different regions will have great differences, which cannot meet the needs of users in different regions and the needs of users changing regions, and the applicability of the map is low. SUMMARY
[0004] Therefore, the present application provides a multi-map calling method and device, storage medium and computer equipment, mainly aiming at the problem of low applicability of the existing map.
[0005] According to one aspect of the present application, a multi-map calling method is provided, comprising:
[0006] In response to a map calling operation instruction, target information and a map calling task carried in the map calling operation instruction are obtained, the target information including at least one of user information and terminal device information;
[0007] A target map type is determined according to the target information, and a first preset calling parameter is determined according to the map calling task, the first preset calling parameter corresponding to the map calling task of any preset map type;
[0008] A second preset calling parameter corresponding to the first preset calling parameter is determined based on a target bridging component corresponding to the target map type, and target map data corresponding to the target map type is called according to the second preset calling parameter, the target bridging component including a first mapping relationship and a second mapping relationship for representing a corresponding logical relationship between the first preset calling parameter and the second preset calling parameter.
[0009] Further, the second preset calling parameter corresponding to the first preset calling parameter is determined based on the target bridging component corresponding to the target map type, and the second preset calling parameter corresponding to the first preset calling parameter is determined based on the target bridging component corresponding to the target map type.
[0010] The target bridging component corresponding to the target map type is determined from the bridging components corresponding to different preset map types according to the preset map type.
[0011] Based on the first mapping relationship, the first original calling parameter corresponding to the first preset calling parameter is determined, and the second original calling parameter is obtained from the map database according to the first original calling parameter.
[0012] Based on the second mapping relationship, the second preset calling parameter corresponding to the second original calling parameter is determined.
[0013] Further, before the first calling parameter is determined according to the map calling task, the method further comprises:
[0014] The corresponding first preset calling parameter and second preset calling parameter are configured for different expected map calling tasks.
[0015] For each of the expected map calling tasks, a first mapping relationship between the first original calling parameter of different preset map types and the first preset calling parameter is constructed, and a second mapping relationship between the second original calling parameter of different preset map types and the second preset calling parameter is constructed.
[0016] For each preset map type, a bridging component is constructed according to the first mapping relationship and the second mapping relationship, and the bridging component corresponding to different preset map types is obtained.
[0017] Further, the target map type is determined according to the target information, and the target map type is determined according to the target information.
[0018] If the user information and / or the terminal device information correspond to an associated map type, the associated map type is determined as the target map type, and the associated map type is a preset map type having an association relationship with the user information and / or the terminal device information.
[0019] If there is no associated map type corresponding to the user information or the terminal device information, the map global calling frequency, the user cache data, and the location information are obtained.
[0020] The target map type is determined according to the map global calling frequency, the user cache data, and the location information.
[0021] Further, the target map type is determined according to the map global calling frequency, the user cache data, and the location information.
[0022] determine a first call distribution corresponding to different preset map types according to the global call frequency of the map satisfying a preset time interval, the first call distribution being used to represent the call frequency of different preset map types in a global geographic area;
[0023] determine a second call distribution according to matching the first call distribution with the position information, the second distribution being used to represent the call frequency of different preset map types in a geographic area corresponding to the position information;
[0024] fit the second call distribution with cache data of at least one preset map type in the user cache data to determine a target map type; or,
[0025] determine the preset map type corresponding to the maximum distribution value in the second call distribution as the target map type.
[0026] Further, after determining the second preset call parameter corresponding to the first preset call parameter based on the target bridging component corresponding to the preset map type, the method further comprises:
[0027] listen to abnormal information generated in the calling and rendering process of the target map data, and generate an abnormal operation log according to the abnormal information;
[0028] if the abnormal information satisfies a preset map type switching condition, then re-determine a target map type according to the target information, and call target map data according to the updated target map type.
[0029] Further, the method further comprises:
[0030] if the map calling task is a lower-level calling task based on a previous map calling task, then determine the target map type corresponding to the previous map calling task as an associated map type, the associated map type having an associated relationship with the target information corresponding to the previous map calling task.
[0031] According to another aspect of the present application, a multi-map calling device is provided, comprising:
[0032] an acquisition module, configured to acquire target information and a map calling task carried in a map calling operation instruction in response to the map calling operation instruction, the target information including at least one of user information and terminal device information;
[0033] a first determination module, configured to determine a target map type according to the target information, and determine a first preset calling parameter according to the map calling task, the first preset calling parameter corresponding to a map calling task of at least one preset map type.
[0034] The second determining module is configured to determine 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 to call 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 relationship and a second mapping relationship used to represent a logical relationship between the first preset calling parameter and the second preset calling parameter.
[0035] Further, the second determining module comprises:
[0036] The first determining unit is configured to determine 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.
[0037] The second determining unit is configured to determine a first original calling parameter corresponding to the first preset calling parameter based on the first mapping relationship, and to obtain a second original calling parameter from a map database according to the first original calling parameter.
[0038] The third determining unit is configured to determine a second preset calling parameter corresponding to the second original calling parameter based on the second mapping relationship.
[0039] Further, the apparatus further comprises:
[0040] The configuration module is configured to configure a first preset calling parameter and a second preset calling parameter corresponding to each intended map calling task, respectively.
[0041] The construction module is configured to construct, for each intended map calling task, a first mapping relationship between a first original calling parameter of different preset map types and the first preset calling parameter, and a second mapping relationship between a second original calling parameter of different preset map types and the second preset calling parameter.
[0042] The construction module is further configured to construct, for each preset map type, a bridging component according to the first mapping relationship and the second mapping relationship, to obtain bridging components corresponding to different preset map types.
[0043] Further, the first determining module comprises:
[0044] The fourth determining unit is configured to determine an associated map type as a target map type if the user information and / or the terminal device information corresponds to the associated map type, wherein the associated map type is a preset map type having an association relationship with the user information and / or the terminal device information.
[0045] The acquisition unit is configured to acquire a map global calling frequency, user cache data and location information if the association map type corresponding to the user information or the terminal device information does not exist.
[0046] The fifth determination unit is configured to determine a target map type according to the map global calling frequency, the user cache data and the location information.
[0047] Further,
[0048] In a specific application scenario, the fifth determination unit is further configured to determine a first calling distribution corresponding to different preset map types according to the map global calling frequency satisfying a preset time interval, and the first calling distribution is used to represent calling frequencies of different preset map types in a global geographic area.
[0049] The first calling distribution and the location information are matched to determine a second calling distribution, and the second distribution is used to represent calling frequencies of different preset map types in a geographic area corresponding to the location information.
[0050] The second calling distribution is fitted with cache data of at least one preset map type in the user cache data to determine a target map type, or
[0051] The preset map type with the maximum distribution value in the second calling distribution is determined as the target map type.
[0052] Further, the device further comprises:
[0053] The listening module is configured to listen to abnormal information generated in a calling and rendering process of the target map data, and generate an abnormal operation log according to the abnormal information.
[0054] The updating module is configured to re-determine a target map type according to the target information if the abnormal information satisfies a preset map type switching condition, and call target map data according to the updated target map type.
[0055] Further, the device further comprises:
[0056] The third determination module is configured to determine the target map type corresponding to a previous map calling task as an association map type if the map calling task is a lower-order calling task based on the previous map calling task, and the association map type has an association relationship with the target information corresponding to the previous map calling task.
[0057] According to another aspect of the present application, a storage medium is provided, and the storage medium stores at least one executable instruction, and the executable instruction causes a processor to perform operations corresponding to the above multi-map calling method.
[0058] According to still another aspect of the present application, a computer device is provided, comprising a processor, a memory, a communication interface and a communication bus, the processor, the memory and the communication interface being capable of communicating with each other through the communication bus;
[0059] The memory is configured to store at least one executable instruction, which causes the processor to perform operations corresponding to the multi-map calling method.
[0060] By means of the above technical solution, the technical solution provided by the embodiments of the present application has at least the following advantages:
[0061] The present application provides a multi-map calling method and device, storage medium and computer device. According to the embodiments of the present application, in response to a map calling operation instruction, target information and a map calling task carried in the map calling operation instruction are obtained, the target information including at least one of user information and terminal device information; a target map type is determined according to the target information, and a first preset calling parameter corresponding to the map calling task of any preset map type is determined according to the map calling task; a second preset calling parameter corresponding to the first preset calling parameter is determined based on a target bridging component corresponding to the target map type, and target map data corresponding to the target map type is called according to the second preset calling parameter, the target bridging component including a first mapping relationship and a second mapping relationship for representing a corresponding logical relationship between the first preset calling parameter and the second preset calling parameter. Based on the analysis of multi-dimensional data, a preset map type is selected, and map data of different preset map types is called based on standardized and unified calling parameters, which realizes the selectability of the preset map type, greatly reduces the workload of the developers, and effectively improves the applicability of map data calling.
[0062] The above description is only a summary of the technical solution of the present application. In order to more clearly understand the technical means of the present application, the content of the specification can be implemented, and in order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific embodiments of the present application are described below. BRIEF DESCRIPTION OF DRAWINGS
[0063] 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 accompanying drawings are included to provide a description of the preferred embodiments and are not meant to limit the present application. Moreover, the same reference numerals in the attached drawings indicate the same or similar components. In the drawings:
[0064] Figure 1 A multi-map calling method flowchart provided by the embodiments of the present application is shown.
[0065] Figure 2 Another multi-map calling method provided by the embodiment of the present application is shown in a flow chart;
[0066] Figure 3 Another multi-map calling method provided by the embodiment of the present application is shown in a flow chart;
[0067] Figure 4 A block diagram of a multi-map calling device provided by the embodiment of the present application is shown;
[0068] Figure 5 A structural schematic diagram of a computer device provided by the embodiment of the present application is shown. DETAILED DESCRIPTION
[0069] Exemplary embodiments of the present disclosure will be described in greater detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure can be more thoroughly understood and the scope of the present disclosure can be accurately conveyed to those skilled in the art.
[0070] In view of the problem that in a current application software, a map service provider's map data can usually be called only according to a preset code, the pros and cons of a map function completely depend on the inherent properties of the called map data, resulting in that the map function has a large difference in different regions, and cannot meet the needs of users in different regions and the needs of users changing regions, and the applicability of the map is low, the embodiment of the present application provides a multi-map calling method, as shown in the figure, the method comprises the steps of: Figure 1
[0071] 101、In response to a map calling operation instruction, target information and a map calling task carried in the map calling operation instruction are acquired.
[0072] In the embodiment of the present application, the calling of a map will be involved in the use process of many application programs. For example, the logistics information of goods is acquired in a shopping application program, the recommended locations for getting on and off a vehicle are acquired in a vehicle-riding application program, etc. When a user's operation directly indicates the calling of a map or indirectly triggers a map operation instruction, in order to select an optimal preset map type from a plurality of types of maps pre-configured and acquire map data meeting the map display needs, target information and a map calling task need to be acquired. The target information at least includes one of user information and terminal device information, and the user information can be a user login account, a user mobile phone number, etc. The terminal device information can be a device ID, which is not limited in the embodiment of the present application. The map calling task is used to represent the specific display needs of a map, such as displaying a map near a target point, displaying a navigation route to a specified location, etc.
[0073] 102. Determine a target map type according to the target information, and determine a first preset calling parameter according to the map calling task.
[0074] In the embodiments of the present application, different preset map types have different performance in different geographical locations and different application scenarios, and different users have different habits of using maps. Therefore, the optimal preset map type is selected as the target map type from the preset map types according to the user information and / or terminal device information in the target information. For example, the target map type is determined according to the user's usage habits. For another example, the target map type is determined according to the usage frequency of each preset map type in the current geographical area. The preset map types do not necessarily include all mainstream preset map types, such as Tencent Map, Baidu Map, Gaode Map, and Google Map. The types of maps can be configured according to the actual application scenario requirements. For example, only Baidu Map and Gaode Map are set as preset map types, which are not limited in the embodiments of the present application. By defining the preset map types on demand, the size of the application program map data package file can be reduced, and the traffic consumption and storage space consumption can also be reduced. After determining the target map type, in order to obtain map data that meets the map calling task from the map database corresponding to the target map type, the input parameter for calling the map data, i.e., the first preset calling parameter, also needs to be determined according to the map calling task.
[0075] In addition, while calculating the recommended preset map type, a multi-dimensional user portrait can also be constructed according to the user information and the usage information associated with the user information, and the user portrait is used to recommend the pick-up and drop-off locations for the user and recommend the route selection according to the user's habits, for example, selecting a route with shorter distance or shorter time.
[0076] It should be noted that the first preset calling parameter corresponds to the map calling task of any preset map type. That is, the first preset calling parameter can be used to call map data from the map database of any one preset map type, and the calling parameter is a unified calling parameter for all preset map types corresponding to the same map calling task. The first preset calling parameter only has a corresponding relationship with the map calling task and is not limited by the preset map type. By setting a unified preset calling parameter for multiple preset map types, it is avoided to write corresponding codes for the calling of each preset map type, and when the preset map type is updated, the code of the calling parameter also does not need to be modified, which greatly reduces the workload of the developers.
[0077] 103. Determine 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 call target map data corresponding to the target map type according to the second preset calling parameter.
[0078] In the embodiments of the present application, different types of map data correspond to different data calling methods, such as different formats of input parameters and output parameters. After determining the target map type, in order to call the data of the target map type based on the common first preset calling parameter, the target bridge component corresponding to the same attribute of the target map type needs to be used to convert the calling parameter, so as to obtain the second preset calling parameter for calling the target map data. For example, the first preset calling parameter is converted into an input parameter that can be recognized by the map data calling method of the target map type, and then the output parameter returned according to the input parameter is converted into a common calling parameter suitable for any preset map type, that is, the second preset calling parameter. The map data of the target map type that meets the map calling task is further called according to the second preset calling parameter. The calling of the target map data can be implemented based on a data calling plug-in, which can be an RN (ReactNative) plug-in, and the embodiments of the present application do not make specific limitations.
[0079] In addition, the map data calling plug-in can determine the currently recommended actual preset map type through the map calling method corresponding to the map calling task, and make differential display according to the actual preset map type. For example, the function of saving historical addresses converts the cached address list according to the actual preset map type, and returns an address list that meets the current preset map type.
[0080] It should be noted that the target bridge component is a bridge component that corresponds to the target map type only, and the bridge component for the same preset map type can also include bridge components supporting two operating systems of IOS system and Android system. The bridge component is used to complete the format conversion between the original method name, input parameter, output parameter corresponding to different preset map types and the common first preset calling parameter and the second preset calling parameter. The target bridge component contains the corresponding logical relationship between the first preset calling parameter and the second preset calling parameter. Based on the logical relationship, the second preset calling parameter for calling the target map data can be determined according to the first preset calling parameter. By unifying the map data calling interface specification of different preset map types, the map data calling plug-in can call different types of map data without sensing, greatly reducing the workload of the developer, and at the same time, the preset map type can be selected according to the needs of different application scenarios, thereby effectively improving the applicability of the map.
[0081] In one embodiment of the present application, in order to further illustrate and limit, as shown in Figure 2 The step 103 of determining the second preset calling parameter corresponding to the first preset calling parameter by using the target bridge component corresponding to the preset map type includes:
[0082] 201、determining a target bridging component corresponding to the target map type from the bridging components corresponding to different preset map types according to the preset map type.
[0083] 202、determining a first original calling parameter corresponding to the first preset calling parameter based on the first mapping relationship, and obtaining a second original calling parameter from a map database according to the first original calling parameter.
[0084] 203、determining a second preset calling parameter corresponding to the second original calling parameter based on the second mapping relationship.
[0085] In the embodiment of the application, the target map type is determined based on target information, and can be any one of preset map types, and the calling method of each preset map type is different. Therefore, the target bridging component corresponding to the current target map type is called from the plurality of bridging components configured in advance based on the target map type. For example, the target map type is Baidu map, and the bridging component corresponding to the Baidu map is determined as the target bridging component. The target bridging component includes a first mapping relationship and a second mapping relationship corresponding to the target map type. After the target bridging component is determined, the first preset calling parameter is converted into the input parameter of the map database corresponding to the target map type, i.e. the first original calling parameter, based on the first mapping relationship. The first original calling parameter is input into the map database to obtain a return value, i.e. the second original calling parameter, and the second original calling parameter is format-converted based on the second mapping relationship to obtain the second preset calling parameter in the same format as the first preset calling parameter. Through the format conversion of the calling parameter by the target bridging component, different preset map types can call the map data matching the map calling task based on the unified preset calling parameter, avoiding the situation that only one preset map type can be used, realizing the multi-map calling based on different application scenarios, and improving the degree of freedom of the selection of the preset map type.
[0086] In one embodiment of the application, in order to further illustrate and limit, before the step 102 of determining the first calling parameter according to the map calling task, the method further comprises:
[0087] configuring the first preset calling parameter and the second preset calling parameter corresponding to different expected map calling tasks respectively;
[0088] constructing the first mapping relationship between the first original calling parameter of different preset map types and the first preset calling parameter, and constructing the second mapping relationship between the second original calling parameter of different preset map types and the second preset calling parameter for each expected map calling task;
[0089] For each preset map type, a bridging component is constructed according to the first mapping relationship and the second mapping relationship, and a bridging component corresponding to different preset map types is obtained.
[0090] In the embodiment of the application, the expected map calling task includes executing map command setting map animation, deleting map animation, setting map floating window, deleting map floating window, calculating vehicle head angle, drawing path, clearing path, querying nearby point, setting map center point, setting map range display, etc. Since the method name and the corresponding parameter of the method name for implementing the above tasks are different for different preset map types, a unified method name and corresponding calling parameter are configured for the same map calling task of different preset map types. The calling parameter includes input parameter and output parameter. The first preset calling parameter includes the method name and the input parameter corresponding to the method name. The second preset calling parameter includes the output parameter.
[0091] In order to convert the original calling method and the calling parameter corresponding to different preset map types into the first preset calling parameter and the second preset calling parameter that can be recognized by the unified calling interface, the first mapping relationship between the first preset calling parameter and the original input parameter of different preset map types and the second mapping relationship between the second preset calling parameter and the original output parameter of different preset map types are constructed, and the first mapping relationship and the second mapping relationship corresponding to different preset map types are stored in the bridging component corresponding to the preset map type. 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.
[0092] It should be noted that the method supported by each preset map type does not completely correspond to the expected map calling task. If the current preset map type does not support the expected map calling task, the first preset calling parameter corresponds to the parameter representing that the method is not supported. By constructing the first mapping relationship and the second mapping relationship for the original calling method and parameter corresponding to different preset map types, the mapping relationship for the conversion of the calling method and the calling parameter is provided, so that the map data of different preset map types can be accurately called.
[0093] In one embodiment of the application, in order to further illustrate and limit, as shown in Figure 3 The method according to claim 1, wherein the target map type is determined according to the target information, and the method comprises:
[0094] 301、If the user information and / or the terminal device information correspond to an associated map type, the associated map type is determined as the target map type.
[0095] 302、if there is no associated map type corresponding to the user information or the terminal device information, obtaining a global map calling frequency, user cache data, and location information.
[0096] 303、determining a target map type according to the global map calling frequency, the user cache data, and the location information.
[0097] In the embodiment of the present application, the associated map type is a preset map type having an associated relationship with the user information or the terminal device information. In some specific application scenarios, the user or the device needs to preferentially use a specified preset map type. For example, after a new preset map type is put into operation, employees of a specified company or users within a specified range are recommended to preferentially use the new preset map type, so as to realize the internal testing of the new product. In order to call the preset map type that needs to be preferentially used, the user information and / or the terminal device information needs to be associated with the preset map type that needs to be preferentially used in advance. In addition, the associated map type also includes the default preset map type and / or the associated restriction information set by the user through the terminal, for example, the range of the pickup location and the range of the drop-off location specified by the company of the user. In the confirmation process of the target map type, it is preferentially confirmed whether the current user information and / or the terminal device information is bound to the associated map type. If there is an associated map type, the associated map type is directly determined as the target map type. If there is no associated map type, it indicates that the preset map type corresponding to the current user or the terminal device is not fixed, and then the global map calling frequency, the user cache data, the location information, and other related data are obtained for the analysis and recommendation of the preset map type. The global map calling frequency is the data of the calling of each type of map in the terminal device in a preset area, for example, the map calling frequency, the good comment rate ranking, and the recommendation ranking. The preset area can be the global, a specified country, or a specified province, which is not limited in the embodiment of the present application. The user cache data is the cache data in the use process of the user map, which can reflect the use habit of the user. For example, the frequency of the user calling different types of maps.
[0098] It should be noted that the two models of the associated map type and the intelligent recommendation of the preset map type based on the global map calling frequency, the user cache data, and the location information make the selection of the preset map type meet the intelligent needs and the individual needs of different users, thereby effectively improving the flexibility and the applicable range of the multi-map calling process.
[0099] In one embodiment of the present application, in order to further illustrate and limit, the step 303 of determining the target map type according to the global map calling frequency, the user cache data, and the location information includes:
[0100] Determine a first call distribution corresponding to different preset map types according to the global call frequency of the map satisfying a preset time interval.
[0101] Determine a second call distribution according to matching the first call distribution with the position information.
[0102] Fit the second call distribution with cache data of at least one preset map type in the user cache data to determine a target map type; or,
[0103] Determine the preset map type corresponding to the maximum distribution value in the second call distribution as the target map type.
[0104] In the embodiment of the application, the first call distribution corresponding to different preset map types is used to represent the call frequency of different preset map types in different geographical areas, i.e., the call frequency of each preset map type in different geographical areas. The second distribution is used to represent the call frequency of different preset map types in the geographical area corresponding to the position information. In order to accurately recommend the preset map type, the call frequency of each preset map type matching the current geographical position is matched from different geographical areas, i.e., the second call distribution, in combination with the geographical position of the current terminal device. For example, the current geographical position is Tiananmen, and the second call distribution is the distribution of the call frequency of different preset map types in Beijing or in China. After obtaining the second call distribution, the preset map type with the maximum distribution value (the highest call frequency) in the second call distribution can be directly determined as the target map type. The usage frequency distribution of different preset map types of the user can also be obtained according to the cache data of the preset map type in the user cache data; and the second call distribution is fitted with the usage frequency distribution of the user to obtain the preset map type recommendation result fused with the user habit. The fitting method can be interpolation or curve fitting method, which is not limited in the embodiment of the application. Based on the above method, the preset map type recommendation can be made by fully fusing the map call frequency, the current position information, the user usage habit and other factors. The preset map type recommendation is more representative, and the individualization of the preset map type recommendation is increased, thereby effectively improving the user experience of the map user.
[0105] In one embodiment of the application, in order to further illustrate and limit, after determining the second preset call parameter corresponding to the first preset call parameter based on the target bridge component corresponding to the preset map type, the method further comprises:
[0106] Listen to abnormal information generated in the call and rendering process of the target map data, and generate an abnormal operation log according to the abnormal information.
[0107] If the abnormal information meets a preset map type switching condition, a target map type is re-determined according to the target information, and target map data is called according to the updated target map type.
[0108] In the embodiment of the present application, after determining the second preset calling parameter, in order to ensure the smooth progress of the target map data calling and rendering process, the process is monitored. And based on the preset map type switching condition, the abnormal information monitored is judged to determine whether the target map type needs to be re-determined to realize the switching of the preset map type. The preset map type switching condition can be that the map data cannot be opened or recognized, etc. It can also be customized according to specific application requirements, and the embodiment of the present application does not make specific limitations. The abnormal information monitored can also be recorded as an abnormal log, and the error information of the interface in the map data calling process is recorded as a log, so as to facilitate the subsequent troubleshooting and early warning. By monitoring the target map data calling process, the stability of the target map data calling process can be ensured, thereby improving the success rate of data calling.
[0109] In one embodiment of the present application, in order to further illustrate and limit, the method further comprises:
[0110] If the map calling task is a lower-level calling task based on a previous map calling task, the target map type corresponding to the previous map calling task is determined as an associated map type, and the associated map type has an associated relationship with the target information corresponding to the previous map calling task.
[0111] In the embodiment of the present application, the lower-level calling task is a subtask relative to the overall task of map display. For example, displaying a map animation is an overall task, and drawing a path is a subtask. When the currently executed map calling task is a lower-level task, it is not necessary to update the preset map type again, so the current target map type can be determined as an associated map type corresponding to the current user or terminal device, thereby avoiding reanalyzing the recommended data of the preset map type.
[0112] The application provides a multi-map calling method. The embodiment of the application acquires target information and a map calling task carried in a map calling operation instruction in response to the map calling operation instruction, wherein the target information comprises at least one of user information and terminal device information; determines a target map type according to the target information, and determines 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; determines 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 calls 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 relationship and a second mapping relationship for representing a corresponding logical relationship between the first preset calling parameter and the second preset calling parameter; and the preset map type is selected based on multi-dimensional data analysis, and map data of different preset map types is called based on standardized and unified calling parameters, so that the selectability of the preset map type is realized, the workload of developers is greatly reduced, and the applicability of map data calling is effectively improved.
[0113] Further, as an implementation of the method shown in the above Figure 1 The application provides a multi-map calling device, as shown in the above Figure 4 The device comprises:
[0114] The acquisition module 41 is configured to acquire target information and a map calling task carried in a map calling operation instruction in response to the map calling operation instruction, wherein the target information comprises at least one of user information and terminal device information.
[0115] The first determination module 42 is configured to determine a target map type according to the target information, and determine a first preset calling parameter according to the map calling task, wherein the first preset calling parameter corresponds to a map calling task of at least one preset map type.
[0116] The second determination module 43 is configured to determine 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 call 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 relationship and a second mapping relationship for representing a corresponding logical relationship between the first preset calling parameter and the second preset calling parameter.
[0117] Further, the second determination module 43 comprises:
[0118] The first determination unit is configured to determine 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.
[0119] The second determining unit is configured to determine a first original calling parameter corresponding to the first preset calling parameter based on the first mapping relationship, and acquire a second original calling parameter from a map database according to the first original calling parameter.
[0120] The third determining unit is configured to determine a second preset calling parameter corresponding to the second original calling parameter based on the second mapping relationship.
[0121] Further, the apparatus further comprises:
[0122] The configuration module is configured to configure corresponding first preset calling parameters and second preset calling parameters for different intended map calling tasks, respectively.
[0123] The construction module is configured to, for each intended map calling task, construct a first mapping relationship between first original calling parameters of different preset map types and the first preset calling parameters, and construct a second mapping relationship between second original calling parameters of different preset map types and the second preset calling parameters.
[0124] The construction module is further configured to, for each preset map type, construct a bridging component according to the first mapping relationship and the second mapping relationship, to obtain a bridging component corresponding to the different preset map types.
[0125] Further, the first determining module 42 comprises:
[0126] The fourth determining unit is configured to determine an associated map type as a target map type if the user information and / or the terminal device information correspond to the associated map type, the associated map type being a preset map type having an association relationship with the user information and / or the terminal device information.
[0127] The acquisition unit is configured to acquire a map global calling frequency, user cache data, and location information if there is no associated map type corresponding to the user information or the terminal device information.
[0128] The fifth determining unit is configured to determine a target map type according to the map global calling frequency, the user cache data, and the location information.
[0129] Further,
[0130] In a specific application scenario, the fifth determining unit is further configured to determine a first calling distribution corresponding to different preset map types according to the map global calling frequency satisfying a preset time interval, the first calling distribution being used to represent calling frequencies of different preset map types in a global geographic area.
[0131] determining a second call distribution according to the matching of the first call distribution and the location information, the second distribution being used to represent the call frequency of different preset map types in the geographical area corresponding to the location information;
[0132] further fitting the second call distribution with the cache data of at least one preset map type in the user cache data to determine a target map type; or,
[0133] determining the preset map type with the maximum distribution value in the second call distribution as the target map type.
[0134] Further, the apparatus further comprises:
[0135] a monitoring module, configured to monitor abnormal information in the process of calling and rendering the target map data, and generate an abnormal operation log according to the abnormal information;
[0136] an updating module, configured to, if the abnormal information satisfies a preset map type switching condition, re-determine a target map type according to the target information, and call target map data according to the updated target map type.
[0137] Further, the apparatus further comprises:
[0138] a third determining module, configured to, if the map calling task is a lower-level calling task based on a previous map calling task, determine the target map type corresponding to the previous map calling task as an associated map type, the associated map type having an association relationship with the target information corresponding to the previous map calling task.
[0139] The application provides a multi-map calling device, and the multi-map calling device acquires target information and a map calling task carried in a map calling operation instruction in response to the map calling operation instruction, wherein the target information comprises at least one of user information and terminal device information; determines a target map type according to the target information, and determines 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; determines 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 calls 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 relationship and a second mapping relationship used for representing a corresponding logical relationship between the first preset calling parameter and the second preset calling parameter; the preset map type is selected based on multi-dimensional data analysis, and map data of different preset map types is called based on standardized and unified calling parameters, so that the selectability of the preset map type is realized, the workload of a developer is greatly reduced, and the applicability of map data calling is effectively improved.
[0140] According to an embodiment of the application, a storage medium is provided, and the storage medium stores at least one executable instruction.
[0141] Figure 5 A structural schematic diagram of a computer device is shown, and the specific embodiments of the application do not limit the specific implementation of the computer device.
[0142] As shown in Figure 5 the computer device can include a processor 502, a communications interface 504, a memory 506, and a communications bus 508.
[0143] The processor 502, the communications interface 504, and the memory 506 can communicate with each other through the communications bus 508.
[0144] The communications interface 504 is configured to communicate with network elements such as clients or other servers.
[0145] The processor 502 is configured to execute the program 510, and specifically can execute related steps in the above multi-map calling method embodiments.
[0146] Specifically, the program 510 can include program code, and the program code includes computer operation instructions.
[0147] The processor 502 can be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to perform the embodiments of the present application. The computer device can include one or more processors of the same type or different types, such as one or more CPUs and one or more ASICs.
[0148] The memory 506 is configured to store a program 510. The memory 506 can include a high-speed RAM memory, and can further include a non-volatile memory, such as at least one disk memory.
[0149] The program 510 can be specifically configured to enable the processor 502 to perform the following operations:
[0150] In response to the map calling operation instruction, the target information and the map calling task carried in the map calling operation instruction are obtained, and the target information includes at least one of user information and terminal device information;
[0151] A target map type is determined according to the target information, and a first preset calling parameter is determined according to the map calling task, the first preset calling parameter corresponding to the map calling task of any preset map type;
[0152] A second preset calling parameter corresponding to the first preset calling parameter is determined based on a target bridging component corresponding to the target map type, and target map data corresponding to the target map type is called according to the second preset calling parameter, and the target bridging component includes a first mapping relationship and a second mapping relationship for representing a corresponding logical relationship between the first preset calling parameter and the second preset calling parameter.
[0153] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present application can be realized by general computing devices, which can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be realized by program codes executable by computing devices, so that they can be stored in storage devices and executed by computing devices, and in some cases, the steps shown or described can be executed in different order, or they can be manufactured into individual integrated circuit modules, or multiple modules or steps can be manufactured into a single integrated circuit module. Therefore, the present application is not limited to any specific combination of hardware and software.
[0154] The above merely provides the preferred embodiments of the present application, and is not used to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the principles and technical scope of the present application shall fall into the scope of the present application.
Claims
1. A multi-map calling method, characterized by, The method comprises the following steps: in response to a map calling operation instruction, obtaining target information and a map calling task carried in the map calling operation instruction, the target information comprising at least one of user information and terminal device information; determining a target map type according to the target information, and determining a first preset calling parameter according to the map calling task, the first preset calling parameter corresponding to the map calling task of any preset map type; 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, the target bridging component comprising a first mapping relationship and a second mapping relationship for representing a corresponding logical relationship between the first preset calling parameter and the second preset calling parameter; the step of determining a target map type according to the target information comprises: if the user information and / or the terminal device information corresponds to an associated map type, determining the associated map type as the target map type, the associated map type being a preset map type having an association relationship with the user information and / or the terminal device information; if there is no associated map type corresponding to the user information or the terminal device information, obtaining a map global calling frequency, user cache data and location information; determining a first calling distribution corresponding to different preset map types according to the map global calling frequency satisfying a preset time interval, the first calling distribution being used to represent the calling frequency of different preset map types in a global geographic area; matching the first calling distribution with the location information to determine a second calling distribution, the second calling distribution being used to represent the calling frequency of different preset map types in a geographic area corresponding to the location information; fitting the second calling distribution with cache data of at least one preset map type in the user cache data to determine the target map type; or determining the preset map type corresponding to the maximum distribution value in the second calling distribution as the target map type.
2. The method of claim 1, wherein, the step of 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 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 relationship, and obtaining a second original calling parameter from a map database according to the first original calling parameter; determining a second preset calling parameter corresponding to the second original calling parameter based on the second mapping relationship.
3. The method of claim 1, wherein, before the step of determining a first preset calling parameter according to the map calling task, the method further comprises: configuring corresponding first preset calling parameters and second preset calling parameters for different expected map calling tasks respectively; For each of the expected map call task, a first mapping relationship between the first original call parameters of different preset map types and the first preset call parameters is constructed, and a second mapping relationship between the second original call parameters of different preset map types and the second preset call parameters is constructed; For each preset map type, a bridging component is constructed according to the first mapping relationship and the second mapping relationship, to obtain a bridging component corresponding to different preset map types.
4. The method of claim 1, wherein, After determining the second preset call parameter corresponding to the first preset call parameter based on the target bridging component corresponding to the target map type, the method further comprises: Abnormal information generated in the calling and rendering process of the target map data is listened to, and an abnormal operation log is generated according to the abnormal information; If the abnormal information meets the preset map type switching condition, the target map type is re-determined according to the target information, and the target map data is called according to the updated target map type.
5. The method according to any one of claims 1 to 4, characterized in that, The method further comprises: If the map call task is a lower-level call task based on a previous map call task, the target map type corresponding to the previous map call task is determined as an associated map type, and the associated map type has an association relationship with the target information corresponding to the previous map call task.
6. A multi-map calling apparatus, comprising: Comprise: An acquisition module is configured to acquire target information and a map call task carried in a map call operation instruction in response to the map call operation instruction, wherein the target information comprises at least one of user information and terminal device information; A first determination module is configured to determine a target map type according to the target information, and determine a first preset call parameter according to the map call task, wherein the first preset call parameter corresponds to a map call task of at least one preset map type; A second determination module is configured to determine a second preset call parameter corresponding to the first preset call parameter based on a target bridging component corresponding to the target map type, and call target map data corresponding to the target map type according to the second preset call parameter, wherein the target bridging component comprises a first mapping relationship and a second mapping relationship for representing a logical relationship between the first preset call parameter and the second preset call parameter; The determination of the target map type according to the target information comprises: if the user information and / or the terminal device information corresponds to an associated map type, the associated map type is determined as the target map type, wherein the associated map type is a preset map type having an association relationship with the user information and / or the terminal device information; if there is no associated map type corresponding to the user information or the terminal device information, a map global call frequency, user cache data, and location information are acquired; A first call distribution corresponding to different preset map types is determined according to the map global call frequency meeting a preset time interval, wherein the first call distribution is used to represent the call frequency of different preset map types in a global geographic area. According to the matching of the first call distribution and the location information, a second call distribution is determined, the second call distribution being used to represent the call frequency of different preset map types in a corresponding geographical area of the location information; The second call distribution is fitted with the cache data of at least one preset map type in the user cache data to determine a target map type; or A preset map type with the maximum distribution value in the second call distribution is determined as the target map type. 7.A storage medium, the storage medium storing at least one executable instruction, the executable instruction causing a processor to perform operations corresponding to the multi-map calling method according to any one of claims 1-5.
8. A computer device comprising: A processor, a memory, a communication interface, and a communication bus, the processor, the memory, and the communication interface completing communication with each other through the communication bus; The memory is used to store at least one executable instruction, the executable instruction causing the processor to perform operations corresponding to the multi-map calling method according to any one of claims 1-5.
Citation Information
Patent Citations
Switching method and device for different maps
CN107818010A
Map scheduling method and device
CN108960568A