CN117666993A - Method, equipment, server and system for displaying map based on quick application card - Google Patents

Method, equipment, server and system for displaying map based on quick application card Download PDF

Info

Publication number
CN117666993A
CN117666993A CN202311375373.2A CN202311375373A CN117666993A CN 117666993 A CN117666993 A CN 117666993A CN 202311375373 A CN202311375373 A CN 202311375373A CN 117666993 A CN117666993 A CN 117666993A
Authority
CN
China
Prior art keywords
map
card
quick application
application card
electronic device
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
CN202311375373.2A
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.)
Nanjing Glory Software Technology Co ltd
Original Assignee
Nanjing Glory Software Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Glory Software Technology Co ltd filed Critical Nanjing Glory Software Technology Co ltd
Priority to CN202311375373.2A priority Critical patent/CN117666993A/en
Publication of CN117666993A publication Critical patent/CN117666993A/en
Pending legal-status Critical Current

Links

Abstract

The application provides a method, equipment, a server and a system for displaying a map based on a quick application card, and relates to the technical field of image display. In the case of user-triggered add-on of a quick application card, the electronic device may present a gadget in the form of a card on an interface such as a desktop or a minus-one screen, supporting the display of map layers and functional layers for presenting recommended services. The service types of the quick application cards are different, and the refresh frequencies of the map layers are different. The electronic equipment periodically acquires map frame data from the server side and refreshes map layers in the quick application card according to the map refreshing frequency. According to the method, dynamic or static maps are displayed in a card mode and recommended services are presented based on JavaScript, a user can quickly acquire position information by viewing the maps in the card, and by referring to the recommended services, the user decides to enter corresponding page viewing details, and the card display method provides more convenient services for the user.

Description

Method, equipment, server and system for displaying map based on quick application card
Technical Field
The present disclosure relates to the field of image display technologies, and in particular, to a method for displaying a map based on a fast application card, an electronic device, a server, and a communication system.
Background
In order to provide convenience for users to review information, the electronic device uses a card recommendation function to present information which the users may need to view on a desktop or a negative screen of the electronic device in the form of a card. In this way, the user does not have to subconsciously alert himself to the need to enter certain software applications to view the required information in a specific situation. Illustratively, as shown in (a) and (b) in fig. 1, the electronic device presents the flight information in the form of a card, and the user does not need to review a short message or enter a related application subscribing to an air ticket to view the flight information, and can directly view the flight information on a desktop or on a negative screen.
However, at present, the electronic device recommends a displayed card on a desktop or a negative screen, only static text information can be displayed, and the display map is not supported. That is, the map related functions cannot be displayed on the card at present, and more valuable services cannot be provided, which affect the user experience.
Disclosure of Invention
The method, the electronic device, the server and the communication system for displaying the map based on the quick application card can display the dynamic or static map in a card mode and display recommended service based on JavaScript, and provide more convenient service for users.
In a first aspect, the present application provides a method for displaying a map based on a quick application card, applied to an electronic device, the method comprising: receiving a first operation of a user, wherein the first operation is used for triggering the addition of a first quick application card to a target interface; responding to the first operation, and verifying the first quick application card according to a card white list; sending a first request message to a server under the condition that verification is passed, wherein the first request message is used for requesting the server to verify and configure a first quick application card; based on JavaScript thread, loading card configuration data corresponding to a first quick application card sent by a server, wherein the card configuration data comprises the service type of the first quick application card, data of a map layer and data of a function layer; rendering a first quick application card according to the data of the map layer and the data of the function layer, and displaying the first quick application card on a target interface, wherein the map layer and the function layer for displaying recommended services are displayed in the first quick application card; and acquiring map frame data of the first quick application card from the server every first time length, refreshing a map layer of the first quick application card according to the map frame data, wherein the first time length is a map refreshing time length determined according to the service type of the first quick application card.
According to the method for displaying the map based on the quick application card, under the condition that the user triggers the quick application card to be added, the electronic equipment can present the small components in the form of the card on the interface such as a desktop or a negative screen, and the map layer and the function layer for displaying the recommendation service are supported to be displayed. The service types of the quick application cards are different, and the refresh frequencies of the map layers are different. The electronic equipment periodically acquires map frame data from the server side and refreshes map layers in the quick application card according to the map refreshing frequency. According to the method, dynamic or static maps are displayed in a card mode and recommended services are presented based on JavaScript, a user can quickly acquire position information by viewing the maps in the card, and by referring to the recommended services, the user decides to enter corresponding page viewing details, and the card display method provides more convenient services for the user.
The card configuration data is an RPK packet, and the RPK packet includes a name and an icon of the first quick application card and an address of the RPK packet. The card white list contains card package names and card authority information.
It should be noted that, the "displaying a static map" and the "displaying a dynamic map" are relatively speaking, the static map means that the refresh interval period is longer, and the dynamic map means that the refresh interval period is shorter. For example, the refresh interval time of the static map is longer than 1 minute, and the refresh interval time of the dynamic map is in the range of [5 seconds, 1 minute ].
For example, for application scenes such as driving, surrounding services, etc., a dynamic map is displayed in the form of a card, i.e., a dynamic refresh display; for application scenarios such as attractions, takeaway, theatres, life services, etc., static maps are displayed in card form, i.e. static refresh displays.
In some embodiments, the electronic device may control the static/dynamic map to switch usage according to the card usage scenario.
In some embodiments, the electronic device may display the map card by default using a static map, saving energy.
In some embodiments, the electronic device may limit frequent use of dynamic maps through whitelists, which may prevent card abuse, avoiding causing performance problems.
Wherein the first quick application card is also referred to as a map card. The target interface is also referred to as a host interface. The target interface may be an interface of a fast service center, or an interface of a negative one-screen, or a desktop interface, or a folded-screen small-screen interface, or a lock-screen interface, for example. According to the method and the device for displaying the map card, after the card is added to the desktop or the negative one-screen, a user can quickly acquire the position information by viewing the map card on the desktop or the negative one-screen interface and the like, and by referring to the recommended service, the user can decide to enter the corresponding page to view details, so that more convenient service is provided for the user.
Through the scheme, the electronic equipment can intelligently display the map card widgets through the quick application engine, so that a user can conveniently view a map and various services. Users can use the application without downloading and installing the application, i.e. point-of-use, and enjoy the performance experience of the native application.
In one possible implementation, the different traffic types (also referred to as service types) may include: a travel service class, a flight service class, a schedule service class, a travel service class, and a local living service class. For exemplary purposes, the traffic types may also be divided according to specific requirements in actual implementation.
Illustratively, the service types may be:
(1) A downstream service: scenic spots, tickets, toiletries, food;
(2) Flight service: flight orders, boarding passes, food and drinks;
(3) Calendar service: meeting schedule, taxi taking, online meeting and telephone;
(4) Travel service: hotel orders, taxi taking and baggage loss reporting;
(5) Local life service: movie tickets, ticket taking, parking lots, drinks.
In an embodiment of the application, the display form of the map card includes, but is not limited to: (1) displaying the card on an interface of a fast service center; (2) displaying the card on the negative screen; (3) displaying the card on the desktop; (4) folding a small screen card; and (5) displaying the card on the lock screen interface.
According to the embodiment of the application, the card can be dynamically generated based on the quick application, and the corresponding quick application card can be generated only by developing the quick application and integrating the data extraction interface. The map display method based on the express application card has the following beneficial effects: the information display is more visual, the service recommendation is more comprehensive, and the relevance is more obvious.
In some possible implementations of the first aspect, the obtaining map frame data of the first fast application card from the server includes: determining a first map component according to the service type of the first express application card; and calling a map application program interface API through the first map component, and acquiring map frame data of the first quick application card from the server.
In some possible implementations of the first aspect, the first map component is a dynamic map component or a static map component, and the map refresh frequency corresponding to the dynamic map component is greater than the map refresh frequency corresponding to the static map component.
In some possible implementations of the first aspect, the obtaining, by the first map component, map frame data of the first quick application card from the server includes: in the case that the first map component is a dynamic map component, map frame data of the first quick application card is obtained from the server through the dynamic map component, and the map frame data is a map in the form of a texture view.
It can be understood that the dynamic map component adopts the map in the form of texture view, the refresh rate is relatively high, and the requirement that a user knows the real-time position change through the map displayed by the card is met.
In some possible implementations of the first aspect, the obtaining, by the first map component, map frame data of the first quick application card from the server includes: in the case that the first map component is a static map component, map frame data of the first quick application card is obtained from the server through the static map component, and the map frame data is a map screenshot in a bitmap form.
It can be understood that the static map component adopts the map screenshot in the bitmap form, the refreshing speed is lower, the basic requirement of a user for checking the target position through the map displayed by the card is met, and the power consumption of the device can be reduced.
In the embodiment of the application, the electronic equipment can display the static/dynamic map according to different scenes, so that intelligent display of the map card is realized. For a static Map, map (Map) screenshot in a bitmap form can be adopted, so that the occupied memory CPU resources are small, the Map can be used for Map display, and the Map can be refreshed once every preset time (for example, 1 minute). For the dynamic map, a map view (MapView) or a texture view (GLtexture view) can be adopted, so that more memory CPU resources are occupied, the dynamic map can be used for position display, and the dynamic map can be refreshed in real time, for example, every 5 seconds.
In some possible implementations of the first aspect, in a case where the target interface displays the first quick application card, the method further includes: identifying a user usage scenario in response to a first operation of a user on a first quick application card; if the user usage scene is a first preset scene, determining a second duration corresponding to the first preset scene according to a preset mapping relation of a map refreshing strategy, wherein the preset mapping relation of the map refreshing strategy comprises a mapping relation between the user usage scene and the map refreshing duration; and refreshing and displaying the map layer of the first quick application card every second time.
In some possible implementations of the first aspect, in a case where the target interface displays the first quick application card, the method further includes: when the electronic equipment enters a preset geofence, identifying a user use scene; if the user using scene is a second preset scene, determining a third duration corresponding to the second preset scene according to a preset mapping relation of the map refreshing strategy; and refreshing and displaying the map layer of the first quick application card every third time.
The first preset scene is a dynamic operation scene such as driving, and the second duration is 2 seconds; the second preset scene is a static display scene such as scenic spots, takeaway, cinema, life service and the like, and the third duration is 2 minutes.
In some embodiments, a predetermined class of order and a location-based service may be combined, a scene in which the user is located is determined, a preset associated service corresponding to the scene in which the user is located is obtained, and the associated service is recommended to the user according to the behavior habit of the user. The predetermined order information may be from a short message and/or a mail received by the electronic device. The electronic equipment can analyze the received short messages and/or mails to obtain the order information of the preset class. For example, the reservation type order information may be scenic spot ticket reservation information, air ticket reservation information, train ticket reservation information, meeting reservation information, hotel reservation information, movie ticket purchase information. The electronic equipment can recommend the associated service by displaying a map card, and the map card can comprise a real-time position map corresponding to a scene where the user is and options for presetting the associated service.
The map card provided by the embodiment of the invention is based on JavaScript implementation, supports displaying the map in a card mode and presenting the recommended service corresponding to the user scene, displays the map in different states for different application scenes, and provides more convenient service for the user.
In some possible implementations of the first aspect, the functional layer includes a recommended services control; the method further comprises the steps of: receiving a second operation of the recommended service control by the user; responding to the second operation, and displaying prompt information corresponding to the recommended service control on a map layer in the first quick application card; the prompt information comprises navigation route prompt information and/or position information of a target place.
In some possible implementations of the first aspect, the electronic device includes a quick application engine and a JavaScript interface. The loading of the card configuration data corresponding to the first fast application card sent by the server based on the JavaScript thread comprises the following steps: the method comprises the steps that a quick application engine obtains card configuration data corresponding to a first quick application card from a server; the quick application engine calls a JavaScript interface and sends card configuration data to the first map component; the first map component loads card configuration data based on the JavaScript thread.
According to the embodiment of the application, the JavaScript is adopted to develop the quick application, the map card is dynamically generated based on the quick application, and the map card is supported to be refreshed and displayed in a dynamic or static mode aiming at different user scenes, so that the power consumption can be reduced, and the use scene of the map card is enlarged.
In a second aspect, the present application provides a method for displaying a map based on a quick application card, applied to a server, the method comprising: calling a map card interface to generate an RPK package of a first quick application card; receiving a first request message sent by electronic equipment, wherein the first request message is used for requesting verification and configuration of a first express application card; responding to the first request message, verifying and configuring the first quick application card, and then sending an RPK packet to the electronic equipment, wherein the RPK packet comprises the service type of the first quick application card, the data of the map layer and the data of the function layer; the method comprises the steps that data of a map layer and data of a function layer are used for rendering a first quick application card, so that the map layer and the function layer for displaying recommended services are displayed in the first quick application card, and service types are used for determining map refreshing time of the first quick application card; receiving a second request message sent by the electronic equipment every first time length, wherein the second request message is used for requesting to acquire map frame data; and in response to the second request message, sending map frame data of the first quick application card to the electronic device, wherein the map frame data is used for refreshing a map layer of the first quick application card.
According to the method for displaying the map based on the quick application card, the server can call the map card interface to generate the RPK package of the first quick application card, and in response to the card adding request sent by the electronic equipment, the server sends card configuration data of the first quick application card to the electronic equipment, so that the electronic equipment can present a small component in a card form on an interface such as a desktop or a negative screen, and the display of a map layer and the display of a function layer of a recommendation service are supported. The service types of the quick application cards are different, and the refresh frequencies of the map layers are different. And responding to the map frame data request sent by the electronic equipment, and sending the map frame data to the electronic equipment by the server so that the map layer in the first quick application card can be refreshed according to the map refreshing frequency. According to the method, dynamic or static maps are displayed in a card mode and recommended services are presented based on JavaScript, a user can quickly acquire position information by viewing the maps in the card, and by referring to the recommended services, the user decides to enter corresponding page viewing details, and the card display method provides more convenient services for the user.
In some possible implementations of the second aspect, the invoking the map card interface generates an RPK package of the first fast application card, including: acquiring a map card interface (the map card interface comprises a card service type, a positioning interface, an operation button and a functional interface) from a developer service platform; according to the card service type and the positioning interface, determining that the first quick application card adopts a dynamic map component or a static map component; determining a map refreshing strategy corresponding to the first quick application card according to the operation buttons and the function interfaces; and packaging the determined result to obtain an RPK package of the first quick application card.
Through the scheme, the developer service platform provides the map card interface for the server, and sends the map card data to the server through the map card interface.
In the embodiment of the application, a developer service platform registers application map cards to a server side, the server side generates a card white list according to the card package name, the card white list is synchronized to an electronic device side at regular intervals, and the electronic device side controls calling of a map API through the card white list.
In some embodiments, the developer service platform may apply for the card type from the server, requesting the server to determine the card type based on the usage scenario.
In some embodiments, the developer service platform may apply for card rights to the server, request the server to determine card rights based on the usage scenario, and add the card rights information to the card whitelist.
In some embodiments, the server may store a card whitelist. Illustratively, the card whitelist contains card package names and card authority information.
In other embodiments, the server may send the card whitelist to the electronic device side.
In some possible implementations of the second aspect, the RPK packet further includes a name of the first quick application card, an icon, and an address of the RPK packet.
In some possible implementations of the second aspect, the sending map frame data of the first fast application card to the electronic device includes: and sending map frame data of the first quick application card to the electronic equipment under the condition that the first quick application card is determined to adopt the dynamic map component, wherein the map frame data is a map in a texture view form.
In some possible implementations of the second aspect, the sending map frame data of the first fast application card to the electronic device includes: and under the condition that the first quick application card is determined to adopt the static map component, map frame data of the first quick application card, which is a map screenshot in a bitmap form, is sent to the electronic equipment.
In a third aspect, the present application provides an electronic device comprising a processor, a memory and a computer program stored on the memory, the processor being configured to execute the computer program to cause the electronic device to implement the method according to the first aspect and any implementation thereof.
In a fourth aspect, the present application provides a server comprising a processor, a memory and a computer program stored on the memory, the processor being configured to execute the computer program to cause the electronic device to implement the method according to the second aspect and any implementation thereof.
In a fifth aspect, the present application provides a communication system comprising the electronic device according to the third aspect and the server according to the fourth aspect.
In addition, the application also provides a method for displaying the map based on the express application card, which comprises the following steps: creating a first appointment (data of the first appointment including the appointment content and location information of the appointment place) in response to a user operation on the electronic device; determining a first service type corresponding to the first appointment according to the appointment content; acquiring card interface data corresponding to a first service type (the card interface data comprises map refreshing frequency and information of a first service function); acquiring a first map corresponding to a preset location;
generating a first quick application card of a first service type according to the data of the first appointment, the first map and the map interface data, and establishing an association relation between the first quick application card and the map refreshing frequency; displaying a first quick application card through a display screen of the electronic equipment, wherein the first quick application card comprises item contents, a first map and a control of a first service function;
when the electronic equipment meets the preset condition, refreshing the map displayed in the first quick application card into a second map according to the map refreshing frequency, wherein the second map is a map corresponding to the position of the electronic equipment; the quick application cards of different service types are preset with different map refreshing frequencies, and the quick application cards of different service types are refreshed according to the different map refreshing frequencies.
According to the method for displaying the map based on the quick application card, provided by the embodiment of the application card, the quick application card of the recommended service type (namely, the first service type corresponding to the first scheduled item) can be generated according to the scheduled order (namely, the first scheduled item) and the position information of the scheduled place, and the map of the scheduled place and the recommended service (namely, the first service function) related to the scheduled order can be displayed through the quick application card, so that personalized recommendation is realized for users to view and select; and the map displayed by the quick application card can be controlled to be refreshed according to the corresponding map refreshing frequency, and the quick application cards with different service types refresh the map according to different map refreshing frequencies. Therefore, the user can quickly acquire the position information by viewing the map card on the interface such as a desktop or a negative screen and the like and can refer to the recommended service to decide to enter the corresponding page to view details, so that the application can provide more convenient service for the user through the form of displaying the dynamic or static map by the card.
In the scheme of the application, the electronic equipment can generate the fast application card and display the fast application card, or the server can generate the fast application card, then the server sends the generated fast application card to the electronic equipment, and then the electronic equipment displays the fast application card. It should be noted that, in the case of generating a quick application card by the server, the developer may call a specific data interface to provide data to the server; then, the server generates a map card according to the data by using the developer service platform, automatically stores the map card into the database, and then obtains a proper map card from the database according to the request of the electronic equipment and sends the map card to the electronic equipment.
In one possible implementation, the quick application cards of the same service type correspond to a plurality of preset user scenes, and different preset user scenes correspond to different map refreshing frequencies. In the case that the first quick application card is displayed on the display screen of the electronic device, the method further includes: identifying a current user scene; if the current user scene is one of a plurality of preset user scenes, determining a map refreshing frequency corresponding to the current user scene; and refreshing the quick application cards of the same service type according to different map refreshing frequencies under different preset user scenes.
In one possible implementation manner, the plurality of preset user scenes includes a first user scene and a second user scene, where the first user scene corresponds to a first map refresh frequency, and the second user scene corresponds to a second map refresh frequency. Under the condition, when the user scene is identified as a first user scene, refreshing the map displayed in the first quick application card into a second map according to a first map refreshing frequency; and when the user scene is identified as the second user scene, refreshing the map displayed in the first quick application card into a second map according to the second map refreshing frequency.
For example, a calendar service class map card displayed on a desktop by the electronic device, and a quick application card of the service class may be refreshed at a first map refresh frequency. For another example, the electronic device may display a local life service class map card on the desktop, and the service class express application card may be refreshed at the second map refresh frequency. Wherein the first map refresh frequency is higher than the second map refresh frequency. For example, the first map refresh frequency is: the refresh interval is greater than 1 minute. For example, the second map refresh frequency is: the refresh interval is in the range of [5 seconds, 1 minute ].
In one possible implementation manner, after the displaying the first quick application card through the display screen of the electronic device, the method further includes: acquiring positioning information of electronic equipment; and judging whether the distance between the position indicated by the positioning information of the electronic equipment and the preset place is within a preset distance range.
When the electronic device meets the preset condition, refreshing the map displayed in the first express application card into a second map according to the map refreshing frequency, including: and when the distance between the position indicated by the positioning information of the electronic equipment and the preset place is within the preset distance range, refreshing the map displayed in the first quick application card into a second map according to the map refreshing frequency.
Through the scheme, when the positioning information of the electronic equipment meets the preset condition, the electronic equipment can be triggered to refresh the map at the accurate time, so that more convenient map display service is provided for the user, and the user experience is improved.
In one possible implementation, the data of the first appointment further includes information of a scheduled time. The method further comprises the following steps: acquiring information of system time of the electronic equipment; and judging whether the time difference between the preset time and the system time of the electronic equipment is smaller than the preset duration.
When the electronic device meets the preset condition, refreshing the map displayed in the first express application card into a second map according to the map refreshing frequency, including: and when the distance between the position indicated by the positioning information of the electronic equipment and the preset place is within the preset distance range and the time difference between the preset time and the system time of the electronic equipment is smaller than the preset duration, refreshing the map displayed in the first quick application card into a second map according to the map refreshing frequency.
Through the scheme, when the positioning information and the time information of the electronic equipment meet the preset conditions, the electronic equipment can be triggered to refresh the map at the accurate opportunity, more convenient map display service is provided for a user, and user experience is improved.
In one possible implementation manner, the method further includes: map navigation information is displayed on the second map. Wherein the map navigation information includes at least one route from a location where the electronic device is located to a predetermined location, a recommended route, available vehicles, and estimated time taken by either vehicle.
In one possible implementation manner, the method further includes: and refreshing the map navigation information displayed on the second map according to the map refreshing frequency.
According to the scheme, the dynamic/static map can be provided through the quick application card, real-time map navigation information can be provided, a user can quickly acquire the position information by viewing the map card on a desktop or a negative screen and other interfaces, and the user can refer to the recommended service to decide to enter the corresponding page to view details, so that the user can provide more convenient service for the user through the form of displaying the dynamic or static map through the card.
In one possible implementation manner, after the first quick application card is acquired, the method further includes: acquiring a preset white list, wherein the preset white list comprises a fast application card which is applied to be registered; and when the first quick application card is judged to be the card in the preset white list, calling a preset map interface to acquire a second map.
In one possible implementation, before displaying the first quick application card through the display screen of the electronic device, the method further includes: and when the first quick application card is judged to be the card in the preset white list, acquiring the application display permission corresponding to the first quick application card. The method for displaying the first quick application card through the display screen of the electronic device comprises the following steps: and displaying the display content in the first express application card according to the application display permission corresponding to the first express application card.
In a sixth aspect, the present application provides an apparatus for displaying a map based on a quick application card, the apparatus comprising means for performing the method of the first aspect described above. The apparatus may correspond to performing the method described in the first aspect, and the relevant descriptions of the units in the apparatus are referred to the description of the first aspect, which is omitted herein for brevity.
The method described in the first aspect may be implemented by hardware, or may be implemented by executing corresponding software by hardware. The hardware or software includes one or more modules or units corresponding to the functions described above. Such as a processing module or unit, a display module or unit, etc.
In a seventh aspect, the present application provides a computer-readable storage medium having stored thereon a computer program (which may also be referred to as instructions or code) for implementing the method in the first aspect. For example, the computer program, when executed by a computer, causes the computer to perform the method of the first aspect.
In an eighth aspect, the present application provides a chip comprising a processor. The processor is configured to read and execute a computer program stored in the memory to perform the method of the first aspect and any possible implementation thereof. Optionally, the chip further comprises a memory, and the memory is connected with the processor through a circuit or a wire.
In a ninth aspect, the present application provides a system-on-a-chip comprising a processor. The processor is configured to read and execute a computer program stored in the memory to perform the method of the first aspect and any possible implementation thereof. Optionally, the chip system further comprises a memory, and the memory is connected with the processor through a circuit or a wire.
In a tenth aspect, the present application provides a computer program product comprising a computer program (which may also be referred to as instructions or code) which, when executed by an electronic device, causes the electronic device to carry out the method of the first aspect.
It will be appreciated that the advantages of the second to tenth aspects may be found in the relevant description of the first aspect and are not described here again.
Drawings
Fig. 1 is an interface schematic diagram of an electronic device displaying a fast application card according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a quick application card gadget provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 4 is a schematic software architecture of an electronic device according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating a method for displaying a map based on a quick application card according to an embodiment of the present disclosure;
FIG. 6 is a second flowchart of a method for displaying a map based on a quick application card according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a functional module of an electronic device side in a method for displaying a map based on a quick application card according to an embodiment of the present application;
fig. 8 is a flowchart illustrating a method for displaying a map based on a quick application card according to an embodiment of the present application;
FIG. 9 is a schematic diagram of interaction timing sequence of a method for displaying a map based on a quick application card according to an embodiment of the present application;
fig. 10 is a second schematic interaction timing diagram of a method for displaying a map based on a quick application card according to an embodiment of the present application;
Fig. 11 is a schematic diagram of an interaction timing sequence of a method for displaying a map based on a quick application card according to an embodiment of the present application;
fig. 12 is a flowchart illustrating a method for displaying a map based on a quick application card according to an embodiment of the present application;
fig. 13 is a flowchart of a method for displaying a map based on a quick application card according to an embodiment of the present application;
fig. 14 is a schematic diagram of a service added by yoyoyo suggestion in the method for displaying a map based on a quick application card according to the embodiment of the present application;
fig. 15A to 15E are schematic diagrams of a quick application card in the method for displaying a map based on the quick application card according to the embodiment of the present application;
16A-16B are schematic views of interfaces for viewing a quick application card in the method for displaying a map based on the quick application card according to the embodiments of the present application;
fig. 17A to 17E are schematic interface diagrams of adding a quick application card in the method for displaying a map based on the quick application card according to the embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The terms "first" and "second" and the like in the description and in the claims are used for distinguishing between different objects and not for describing a particular sequential order of objects. In the description of the embodiments of the present application, unless otherwise specified, the meaning of "a plurality of" means two or more, for example, a plurality of processing units means two or more processing units and the like; the plurality of elements means two or more elements and the like.
In order to provide convenience for users to review information, the electronic device uses a card recommendation function to present information which the users may need to view on a desktop or a negative screen of the electronic device in the form of a card. In this way, the user does not have to subconsciously alert himself to the need to enter certain software applications to view the required information in a specific situation. Illustratively, as shown in (a) and (b) in fig. 1, the electronic device presents the flight information in the form of a card, and the user does not need to review a short message or enter a related application subscribing to an air ticket to view the flight information, and can directly view the flight information on a desktop or on a negative screen.
For different operating systems, there are different processing strategies in terms of card generation and display.
For example, forFor an electronic device of an operating system, a card may be generated based on a JavaScript programming language and displayed on a screen, such as flight information, train information, meeting information, or schedule information may be presented through the card.
The JavaScript is abbreviated as JS, and is a lightweight, interpreted or just-in-time compiling programming language with function priority. JavaScript is based on a dynamic scripting language of prototype programming, multiple paradigms, and supports object-oriented, imperative, declarative, functional programming paradigms. The JavaScript can be widely used for devices such as a server, a PC, a notebook computer, a tablet personal computer, a smart phone and the like, is often used for adding various dynamic functions for a webpage, and provides a smoother and more attractive browsing effect for a user.
However, the process is not limited to the above-described process,the electronic device of the operating system is based on a JavaScript realized card (JS card for short), and does not support displaying the map. That is, the map card cannot be provided in the smart service at present. This is because the JS card lacks a map component, which results in a failure to show map-related functions on the card, failure to provide more valuable services, and impact user experience.
For another example, for The electronic equipment of the operating system supports displaying the map in a card mode, and the electronic equipment can support setting a card gadget on a desktop for displaying the map. However, is->The map card provided by the operating system is not implemented based on JavaScript, but is implemented based on a native Application (APP). This results in->The map card provided by the operating system has the following defects:
(1) The function implementation of the map card depends on the map card APP, is limited in use scene, and if the map card APP is unloaded, the card function is invalid.
(2) The map cards are dynamic map cards, and the energy consumption is high because the map is continuously updated and displayed.
From the foregoing, it can be seen that there are certain limitations in displaying map cards for different operating systems. In order to reduce power consumption and expand the use scene of map cards, improvements in development and display of map cards are needed.
Based on the above, the embodiment of the application provides a method and electronic equipment for displaying a map based on a quick application card, which improve user experience by improving the bottom layer of a mobile phone system. According to the embodiment of the application, the JavaScript is adopted to develop the quick application, the map card is dynamically generated based on the quick application, and the map card is supported to be refreshed and displayed in a dynamic or static mode aiming at different user scenes, so that the power consumption can be reduced, and the use scene of the map card is enlarged.
For a better understanding of the embodiments of the present application, the following is a brief description of the embodiments of the present application:
according to the method for displaying the map based on the quick application card, under the condition that the user triggers the quick application card to be added, the electronic equipment can present the small components in the card form on the interface such as a desktop or a negative screen and the like, and support to display the map layer and the function layer for displaying the recommendation service. The service types of the quick application cards are different, and the refresh frequencies of the map layers are different. The electronic equipment periodically acquires map frame data from the server side and refreshes map layers in the quick application card according to the map refreshing frequency. According to the method, dynamic or static maps are displayed in a card mode and recommended services are presented based on JavaScript, a user can quickly acquire position information by viewing the maps in the card, and by referring to the recommended services, the user decides to enter corresponding page viewing details, and the card display method provides more convenient services for the user.
According to the scheme, the quick application card of the recommended service type can be generated according to the preset order and the position information of the preset place, and the map of the preset place and the recommended service related to the preset order can be displayed through the quick application card, so that personalized recommendation is realized, and the user can view and select the quick application card; and the map displayed by the quick application card can be controlled to be refreshed according to the corresponding map refreshing frequency, and the quick application cards with different service types refresh the map according to different map refreshing frequencies.
As shown in (a) and (b) of fig. 2, embodiments of the present application may provide gadgets in the form of cards on interfaces such as a desktop and a negative screen of a device. These map cards are based on JavaScript implementations, support to display the map in card form and present recommended services corresponding to the user's scene, and display the map in different states for different application scenes. For example, for application scenes such as driving, surrounding services, etc., a dynamic map is displayed in the form of a card, i.e., a dynamic refresh display; for application scenarios such as attractions, takeaway, theatres, life services, etc., static maps are displayed in card form, i.e. static refresh displays. In this way, the user can quickly learn the position information by viewing the map card on interfaces such as a desktop and a negative screen, and can decide to enter corresponding page viewing details by referring to the recommendation service.
The electronic device to which the method for displaying a map based on the quick application card according to the embodiment of the present application is applied will be described with reference to the accompanying drawings.
The electronic device in the embodiments of the present application may be a mobile phone, a tablet computer, a super mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant, PDA), a wearable device (e.g., a smart watch, a smart bracelet), or a device with a voice communication function, and the specific form of the electronic device is not particularly limited in the embodiments of the present application.
Fig. 3 shows a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device shown in fig. 3 may be a cellular phone, for example.
As shown in fig. 3, the mobile phone may include: processor 310, external memory interface 320, internal memory 321, universal serial bus (universal serial bus, USB) interface 330, charge management module 340, power management module 341, battery 342, antenna 1, antenna 2, mobile communication module 350, wireless communication module 360, audio module 370, speaker 370A, receiver (i.e., earpiece) 370B, microphone 370C, headset interface 370D, sensor module 380, keys 390, motor 391, indicator 392, camera 393, display 394, and subscriber identity module (subscriber identification module, SIM) card interface 395, among others.
The sensor module may include, for example, a pressure sensor, a gyroscope sensor, a barometric sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like. In the embodiment of the application, the electronic device can detect whether the ear of the user is close to the receiver through the sensors such as the proximity light sensor (namely, the light sensor), the distance sensor and the like. For example, the electronic device may determine whether the current user's ear is in close proximity to the earpiece by detecting whether there is an occlusion in front of the front panel (or screen) of the phone and the distance between the occlusion and the screen via a distance sensor.
It should be understood that the structure illustrated in this embodiment is not limited to a specific configuration of the mobile phone. In other embodiments, the handset may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 310 may include one or more processing units, such as: the processor 310 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
Wherein the processor 310 is configured to: creating a first appointment (data of the first appointment including the appointment content and location information of the appointment place) in response to a user operation on the electronic device; determining a first service type corresponding to the first appointment according to the appointment content; acquiring card interface data corresponding to a first service type (the card interface data comprises map refreshing frequency and information of a first service function); acquiring a first map corresponding to a preset location; generating a first quick application card of a first service type according to the data of the first appointment, the first map and the map interface data, and establishing an association relation between the first quick application card and the map refreshing frequency; displaying a first quick application card through a display screen of the electronic equipment, wherein the first quick application card comprises item contents, a first map and a control of a first service function; when the electronic equipment meets the preset condition, refreshing the map displayed in the first quick application card into a second map according to the map refreshing frequency, wherein the second map is a map corresponding to the position of the electronic equipment; the quick application cards of different service types are preset with different map refreshing frequencies, and the quick application cards of different service types are refreshed according to the different map refreshing frequencies.
The controller can be a neural center and a command center of the mobile phone. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 310 for storing instructions and data. In some embodiments, the memory in the processor 310 is a cache memory. The memory may hold instructions or data that the processor 310 has just used or recycled. If the processor 310 needs to reuse the instruction or data, it may be called directly from the memory. Repeated accesses are avoided and the latency of the processor 310 is reduced, thereby improving the efficiency of the system.
In some embodiments, processor 310 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
It should be understood that the connection relationship between the modules illustrated in this embodiment is only illustrative, and is not limited to the structure of the mobile phone. In other embodiments, the mobile phone may also use different interfacing manners in the foregoing embodiments, or a combination of multiple interfacing manners.
The wireless communication function of the mobile phone can be realized by the antenna 1, the antenna 2, the mobile communication module 350, the wireless communication module 360, a modem processor, a baseband processor and the like.
The cell phone may implement display functions through the GPU, the display screen 394, the application processor, and the like. The GPU is a microprocessor for image processing, connected to the display screen 394 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 310 may include one or more GPUs that execute program instructions to generate or change display information. The display screen 394 is used for displaying images, videos, and the like.
In this embodiment of the present application, the entrance of the map card may be set on different interfaces of the display screen, specifically may be preset by the system, or may be set by user definition. For example, the map card may be displayed on a desktop of the display screen, the map card may be displayed on a negative one of the display screen, the map card may be displayed in a quick service center of the display screen, or the map card may be displayed in a lock screen interface. For a folding screen electronic device with a small screen, a map card may be displayed on the small screen.
The external memory interface 320 may be used to connect to an external memory card, such as a Micro SD card, to extend the memory capabilities of the handset. The internal memory 321 may be used to store computer executable program code comprising instructions. The processor 310 executes various functional applications of the handset and data processing by executing instructions stored in the internal memory 321. For example, in an embodiment of the present application, the processor 310 may execute instructions stored in the internal memory 321, and the internal memory 321 may include a stored program area and a stored data area.
The above is a specific description of the embodiment of the present application taking the electronic device 100 as an example. It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. The electronic device 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
In addition, an operating system is running on the hardware, and the operating system of the operating system layer may be any one or more computer operating systems for implementing service processing through a process (process), for example, a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a windows operating system. Running applications may be installed on the operating system.
The operating system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In this embodiment, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated.
Fig. 4 is a software configuration block diagram of the electronic device 100 of the embodiment of the present application.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, respectively, an application layer (applications), an application framework layer (application framework), an Zhuoyun rows (Android run) and system libraries, and a kernel layer (kernel).
The application layer may include a series of application packages, among other things. For example, the application layer may include applications (applications may be simply referred to as applications) such as desktop APP, negative one-screen APP, and fast service center APP, which is not limited in any way by the embodiments of the present application.
In the embodiment of the application program layer, the application program layer can further comprise a context awareness module, a business logic processing module, a business presentation module and the like. The context awareness module, the service logic processing module and the service presentation module may be independent APPs, or may be integrated in different APPs, or may be integrated in the same APP, which is not limited in this application.
Wherein, the context awareness module, which is resident or operates in a low power consumption form, has the ability to perceive external facts or environments. The context aware module may detect related events and acquire the status of events, such as detecting bluetooth connections, network connections, monitoring user messages, custom timers, etc., from other application or application framework layers or system or kernel layers of the application layer through an application program interface (application programming interface, API). In the embodiment of the application, the context awareness module mainly aims at monitoring whether a predetermined order exists. The context awareness module may also be used to obtain real-time geographic location information of the electronic device. The context awareness module can inform the business logic processing module of the monitored predetermined class order and the real-time geographic position information.
The business logic processing module (such as a computing engine) has business logic processing capability and is used for carrying out data processing or logic judgment according to the preset class order and the real-time geographic position information monitored by the context awareness module and a preset logic algorithm, determining the scene of the user and determining the preset associated service corresponding to the scene of the user. And then determining which services are recommended to the user according to the preset associated services corresponding to the scene where the user is located and the user behavior data. The specific judgment process will be described in detail below.
And the business presentation module (such as YOYO suggestion) is used for displaying a map card on a screen of the electronic equipment according to the indication of the business logic processing module, wherein the map card can comprise a real-time position map corresponding to a scene where a user is located and options for presetting associated services. The recommendation service realized by the map card has more visual information display, more comprehensive service recommendation and more obvious relevance.
The application framework layer provides APIs and programming frameworks for application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in fig. 4, the application framework layer may include a window manager, a notification manager, a view system, a resource manager, etc., which is not limited in any way by the embodiments of the present application.
The notification manager allows the application to display notification information in a status bar that can be used to convey notification type messages. The window manager is used for managing window programs, for example, for managing window programs provided by YOYO advice. The resource manager provides various resources for the application program, such as localization strings, icons, pictures, maps, etc. The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, in embodiments of the present application, a view system may be used to display map cards in a desktop.
Android run time includes a core library and virtual machines. Android run is responsible for scheduling and management of the Android system. The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android. The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like. The system library may include a plurality of functional modules. For example: surface manager (surface manager), media library (media library), three-dimensional graphics processing library (e.g., openGL ES), two-dimensional graphics engine (e.g., SGL), etc. The surface manager is used to manage the display subsystem and provides a fusion of the two-dimensional and three-dimensional layers for the plurality of applications.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
For ease of illustration, the hardware layers that interact with the software structures described above are also embodied in the figures. For example, the hardware layer may include a display screen.
It should be noted that the embodiments of the present application are described in the followingThe system is described by way of example, but its basic principle is equally applicable to the +.>Or->And the like operating the electronic device of the system.
The execution main body of the method for displaying the map based on the quick application card provided by the embodiment of the application can be the electronic equipment, or can be a functional module and/or a functional entity capable of realizing the method for displaying the map based on the quick application card in the electronic equipment, and the scheme of the application can be realized in a hardware and/or software mode, and can be specifically determined according to actual use requirements. The method for displaying the map based on the quick application card according to the embodiment of the application is described below by taking an electronic device as an example and combining the accompanying drawings.
Embodiments of the present application will be illustrated by the following exemplary embodiments in conjunction with the accompanying drawings. The methods in the following embodiments may be implemented in an electronic device having the above-described hardware structure and software architecture. The hardware structure diagram of the electronic device may be as shown in fig. 3, and the software structure block diagram of the electronic device may be as shown in fig. 4, but the embodiment of the application is not limited thereto. For convenience of explanation, in the embodiments of the present application, the electronic device is taken as an example of a mobile phone as shown in fig. 3.
The method for displaying the map based on the quick application card provided by the embodiment of the application is described below with reference to specific embodiments.
Firstly, it should be noted that in the scheme of the present application, a server may generate a fast application card, then the server sends the generated fast application card to the electronic device, and then the electronic device displays the fast application card; of course, the quick application card may also be generated and displayed by the electronic device. Two implementations provided by embodiments of the present application are generally described below:
implementation one
In one implementation, the server generates the quick application card, the server then sends the generated quick application card to the electronic device, and the electronic device then displays the quick application card.
Specifically, in response to a user operation on the electronic device, a first appointment is created, the data of which includes the content of the appointment and location information of the appointment location, and may also include information of a scheduled time. The electronic device judges that the first scheduled item meets the scheduled order condition, and then the electronic device sends the data of the first scheduled item to the server.
The server may determine a first service type corresponding to the first appointment based on the appointment content. The server may then obtain card interface data corresponding to the first service type, the card interface data including the map refresh frequency and information of the first service function. And, the server may acquire a first map corresponding to the predetermined location.
Then, the server may generate a first quick application card of the first service type according to the data of the first appointment, the first map and the map interface data, and establish a first association relationship between the first quick application card and the map refreshing frequency. Then, the server sends the first quick application card and the first association relationship to the electronic device.
The electronic device then displays a first quick application card through the display screen, the first quick application card including the item content, the first map, and the controls for the first service function. And when the electronic equipment meets the preset condition, refreshing the map displayed in the first quick application card into a second map according to the map refreshing frequency, wherein the second map is a map corresponding to the position of the electronic equipment.
Implementation II
In a second implementation, the fast application card is generated and displayed by the electronic device.
Specifically, in response to a user operation on the electronic device, a first appointment is created, the data of which includes the content of the appointment and location information of the appointment location, and may also include information of a scheduled time. The electronic device may determine a first service type corresponding to the first appointment based on the appointment content. The electronic device may then obtain card interface data corresponding to the first service type, the card interface data including the map refresh frequency and information of the first service function. And, the electronic device may acquire a first map corresponding to the predetermined location.
Then, the electronic device may generate a first quick application card of the first service type according to the data of the first appointment, the first map and the map interface data, and establish an association relationship between the first quick application card and the map refreshing frequency. The electronic device then displays a first quick application card through the display screen, the first quick application card including the item content, the first map, and the controls for the first service function.
And when the electronic equipment meets the preset condition, refreshing the map displayed in the first quick application card into a second map according to the map refreshing frequency, wherein the second map is a map corresponding to the position of the electronic equipment.
In the two implementations, the quick application cards of the same service type may correspond to a plurality of preset user scenes, and different preset user scenes correspond to different map refreshing frequencies. Under the condition that the first quick application card is displayed through the display screen of the electronic equipment, the electronic equipment can identify the current user scene; if the current user scene is one of a plurality of preset user scenes, the electronic equipment determines the map refreshing frequency corresponding to the current user scene; the quick application cards of the same service type are refreshed according to different map refreshing frequencies under different preset user scenes.
For example, a calendar service class map card displayed on a desktop by the electronic device, and a quick application card of the service class may be refreshed at a first map refresh frequency. The electronic equipment displays the local life service map card on the desktop, and the service type quick application card can be refreshed according to the second map refreshing frequency.
Wherein the first map refresh frequency is higher than the second map refresh frequency. For example, the first map refresh frequency is: the refresh interval is greater than 1 minute. For example, the second map refresh frequency is: the refresh interval is in the range of [5 seconds, 1 minute ].
It should be noted that the electronic device may determine whether the preset condition is satisfied in any of the following manners.
In the first mode, when the distance between the position indicated by the positioning information of the electronic device and the preset place is within the preset distance range, the electronic device judges that the preset condition is met.
In the second mode, when the distance between the position indicated by the positioning information of the electronic device and the preset place is within the preset distance range and the time difference between the preset time and the system time of the electronic device is smaller than the preset duration, the electronic device judges that the preset condition is met.
For ease of explanation, the following is exemplified by the scheme of the above-described implementation one (i.e., the quick application card is generated by the server, then the generated quick application card is transmitted to the electronic device by the server, and then the quick application card is displayed by the electronic device).
The improvement points of the scheme mainly show two aspects of map card generation and display. First, an implementation of generating a card and displaying the card in general will be described (first technical solution). Fig. 5 shows a card development flow diagram.
S101, developing a card through JS language.
S102, the card is put on a developer service platform.
S103, sending the card to the electronic equipment.
S104, the electronic equipment displays the card.
With continued reference to fig. 5, the implementation manner of generating a card and displaying the card in the present application (the second technical solution) will be described.
S201, the server calls a JS-based data interface to acquire data.
S202, the server dynamically generates map cards according to the acquired data.
S203, the server sends the map card to the electronic device.
S204, the electronic equipment intelligently displays the map card.
The improvement of the map card generation and display in the scheme of the application is described with reference to the first technical scheme and the second technical scheme. According to the scheme, a developer calls a specific data interface to provide data for a server; then, the server generates a map card from the data using the developer service platform and automatically stores the map card to the database. The improvement on the aspect of map card display is embodied in a verification strategy, an intelligent display strategy and a refreshing management and control strategy. The specific strategy will be described in detail below.
Fig. 6 shows a schematic diagram of a system architecture for generating and displaying map cards.
As shown in fig. 6, the system architecture provided in the present application includes a developer service platform, a server, and an electronic device. The developer service platform is a unified ecological entrance oriented to the developer and provides business development service for the developer. The server comprises a data processing module, a card generating module and a database.
On the developer service platform side, the developer creates a map card interface based on the JS programming language.
Illustratively, the map card interface created by the present application includes the following four interfaces:
interface 1: setType (): setting a type;
interface 2: latitude (): defining a longitude;
interface 3: longitude (): defining a latitude;
interface 4: getOptrList (): and operating the button and the action.
On the server side, the data processing module may call a map card interface to obtain data for generating a map card. The data processing module filters, identifies and processes the acquired data, and then stores the processed data in the database.
On the server side, the card generation module acquires processed data from the database, analyzes the data, and determines the type of the map card, which is simply referred to as classification. The types of map cards are divided into dynamic map components and static map components in this application. That is, analysis is performed according to data for generating a map card, whether to employ a dynamic map component or a static map component is determined, and whether to employ a dynamic refresh mode or a static refresh mode is determined. In one embodiment, dynamic map components generally correspond to dynamic refresh modes, and static map components generally correspond to static refresh modes.
It should be noted that, here, "dynamic" and "static" are relatively speaking, and the refresh interval time corresponding to "dynamic" is smaller than the refresh interval time corresponding to "static".
For example, for a static map component, the refresh interval time may be set to be greater than 1 minute. For a dynamic map component, the refresh interval time may be set to be within the range of [5 seconds, 1 minute ].
It will be appreciated that the refresh rate corresponding to "dynamic" is greater than the refresh rate corresponding to "static".
For example, for dynamic application scenarios such as taxi taking, surrounding services, etc., a dynamic map component is displayed, and the display is dynamically refreshed; for static application scenarios such as attractions, takeouts, theatres, life services, etc., a static map component is displayed and the display is statically refreshed.
On the server side, after analyzing the map card data, the card generating module packages the analyzed map card data to obtain a quick application file, and the suffix name of the quick application file is RPK, so that the quick application file also becomes an RPK file or an RPK package. The card generation module then sends the RPK package to the electronic device.
It should be noted that the RPK file is an execution file of the fast application. The interface drawing of the quick application uses JS language to write codes, the engineering generated file is an RPK file, and the map card is operated and realized by taking the RPK file as a carrier.
It can be appreciated that in the embodiment of the present application, the map card is a quick application card.
The RPK file contains the following fast application metadata:
(a) Application name: a Name;
(b) Application icon: icon;
(c) Storage address: rpk URL (uniform resource locator ).
On the electronic equipment side, the electronic equipment receives the RPK packet sent by the server, and then the electronic equipment operates the RPK packet to display and refresh the map card. Fig. 6 shows a schematic diagram of a flight class map card. It should be noted that, in actual implementation, the map cards may be a travel map card, a schedule map card, a travel map card, a local life map card, and other possible map cards, which are not limited in this embodiment of the present application.
The system architecture for generating and displaying map cards is described above with reference to fig. 6, focusing on the process of describing how the server side generates map cards. The following describes interaction between the server and the electronic device with reference to fig. 7, so as to realize a schematic diagram of intelligent display of the map card, focusing on a process of how the electronic device side intelligently displays the map card.
Developer service platform side
The developer service platform provides a map card interface for the server, and sends map card data to the server through the map card interface.
In the embodiment of the application, a developer service platform registers application map cards to a server side, the server side generates a card white list according to the card package name, the card white list is synchronized to an electronic device side at regular intervals, and the electronic device side controls calling of a map API through the card white list.
In some embodiments, the developer service platform may apply for the card type from the server, requesting the server to determine the card type based on the usage scenario.
In some embodiments, the developer service platform may apply for card rights to the server, request the server to determine card rights based on the usage scenario, and add the card rights information to the card whitelist.
Server side
The server obtains map card data by calling a map card interface from a developer service platform, then carries out processing such as filtering and identifying on the map card data, and then stores the processed map card data into a database.
Then, a card generation module at the server side acquires processed map card data from the database, analyzes the processed map card data, determines card types, card authorities and card refreshing strategies, and then generates a quick application RPK package according to data analysis results.
The server may store the fast application RPK package in a database. The quick application RPK package comprises quick application metadata for displaying map cards on a screen of the electronic equipment, and card types, card authorities and card refreshing strategies.
The type of the card to be generated is a dynamic map card or a static map card.
By way of example, a static map card may be predefined for scenic spots, take-away, theatre, life services, etc. presentation type scenes.
For example, the dynamic map card may be used by predefined operation scenes such as driving, surrounding, etc.
It should be noted that various scenes and map card types corresponding to different scenes are exemplified herein, and it is to be understood that, in actual implementation, the method may also be applicable to other various scenes, and the map card types corresponding to the scenes may be predefined, which is not limited in the embodiments of the present application.
In some embodiments, the card whitelist may be stored in a server.
In other embodiments, the server may send the card whitelist to the electronic device side.
Illustratively, the card whitelist contains card package names and card authority information.
Electronic equipment side
Fig. 7 shows a functional module schematic of the electronic device side express application card. As shown in fig. 7, the functional modules include a UI, a scene portal, and a fast application engine.
The two forms of the UI comprise an independent application form of a full-screen mode and a card form of an embedded mode.
Taking the form of an embedded card as an example, as shown in fig. 11, the UI includes a page and a map card, and the map card can be embedded in the page. The pages may include system pages such as desktop, negative one-screen, etc., and pages of applications.
The scene portal may include a fast application center, a negative one-screen, a lock screen, a desktop, an application marketplace, a browser, a two-dimensional code, a global search, and so on. These scene entries all support adding map cards for easy user search and use.
The quick application engine can comprise a verification module, a map card intelligent display module, a refreshing management and control module, a JS engine module, a strategy synchronization module and an RPK management module. The JS engine module is used for RPK package analysis, document object model (Document Object Model) establishment, node conversion, rendering and the like. The DOM model is used to optimize page rendering performance. The policy synchronization module may store a card whitelist and configuration policies. The RPK management module is used for storing the RPK packet file.
Adding map cards in various scene entrances of the electronic equipment is achieved through the quick application engine, and the map cards are displayed in the UI interface.
Fig. 8 shows an interactive block diagram among an electronic device, a server, and a developer service platform provided in an embodiment of the present application. As shown in fig. 8, the electronic device side includes a verification module, a map card intelligent display module, a refresh management and control module, a policy synchronization module, and a policy learning module.
And under the condition that the electronic equipment starts the map card function, the strategy synchronization module can acquire a user reservation order and monitor the scene information of the user.
When the electronic equipment judges that the user scene information meets the predetermined class order, the electronic equipment calls a JS API and obtains a quick application RPK package from a server.
And then a verification module of the electronic equipment verifies the quick application RPK package and determines the display authority and the card type of the map card.
And then, the verification module sends the information such as the display authority of the map card, the card type and the like to the map card intelligent display module. And the map card intelligent display module calls a map API to acquire map data.
Then, the map card intelligent display module determines a map card display policy 1 according to the display authority and card type (dynamic map/static map) of the map card, map data, and user scene information. The map card display policy 1 may include elements such as map card display content and/or display style.
Then, the map card intelligent display module displays the map card according to the determined map card display strategy 1.
And then, the refreshing management and control module can determine a corresponding refreshing management and control strategy according to the card type, the user scene information, the card white list and the like, and refresh the display content of the map card by adopting the refreshing management and control strategy.
In the embodiment of the application, the electronic equipment can display the static/dynamic map according to different scenes, so that intelligent display of the map card is realized.
For a static Map, map (Map) screenshot in a bitmap form can be adopted, so that the occupied memory CPU resources are small, the Map can be used for Map display, and the Map can be refreshed once every preset time (for example, 1 minute).
For the dynamic map, a map view (MapView) or a texture view (GLtexture view) can be adopted, so that more memory CPU resources are occupied, the dynamic map can be used for position display, and the dynamic map can be refreshed in real time, for example, every 5 seconds.
In some embodiments, the electronic device may control the static/dynamic map to switch usage according to the card usage scenario.
In some embodiments, the electronic device may display the map card by default using a static map, saving energy.
In some embodiments, the electronic device may limit frequent use of dynamic maps through whitelists, which may prevent card abuse, avoiding causing performance problems.
In some embodiments, presentation categories such as attractions, takeaway, theatres, life services, etc., use static map cards.
In some embodiments, operations such as driving, surrounding, etc., use dynamic map cards.
In the embodiment of the application, the policy synchronization module can acquire the card white list and send the card white list to the verification module, the map card intelligent display module and the refreshing management and control module, so that the modules can respectively finish card authority verification, card display, card refreshing and the like based on the card white list.
In the embodiment of the application, the policy learning module may acquire a card white list and acquire usage data of the map card by the user. The policy learning module can learn the use data of the map card by the user, determine the use habit of the user, and further determine the map card display policy 2 according to the use habit of the user.
The policy learning module may provide the map card display policy to the policy synchronization module and then the policy synchronization module provides the map card display policy 2 to the map card smart display module.
Then, the map card intelligent display module replaces the map card display policy 1 with the map card display policy 2, and displays the map card using the map card display policy 2. The map card display policy 2 may include elements such as map card display contents and/or display styles different from those of the map card display policy 1.
The flow diagrams of the interactive implementation of the server and the electronic device for generating and displaying map cards are described above through fig. 6 to 8. Possible implementations of the server and electronic device interaction implementation for generating and displaying map cards are described below in connection with fig. 9-11.
First embodiment
Referring to fig. 9, the timing diagram includes steps S301-S324 described below.
S301, the developer service platform sends a card package name of an application to be registered to the server.
The developer service platform sends a card registration application to the server, wherein the card registration application comprises a card package name.
S302, the server adds the card package name of the registration application to a card white list and stores the card package name in a database.
The card white list comprises card package names and card authorities.
In particular to the scheme, the card whitelist comprises card package names and card authorities of map cards.
The map card is a widget for displaying a map and service options in a card form for the electronic equipment.
Wherein the card rights are used to define the display content, display position and/or display size of the card, etc.
S303, the server sends the card white list to the electronic equipment.
The policy synchronization module at the electronic equipment side receives a card white list and is used for performing authority verification in a map card display scene.
The above describes the process of card registration and creation of a card whitelist.
The following describes that the server calls the map card interface to acquire map card data, and generates a quick application RPK file as an operation file for realizing the map card.
S304, the developer service platform creates a map card interface.
Illustratively, the map card interface created by the present application may include the following four interfaces:
interface 1: setType (): setting a type;
interface 2: latitude (): defining a longitude;
interface 3: longitude (): defining a latitude;
interface 4: getOptrList (): and operating the button and the action.
S305, the server calls a map card interface to acquire map card data from a developer service platform.
S306, the server filters, identifies and the like the map card data.
S307, the server stores the processed map card data in a database.
S308, the server determines the card type according to the processed map card data: dynamic map cards or static map cards.
S309, the server acquires the quick application metadata according to the processed map card data, and packages the quick application metadata and the card type into an RPK file.
The RPK file is an execution file of the fast application. The interface drawing of the quick application uses JS language to write codes, the engineering generated file is an RPK file, and the map card is operated and realized by taking the RPK file as a carrier.
Illustratively, the RPK file contains the following fast application metadata:
(a) Application name: a Name;
(b) Application icon: icon;
(c) Storage address: rpk URL.
It should be noted that, in the embodiment of the present application, the RPK file further includes a card type: dynamic map cards or static map cards.
Wherein, dynamic map card supports dynamic update display, and static map card supports static update display.
For example, for dynamic application scenarios such as driving, surrounding services, etc., preset to display dynamic maps, dynamic refresh display is supported, for example, every 5 seconds.
Illustratively, for static application scenarios such as attractions, takeaway, theatres, life services, etc., preset to display static maps, static refresh displays are supported, for example, refreshed every 1 minute.
In the embodiment of the application, the server side comprises a data processing module, a database and a card generation module. The data processing module can call the map card interface, acquire map card data from the developer service platform, and filter, identify and the like the map card data by the data processing module. The processed map card data is then stored in a database. The card generation module acquires the processed map card data from the database, and determines the card type according to the processed map card data: dynamic map cards or static map cards. And then, the card generation module acquires the quick application metadata according to the processed map card data, packages the quick application metadata and the card type into a quick application RPK file, wherein the RPK file is an application installation package and is used as an operation file for realizing the map card. The RPK file may be stored in a database on the server side.
The above description describes that the server side invokes the map card interface to obtain map card data, and generates the quick application RPK file as the running file for realizing the map card.
The process of the electronic device side obtaining the quick application RPK file from the server side and displaying the map card according to the quick application RPK file is described below.
The electronic equipment comprises a verification module, a map card intelligent display module, a refreshing management and control module, a strategy synchronization module and a strategy learning module.
S310, a strategy learning module learns the behavior habit of the user to obtain the behavior data of the user.
By way of example, the user behavior data may include browsing/clicking/posting activities involving the user in a website and mobile App.
For example, the user behavior data may be a time period, an access duration, and an access frequency for a user to access a web page.
The electronic device may determine user behavior habits based on the user behavior data, thereby providing or recommending targeted services to the user. The electronic equipment can recommend services for the user by learning the behavior habit of the user, so that the user can be saved from searching by the user, and the user experience is improved.
S311, the policy learning module sends the user behavior data to the policy synchronization module.
S312, the strategy synchronization module acquires user behavior data and acquires predetermined order information and user scene information.
In the embodiment of the application, in response to the operation of a user on the electronic device, a first appointment is created, and data of the first appointment comprises the content of the appointment and position information of a preset place and can further comprise information of preset time.
In other words, the first appointment may include various types of scheduled or consumed events that the appointment type order may trigger for the user via the electronic device. Wherein the first appointment may also be referred to as appointment type order information. By way of example, the predetermined class order information may indicate different classes of orders for travel, flights, schedules, trips, and local living. The electronic equipment can recommend services to the user based on the predetermined order information, and user experience is improved.
It should be noted that several possible forms of the predetermined class order are exemplified herein, and it is understood that, in actual implementation, embodiments of the present application may also include other possible predetermined class orders, and apply to other possible user scenarios. For ease of understanding and description, the following is exemplary of an outbound, an airline flight, a schedule, an outbound, and a local life.
In the embodiment of the application, the user scene information comprises geographic position information and time information of the electronic equipment.
Wherein the electronic device may obtain geographical location information of the electronic device through a location based service (location based services, LBS). For example, the current location of the positioning device is obtained by using various positioning technologies, so that information resources and basic services are provided for the positioning device through the mobile internet. The electronic device can determine the spatial position of the electronic device by using a positioning technology, and the electronic device can acquire the position-related resources and information through the mobile internet. The LBS service integrates various information technologies such as mobile communication, internet, space positioning, position information, big data and the like, and utilizes a mobile internet service platform to update and interact data, so that the electronic equipment can acquire corresponding services through space positioning.
S313, the strategy synchronization module determines that the current user scene information meets the predetermined order information.
S314, the strategy synchronization module sends a card white list to the verification module and informs the verification module of acquiring the RPK file of the map card.
S315, the checking module calls JS API, and obtains RPK file of map card from server side.
S316, the checking module checks the RPK file according to the card white list, and determines the card type and the card authority.
S317, the verification module sends the card type and the card authority to the map card intelligent display module, the refreshing management and control module and the strategy synchronization module.
And S318, the strategy synchronization module sends the user scene information and the user behavior data to the map card intelligent display module and the refreshing management and control module.
S319, the map card intelligent display module calls a map API to acquire map data.
The execution sequence of S318 and S319 is not limited in this application.
S320, the map card intelligent display module determines display content of the map card according to the card type, the user scene information, the card authority, the map data and the user behavior data.
And S321, displaying the map card intelligent display module according to the determined display content of the map card.
In some embodiments, the electronic device supports dynamic/static real-time switching of map cards as the user scene changes.
In some embodiments, presentation categories such as attractions, takeaway, theatres, life services, etc., use static map cards.
In some embodiments, operations such as driving, surrounding, etc., use dynamic map cards.
In some embodiments, the electronic device may display the map card by default using a static map, saving energy.
In some embodiments, the electronic device may limit frequent use of dynamic maps through whitelists, which may prevent card abuse, avoiding causing performance problems.
For example, the electronic device may display the map card on the negative one-screen, may display the map card on the interface of the fast service center, may display the map card on the desktop, may display the map card on the lock screen interface, or may display the map card on other interfaces of the electronic device, for example, may display the map card on a small screen of the electronic device through a folding screen. The display interface of the map card is not limited in the embodiment of the application.
S322, the refreshing management and control module determines a refreshing strategy of the static/dynamic map card according to the card type, the user scene information and the user behavior data.
In some embodiments, when the electronic device determines that a static map card is employed, the electronic device employs a refresh management policy corresponding to the static map card. When the electronic equipment determines to adopt the dynamic map card, the electronic equipment adopts a refreshing management and control strategy corresponding to the dynamic map card. For example, the refresh control policy corresponding to the static map card is that the refresh interval time is greater than 1 minute. For example, the refresh control strategy corresponding to the dynamic map card is that the refresh interval time is in the range of 5 seconds to 1 minute.
And S323, the refreshing management and control module sends the card refreshing strategy to the map card intelligent display module.
S324, the map card intelligent display module refreshes the map card according to the card refreshing strategy.
For example, for a static map card, the map information in the map card is refreshed every 1 minute.
For example, for a dynamic map card, map information in the map card is refreshed every 5 seconds.
Second embodiment
Fig. 10 is a timing diagram illustrating interaction between an electronic device and a server to display a map based on a fast application card according to a second embodiment of the present application. Referring to fig. 10, a timing diagram of the interaction of the electronic device with the server includes steps S401 to S419 described below. The electronic device comprises a Card (Card), a quick application engine (quick engine), a JS API, a Map component (Map Widget) and a refreshing management and control module. The server side includes a cloud API.
It should be noted that the map component may be a container that may receive map data and control rendering and refreshing of the UI according to the received map data. Wherein the map component can obtain map data from a map provider side.
It should be further noted that the solution adopted in the present application is different from the solution of integrating the map SDK (software development kit, development kit) in the related art. Two engines are integrated and utilized in the scheme of integrating the map SDK: rendering engine and 2D engine, use the Surfaceview assembly. This solution of integrating map SDKs needs to involve two engines, which have certain limitations in practical implementation, and relatively low card rendering and refresh speeds.
In the scheme adopted by the application, the map card comprises a plurality of layers. For example, the plurality of functional layers may include a map layer and a functional layer, wherein the map layer includes map data and the functional layer includes various functional icons or controls, such as attraction food icons or navigation routes. And the functional layer may include one or more sub-layers. The functional layer may be presented above the map layer according to a preset transparency.
Wherein, different business types correspond to different map cards, and refresh strategies corresponding to different business types are different.
S401 to S413 in fig. 10 illustrate a process of card initialization in the case where the addition of a card is triggered.
S401, the card receives the operation of adding the card to the desktop by the user.
For example, a card is a type of card displayed in an interface of a quick application center that supports displaying a map.
It should be noted that, in the exemplary embodiment, the card is added to the desktop, and in actual implementation, the card may be added to other host interfaces.
S402, responding to the user operation, the card sends a verification request to the JS API, wherein the verification request comprises the card package name.
S403, the JS API responds to the verification request, and card verification is carried out according to the card white list.
The card white list comprises card package names and card authorities.
It should be noted that, the card verification process according to the card white list includes: when the card white list includes the card package name requesting verification, the JS API confirms that the card passes verification. The JS API can determine the card authority corresponding to the card package name based on the card whitelist and the card package name.
The card permission is used for displaying and refreshing the card according to the card permission after the electronic device adds the card to the desktop.
S404, the JS API sends a message to the fast application engine requesting configuration of the card.
S405, the fast application engine at the electronic equipment side responds to the message for requesting to configure the card and sends the message for requesting to verify and configure the card to the cloud API at the server side.
S406, the cloud API at the server side responds to the message for requesting verification and configuration of the card to finish card verification and configuration.
S407, the cloud API at the server side returns card configuration data to the quick application engine.
S408, the fast application engine receives the card configuration data and sends the card configuration data to the JS API.
S409, JS API sends a message comprising card configuration data to the map component for instructing the map component to display the map according to the card configuration data.
S410, loading card configuration data by the map component, wherein the card configuration data comprises the business type of the card.
Wherein the business type of the card is also called card type.
The map component can determine to adopt a dynamic map component or a static map component according to the business type of the card.
For example, when the business type of the card is a class of travel services, a class of flight services, a class of calendar services or a class of travel services, a dynamic map component may be employed, in which case a map in the form of a texture view may be employed.
For example, when the business type of the card is a local life service class, a static map component may be employed, in which case a map screenshot in the form of a bitmap may be employed.
S411, the map component sends a message for requesting a refresh policy to the refresh management and control module.
Wherein the message for requesting the refresh policy includes a service type of the card.
S412, the refresh management and control module determines a card refresh policy corresponding to the service type of the card.
S413, the refresh management and control module sends the determined card refresh strategy to the map component.
The card refreshing strategy corresponds to interval duration (marked as T), namely, the card is refreshed once every T duration.
S414 to S419 in fig. 10 illustrate a process of refreshing a card according to a card refresh policy. In the process, the electronic equipment interacts with the server to acquire data for card display and refreshing. The electronic device requests card frame data to the server once every T time.
S414, the refreshing management and control module of the electronic device sends a message for requesting the ith frame data to the cloud API of the server.
S415, the cloud API of the server sends the ith frame data to a refreshing management and control module of the electronic equipment.
S416, the refreshing management and control module renders a card according to the ith frame data, wherein the card comprises a plurality of layers.
Illustratively, the i-th frame data includes data of a map layer and/or data of a functional layer.
S417, after the interval time length T, the refreshing management and control module sends the i+1st frame data to the refreshing management and control module of the electronic equipment.
S418, the cloud API of the server sends the (i+1) th frame data to a refreshing management and control module of the electronic equipment.
And S419, refreshing at least one layer of the layers of the card by the refreshing management and control module according to the (i+1) th frame data.
And circularly executing the steps S417 to S419, wherein the electronic device refreshes each layer of the card according to a certain interval duration.
With the second embodiment, in the case where the electronic device receives an operation of adding a card to the desktop triggered by the user, the electronic device displays the card on the desktop and refreshes the card at a certain interval period.
Third embodiment
In the third embodiment of the present application, as the scene of the user changes, the refresh interval duration of the map card changes accordingly. For example, when the electronic device is in a driving scene, the electronic device may refresh the map with a shorter interval duration; for example, the map refresh interval duration is 2 seconds. When the electronic equipment enters an electronic fence such as an airport or a scenic spot, the electronic equipment can switch the map refreshing interval duration; for example, the map refresh interval durations are each 2 minutes.
Fig. 11 is another timing diagram illustrating interaction between the electronic device and the server to display a map based on the quick application card according to the third embodiment of the present application. Referring to fig. 11, a timing diagram of the interaction between the electronic device and the server includes steps S501-S516 described below. Likewise, the electronic device includes a card, a quick application engine, a JS API, a map component, and a refresh management and control module. The server side includes a cloud API.
The following S501 to S508 illustrate a card refresh process in one user scenario.
S501, when the current user scene is a first preset scene (such as driving), the refresh management and control module determines a first refresh strategy corresponding to the first preset scene.
For example, the first refresh policy is: the map refresh interval duration is 2 seconds.
S502, the refresh management and control module sends a first refresh strategy to the map component, wherein the first refresh strategy corresponds to the interval duration T1.
S503, the map component sends a message for requesting the ith frame data to the cloud API of the server.
S504, the map component receives the ith frame data sent by the server.
S505, rendering a card by the map component according to the ith frame data, wherein the card comprises a plurality of layers.
S506, after the interval duration T1, the map component sends a message for requesting the (i+1) th frame data to the cloud API of the server.
S507, the map component receives the (i+1) th frame data sent by the server.
S508, the map component refreshes at least one layer of the card according to the (i+1) th frame data.
And circularly executing the steps S506 to S508, and refreshing each layer of the card by the electronic equipment according to the interval duration T1.
The following S509 to S516 illustrate a card refresh process after the user scene change.
And S509, when the current user scene is a second preset scene (such as a scenic spot, a take-away, a cinema or a life service), the refresh management and control module determines a second refresh policy corresponding to the second preset scene.
S510, the refresh management and control module sends a first refresh strategy to the map component, wherein the first refresh strategy corresponds to the interval duration T1.
For example, the first refresh policy is: the map refresh interval duration is 2 minutes.
S511, the map component sends a message for requesting the ith frame data to the cloud API of the server.
S512, the map component receives the ith frame data sent by the server.
S513, rendering a card by the map component according to the ith frame data, wherein the card comprises a plurality of layers.
And S514, after the interval duration T1, the map component sends a message for requesting the (i+1) th frame data to the cloud API of the server.
S515, the map component receives the (i+1) th frame data sent by the server.
S516, the map component refreshes at least one layer of the card according to the (i+1) th frame data.
And (4) circularly executing the steps (514) to (516), and refreshing each layer of the card by the electronic equipment according to the interval duration T2.
Through the third embodiment, when the electronic device identifies that the user scene is a preset scene, the electronic device refreshes the card according to the interval duration corresponding to the preset scene. And under the condition that the electronic equipment identifies that the user scene is switched, the electronic equipment refreshes the card according to the interval duration corresponding to the switched scene.
In this embodiment of the present application, as the scene of the user changes, the refresh interval duration of the map layer and/or the functional layer of the map card may change correspondingly.
For example, when the electronic device is in a driving scene, the electronic device may set a refresh interval duration corresponding to each of the map layer and the functional layer. For example, the refresh interval duration of the map layer is 2 seconds, and the refresh interval duration of the functional layer is 10 seconds.
For example, the electronic device may switch the refresh interval duration of the map layer and/or the functional layer after the electronic device enters an electronic fence such as an airport or attraction. For example, the refresh interval duration of the map layers is 2 seconds, and the refresh interval duration of the functional layers is 30 seconds. For another example, the refresh interval duration of the map layers is 5 seconds, and the refresh interval duration of the functional layers is 2 minutes.
Having described a timing diagram of the server and electronic device interaction implementation to generate and display map cards, the process of how the server determines dynamic/static map cards is described below in conjunction with fig. 12.
As shown in fig. 12, the server may define the type of card to be generated. The type of the card to be generated is a dynamic map card or a static map card. By way of example, a static map card may be predefined for scenic spots, take-away, theatre, life services, etc. presentation type scenes. For example, the dynamic map card may be used by predefined operation scenes such as driving, surrounding, etc.
The server can set the application authority of the map card and generate a corresponding card white list.
The server may determine refresh policies for dynamic and static map cards. For example, for a static map card, the map information in the map card is refreshed every 1 minute. For example, for a dynamic map card, map information in the map card is refreshed every 5 seconds.
And the server packages the card type, the card authority, the card refreshing strategy and the quick application metadata to obtain the quick application RPK package. And the map card runs and is realized by taking the quick application RPK package as a carrier.
In the embodiment of the application, the electronic equipment can intelligently display the map card widgets through the quick application engine, so that a user can conveniently view a map and various services. Users can use the application without downloading and installing the application, i.e. point-of-use, and enjoy the performance experience of the native application.
Fig. 13 is a schematic diagram of a process of generating and rendering map cards by the fast application engine and the host process together, so that the fast application cards can be seen to flow from development to display and then to the host (e.g. desktop and/or negative screen, etc.).
As shown in fig. 13, on the cloud server side, the developer service platform uploads map card data to the cloud server through the map card interface.
On the electronic device side, the quick application engine loads engine codes to the host process to finish card initialization.
The quick application engine is a preset quick application (RPK) execution environment in the electronic equipment, has complete quick application capability, and can be used for verifying the real performance of the RPK on the electronic equipment.
Where a hosting process refers to a series of processes of hosting, such as UI threads, creating map cards, node conversion, and rendering of drawing. The host may be a fast service center, negative one-screen, desktop, lock screen, or YOYO suggestion.
In the process of creating the map card, the electronic device starts a JS thread, so that the quick application engine is triggered to download the quick application RPK package from the cloud service, the quick application RPK package is sent to the JS thread, resource loading is completed, and a DOM model is built by using the V8 engine. And drawing and rendering after node conversion to obtain the map card.
Wherein the V8 engine is a JavaScript engine implementation.
In the embodiment of the application, the quick application engine provides a map API, and all hosts can share JS map cards.
In the embodiment of the application, when the host displays the JS map card, the map component can be dynamically loaded to the host process as required.
According to the scheme, the association service required by the scene intention can be obviously recommended by combining the predetermined order information, the user behavior data and the location-based service LBS. That is, the method and the device can provide targeted association services for users aiming at different scenes such as going out, flights, schedules, traveling, local life and the like.
The electronic equipment can also accurately recommend services in unfamiliar places by performing transfer learning on user habits.
The transfer learning is a machine learning method, and uses a model developed for a task A as an initial point to be reused in a process of developing a model for a task B. This makes the distribution of large sample data very inconsistent, as the internet surfing habits vary from user to user. The migration learning can take the behavior data samples of other all people as source data, take the behavior data samples of the current user as target data, learn a general strategy from the behavior data of a wide mass group, and then utilize the behavior data of the current user to make the strategy fine, so as to meet the personalized requirement.
In some embodiments, a predetermined class of order and a location-based service may be combined, a scene in which the user is located is determined, a preset associated service corresponding to the scene in which the user is located is obtained, and the associated service is recommended to the user according to the behavior habit of the user.
The predetermined order information may be from a short message and/or a mail received by the electronic device. The electronic equipment can analyze the received short messages and/or mails to obtain the order information of the preset class.
For example, the reservation type order information may be scenic spot ticket reservation information, air ticket reservation information, train ticket reservation information, meeting reservation information, hotel reservation information, movie ticket purchase information.
The electronic equipment can recommend the associated service by displaying a map card, and the map card can comprise a real-time position map corresponding to a scene where the user is and options for presetting the associated service.
The preset association service may be, for example, the following service:
(1) A downstream service: scenic spots, tickets, toiletries, food;
(2) Flight service: flight orders, boarding passes, food and drinks;
(3) Calendar service: meeting schedule, taxi taking, online meeting and telephone;
(4) Travel service: hotel orders, taxi taking and baggage loss reporting;
(5) Local life service: movie tickets, ticket taking, parking lots, drinks.
The map display method based on the express application card has the following beneficial effects: the information display is more visual, the service recommendation is more comprehensive, and the relevance is more obvious.
In an embodiment of the application, the display form of the map card includes, but is not limited to: (1) displaying the card on an interface of a fast service center; (2) displaying the card on the negative screen; (3) displaying the card on the desktop; (4) folding a small screen card; and (5) displaying the card on the lock screen interface.
According to the embodiment of the application, the card can be dynamically generated based on the quick application, and the corresponding quick application card can be generated only by developing the quick application and integrating the data extraction interface.
The various application scenes of the map card and the various display forms of the map card are exemplarily described above, and the various application scenes of the map card and the various display forms of the map card are more intuitively described through a user interface of the electronic device in conjunction with the accompanying drawings.
Fig. 14 shows an interface schematic for setting the YOYO suggestion. By setting the YOYO suggestion, the electronic equipment can present the corresponding quick application card in the display column of the YOYO suggestion according to the scene and the use habit, and various services are provided.
As shown in fig. 14 (a), the electronic device displays a desktop 41, and a setting application icon 42 is displayed in the desktop 41. When the user clicks the setting application icon 42, as shown in (b) of fig. 14, the electronic device switches from displaying the desktop 41 to displaying the setting interface 43 in response to the user operation, and the smart assistant option 44 is displayed in the setting interface 43. When the user clicks on the smart assistant option 44, as shown in (c) of fig. 14, the electronic device switches from displaying the setting interface 43 to displaying the smart assistant setting interface 45 in response to the user operation, and the smart assistant setting interface 45 displays the YOYO suggestion option 46. When the user clicks the YOYO advice option 46, the electronic device switches from displaying the intelligent assistant interface 45 to displaying the YOYO advice setting interface 47 in response to the user operation, as shown in (d) of fig. 14. Services that YOYO suggestions can provide are displayed in the YOYO suggestion setting interface 47. The electronic equipment can recommend the currently required APP or service to the user through the YOYO suggestion according to the scene and the use habit. The service setting column 48 displays services that the YOYO suggestion can provide, such as a business trip service, a flight service, a schedule service, a travel service, a local life service, and the like, and each service option corresponds to a switch control 49, so that a user can trigger the electronic device to turn on or off by clicking on a switch control of a certain service according to actual use requirements.
In some embodiments, the default outbound service, the flight service, the calendar service, the travel service, and the local living service in the yoyoyo suggestion are all on. In the case that each service is started, the electronic device may recommend the APP or service currently required for the user through the YOYO suggestion according to the scene and the usage habit, for example, the electronic device may display a map card of a travel service class, a map card of a flight service class, a map card of a schedule service class, a map card of a travel service class, or a map card of a local living service class in the YOYO suggestion column.
The method for displaying a map based on a quick application card according to the embodiment of the present application will be described below by taking YOYO suggestion as an example. Wherein, the quick application card is displayed by taking the YOYO proposal as a host.
Fig. 15A shows a schematic diagram of a map card corresponding to the tour service. In the embodiment of the application, when the electronic device detects a play order triggered by a user on the electronic device under the condition that the play service of the yoyoyo suggestion is started, the electronic device may generate a fast application card corresponding to the play order, and display the fast application card corresponding to the play order through the YOYO suggestion.
It should be noted that, in the scheme of the application, not only the information of the tour order (such as the introduction of the scenic spot) but also the map of the tour place, the ticket information, the related information of the bathroom and the nearby food information can be displayed by the quick application card, the navigation or taxi taking service entrance from the current position to the scenic spot can be provided by the quick application card, and the electronic device can dynamically update and display the map in the map card according to the real-time positioning information of the electronic device.
Fig. 15B shows a schematic diagram of a map card corresponding to the flight service. In the embodiment of the application, when the electronic device detects that the flight order triggered by the user on the electronic device is started under the condition that the flight service of the yoyoyo suggestion is started, the electronic device may generate a fast application card corresponding to the flight order, and display the fast application card corresponding to the flight order through the YOYO suggestion.
It should be noted that, in the scheme of the present application, not only flight order information (such as flight departure time, airport and terminal building information) but also a map, boarding pass information, nearby food and drink information of the corresponding airport can be displayed by the quick application card, and a navigation or taxi taking service entrance from the current position to the airport can be provided by the quick application card. The electronic equipment can dynamically update and display the map in the map card according to the real-time positioning information of the electronic equipment.
Fig. 15C shows a schematic diagram of a map card corresponding to the schedule service. In the embodiment of the application, when the electronic device detects a meeting schedule triggered by a user on the electronic device under the condition that the schedule service of the YOYO suggestion is started, the electronic device can generate a fast application card corresponding to the meeting schedule and display the fast application card corresponding to the meeting schedule through the YOYO suggestion.
It should be noted that, in the solution of the present application, not only meeting schedule information (such as meeting time and place information) but also a map of a place where the meeting is located may be displayed by using the quick application card, and an entry such as navigation or taxi taking service, online meeting, and contact phone from the current location to the place where the meeting is located may be provided by using the quick application card. The electronic equipment can dynamically update and display the map in the map card according to the real-time positioning information of the electronic equipment.
Fig. 15D shows a schematic diagram of a map card corresponding to the travel service. In the embodiment of the application, when the electronic device detects a hotel order triggered by a user on the electronic device under the condition that the travel service of the YOYO suggestion is started, the electronic device can generate a fast application card corresponding to the hotel order and display the fast application card corresponding to the hotel order through the YOYO suggestion.
It should be noted that, in the solution of the present application, not only hotel order information (such as check-in time and address information) but also a map of a place where a hotel is reserved can be displayed by the quick application card, and entries such as navigation or taxi taking service, baggage loss and the like from the current location to the place where the hotel is reserved can be provided by the quick application card. The electronic equipment can dynamically update and display the map in the map card according to the real-time positioning information of the electronic equipment.
Fig. 15E shows a schematic diagram of a map card corresponding to the local living service. In the embodiment of the application, when the electronic device detects a movie ticket order triggered by a user on the electronic device under the condition that the local life service of the yoyoyo suggestion is started, the electronic device can generate a quick application card corresponding to the movie ticket order, and display the quick application card corresponding to the movie ticket order through the YOYO suggestion.
It should be noted that, in the solution of the present application, not only movie ticket order information (for example, the starting showing time of a movie) but also a map of the location of the movie theater can be displayed by using the quick application card, and entries such as taxi taking or navigation service, parking lot, baggage hanging and the like from the current position to the location of the movie theater can be provided by using the map card. The electronic equipment can dynamically update and display the map in the map card according to the real-time positioning information of the electronic equipment.
FIG. 16A illustrates a user interaction interface diagram for quick review of map cards via the YOYO suggestion. As shown in (a) of fig. 16A, in the case where the electronic device displays a desktop, if the user wants to view a map card recommended by the electronic device according to the user order and the current application scene, the user may slide a finger in the direction indicated by an arrow on one side of the screen, triggering the electronic device to display a negative screen. As shown in (b) of fig. 16A, the electronic device switches from displaying the desktop to displaying the negative one screen in response to the user operation, and the YOYO suggestion bar is displayed in the interface of the negative one screen.
In some embodiments, a flight services class map card may be displayed in the negative one-screen YOYO suggestion bar. In other embodiments, other classes of map cards besides the flight services class may be displayed in the negative one-screen yoyoyo suggestion column. The map card displayed in the YOYO suggestion column of the negative one screen is a map card recommended by the electronic equipment in real time according to the user order and the current application scene. And the electronic equipment can dynamically update and display the map in the map card according to the real-time positioning information of the electronic equipment.
FIG. 16B illustrates another user interaction interface diagram for quick review of map cards via the YOYO suggestion. As shown in (a) in fig. 16B, the electronic device displays a desktop, and a weather clock card provided by YOYO advice is displayed by default in the desktop.
In some embodiments, the electronic device automatically recommends map cards according to the user order and the current application scene, switches the desktop display weather clock card to display the map cards at intervals of a first duration, switches the desktop display map card to display the weather clock card at intervals of a second duration, and switches the desktop display map card to display the weather clock card. That is, the electronic device may toggle between displaying the weather clock card and displaying the map card.
In other embodiments, the electronic device may switch between displaying the weather clock card and displaying the map card in response to a user operation. Specifically, if the user wishes to view the map card recommended by the electronic device according to the user order and the current application scenario, the user may slide a finger over the weather map card in the direction indicated by the arrow, triggering the electronic device to display the map card. As shown in (B) of fig. 16B, the electronic device switches the weather clock card displayed in the desktop to a YOYO advice column, which can be used to display the map card, in response to a user operation. As shown in (c) of fig. 16B, when the user slides a finger in the direction indicated by the arrow on the map card displayed in the YOYO advice column in the desktop, the electronic apparatus switches the YOYO advice column displayed in the desktop back to the weather clock card in response to the user operation as shown in (d) of fig. 16B.
In some embodiments, a flight services class map card is displayed in the yoyoyo suggestion bar in the desktop.
In other embodiments, other classes of map cards in addition to the flight services class are displayed in the yoyoyo advice column in the desktop.
It should be noted that, the map card displayed in the yoyoyo suggestion column in the desktop is a map card that the electronic device recommends in real time according to the user order and the current application scenario. And the electronic equipment can dynamically update and display the map in the map card according to the real-time positioning information of the electronic equipment.
The method of displaying a map based on a quick application card provided in the embodiment of the present application is exemplarily described above taking setting a map card by the YOYO suggestion as an example. The method for displaying the map based on the quick application card provided in the embodiment of the application will be described below by taking the example of adding the card through the quick service center.
FIG. 17A shows an interface schematic for finding and adding a map card to a negative one screen through a quick service center portal. As shown in fig. 17A (a), the electronic device displays an interface of the negative one screen in which the entry control 51 of the quick service center is displayed. The electronic device receives a user operation on the portal control 51. As shown in (b) of fig. 17A, the electronic device jumps from the interface of the negative one screen to the quick service center interface in response to a user operation. A map card bar and an "add to minus one screen" control 52 are displayed in the quick service center interface. The electronic device receives a user operation on the "Add to minus one Screen" control 52. As shown in fig. 17A (c), the electronic device jumps from the quick service center interface to the interface of the negative one screen in response to the user operation, and newly displays the map card field in the interface of the negative one screen.
In an embodiment of the present application, at least one of the following cards may be displayed in the map card field: map cards such as a travel service, a flight service, a schedule service, a travel service, and a local living service. Specifically, the system can be preset, and the user can also customize the system to set.
It should be noted that, the classification of the map card is described as an example, and the map card may be further divided into other possible forms according to other scenes in actual implementation, and the embodiment of the present application is not limited, and for convenience of description, the description is given here by taking the map card of various user scene types, such as a travel service, a flight service, a schedule service, a travel service, and a local living service, as an example.
After adding the map card in the negative one-screen interface, if the electronic device does not detect the user order or the current application scene, the electronic device may display default content in the map card field.
If the electronic equipment detects the user order and the current application scene, the electronic equipment recommends map cards of specific user scene types in real time according to the user order and the current application scene, and the recommended map cards are displayed in a map card column.
For example, as shown in (d) of fig. 17A, when the electronic device detects a flight order triggered by a user on the electronic device, the electronic device generates a quick application map card corresponding to the flight order, and displays a flight service class map card in a map card field in the interface of the negative one screen. When the electronic equipment detects a flight order triggered by a user on the electronic equipment, the electronic equipment generates a quick application map card corresponding to the flight order, and recommends a flight service class map card in a quick service center interface.
In the scheme, the map card can display the flight order information (such as flight departure time, airport and terminal building information), the map, boarding pass information, nearby food and drink information of the corresponding airport, and the map card can provide navigation or taxi taking service entrance from the current position to the airport.
In the scheme of the application, the electronic equipment can dynamically update and display the map in the map card according to the position change information of the electronic equipment. The quick application cards of different service types are refreshed according to different map refresh frequencies respectively.
The map card is displayed with the negative one screen as the host. Another map card display mode is described below with reference to fig. 15B, in which a map card is displayed on a desktop.
FIG. 17B illustrates a negative one-screen recommended map card and an interface diagram of a user adding the map card to a desktop. As shown in fig. 17B (a), the electronic device displays an interface of the negative one screen, and displays a map card and an "add" control 53 in the interface of the negative one screen. The electronic device receives a user operation on the "add" control 53. As shown in (B) of fig. 17B, the electronic device jumps from the interface of the negative one screen to the map card setting interface in response to a user operation, and a plurality of pages, each having a type of map card thumbnail displayed therein, may be alternately displayed in the map card setting interface. As shown in (B), (c), and (d) of fig. 17B, the electronic device may alternately display map card thumbnails for each page. For example, the local living service class map card is switched to the tour service class map card, and then the tour service class map card is switched to the schedule service class map card.
As shown in (B) in fig. 17B, an "add to minus one screen" control 54, an "add to desktop" control 55, and an "add to lock screen interface" control 56 are also displayed in the map card setting interface.
As shown in (d) and (e) in fig. 17B, the electronic device receives the user's operation on the "add to desktop" control 55, and in response to the user's operation, the electronic device jumps from the map card setting interface to the desktop where the map card is newly displayed.
As shown in (e) and (f) of fig. 17B, the electronic device recommends map cards of specific user scene types in real time according to the user order and the current application scene, and the electronic device updates and displays the map cards of different user scene types. In other words, the electronic device can switch and display map cards corresponding to different user scenes along with the scene change of the user.
As shown in (e) of fig. 17B, the electronic device displays a calendar service class map card on the desktop, and the service class express application card is refreshed at the first map refresh frequency.
As shown in (f) in fig. 17B, the electronic device displays a local life service class map card on the desktop, and the service class express application card is refreshed at the second map refresh frequency.
Wherein the first map refresh frequency is higher than the second map refresh frequency. For example, the first map refresh frequency is: the refresh interval is greater than 1 minute. The second map refresh frequency is: the refresh interval is in the range of [5 seconds, 1 minute ].
FIG. 17C illustrates another interface diagram of a negative one-screen recommended map card and a user adding the map card to a desktop.
Here, (a) to (d) in fig. 17C are similar to (a) to (d) in fig. 17B, except that: referring to (e) to (f) in fig. 17C, when the electronic device recognizes a user scene of a schedule service type, the electronic device displays a map card of the schedule service type in the desktop, and when the electronic device recognizes a user scene of a local life type, the electronic device adds a map card of the local life type to the desktop.
The above embodiments of the application take YOYO suggestion, negative one screen and desktop as examples to exemplarily illustrate the method for displaying a map based on the express application card provided in the embodiments of the application. In actual implementation, the map card may be displayed with other interfaces as hosts.
By way of example, another map card display mode is described below in conjunction with fig. 17D, in which a map card is displayed with a lock screen interface as a host. Fig. 17D shows an interface schematic of displaying a map card in a lock screen interface. As shown in (a) of fig. 17D, a schedule service class map card is displayed in the map card setting interface. Also, an "add to lock screen interface" control 56 is displayed in the map card settings interface. As shown in fig. 17D (a) and (b), the electronic device receives a user operation on the "add to lock interface" control 56, and in response to the user operation, the electronic device adds a map card to the lock interface. After the electronic device locks the screen, the electronic device displays the screen locking interface and displays the added map card in the screen locking interface. And the electronic equipment can dynamically update and display the map in the map card according to the real-time positioning information of the electronic equipment.
By way of example, still another map card display mode in which a map card is displayed with a small screen of a foldable screen electronic device as a host will be described below in conjunction with fig. 17E. The electronic device may display the map card through the small screen when the screen is in the collapsed state. Fig. 17E shows an interface schematic for displaying a map card in a small screen of a foldable screen electronic device. As shown in fig. 17E (a), the electronic apparatus is in an expanded state, the large screen is in a lit state, and the small screen is in an extinguished state. As shown in fig. 17E (b), the electronic device is in a folded state, the large screen is in an extinguished state, the small screen is in a lit state, and a map card can be displayed on the small screen. The electronic device can recommend map cards of specific user scene types in real time according to the user orders and the current application scene. And the electronic equipment can dynamically update and display the map in the map card according to the real-time positioning information of the electronic equipment.
The method for displaying the map based on the quick application card has the following beneficial effects:
(1) The APP is not required to be installed, and the use scene is not limited;
(2) Dynamic/static map cards can be generated according to application scene categories, intelligent display and refreshing of the map cards are achieved, and energy consumption is low.
In this embodiment, the "greater than" may be replaced with "greater than or equal to" and "less than or equal to" may be replaced with "less than" or "greater than or equal to" may be replaced with "greater than" and "less than" may be replaced with "less than or equal to".
The various embodiments described herein may be separate solutions or may be combined according to inherent logic, which fall within the scope of the present application.
The solutions provided in the embodiments of the present application are mainly described above from the perspective of method steps. It will be appreciated that, in order to implement the above-described functions, an electronic device implementing the method includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the present application may divide the functional modules of the electronic device according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present application, the division of the modules is merely a logic function division, and other possible division manners may be implemented in practice.
The present application also provides a chip coupled to a memory for reading and executing a computer program or instructions stored in the memory to perform the methods of the embodiments described above.
The present application also provides an electronic device comprising a chip for reading and executing a computer program or instructions stored in a memory, such that the methods in the embodiments are performed.
The present embodiment also provides a computer-readable storage medium having stored therein computer instructions that, when executed on an electronic device, cause the electronic device to perform the above-described related method steps to implement the method for displaying a map based on a quick application card in the above-described embodiments.
The present embodiment also provides a computer program product, in which a program code is stored in a computer readable storage medium, which when executed on a computer causes the computer to perform the above-mentioned related steps to implement the method for displaying a map based on a quick application card in the above-mentioned embodiments.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a chip, a component, or a module, and may include a processor and a memory connected to each other; the memory is used for storing computer-executable instructions, and when the device is operated, the processor can execute the computer-executable instructions stored in the memory, so that the chip executes the method for displaying the map based on the quick application card in the method embodiments.
The electronic device, the computer readable storage medium, the computer program product or the chip provided in this embodiment are used to execute the corresponding method provided above, so that the beneficial effects thereof can be referred to the beneficial effects in the corresponding method provided above, and will not be described herein.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (19)

1. A method for displaying a map based on a quick application card, which is applied to an electronic device, the method comprising:
receiving a first operation of a user, wherein the first operation is used for triggering the addition of a first quick application card to a target interface;
responding to the first operation, and verifying the first quick application card according to a card white list;
sending a first request message to a server under the condition that verification is passed, wherein the first request message is used for requesting the server to verify and configure the first quick application card;
loading card configuration data corresponding to the first quick application card sent by the server based on a JavaScript thread, wherein the card configuration data comprises the service type of the first quick application card, the data of a map layer and the data of a function layer;
Rendering the first quick application card according to the data of the map layer and the data of the function layer, and displaying the first quick application card on the target interface, wherein the map layer and the function layer for displaying recommended services are displayed in the first quick application card;
and acquiring map frame data of the first quick application card from the server at intervals of a first time length, refreshing a map layer of the first quick application card according to the map frame data, wherein the first time length is a map refreshing time length determined according to the service type of the first quick application card.
2. The method of claim 1, wherein the obtaining map frame data of the first quick application card from the server comprises:
determining a first map component according to the service type of the first express application card;
and calling a map application program interface API through the first map component, and acquiring map frame data of the first quick application card from the server.
3. The method of claim 2, wherein the first map component is a dynamic map component or a static map component, the dynamic map component having a corresponding map refresh frequency that is greater than a corresponding map refresh frequency of the static map component.
4. The method of claim 3, wherein the obtaining, by the first map component, map frame data of the first flash application card from the server comprises:
and under the condition that the first map component is the dynamic map component, map frame data of the first quick application card is obtained from the server through the dynamic map component, and the map frame data is a map in a texture view form.
5. The method of claim 3, wherein the obtaining, by the first map component, map frame data of the first flash application card from the server comprises:
and under the condition that the first map component is the static map component, map frame data of the first quick application card is obtained from the server through the static map component, and the map frame data is a map screenshot in a bitmap form.
6. The method according to any one of claims 1 to 5, wherein in case the target interface displays the first quick application card, the method further comprises:
identifying a user usage scenario in response to a first operation of a user on the first quick application card;
If the user usage scene is a first preset scene, determining a second duration corresponding to the first preset scene according to a preset mapping relation of a map refreshing strategy, wherein the preset mapping relation of the map refreshing strategy comprises a mapping relation between the user usage scene and the map refreshing duration;
and refreshing and displaying the map layer of the first quick application card every the second time.
7. The method according to any one of claims 1 to 5, wherein in case the target interface displays the first quick application card, the method further comprises:
when the electronic equipment enters a preset geofence, identifying a user use scene;
if the user usage scene is a second preset scene, determining a third duration corresponding to the second preset scene according to a preset mapping relation of the map refreshing strategy;
and refreshing and displaying the map layer of the first quick application card every the third time period.
8. The method of any of claims 1 to 7, wherein the functional layer comprises a recommended services control; the method further comprises the steps of:
receiving a second operation of the recommended service control by a user;
Responding to the second operation, and displaying prompt information corresponding to the recommended service control on the map layer in the first quick application card;
the prompt information comprises navigation route prompt information and/or position information of a target place.
9. The method of any of claims 2 to 8, wherein the electronic device comprises a fast application engine and JavaScript interface;
the loading, based on the JavaScript thread, card configuration data corresponding to the first fast application card sent by the server includes:
the fast application engine acquires card configuration data corresponding to the first fast application card from the server;
the quick application engine calls the JavaScript interface and sends the card configuration data to a first map component;
the first map component loads the card configuration data based on the JavaScript thread.
10. The method of any one of claims 1 to 9, wherein the card configuration data is an RPK packet, the RPK packet including a name of the first quick application card, an icon, and an address of the RPK packet.
11. A method for displaying a map based on a quick application card, applied to a server, the method comprising:
Calling a map card interface to generate an RPK package of a first quick application card;
receiving a first request message sent by electronic equipment, wherein the first request message is used for requesting verification and configuration of the first express application card;
responding to the first request message, verifying and configuring the first quick application card, and then sending the RPK packet to the electronic equipment, wherein the RPK packet comprises the service type of the first quick application card, the data of a map layer and the data of a function layer; the data of the map layer and the data of the function layer are used for rendering the first quick application card, so that the map layer and the function layer for displaying recommended services are displayed in the first quick application card, and the service type is used for determining the map refreshing time of the first quick application card;
receiving a second request message sent by the electronic equipment every first time length, wherein the second request message is used for requesting to acquire map frame data;
and responding to the second request message, and sending map frame data of the first quick application card to the electronic equipment, wherein the map frame data is used for refreshing a map layer of the first quick application card.
12. The method of claim 11, wherein the invoking the map card interface to generate the RPK package of the first quick application card comprises:
the map card interface from the developer service platform is obtained, wherein the map card interface comprises a card service type, a positioning interface, an operation button and a function interface;
determining that the first quick application card adopts a dynamic map component or a static map component according to the card service type and the positioning interface;
determining a map refreshing strategy corresponding to the first quick application card according to the operation buttons and the function interfaces;
and packaging the determined result to obtain the RPK package of the first quick application card.
13. The method of claim 12, wherein the sending map frame data of the first flash application card to the electronic device comprises:
and under the condition that the first quick application card is determined to adopt the dynamic map component, map frame data of the first quick application card is sent to the electronic equipment, wherein the map frame data is a map in a texture view form.
14. The method of claim 12, wherein the sending map frame data of the first flash application card to the electronic device comprises:
And under the condition that the first quick application card is determined to adopt the static map component, map frame data of the first quick application card is sent to the electronic equipment, wherein the map frame data is a map screenshot in a bitmap form.
15. The method according to claim 12 or 13, wherein the RPK package further comprises a name of the first quick application card, an icon, and an address of the RPK package.
16. An electronic device comprising a processor, a memory, and a computer program stored on the memory, the processor being configured to execute the computer program to cause the electronic device to implement the method of any one of claims 1-10.
17. A server comprising a processor, a memory and a computer program stored on the memory, the processor being configured to execute the computer program to cause the electronic device to implement the method of any one of claims 11 to 15.
18. A communication system comprising an electronic device as claimed in claim 16 and a server as claimed in claim 17.
19. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when run on an electronic device, causes the electronic device to perform the method of any one of claims 1 to 10 or the method of any one of claims 11 to 15.
CN202311375373.2A 2023-10-20 2023-10-20 Method, equipment, server and system for displaying map based on quick application card Pending CN117666993A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311375373.2A CN117666993A (en) 2023-10-20 2023-10-20 Method, equipment, server and system for displaying map based on quick application card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311375373.2A CN117666993A (en) 2023-10-20 2023-10-20 Method, equipment, server and system for displaying map based on quick application card

Publications (1)

Publication Number Publication Date
CN117666993A true CN117666993A (en) 2024-03-08

Family

ID=90081509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311375373.2A Pending CN117666993A (en) 2023-10-20 2023-10-20 Method, equipment, server and system for displaying map based on quick application card

Country Status (1)

Country Link
CN (1) CN117666993A (en)

Similar Documents

Publication Publication Date Title
KR102272256B1 (en) virtual vision system
US9658738B1 (en) Representation management on an electronic device
CN107016051A (en) Geocoding is carried out to personal information
CN112612386B (en) Mobile terminal and display method of application card thereof
CN111680232A (en) Page display method, device, equipment and storage medium
KR20130017179A (en) Mobile terminal, method for controlling of the mobile terminal and system
Wörndl et al. Mobile applications for e-Tourism
US20220283693A1 (en) Combined map icon with action indicator
CN110995842A (en) Method, device and equipment for downloading service data and storage medium
KR20150008653A (en) Method for utilizing Usage Log of Portable Terminal and Apparatus for using the same
CN116048765B (en) Task processing method, sample data processing method and electronic equipment
CN110083284B (en) Candidate information processing device, candidate information display method, storage medium, and electronic device
CN117666993A (en) Method, equipment, server and system for displaying map based on quick application card
CN116028147A (en) Application program recommendation method and electronic equipment
CN111694535B (en) Alarm clock information display method and device
US10796459B2 (en) Information processing apparatus and non-transitory computer readable medium for executing information processing
KR20180090970A (en) Method for displaying of image according to location, apparatus and system for the same
US11595787B2 (en) Content notification using a multi-dimensional fabric interface
CN116056019B (en) Short message analysis method for card recommendation and electronic equipment
CN114816622B (en) Scene picture display method and device, electronic equipment and storage medium
CN115550843B (en) Positioning method and related equipment
US20240137438A1 (en) Information display method and electronic device
CN117939008A (en) Card display method and electronic equipment
CN117938938A (en) Method for dynamically updating card content, electronic equipment, server and communication system
CN117150067A (en) Album processing method and related device

Legal Events

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