Map query method and electronic equipment

By receiving and displaying historical query requests on electronic maps, the problem of electronic maps failing to accurately reproduce search results across different geographical locations is solved, resulting in more accurate search result display and fewer user operations.

CN122019564APending Publication Date: 2026-05-12HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2022-01-27
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

When searching based on historical records, electronic maps provide inaccurate search results, limiting them to the current city and failing to accurately reproduce previous search results.

Method used

By receiving a first query request, displaying a first interface including a first search result and a first history record, and receiving a second query request based on the first history record, displaying a third interface that is the same as the first interface, the system can reproduce the search results of previous queries in different geographical locations.

Benefits of technology

It reduces user operations, improves the accuracy of search results, enhances the user experience, and reduces the processing load on devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122019564A_ABST
    Figure CN122019564A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a map query method and electronic equipment. The method comprises the steps that the electronic equipment receives a first query request; a first interface is displayed, the first interface comprises a first search result, and the first search result comprises at least one geographic position related to the first query request in a map range indicated by the first map area; a second interface is displayed, the second interface comprises a first historical record, and the first historical record is associated with the first query request; receiving a second query request based on the first historical record; and displaying a third interface, wherein the third interface is the same as the first interface. By adopting the embodiment of the invention, the search result obtained by previous query can be reproduced during query based on the historical record, the user operation is reduced, and the search result is more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The original application has the application number 2022101038617 and the original application date is January 27, 2022. The entire contents of the original application are incorporated herein by reference. Technical Field

[0002] This application relates to the field of computer technology, and in particular to a map query method and electronic device. Background Technology

[0003] Electronic maps typically record user history or previously searched keywords. For example, if a user searches for the keyword "Gulou," the map will record the user's search history for "Gulou." However, when the user searches again, the search will be limited to the current city. For instance, although both Tianjin and Shanghai may show search results for "Gulou," if the electronic device is currently located in Tianjin, the map search engine will only provide search results for "Gulou" within Tianjin. Therefore, the results provided by electronic maps based on historical search history are not accurate enough. Summary of the Invention

[0004] This application discloses a map query method and electronic device that can reproduce previously obtained search results when querying based on historical records, resulting in more accurate search results and reducing the number of user query operations.

[0005] In a first aspect, this application provides a map query method applied to an electronic device. The method includes: receiving a first query request; displaying a first interface, the first interface including a first search result, the first search result including at least one geographical location related to the first query request within a map area indicated by a first map region; displaying a second interface, the second interface including a first historical record, the first historical record being associated with the first query request; receiving a second query request based on the first historical record; and displaying a third interface, the third interface being the same as the first interface.

[0006] In the above method, the search results obtained by the electronic device based on the first historical record are the first search results obtained in the previous query. Users do not need to perform cumbersome query operations to reproduce the search results obtained in the previous query. The search results are more accurate, the user experience is improved, and the processing pressure on the device is reduced.

[0007] In one possible implementation, when the electronic device receives a second query request based on the first historical record, it is located in a first geographical location, which is within a map area indicated by a second map area, which is different from the first map area.

[0008] In the above method, the first map area is the map area where the electronic device was previously queried. When the electronic device is in the second map area outside the first map area, it receives a second query request based on the first historical record. The search result obtained at this time is the first search result obtained from the previous query, rather than the search result related to the second query request within the second map area. This accurately reproduces the geographical location obtained from the previous search, making the search results more accurate and well meeting the user's needs.

[0009] In one possible implementation, the first historical record includes a first keyword and a first map area, wherein the first keyword is associated with the first query request.

[0010] In the above method, the first historical record includes the first image area where the first search result obtained from the previous query is located. In this way, users can quickly obtain the image area information of the search results of the previous query through the historical record, which helps users select the required historical record for querying, making the user operation more convenient.

[0011] In one possible implementation, the at least one geographic location includes a second geographic location within the map area indicated by the first map area; or, the at least one geographic location includes a third geographic location and a fourth geographic location, the third geographic location within the map area indicated by a third map area, the fourth geographic location within the map area indicated by a fourth map area, and the map area indicated by the first map area includes the map area indicated by the third map area and the map area indicated by the fourth map area.

[0012] In one possible implementation, the method further includes: receiving a third query request; displaying a fourth interface including a second search result, the second search result including at least one geographic location related to the third query request within a map area indicated by a fifth map area; receiving a first user operation; displaying a fifth interface including the second search result, wherein the size of the fifth map area displayed on the fifth interface is different from the size of the fifth map area displayed on the fourth interface; displaying a sixth interface including a second history record, the second history record including a second keyword and the fifth map area, the second keyword being associated with the third query request; receiving a fourth query request based on the second history record; and displaying a seventh interface identical to the fifth interface.

[0013] In one possible implementation, the first user action is a zoom-out gesture or a zoom-in gesture.

[0014] In the above method, the size of the image area when the electronic device displays the second search result obtained based on the second historical query is the same as the size of the image area when the second search result was previously displayed. Users no longer need to perform the operation of adjusting the size of the displayed image area, further reducing user operations and making the search results more accurate.

[0015] In one possible implementation, the method further includes: receiving a fifth query request; displaying an eighth interface, the eighth interface including a third search result, the third search result including a fifth geographical location and a sixth geographical location related to the fifth query request, the fifth geographical location being within a map area indicated by a sixth map area, the sixth geographical location being within a map area indicated by a seventh map area, the sixth map area and the seventh map area being different; receiving a second user operation on the fifth geographical location in the eighth interface; displaying a ninth interface, the ninth interface including the fifth geographical location within the map area indicated by the sixth map area; displaying a tenth interface, the tenth interface including a third historical record, the third historical record including a third keyword and the sixth map area, the third keyword being associated with the fifth query request; receiving a sixth query request based on the third historical record; and displaying an eleventh interface, the eleventh interface being the same as the ninth interface.

[0016] In the method described above, when performing a map search, the third search result obtained by the electronic device includes multiple geographical locations, and the user selects the fifth geographical location. The corresponding third historical record displayed includes the sixth map region where the user-selected fifth geographical location is located. In this case, the search result obtained based on the third historical record is the fifth geographical location previously selected by the user, rather than the third search result. The user does not need to perform the operation of selecting the fifth geographical location again, further reducing user operations and making the search results more accurate.

[0017] In one possible implementation, the fifth geographical location and the sixth geographical location are within the map area indicated by the eighth map area, which includes the map area indicated by the sixth map area and the map area indicated by the seventh map area.

[0018] In one possible implementation, the tenth interface further includes a fourth history record, which includes information about a first point of interest (POI), which is the fifth geographic location. The information about the first POI includes the name of the fifth geographic location and the sixth map area.

[0019] In one possible implementation, the method further includes: receiving a seventh query request; displaying a twelfth interface, the twelfth interface including a fourth search result, the fourth search result including a seventh geographic location related to the seventh query request; receiving a third user action on the seventh geographic location in the twelfth interface; displaying a thirteenth interface, the thirteenth interface including the seventh geographic location within a map area indicated by a ninth map area; receiving an eighth query request; displaying a fourteenth interface, the fourteenth interface including a fifth search result, the fifth search result including the seventh geographic location related to the eighth query request; displaying a fifteenth interface, the fifteenth interface including a fifth historical record, the fifth historical record including a fourth keyword and the ninth map area, the fourth keyword being associated with the seventh query request; receiving a ninth query request based on the fifth historical record; and displaying a sixteenth interface, the sixteenth interface being identical to the thirteenth interface.

[0020] In the above method, during the map query, the user performed multiple queries in a short period. In the first query, the user selected the seventh geographical location. The electronic device can then only display the fifth historical record corresponding to the first query. This can be understood as determining the displayed historical records based on whether the user selected a geographical location, avoiding the display of invalid or redundant historical records. This makes it more convenient for the user to view and reduces the storage pressure on the device. Furthermore, the search result obtained based on the fifth historical record is the seventh geographical location previously selected by the user, rather than the fourth or fifth search result, further reducing user operations and making the search results more accurate.

[0021] In one possible implementation, the fourth keyword and the fifth keyword are different, and the fifth keyword is associated with the eighth query request.

[0022] In one possible implementation, before receiving the first query request, the method further includes: receiving a tenth query request; displaying a seventeenth interface, the seventeenth interface including a sixth search result, the sixth search result including at least one geographic location related to the tenth query request.

[0023] In the above method, if a user performs multiple queries within a short period during a map search, the electronic device can display only the first historical record corresponding to the most recent query. This means the displayed historical records are determined based on the query time, avoiding the display of invalid or redundant records, making it more convenient for the user and reducing the storage pressure on the device. Furthermore, the search results obtained based on the first historical record are the first search result from the user's most recent query, resulting in more accurate search results.

[0024] In one possible implementation, the method further includes: receiving an eleventh query request; displaying an eighteenth interface, the eighteenth interface including a seventh search result, the seventh search result including an eighth geographic location related to the eleventh query request; receiving a fourth user action on the eighth geographic location in the eighteenth interface; displaying a nineteenth interface, the nineteenth interface including the eighth geographic location within a map area indicated by a tenth map area; displaying a twentieth interface, the twentieth interface including a sixth historical record, the sixth historical record including a sixth keyword and the tenth map area, the sixth keyword being associated with the name of the eighth geographic location; receiving a twelfth query request based on the sixth historical record; and displaying a twenty-first interface, the twenty-first interface being identical to the nineteenth interface.

[0025] In the above method, when performing a map query, the keywords entered by the user are different from the eighth geographical location selected by the user. The keywords included in the sixth historical record displayed by the electronic device may not be the keywords entered by the user, but may be related to the name of the eighth geographical location selected by the user. This can be understood as automatic error correction, reducing the impact of user input errors. The user no longer needs to perform the operation of selecting the eighth geographical location, further reducing user operations and making the search results more accurate.

[0026] In one possible implementation, before displaying the third interface, the method further includes: sending a first request message to a network device, the first request message being used to request search results related to the second query request, the first request message including the first keyword and the first image area; and obtaining the first search result sent by the network device, the first search result being used by the electronic device to display the third interface.

[0027] In one possible implementation, before displaying the seventh interface, the method further includes: sending a second request message to a network device, the second request message being used to request search results related to the fourth query request, the second request message including the second keyword, the fifth image area, and a first parameter, the first parameter being used to characterize the size of the fifth image area displayed on the fifth interface; and obtaining the second search result sent by the network device, the second search result being used by the electronic device to display the seventh interface.

[0028] Secondly, this application provides another map query method applied to a network device. The method includes: receiving a first request message, sent by an electronic device upon receiving a first query request, the first request message being used to request search results related to the first query request; sending a first search result to the electronic device, the first search result being used by the electronic device to display a first interface, the first search result including at least one geographical location related to the first query request within a map area indicated by a first map region; receiving a second request message, the second request message being sent by the electronic device upon receiving a second query request based on a first historical record, the first historical record being displayed after the electronic device displays the first interface, the first historical record being associated with the first query request, the second request message being used to request search results related to the second query request; and sending the first search result to the electronic device, the first search result being used by the electronic device to display a second interface, the second interface being identical to the first interface.

[0029] In the above method, the search results obtained by the electronic device based on the first historical record are the first search results obtained in the previous query. Users do not need to perform cumbersome query operations to reproduce the search results obtained in the previous query. The search results are more accurate, the user experience is improved, and the processing pressure on the device is reduced.

[0030] In one possible implementation, when the electronic device receives the second query request, the electronic device is located at a first geographical location, which is within a map area indicated by a second map area, which is different from the first map area.

[0031] In the above method, the first map area is the map area where the electronic device was previously queried. When the electronic device is in the second map area outside the first map area, it receives a second query request based on the first historical record. The search result obtained at this time is the first search result obtained from the previous query, rather than the search result related to the second query request within the second map area. This accurately reproduces the geographical location obtained from the previous search, making the search results more accurate and well meeting the user's needs.

[0032] In one possible implementation, the first historical record includes a first keyword and a first map area, wherein the first keyword is associated with the first query request.

[0033] In the above method, the first historical record includes the first image area where the first search result obtained from the previous query is located. In this way, users can quickly obtain the image area information of the search results of the previous query through the historical record, which helps users select the required historical record for querying, making the user operation more convenient.

[0034] In one possible implementation, the second request message includes the first keyword and the first map area.

[0035] In one possible implementation, the at least one geographic location includes a second geographic location within the map area indicated by the first map area; or, the at least one geographic location includes a third geographic location and a fourth geographic location, the third geographic location within the map area indicated by a third map area, the fourth geographic location within the map area indicated by a fourth map area, and the map area indicated by the first map area includes the map area indicated by the third map area and the map area indicated by the fourth map area.

[0036] In one possible implementation, the method further includes: receiving a third request message, the third request message being sent by the electronic device when it receives a third query request, the third request message being used to request search results related to the third query request; sending a second search result to the electronic device, the second search result being used by the electronic device to display a third interface, the second search result including at least one geographical location related to the third query request within a map area indicated by a fifth map area; receiving a fourth request message, the fourth request message being sent by the electronic device when it receives a first user operation, the first user operation being used to adjust the size of the fifth map area displayed by the electronic device on the third interface; and sending the adjusted fifth map area to the electronic device, the adjusted fifth map area being used for... The electronic device displays a fourth interface, which includes the second search result. The size of the fifth image area displayed on the third interface is different from the size of the fifth image area displayed on the fourth interface. It receives a fifth request message, which is sent when the electronic device receives a fourth query request based on a second historical record. The second historical record is displayed after the electronic device displays the fourth interface and is associated with the third query request. The fifth request message is used to request search results related to the fourth query request. The electronic device sends the second search result and the adjusted fifth image area to the electronic device. The second search result and the adjusted fifth image area are used by the electronic device to display a fifth interface, which is identical to the fourth interface.

[0037] In one possible implementation, the first user action is a zoom-out gesture or a zoom-in gesture.

[0038] In the above method, the size of the image area when the electronic device displays the second search result obtained based on the second historical query is the same as the size of the image area when the second search result was previously displayed. Users no longer need to perform the operation of adjusting the size of the displayed image area, further reducing user operations and making the search results more accurate.

[0039] In one possible implementation, the second historical record includes a second keyword and the fifth map area, and the second keyword is associated with the third query request.

[0040] In one possible implementation, the fifth request message includes the second keyword, the fifth image area, and a first parameter, wherein the first parameter is used to characterize the size of the fifth image area displayed on the fourth interface.

[0041] In one possible implementation, the method further includes: receiving a sixth request message, the sixth request message being sent by the electronic device when it receives a fifth query request, the sixth request message being used to request search results related to the fifth query request; sending a third search result to the electronic device, the third search result being used by the electronic device to display a sixth interface, the third search result including a fifth geographical location and a sixth geographical location related to the fifth query request, the fifth geographical location being within a map area indicated by a sixth map area, the sixth geographical location being within a map area indicated by a seventh map area, the sixth map area and the seventh map area being different; receiving a seventh request message, the seventh request message being sent by the electronic device when it receives a fifth query request... The message is sent during a second user operation on the fifth geographic location in the sixth interface; the fifth geographic location is sent to the electronic device, which is used by the electronic device to display the seventh interface; an eighth request message is received, which is sent by the electronic device when it receives a sixth query request based on a third historical record, which is displayed after the electronic device displays the seventh interface, and is associated with the fifth query request. The eighth request message is used to request search results related to the sixth query request; the fifth geographic location is sent to the electronic device, which is used by the electronic device to display the eighth interface, which is the same as the seventh interface.

[0042] In the method described above, when performing a map search, the third search result obtained by the electronic device includes multiple geographical locations, and the user selects the fifth geographical location. The corresponding third historical record displayed includes the sixth map region where the user-selected fifth geographical location is located. In this case, the search result obtained based on the third historical record is the fifth geographical location previously selected by the user, rather than the third search result. The user does not need to perform the operation of selecting the fifth geographical location again, further reducing user operations and making the search results more accurate.

[0043] In one possible implementation, the third historical record includes a third keyword and the sixth map area, and the third keyword is associated with the fifth query request.

[0044] In one possible implementation, the eighth request message includes the third keyword and the sixth map area.

[0045] In one possible implementation, the fifth geographical location and the sixth geographical location are within the map area indicated by the eighth map area, which includes the map area indicated by the sixth map area and the map area indicated by the seventh map area.

[0046] In one possible implementation, the electronic device displays a fourth historical record when displaying the third historical record. The fourth historical record includes information about a first point of interest (POI), which is the fifth geographic location. The information about the first POI includes the name of the fifth geographic location and the sixth map area.

[0047] In one possible implementation, the method further includes: receiving a ninth request message, the ninth request message being sent by the electronic device when it receives a seventh query request, the ninth request message being used to request search results related to the seventh query request; sending a fourth search result to the electronic device, the fourth search result being used by the electronic device to display a ninth interface, the fourth search result including a seventh geographical location related to the seventh query request; receiving a tenth request message, the tenth request message being sent by the electronic device when it receives a third user operation on the ninth interface targeting the seventh geographical location; sending the seventh geographical location to the electronic device, the seventh geographical location being used by the electronic device to display the tenth interface, the seventh geographical location being within the map range indicated by the ninth map area; and receiving an eleventh request message, the eleventh request message being sent by the electronic device when it receives a seventh query request. The eleventh request message is sent when the eighth query request is received. It is used to request search results related to the eighth query request. A fifth search result is sent to the electronic device, used to display an eleventh interface. The fifth search result includes the seventh geographical location related to the eighth query request. A twelfth request message is received when the electronic device receives a ninth query request based on a fifth historical record. The fifth historical record is displayed after the electronic device displays the eleventh interface and is associated with the seventh query request. The twelfth request message is used to request search results related to the ninth query request. The seventh geographical location is sent to the electronic device, used to display a twelfth interface, which is the same as the tenth interface.

[0048] In the above method, during the map query, the user performed multiple queries in a short period. In the first query, the user selected the seventh geographical location. The electronic device can then only display the fifth historical record corresponding to the first query. This can be understood as determining the displayed historical records based on whether the user selected a geographical location, avoiding the display of invalid or redundant historical records. This makes it more convenient for the user to view and reduces the storage pressure on the device. Furthermore, the search result obtained based on the fifth historical record is the seventh geographical location previously selected by the user, rather than the fourth or fifth search result, further reducing user operations and making the search results more accurate.

[0049] In one possible implementation, the fifth historical record includes the fourth keyword and the ninth map area, and the fourth keyword is associated with the seventh query request.

[0050] In one possible implementation, the twelfth request message includes the fourth keyword and the ninth map area.

[0051] In one possible implementation, the fourth keyword and the fifth keyword are different, and the fifth keyword is associated with the eighth query request.

[0052] In one possible implementation, before receiving the first request message, the method further includes: receiving a thirteenth request message, the thirteenth request message being sent by the electronic device when it receives a tenth query request, the thirteenth request message being used to request search results related to the tenth query request; and sending a sixth search result to the electronic device, the sixth search result being used by the electronic device to display a thirteenth interface, the sixth search result including at least one geographical location related to the tenth query request.

[0053] In the above method, if a user performs multiple queries within a short period during a map search, the electronic device can display only the first historical record corresponding to the most recent query. This means the displayed historical records are determined based on the query time, avoiding the display of invalid or redundant records, making it more convenient for the user and reducing the storage pressure on the device. Furthermore, the search results obtained based on the first historical record are the first search result from the user's most recent query, resulting in more accurate search results.

[0054] In one possible implementation, the method further includes: receiving a fourteenth request message, the fourteenth request message being sent by the electronic device when it receives an eleventh query request, the fourteenth request message being used to request search results related to the eleventh query request; sending a seventh search result to the electronic device, the seventh search result being used by the electronic device to display a fourteenth interface, the seventh search result including an eighth geographical location related to the eleventh query request; receiving a fifteenth request message, the fifteenth request message being sent by the electronic device when it receives a fourth user operation on the fourteenth interface targeting the eighth geographical location; sending the eighth geographical location to the electronic device, the eighth geographical location being used by the electronic device to display a fifteenth interface, the eighth geographical location being within the map range indicated by the tenth map area; receiving a sixteenth request message, the sixteenth request message being sent by the electronic device when it receives a twelfth query request based on a sixth historical record, the sixteenth request message being used to request search results related to the twelfth query request; sending an eighth geographical location to the electronic device, the eighth geographical location being used by the electronic device to display a sixteenth interface, the sixteenth interface being the same as the fifteenth interface.

[0055] In the above method, when performing a map query, the keywords entered by the user are different from the eighth geographical location selected by the user. The keywords included in the sixth historical record displayed by the electronic device may not be the keywords entered by the user, but may be related to the name of the eighth geographical location selected by the user. This can be understood as automatic error correction, reducing the impact of user input errors. The user no longer needs to perform the operation of selecting the eighth geographical location, further reducing user operations and making the search results more accurate.

[0056] In one possible implementation, the sixth historical record includes a sixth keyword and the tenth map area, the sixth keyword being associated with the name of the eighth geographic location.

[0057] In one possible implementation, the sixteenth request message includes the sixth keyword and the tenth map area.

[0058] Thirdly, this application provides a communication device, including a transceiver, a processor, and a memory, wherein the memory is used to store a computer program, and the processor calls the computer program to execute the map query method in any possible implementation of any aspect above.

[0059] Fourthly, this application provides a communication device including one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program code, including computer instructions. When the one or more processors execute the computer instructions, the communication device performs the map query method in any possible implementation of any of the above aspects.

[0060] Fifthly, embodiments of this application provide a computer storage medium storing a computer program, which, when executed by a processor, implements the map query method in any possible implementation of any of the above aspects.

[0061] Sixthly, embodiments of this application provide a computer program product that, when run on a computer, causes the computer to execute the map query method in any possible implementation of any of the above aspects. Attached Figure Description

[0062] The accompanying drawings used in the embodiments of this application are described below.

[0063] Figure 1A This is a schematic diagram of the architecture of a map query system provided in an embodiment of this application; Figure 1B This is an interactive schematic diagram of a map query system provided in an embodiment of this application; Figure 2A This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application; Figure 2B This is a schematic diagram of the software architecture of an electronic device provided in an embodiment of this application; Figure 2C This is a schematic diagram of the hardware structure of a network device provided in an embodiment of this application; Figure 3 This is a schematic diagram of a history recording interface provided in an embodiment of this application; Figure 4A This is a schematic diagram of an interface for querying behavior provided in an embodiment of this application; Figure 4B This is another schematic diagram of a history recording interface provided in an embodiment of this application; Figure 4C This is a schematic diagram of an interface for adjusting the displayed image area provided in an embodiment of this application; Figure 5A This is a schematic diagram of another query behavior provided in the embodiments of this application; Figure 5B This is another schematic diagram of a history recording interface provided in an embodiment of this application; Figure 6A This is a schematic diagram of another query behavior provided in the embodiments of this application; Figure 6B This is another schematic diagram of a history recording interface provided in an embodiment of this application; Figure 6C This is another schematic diagram of a history recording interface provided in an embodiment of this application; Figures 7A-7C These are schematic diagrams of interfaces illustrating some of the query behaviors provided in the embodiments of this application; Figure 7D This is another schematic diagram of a history recording interface provided in an embodiment of this application; Figure 7E This is a schematic diagram of another query behavior provided in the embodiments of this application; Figure 7F This is another schematic diagram of a history recording interface provided in an embodiment of this application; Figure 8 This is a flowchart illustrating a map query method provided in an embodiment of this application; Figure 9 This is a flowchart illustrating another map query method provided in an embodiment of this application; Figure 10 This is a flowchart illustrating another map query method provided in the embodiments of this application. Detailed Implementation

[0064] The terminology used in the description of this application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used herein in the specification of the invention and the appended claims, the singular expressions “a,” “an,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.

[0065] First, let's introduce the concepts related to this application.

[0066] A query, also known as a "search" or "retrieval," can be understood as starting from a user's information needs and using technical means to find information (i.e., query results) that matches those needs from an information set according to certain rules. The user's information needs are, for example, determined based on the query statement entered by the user. In this application, the query is implemented on a map; therefore, the information set can be a collection of geographical locations, generally a map area, referred to as the query map area. Typically, map applications on electronic devices have preset default map areas, such as the currently located city, and search within these default map areas for geographical locations related to the user's query statement. The query results can be geographical locations.

[0067] In this application, any geographical location can be a point of information (POI). In a geographic information system, a POI can be any entity, such as a building, a shop, a bus stop, a mailbox, etc. Each POI includes, but is not limited to, at least one of the following information: name, coordinates, and category, wherein the coordinates are in the form of, but are not limited to, latitude and longitude.

[0068] In this application, any map area representing a geographical location can indicate the map extent that includes that geographical location. The same geographical location can belong to map areas of different levels. The higher the level of the map area, the larger the geographical area it indicates. A higher-level map area can include lower-level map areas. For example, the map areas to which the geographical location "Gulou District, Nanjing City" belongs, in descending order of level, are "China", "Jiangsu Province", "Nanjing City", and "Gulou District, Nanjing City". In some embodiments, the map area representing a geographical location is the map area of ​​the lowest level that includes that geographical location. For example, the map area representing the geographical location "Gulou District, Nanjing City" is "Gulou District, Nanjing City". For ease of explanation, this application uses any map area representing a geographical location as the lowest level map area, and the lowest level map area being a certain area under a certain city to which that geographical location belongs, as an example for illustration.

[0069] The query statements entered by the user can take, but are not limited to, text, images, voice, video, and motion gestures. For ease of explanation, this application uses text as an example; other forms are similar, and can be understood as converting any form of input information into text information for processing. The query statements in this application can also be referred to as keywords.

[0070] The following describes a map query system 10 based on an embodiment of this application.

[0071] Figure 1A An exemplary schematic diagram of the architecture of a map query system 10 provided in an embodiment of this application is shown.

[0072] like Figure 1A As shown, the map query system 10 may include an electronic device 100 and a network device 200. The electronic device 100 may communicate with the network device via wired (e.g., universal serial bus, twisted pair, coaxial cable, and fiber optic cable) or wireless (e.g., wireless local area networks, Bluetooth, and mobile device networks).

[0073] The electronic device 100 can be a mobile terminal such as a mobile phone, tablet computer, handheld computer, or personal digital assistant (PDA); a smart home device such as a smart TV or smart camera; a wearable device such as a smart bracelet, smartwatch, or smart glasses; or other desktop, laptop, notebook, ultra-mobile personal computer (UMPC), netbook, or smart screen device. This application does not impose any special restrictions on the specific type of electronic device 100.

[0074] The network device 200 may include at least one server. In some embodiments, any one of the servers may be a hardware server, and in some embodiments, any one of the servers may be a cloud server.

[0075] In some embodiments, electronic device 100 can communicate with network device 200 based on a browser / server (B / S) architecture or a client / server (C / S) architecture. Electronic device 100 can receive a query request input by a user and send a request message to network device 200 to obtain search results (at least one geographical location) related to the query request. After receiving the search results sent by network device 200, electronic device 100 can display the search results.

[0076] Figure 1B An interactive schematic diagram of a map query system 10 provided in an embodiment of this application is shown as an example.

[0077] like Figure 1B As shown, the electronic device 100 in the map query system 10 may include an application (e.g., a map application) and a model module. The network device 200 in the map query system 10 may include a search module, wherein: The application program of electronic device 100 can be used to receive keywords input by the user and query requests based on those keywords. In some embodiments, the application program can send a request message to the search module of network device 200, which is used to obtain search results related to the query request. In some embodiments, the application program can record the behavior sequence of the map query corresponding to this query request, such as information like keywords input by the user, and send the behavior sequence to the model module of electronic device 100.

[0078] When the search module of network device 200 receives a request message from the application of electronic device 100, it can obtain relevant search results based on the request message. In some embodiments, the search module can obtain at least one geographical location related to the aforementioned keywords within the current map area (such as the city where electronic device 100 is currently located). The search module of network device 200 can then send the obtained search results to the application of electronic device 100.

[0079] After receiving the search results sent by the search module of the network device 200, the application of the electronic device 100 can display the search results.

[0080] After receiving a map query behavior sequence sent by an application, the model module of electronic device 100 can generate a historical record corresponding to the behavior sequence. This historical record may include keywords from the behavior sequence and a map area showing the target location corresponding to the behavior sequence. In some embodiments, the model module can predict the target location corresponding to the behavior sequence, for example, by using the behavior sequence as input to an intent model to obtain the output target location. In other embodiments, the model module can determine the search results corresponding to the behavior sequence as the corresponding target location. The model module can send the generated historical record to the application.

[0081] After receiving the history record sent by the model module, the application of electronic device 100 can display the history record.

[0082] In one possible implementation, the application of electronic device 100 can also be used to receive user-input queries based on historical records. The application can send a request message to the search module of network device 200. When the search module of network device 200 receives the request message from the application of electronic device 100, it can retrieve at least one search result related to the keywords included in the historical record within the image area, that is, retrieve the search results related to the query request. The search module of network device 200 can then send the retrieved search results to the application of electronic device 100, and the application can display the search results.

[0083] In one possible implementation, the electronic device 100 in the map query system 10 may also include a log module, which is used to receive the map query behavior sequence sent by the application and to perform time-domain segmentation on the behavior sequence. For example, behavior sequences with query times within the same preset time period belong to the same time domain.

[0084] In some embodiments, the network device 200 in the map query system 10 may further include a training module. The log module can send the time-segmented behavior sequences to the training module, which can train an intent model and / or a satisfaction model based on the received behavior sequences. The training module of the network device 200 can send the intent model and / or satisfaction model to the model module of the electronic device 100, for example, at preset intervals, or when a version update occurs. The intent model is used to obtain the target location corresponding to any behavior sequence, and the target location is used to determine the historical record corresponding to the behavior sequence, such as the map area of ​​the target location. The satisfaction model is used to obtain the satisfaction level corresponding to at least one behavior sequence, and the satisfaction level is used to determine whether to display the historical record corresponding to the behavior sequence.

[0085] In some embodiments, the log module can send the time-domain segmented behavior sequence to the model module. After receiving the intent model and / or satisfaction model sent by the training module of the network device 200, the model module of the electronic device 100 can train the intent model and / or satisfaction model itself based on the received behavior sequence.

[0086] In some embodiments, after receiving the time-domain segmented behavior sequence sent by the log module, the model module can use the behavior sequence as input to the intent model to obtain the target location of the output. Then, it can determine whether there is a behavior sequence with the same target location as the behavior sequence and belonging to the same time domain. If there is, it can determine whether to display the historical record corresponding to the behavior sequence based on the satisfaction level corresponding to the behavior sequence. For example, if the satisfaction level corresponding to the behavior sequence is higher, it can determine whether to display the historical record corresponding to the behavior sequence. The satisfaction level corresponding to the behavior sequence is the output obtained by using the behavior sequence as input to the satisfaction model.

[0087] The following describes an exemplary electronic device provided in the embodiments of this application.

[0088] Please see Figure 2A , Figure 2A A schematic diagram of the structure of an electronic device 100 is shown.

[0089] Electronic device 100 may include processor 110, external memory interface 120, internal memory 121, USB interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0090] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0091] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.

[0092] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.

[0093] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0094] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0095] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0096] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.

[0097] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.

[0098] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0099] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.

[0100] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0101] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.

[0102] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including WLAN (such as Wi-Fi), Bluetooth, GNSS, frequency modulation (FM), near-field communication (NFC), and infrared (IR). The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0103] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0104] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0105] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.

[0106] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0107] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and color. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0108] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0109] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0110] Internal memory 121 can be used to store computer executable program code, which includes instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 110 executes various functional applications and data processing of electronic device 100 by running instructions stored in internal memory 121 and / or instructions stored in memory located in the processor.

[0111] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0112] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.

[0113] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.

[0114] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.

[0115] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Electronic device 100 may have at least one microphone 170C. In some embodiments, electronic device 100 may have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 100 may also have three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.

[0116] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be disposed on display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the intensity of the touch operation based on pressure sensor 180A. Electronic device 100 can also calculate the touch position based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example, when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS is executed.

[0117] Touch sensor 180K, also known as a "touch device," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touchscreen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of electronic device 100, in a different position than display screen 194.

[0118] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.

[0119] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. For example, a layered architecture software system can be the Android system, the Huawei Mobile Services (HMS) system, or other software systems. This application embodiment uses the layered architecture Android system as an example to illustrate the software structure of electronic device 100.

[0120] Figure 2B This is a software structure block diagram of the electronic device 100 according to an embodiment of this application.

[0121] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.

[0122] The application layer can include a series of application packages.

[0123] like Figure 2B As shown, the application package can include applications such as camera, calendar, music, gallery, SMS, call, map, Bluetooth, and browser.

[0124] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0125] like Figure 2B As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0126] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.

[0127] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0128] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0129] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).

[0130] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0131] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.

[0132] The Android runtime consists of core libraries and a virtual machine. The Android runtime is responsible for scheduling and managing the Android system.

[0133] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0134] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0135] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0136] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0137] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0138] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0139] A 2D graphics engine is a graphics engine for 2D drawing.

[0140] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.

[0141] The following example, using a map query scenario, illustrates the workflow of the software and hardware of electronic device 100.

[0142] When touch sensor 180K receives a touch operation, a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, timestamp of the touch operation, etc.). The raw input event is stored in the kernel layer. The application framework layer retrieves the raw input event from the kernel layer and identifies the control corresponding to the input event. Taking a touch click as an example, where the corresponding control is the control indicating history record 1 in the map application, the map application calls the interface of the application framework layer to obtain the geographical locations related to the keywords included in history record 1 within the map area indicated by history record 1. Then, it calls the kernel layer to start the display driver and displays the aforementioned geographical locations on the display screen 194.

[0143] The following describes an exemplary network device provided in the embodiments of this application.

[0144] Please see Figure 2C , Figure 2C A schematic diagram of the structure of a network device 200 is shown.

[0145] like Figure 2C As shown, the network device 200 may include one or more processors 201, communication interfaces 202, and memory 203. The processors 201, communication interfaces 202, and memory 203 can be connected via a bus or other means. This embodiment of the application takes a connection via bus 204 as an example. Wherein: The processor 201 may consist of one or more general-purpose processors, such as a CPU. The processor 201 can be used to run program code related to the device control method.

[0146] The communication interface 202 can be a wired interface (e.g., an Ethernet interface) or a wireless interface (e.g., a cellular network interface or a wireless LAN interface) for communicating with other nodes. In this embodiment, the communication interface 202 is specifically used to communicate with the electronic device 100.

[0147] Memory 203 may include volatile memory, such as RAM; it may also include non-volatile memory, such as ROM, flash memory, HDD, or SSD. Memory 203 may also include combinations of the above types of memory. Memory 203 can be used to store a set of program code so that processor 201 can call the program code stored in memory 203 to implement the server-side implementation method of the embodiments of this application. In the embodiments of this application, memory 203 may also be a storage array, etc.

[0148] In some embodiments, the network device 200 may include multiple servers, such as web servers, backend servers, download servers, etc., and the hardware structure of these multiple servers can be referred to Figure 2C The hardware structure of the network device 200 shown.

[0149] It needs to be explained that, Figure 2C The network device 200 shown is merely one implementation of the embodiments of this application. In actual applications, the network device 200 may include more or fewer components, which is not limited here.

[0150] The following describes the application scenarios involved in the embodiments of this application and the user interface embodiments under these scenarios.

[0151] Please see Figure 3 , Figure 3 An example diagram of a user interface is shown.

[0152] like Figure 3 As shown, the electronic device can display a user interface 300 for a map application. The user interface 300 may include a search bar 310, a history log 320, and a clear control 330, wherein: Search bar 310 may include search box 310A and search control 310B. Search box 310A can be used to receive keywords entered by the user, such as the characters "search location", to prompt the user to enter keywords. Search control 310B can be used to trigger the execution of a query. The electronic device can receive touch operations (such as click operations) applied to search control 310B, and in response to the touch operation, search for relevant geographical locations within a preset default map area based on the keywords entered by the user. The above process can be understood as a query behavior. After a query behavior, the electronic device can record the keywords entered by the user and display them to the user, for example, by displaying the keywords searched by the user through history 320.

[0153] For ease of explanation, this application embodiment uses the city where the electronic device is located as the default map area for illustration.

[0154] History record 320 displays keywords queried by the user. Each history record can include an icon and characters. The characters represent the keywords queried by the user, and the icon indicates the type of the keyword. Keyword types can include queries and Points of Interest (POIs). Keywords of type query are the user-inputted query statements. Keywords of type POI are the names of the corresponding POIs, which are pre-stored geographical locations on the electronic map, such as a bus stop or a shop. For example, history record 320 includes records 321 and 322, where: Record 321 includes an icon 321A and a character 321B. Icon 321A indicates that the keyword in record 321 is a query, and character 321B is the content of the keyword: "Gulou". In other words, record 321 can represent the user's historical query behavior of the keyword "Gulou" with the query type "query". In some embodiments, the electronic device can receive the query statement "Gulou" entered by the user through the search box 310A and receive the touch operation (e.g., click operation) applied to the search control 310B. In response to the user operation, the electronic device retrieves search results related to "Gulou". After such a query behavior, the electronic device can record the query statement entered by the user, save and display record 321.

[0155] Record 322 includes an icon 322A and a character 322B. Icon 322A indicates that the type of record 322 is POI, and character 322B is the name of the POI, "Nanjing First Hospital Main Campus". A POI is a record of geographical location information obtained by a map application from a server, used to describe the location identifier of a certain geographical location. That is, record 322 can represent the user's historical query behavior of the keyword "Nanjing First Hospital Main Campus" with the type of POI. In some embodiments, the electronic device can receive a query statement entered by the user through the search box 310A. At this time, multiple search results related to the query statement can be displayed. Then, the electronic device can receive a touch operation (e.g., a click operation) applied to one of these multiple search results. This search result is the POI named "Nanjing First Hospital Main Campus". In response to the touch operation, the detailed information of the POI is displayed. After such a query behavior, the electronic device can record the name of the POI, save and display record 322. This situation can be understood as the user directly querying the POI. Not limited to this, in other embodiments, after the electronic device receives a query statement entered by the user through the search box 310A, it may first receive a touch operation (e.g., a click operation) applied to the search control 310B. Only in response to the user's operation will it display multiple search results related to the query statement. The subsequent process is the same and will not be described again. This can be understood as the user first performing a query and selecting a POI obtained from that query.

[0156] Figure 3 The historical records shown are merely examples and should not be construed as limiting this application. Similar scenarios exist for users entering other query statements, and will not be elaborated upon further.

[0157] Not limited to the examples above, in other examples, POIs can include multiple types, such as subway stations, restaurants, scenic spots, etc. The icons in the history can have many different forms to represent the above multiple types. For example, when the icon is in the shape of a cross, it represents the keyword type as POI and restaurant. This application does not limit this.

[0158] The clear control 330 is used to delete the history of queries. The electronic device can respond to a touch operation (such as a click) applied to the clear control 330 to delete all records queried by the user based on the map application (i.e., the information included in the history 320), and the user interface displayed at this time will not include the history 320.

[0159] Understandably, electronic devices can receive user actions applied to any historical record. In response to these actions, they can search for geographical locations related to the keywords included in that historical record within the default map area. For example, assuming a user's historical query type is the keyword "Gulou" (corresponding to record 321), and the electronic device is located in Nanjing, the search results will include at least one geographical location within the current default map area "Nanjing City" related to the keyword "Gulou," let's say a POI named "Nanjing City Gulou District." When the electronic device is located in Wuhan, it can receive user actions applied to record 321. In response, it will retrieve at least one geographical location within the current default map area "Wuhan City" related to the keyword "Gulou," instead of the POI named "Nanjing City Gulou District." If the user wants to get the previous search results (the POI named "Nanjing City Gulou District"), they need to switch the map area to "Nanjing City," which is a complex operation. In other words, when searching based on the history of map applications, it is very likely that the results of previous searches cannot be accurately reproduced, which cannot meet the user's search needs. If the results of previous searches need to be reproduced, the user has to perform cumbersome query operations, which puts a heavy burden on the device's processing power and results in a poor user experience.

[0160] In this application, for a query request based on any historical record, the electronic device can obtain search results that include the keywords previously used to query that historical record. The search results are more accurate, and users no longer need to perform cumbersome query operations, which improves the user experience and reduces the processing pressure on the device.

[0161] Scenario 1: Suppose a user wants to search for the Drum Tower in Nanjing. When the electronic device is located in Nanjing (i.e., the default map area is "Nanjing"), the user can enter the query "Drum Tower" and search. See the example below for details. Figure 4A , Figure 4A An example of a query behavior interface diagram is shown.

[0162] like Figure 4A As shown in the left figure, the electronic device can display a user interface 400 for a map application. The user interface 400 includes a search bar 401, which includes a search box 401A and a search control 401B. (Detailed description follows.) Figure 3The search box 310A and search control 310B in the user interface 300 shown are similar, except that the search box 401A includes the characters of the user's currently entered query "Gulou". The user interface 400 also includes a preview list 402, which displays geographical locations within Nanjing related to the query "Gulou" in the search box 401A. For example, in top-to-bottom order, these locations are: location 402A named "Gulou District", location 402A named "Gulou Hospital - Outpatient Department", and location 402A named "Gulou Park". The electronic device can receive touch operations (e.g., click operations) applied to the search control 310B. In response to this touch operation, search results related to the query "Gulou" within Nanjing are retrieved. Optionally, the first geographical location 402A in the preview list 402 is displayed. See [link to relevant documentation] for details. Figure 4A The image on the right.

[0163] like Figure 4A As shown in the right figure, the electronic device can display a user interface 410 for a map application. The user interface 410 includes a search result named "Gulou District, Nanjing City" (which is also a geographic location), which can be simply referred to as the search result "Gulou District, Nanjing City" or the geographic location "Gulou District, Nanjing City". Figure 4A The left figure shows the geographic location 402A in the user interface 400. The user interface 410 may include a search bar 411, a map view 412, and location information 413, wherein: The search bar 411 may include a back control 411A, a search box 411B, and a cancel control 411C. The back control 411A is used to return to the previous screen, for example... Figure 4A The user interface 400 is shown in the left figure. The search box 411B and... Figure 4A The search box 401A in the user interface 400 shown in the left figure is similar. The cancel control 411C can be used to cancel the current search, and optionally can also be used to return to the previous screen or the home page of the map application.

[0164] Map view 412 is the map area currently displayed by the user interface. Location range 412A and location identifier 412B are used to display the location of the search result "Gulou District, Nanjing City" on the map. Location identifier 412B is located within location range 412A and includes the characters "Gulou District," which can represent the map range indicated by location range 412A for this geographical location. In some embodiments, the electronic device can display a default map area on the user interface, and the default map area is different for different geographical locations. For example, map view 412 in user interface 410 is the default map area when the electronic device displays the geographical location "Gulou District, Nanjing City." The size and position of the map area displayed by the user interface can be adjusted. It should be noted that the size of the area used to display the map area is usually fixed (which can be understood as the size of the user interface being fixed). Therefore, adjusting the size of the map area displayed by the user interface is actually adjusting the map range indicated by that map area.

[0165] In some embodiments, the electronic device can receive a two-finger zoom-out gesture (such as a gesture of swiping two fingers inwards simultaneously) applied to the user interface 410, and in response to this gesture, the map area view 412 is zoomed out, at which time the map area indicated by the map area view 412 becomes larger. In other embodiments, the electronic device can receive a two-finger zoom-in gesture (such as swiping two fingers outwards simultaneously) applied to the user interface 410, and in response to this gesture, the map area view 412 is zoomed out, at which time the map area indicated by the map area view 412 becomes smaller. In other embodiments, the electronic device can receive a drag operation applied to the user interface 410, and in response to this operation, the position of the map area view 412 on the map is adjusted.

[0166] Location information 413 may include the name 413A of the geographical location (including the characters "Gulou District, Nanjing City"). Location information 413 can be used to display detailed information about the geographical location "Gulou District, Nanjing City", such as the weather conditions, navigation controls, surrounding geographical information, etc., wherein the navigation controls can be used to obtain navigation information for destinations of this geographical location.

[0167] In some embodiments, in the above Figure 4A After the operation, the electronic device can display the historical record corresponding to this query, which includes the query keyword "Gulou" and the image area of ​​the search result "Gulou District, Nanjing City". See the example below. Figure 4B .

[0168] like Figure 4B As shown, the electronic device can display a user interface 430 for a map application, which is used to display the history of map queries. The user interface 430 may include records 431, which may include icons 431A, characters 431B, and map areas 431C. Icons 431A and characters 431B... Figure 3The user interface 300 shown includes records 321, such as icons 321A and characters 321B, which indicate the behavior of the user's historical query type for the keyword "Gulou" in record 431. Image area 431C is used to indicate the image area of ​​the search results "Nanjing City Gulou District" obtained from the user's historical query "Gulou". This allows users to quickly obtain image area information of historical query results through the history, assisting them in selecting the desired historical records for further querying, making user operation more convenient.

[0169] In some embodiments, in the above Figure 4A After the operation, when the electronic device is located in a city other than "Nanjing" (let's say Beijing), the electronic device can display historical records, for example... Figure 4B The user interface 430 shows a record 431. The electronic device can receive touch operations (e.g., click operations) applied to the record 431. In response to the touch operation, it displays the geographical location related to the map area "Gulou District, Nanjing City" indicated by map area 431C and the keyword "Gulou" indicated by character 431B, i.e., the geographical location "Gulou District, Nanjing City". For example, it displays the map area 431C. Figure 4A The user interface 410 shown in the right figure does not display search results related to "Beijing" and "Gulou". In other words, when the electronic device searches based on the history of the map application, it can accurately reproduce the geographical location searched previously, "in one step", without additional user operation, reducing the processing load on the device.

[0170] In some embodiments, in the above Figure 4A After the operation, when the electronic device displays search results related to the keywords entered by the user, it can respond to the user's operation by zooming in or out of the currently displayed image area. See details in [link to relevant documentation]. Figure 4C .

[0171] like Figure 4C As shown in the left image, the electronic device displays... Figure 4A When the user interface 410 shown in the right figure is received, a two-finger zoom-out gesture is received on the user interface 410. In response to the gesture, the view area 412 is zoomed out. For details, please refer to [link to relevant documentation]. Figure 4C The image on the right.

[0172] like Figure 4C As shown in the right figure, the electronic device can display a user interface 440 for a map application. The user interface 440 is similar to the user interface 410, except that the map area view 441 in the user interface 440 is a reduced map area view, and the map area indicated by the map area view 441 is larger than the map area indicated by the map area view 412 in the user interface 410.

[0173] In some embodiments, in the above Figure 4CAfter the operation, the electronic device can record Figure 4A The historical records corresponding to the query behavior shown, and Figure 4C The image area displayed after the operation shown includes the image areas for the query keyword "Gulou" and the search results "Gulou District, Nanjing". See the example below for details. Figure 4B Record 431 in the user interface 430 shown, Figure 4C The image area displayed by the electronic device after the operation shown is the image area view 441 in the user interface 440.

[0174] In some embodiments, when an electronic device displays a search result obtained based on any historical record query, the displayed image area is the image area corresponding to that historical record. The image area corresponding to that historical record can be a zoomed-in image area, a zoomed-out image area, or a dragged image area.

[0175] For example, in the above Figure 4C After the operation, when the electronic device is located in a city other than "Nanjing" (let's say Beijing), the electronic device can display historical records, for example... Figure 4B The user interface 430 shows a record 431. The electronic device can receive touch operations (e.g., click operations) applied to the record 431. In response to the touch operation, the geographical location "Gulou District, Nanjing City" is displayed according to the map area corresponding to the record 431. For example, the map area corresponding to the record 431 is a zoomed-out view. Figure 4C The right-hand image shows the map area view 441 in the user interface 440, and the electronic device can display the user interface 440. That is to say, when this application searches based on the history of the map application, it can not only accurately reproduce the previously searched geographical location, but also accurately reproduce the map area displayed when the geographical location was most recently displayed, further reducing user operations (such as at least one input of a two-finger pinch gesture) and improving the user experience.

[0176] Scenario 2: Suppose a user wants to search for parks within Beijing. When the electronic device is located in Beijing, i.e., the default map area is "Beijing," the user can enter the query "parks" and search. See the example below. Figure 5A , Figure 5A An example diagram of another query behavior is shown.

[0177] like Figure 5A As shown in the left figure, the electronic device can display the user interface 400 of a map application, and the user interface 400 and Figure 4A The user interface shown in the left image is similar to that of 400, the difference being that... Figure 5A In the user interface 400 shown in the left figure, the search box 401A contains the characters of the user's currently entered query "park", and Figure 5A The user interface 400 shown in the left figure does not include the preview list 402. The electronic device can receive touch operations (e.g., click operations) applied to the search control 310B, and in response to such touch operations, retrieve search results related to the query "parks" within Beijing. See [link to details]. Figure 5A The image on the right.

[0178] like Figure 5A As shown in the right figure, the electronic device can display a user interface 510 for a map application. The user interface 510 includes geographical locations within Beijing whose names include "parks". The user interface 510 may include a search bar 511, a map view 512, and a search results list 513, wherein: Search bar 511 and Figure 5A The search box 401A in the user interface 400 shown in the left figure is similar.

[0179] Map view 512 and Figure 4A Similar to the map view 412 in the user interface 410 shown in the right figure, the difference is that the map view 512 is the map area displayed when the electronic device displays multiple geographical locations in Beijing whose names include "park". The map view 512 displays multiple location markers, which are used to show the location of these multiple geographical locations on the map. For example, location marker 512A is used to show the location of the geographical location "Xiangshan Park" on the map, and can be simply referred to as location marker 512A corresponding to the geographical location "Xiangshan Park". Similarly, location marker 512B corresponds to the geographical location "Beihai Park", and location marker 512C corresponds to the geographical location "World Park".

[0180] Search results list 513 is used to display summary information of multiple geographical locations in Beijing whose names include "park," such as search results 5131, 5132, and 5133. Search result 5131 may include name 5131A and map area 5131B. Name 5131A contains the characters for the name of the geographical location indicated by search result 5131, "Xiangshan Park," and map area 5131B contains the characters for the map area "Haidian District" of the geographical location indicated by search result 5131. The geographical location indicated by search result 5131 is the same as the geographical location "Xiangshan Park" corresponding to location identifier 512A. Similarly, search result 5132 includes name 5132A and map area 5132B, which can represent the geographical location "Beihai Park" indicated by search result 5132 (i.e., the geographical location corresponding to location identifier 512B), and the map area for this geographical location is "Xicheng District." Search result 5133 includes name 5133A and map area 5133B, which can represent the geographical location "World Park" indicated by search result 5133 (that is, the geographical location corresponding to location identifier 512C), and the map area of ​​this geographical location is "Fengtai District".

[0181] In some embodiments, in the above Figure 5A After the operation, the electronic device can display the historical record corresponding to this query. This historical record includes the keyword "park" and a map area of ​​the search results (geographical locations of multiple parks in Beijing whose names include "park"). See the example below. Figure 5B .

[0182] like Figure 5B As shown, the electronic device can display a user interface 520 for a map application, which displays the history of map queries. The user interface 520 may include records 521, which include icons 521A, characters 521B, and map areas 521C. Icons 521A, characters 521B, and... Figure 3 The user interface 300 shown includes records 321, which include icons 321A and characters 321B, similar to these, indicating the behavior of the user's historical query type for the keyword "park". Image area 521C indicates the image area of ​​the search results obtained from the user's historical query for "park" (multiple geographical locations within Beijing whose names include "park"): "Beijing". This application uses the image area of ​​multiple geographical locations as an example, which is the smallest image area including the image areas corresponding to each of these geographical locations. For example, the multiple geographical locations within Beijing whose names include "park" are: Xiangshan Park, Beihai Park, and World Park, with their corresponding image areas being "Haidian District", "Xicheng District", and "Fengtai District" respectively. Assuming the smallest image area including these three image areas is "Beijing", image area 521C includes the characters "Beijing". In this way, users can quickly obtain the image area information of the search results from historical queries through the history, assisting users in selecting the desired historical records for querying, making user operation more convenient.

[0183] In some embodiments, in the above Figure 5A After the operation, when the electronic device is located in a city other than "Beijing" (let's say Wuhan), the electronic device can display historical records, for example... Figure 5B The user interface 520 shown contains a record 521. The electronic device can receive touch operations (e.g., click operations) applied to the record 521. In response to this touch operation, it displays the geographic locations within the map area 521C indicated by the map region "Beijing" and the keyword "park" indicated by the character 521B. Specifically, it displays multiple geographic locations within Beijing whose names include "park," for example, showing... Figure 5A The user interface 510 shown in the right figure does not display search results related to "Wuhan City" and "parks", making the search results more accurate and meeting user needs.

[0184] Scenario 3: In the above Figure 5A After the operation, the user Figure 5A The user interface 510 shown in the right figure (also shown as) Figure 6A (See the left image). You can select a geographic location from the search results above (let's assume it's a POI named "Xiangshan Park"). See the example below for details. Figure 6A .

[0185] In some embodiments, the electronic device may display detailed information about a POI named "Fragrant Hills Park" in response to a touch operation on a location identifier 512A in the user interface 510. In other embodiments, the electronic device may display detailed information about a POI named "Fragrant Hills Park" in response to a touch operation on a search result 5131 in the user interface 510. See also... Figure 6A The image on the right.

[0186] like Figure 6A As shown in the right figure, the electronic device can display a user interface 620 for a map application. The user interface 620 includes a Point of Interest (POI) selected by the user, named "Xiangshan Park". The user interface 620 may include a search bar 621, a map view 622, and location information 623, wherein: Search bar 621 and Figure 4A Similar to the search bar 411 in the user interface 410 shown in the right figure, the difference is that the search box 621A of the search bar 621 displays the keyword currently being searched by the user, which is the name of the POI selected by the user: "Xiangshan Park".

[0187] Map view 622 and Figure 4A Similar to the map view 412 in the user interface 410 shown in the right figure, the difference is that the map view 622 is the map area displayed when the electronic device displays the geographical location "Xiangshan Park". The map view 622 displays the location range 622A and the location marker 622B, which are similar to the location range 412A and the location marker 412B in the user interface 410, and are used to show the location of the geographical location "Xiangshan Park" on the map.

[0188] Location information 623 may include a name 623A and a map area 623B. The name 623A contains the characters for the geographical location "Xiangshan Park": "Xiangshan Park". The map area 623B contains the characters for the geographical location "Xiangshan Park": "Haidian District, Beijing". Location information 623 can be used to display detailed information about the geographical location "Xiangshan Park", such as its opening hours, navigation controls, etc. The navigation controls can be used to obtain navigation information for destinations of this geographical location.

[0189] In some embodiments, in the above Figure 6AAfter the operation, the electronic device can display the historical records corresponding to these two query behaviors, one of which includes... Figure 5A The query behavior shown includes the keyword "park", and the user's... Figure 6A The query behavior shown includes the selected POI "Xiangshan Park" map area, and another historical record includes... Figure 6A The query behavior shown includes the name of the POI (also the keyword) "Xiangshan Park" and the map area of ​​that POI. For details, please refer to [link / reference]. Figure 6B .

[0190] like Figure 6B As shown, the electronic device can display a user interface 630 for a map application, which displays the history of map queries. The user interface 630 may include records 631 and 632. Record 631 was queried later than record 632, therefore, record 631 is displayed in a more prominent position than record 632. Record 631 includes an icon 631A, characters 631B, and a map area 631C. Icon 631A, characters 631B, and... Figure 3 The user interface 300 shown includes records 322 with icons 322A and characters 322B, which can indicate the user's historical query type of POI for the keyword "Xiangshan Park" in record 631. Figure 6A The query behavior shown. Image area 631C indicates the image area for the user's historical query for the POI named "Xiangshan Park": "Haidian District, Beijing". Records 632 and... Figure 5B The user interface 520 shown is similar to record 521, except that record 632 includes map area 632A indicating the map area of ​​POI "Xiangshan Park" selected by the user from the search results after the user's historical query for "park": "Haidian District, Beijing". Figure 6B In this context, because the user previously queried "park" (corresponding to record 632) and then selected only one of the multiple geographic locations obtained from the query (i.e., "Xiangshan Park") (corresponding to record 631), the electronic device can assume that the user performed an action. Figure 5A and Figure 6A The two queries shown are targeting the POI "Xiangshan Park". Figure 5A The query behavior shown corresponds to record 632 in image area 632A and... Figure 6A The query behavior shown corresponds to the same map area 631C for record 631, both indicating the map area of ​​POI "Xiangshan Park".

[0191] In some embodiments, in the above Figure 6A After the operation, when the electronic device is located in a city other than "Beijing" (let's say Wuhan), the electronic device can display the historical records corresponding to the POI selected by the user, for example... Figure 6B The user interface 630 shown contains a record 631. The electronic device can receive touch operations (e.g., click operations) applied to the record 631. In response to the touch operation, it displays the geographical location related to the map area "Haidian District, Beijing" indicated by map area 631C and the keyword "Xiangshan Park" indicated by character 631B, i.e., the geographical location "Xiangshan Park". For example, it displays... Figure 6A The user interface 620 shown in the right figure does not display search results related to "Wuhan City" and "Xiangshan Park", making the search results more accurate and meeting user needs.

[0192] In some embodiments, in the above Figure 6A After the operation, when the electronic device is located in a city other than "Beijing" (let's say Wuhan), the electronic device can display historical records, for example... Figure 6B The user interface 630 shown contains a record 632. The electronic device can receive touch operations (e.g., click operations) applied to the record 632. In response to this touch operation, it displays the geographic locations within the map area 632A indicated by "Haidian District, Beijing" and related to the keyword "park" included in the record 632. Specifically, it displays geographic locations within "Haidian District, Beijing" whose names include "park," for example, showing... Figure 6A The user interface 620 shown in the right figure does not display search results related to "parks" in "Wuhan City" or in other areas of "Beijing City" except "Haidian District". The search results are more accurate and meet the needs of users.

[0193] In some embodiments, when the geographic location obtained by the electronic device when receiving a query request based on record 631 is the same as the geographic location obtained when the electronic device receives a query request based on record 632 (e.g., both are the geographic location "Xiangshan Park"), only record 631 or only record 632 can be displayed. This removes redundant historical records (also known as deduplication), making the historical records more concise, facilitating user selection of the desired historical records, and reducing the storage pressure on the device. In one case, only records with the keyword type "query" can be displayed by default, such as record 632. In another case, only records with the keyword type "POI" can be displayed by default, such as record 631. In yet another case, only the record with the latest query time can be displayed by default, such as record 631. However, this application is not limited to these limitations; it may also display only the record with the latest query time among records with the keyword type "query," such as record 632.

[0194] Not limited to the examples above, in other examples, record 632 includes map area 632A indicating the map area of ​​the POI that the user selected most recently from the search results after a historical query for "park". For example, after a user's historical query for "park", the electronic device displays... Figure 5A The user interface 510 shown in the right figure shows that the user not only selected the POI "Xiangshan Park" from the search results, but also selected the POI "Xiangshan Park" at the latest time (also known as the latest query time). The map area 632A included in the record 632 indicates the map area of ​​the POI "Xiangshan Park".

[0195] In some other examples, beyond the examples above, electronic devices display information after a user has previously searched for "parks". Figure 5A As shown in the right-hand image of user interface 510, if the user selected not only the POI "Xiangshan Park" from the search results, but also the POI "Beihai Park", the history displayed on the electronic device can be found in [link to relevant documentation]. Figure 6C .

[0196] like Figure 6C As shown, the electronic device can display a user interface 640 for a map application, which displays the history of map queries. User interface 640 and... Figure 6B The user interface 630 shown is similar, except that the user interface 640 also includes a record 633, which includes an icon 633A, a character 633B, and a graphic area 633C. The icon 633A and character 633B are similar to... Figure 3 The user interface 300 shown includes records 322, which, like icons 322A and characters 322B, indicate the user's historical query type for the keyword "Beihai Park" (POI). Image area 633C indicates the image area for the user's historical query of the POI named "Beihai Park": "Xicheng District, Beijing". Furthermore, it differs from... Figure 6B The user interface 630 and user interface 640 shown include a map area 632A in the record 632, indicating the user's history of querying "parks" (see details). Figure 5A The user interface shown in the right figure (510) is a map area where the user selects multiple POIs from the search results obtained from the query: "Beijing". Figure 6C In the middle, due to the user's historical query for "park" (corresponding to record 632) (see details...), Figure 5AAs shown in the right-hand user interface 510, the user selected the geographic location "Xiangshan Park" (corresponding to record 631) and the geographic location "Beihai Park" (corresponding to record 633) from the multiple geographic locations obtained from the query. Therefore, the electronic device can assume that the user's query target is POI "Xiangshan Park" and POI "Beihai Park". Then, the map area indicated by record 632 is the smallest map area that includes these two POIs, which is the smallest map area that includes the map area "Haidian District, Beijing" for POI "Xiangshan Park" and the map area "Xicheng District, Beijing" for POI "Beihai Park", which is assumed to be "Beijing".

[0197] Scenario 4: Suppose a user wants to search for Huawei buildings in Beijing. When the electronic device is located in Beijing (i.e., the default map area is "Beijing"), the user makes a mistake and enters the query "Huawei Building" and searches. See the example below for details. Figure 7A , Figure 7A An example diagram of another query behavior is shown.

[0198] like Figure 7A As shown in the left figure, the electronic device can display the user interface 400 of a map application, and the user interface 400 and Figure 5A The user interface shown in the left image is similar to that of 400, the difference being that... Figure 7A In the user interface 400 shown in the left figure, the search box 401A contains the characters of the user's currently entered query, "Huawei Building". The electronic device can receive touch operations (e.g., click operations) applied to the search control 310B. In response to this touch operation, it retrieves search results related to the query "Huawei Building" within Beijing. See [link to details] for more information. Figure 7A The image on the right.

[0199] like Figure 7A As shown in the right figure, the electronic device can display a user interface 750 for a map application. The user interface 750 includes multiple geographic locations within Beijing and related to the "Huawei Building". The user interface 750 may include a search bar 751, a map view 752, and a search results list 753, wherein: Search bar 751 and Figure 7A The search box 401A in the user interface 400 shown in the left figure is similar.

[0200] Map view 752 and Figure 4ASimilar to the map view 412 in the user interface 410 shown in the right figure, the difference is that the map view 752 is the map area displayed when the electronic device displays multiple geographical locations in Beijing related to "Huawei Building". The map view 752 displays a location identifier 752A, which includes the characters "Huawei Building", and is used to show the location of the first geographical location "Huawei Building" on the map.

[0201] Search results list 753 displays summary information for multiple geographical locations within Beijing related to "Huawei Building," such as search results 7531, 7532, and 7533. Search result 7531 can include a name 7531A and a location 7531B. The name 7531A contains the characters for the name of the geographical location indicated by search result 7531, "Huawei Building," and the location 7531B contains the characters for the location information "Xicheng District" of the geographical location indicated by search result 7531. The geographical location indicated by search result 7531 is the same as the geographical location "Huawei Building" corresponding to location identifier 752A. Similarly, search result 7532 indicates a geographical location named "Huawei Building," and the location information for this geographical location is "Information Road, Haidian District." Search result 7533 indicates a geographical location named "Huawei Office Building," and the location information for this geographical location is "Xicheng District."

[0202] In the above Figure 7A After the operation, the user re-enters the query "Huawei Building" and performs a search. See the example below for details. Figure 7B , Figure 7B An example diagram of another query behavior is shown.

[0203] like Figure 7B As shown in (1), the electronic device can display a user interface 400 for a map application, and the user interface 400 and Figure 5A The user interface shown in the left image is similar to that of 400, the difference being that... Figure 7B In the user interface 400 shown in (1), the search box 401A contains the characters of the query "Huawei Building" currently entered by the user. The electronic device can receive touch operations (e.g., click operations) applied to the search control 310B, and in response to the touch operation, retrieve search results related to the query "Huawei Building" within Beijing. For details, please refer to [link to relevant documentation]. Figure 7B (2)

[0204] like Figure 7B As shown in (2), the electronic device can display the user interface 710 of the map application, and the user interface 710 and Figure 7AThe user interface 750 shown in the right figure is similar, except that the search bar 711 in user interface 710 contains the keywords currently entered by the user: "Huawei Building". The map view 712 in user interface 710 is the map area displayed when the electronic device displays multiple geographical locations in Beijing related to the query "Huawei Building". The location identifier 712A in map view 712 is used to show the location of the first geographical location "Huawei Building" on the map. The search results list 713 in user interface 710 includes search results 7131, 7132 and 7133. Search result 7131 is the same as search result 7532 in user interface 750. Search result 7132 indicates a geographical location named "Huawei Beijing Research Institute" and the location information of this geographical location is "Beiqing Road, Haidian District". Search result 7133 indicates a geographical location named "Huawei (Juran Building Store)" and the location information of this geographical location is "Nandajie, Dongcheng District". The electronic device can receive a touch operation (e.g., a click operation) applied to the search result 7131 or the location identifier 712A, and in response to the touch operation, display detailed information about the POI named "Huawei Building," as detailed in [reference needed]. Figure 7B (3)

[0205] like Figure 7B As shown in (3), the electronic device can display the user interface 720 of the map application, and the user interface 720 and Figure 6A Similar to the user interface 620 shown in the right figure, the difference is that the user interface 720 is used to display detailed information about the POI selected by the user with the name "Huawei Building". The user interface 720 also includes a map view 721, which is the map area displayed when the electronic device displays the geographical location "Huawei Building".

[0206] In the above Figure 7B After the operation, the user can enter a more comprehensive query, "Huawei Building, Information Road," and perform a search. See the example below for details. Figure 7C , Figure 7C An example diagram of another query behavior is shown.

[0207] like Figure 7C As shown in the left figure, the electronic device can display the user interface 400 of a map application, and the user interface 400 and Figure 5A The user interface shown in the left image is similar to that of 400, the difference being that... Figure 7C In the user interface 400 shown in the left figure, the search box 401A contains the characters of the user's currently entered query statement "Information Road Huawei Building", and... Figure 7CThe user interface 400 shown in the left figure also includes a preview list 403, which displays geographical locations within Beijing related to the query "Huawei Building, Xinxi Road" included in the search box 401A. For example, in top-to-bottom order, the locations are: location 403A named "Huawei Building", location 403A named "Huawei Beijing Research Institute", and location 403A named "Huawei Building (Northwest Gate)". The electronic device can respond to touch operations (e.g., click operations) applied to the search control 310B to retrieve search results related to the query "Huawei Building, Xinxi Road" within Beijing. Optionally, the first geographical location 403A in the preview list 403 is displayed. See [link to relevant documentation] for details. Figure 7C The image on the right.

[0208] like Figure 7C As shown in the right figure, the electronic device can display a map application user interface 730, which includes search results for "Huawei Building". Figure 7C The left figure shows the geographic location 403A in user interface 400, and user interface 730 and Figure 7B The user interface 720 shown in (3) is similar, except that the search bar 731 in the user interface 730 includes the keywords currently being searched by the user: "Information Road Huawei Building". The user interface 730 also includes a map view 732, which is the map area displayed when the electronic device displays the geographical location "Huawei Building".

[0209] In some embodiments, in the above Figure 7A , Figure 7B and Figure 7C After the operation, the electronic device can display Figure 7C The query history shown includes images of the keywords "Information Road Huawei Building" and the search results "Huawei Building". See the example below for details. Figure 7D .

[0210] like Figure 7D As shown, the electronic device can display a user interface 740 for a map application, which displays the history of map queries. The user interface 740 may include records 741, which may include icons 741A, characters 741B, and map areas 741C. Icons 741A and characters 741B... Figure 3 The user interface 300 shown includes records 321 with icons 321A and characters 321B, which can indicate the user's historical query type for the keyword "Information Road Huawei Building" in record 741. Figure 7CThe query behavior shown. Area 741C is used to indicate the area in the search result "Huawei Building" obtained from the historical query "Information Road Huawei Building": "Haidian District, Beijing".

[0211] In some embodiments, Figure 7A , Figure 7B and Figure 7C The difference in query time for the three queries shown is within a preset time period (e.g., 5 minutes), the keywords used in the queries are similar (all include "Hua" and "building", and there is only one character between "Hua" and "building"), and the geographical locations obtained from the queries all include the geographical location "Huawei Building" selected by the user. Figure 7A After the query was executed as shown, the user did not select the obtained geographical location. Figure 7B and Figure 7C After performing the query, the user selected the location "Huawei Building" from the retrieved locations. Figure 7C The scenario shown, where the search results only show the geographical location "Huawei Building," is also referred to as the user selecting the geographical location "Huawei Building." Because... Figure 7C The query shown is the most recent one, and the user selected the geographical location "Huawei Building," therefore only the history record 741 corresponding to this query is displayed. Optionally, the electronic device can also determine the history record to display based on the query keywords, for example... Figure 7C The query behavior shown includes not only the name of the geographical location "Huawei Building" but also the location information "Information Road" of "Huawei Building". Therefore, only the historical record 741 corresponding to this query behavior is displayed. This avoids displaying invalid historical records (such as...). Figure 7A The historical records corresponding to the query behavior shown), and redundant historical records (such as...). Figure 7B The historical records corresponding to the query behavior shown make it more convenient for users to access historical records and reduce the storage pressure on the device.

[0212] In some embodiments, in the above Figure 7A , Figure 7B and Figure 7C After the operation, when the electronic device is located in a city other than "Beijing" (let's say Wuhan), the electronic device can display historical records, for example... Figure 7D The user interface 740 shown contains a record 741. The electronic device can receive touch operations (e.g., click operations) applied to the record 741. In response to this touch operation, it displays the map area 741C indicating "Haidian District, Beijing" and the geographical location related to the keyword "Information Road Huawei Building" indicated by character 741B, i.e., the geographical location "Huawei Building". For example, it displays... Figure 7CThe user interface shown is 730, which does not display search results related to "Wuhan City" and "Huawei Building, Information Road". The search results are more accurate and meet the user's needs.

[0213] Not limited to the examples above, in other examples, in the above... Figure 7A and Figure 7B After the operation, the electronic device can only display Figure 7B The query history shown includes the query keyword "Huawei Building" and the image area for the search result "Huawei Building": "Haidian District, Beijing". Optionally, because... Figure 7B The query shown is the latest one, so only the historical records corresponding to this query are displayed. Optionally, because... Figure 7B In the query example shown, the user selected the geographical location "Huawei Building," therefore only the historical records corresponding to this query are displayed. Optionally, because... Figure 7B The query behavior shown includes the keyword "Huawei Building" as a geographical location; therefore, only the historical records corresponding to this query behavior are displayed. Similarly, in the above... Figure 7A and Figure 7C After the operation, the electronic device can display Figure 7C The historical records corresponding to the query behaviors shown are not detailed here.

[0214] Not limited to the examples above, in other examples, in the above... Figure 7A , Figure 7B and Figure 7C After the operation, the electronic device can also only display Figure 7B The displayed query history corresponds to the query behavior. Optionally, because... Figure 7B Among the query behaviors shown, the query keywords and the geographical location name "Huawei Building" have the highest similarity (100%), so only the historical records corresponding to this query behavior are displayed.

[0215] Not limited to above Figure 7C In some other examples of the query behavior shown, after a user enters the query "Huawei Building, Xinxi Road", the electronic device displays multiple geographical locations within Beijing related to the query "Huawei Building, Xinxi Road", for example, showing... Figure 7B The user interface 710 shown in (2) allows the user to select the geographic location "Huawei Building" from among the multiple geographic locations. The electronic device then displays... Figure 7C The user interface 730 is shown in the right figure. The subsequent description of displaying the history is similar.

[0216] Scenario 5: Suppose a user wants to search for Huawei buildings in Beijing. When the electronic device is located in Beijing, the user makes a typing error and enters the query "Huawei Building" and searches. The electronic device can display the search results (including the geographical location "Huawei Building"). See details below. Figure 7A The example shown. Then, the user can select the geographical location "Huawei Building" from the search results above; see the specific example below. Figure 7E .

[0217] like Figure 7E As shown in the left image, the electronic device displays... Figure 7A The right-hand image shows the user interface 750. The electronic device can respond to a touch operation on the search result 7532 in the user interface 750 to display detailed information about the POI named "Huawei Building," as detailed in the image. Figure 7E The image on the right.

[0218] like Figure 7E As shown in the right figure, the electronic device can display a map application user interface 760, which includes search results for "Huawei Building". User interface 760 and... Figure 7B The user interface 720 shown in (3) is similar, except that the search bar 761 in the user interface 760 includes the keyword "Huawei Building" currently being searched by the user. The user interface 760 also includes a map view 762, which is the map area displayed when the electronic device displays the geographical location "Huawei Building".

[0219] In some embodiments, in the above Figure 7E After the operation, the electronic device can display the historical record corresponding to this query. This historical record includes the corrected keyword "Huawei Building" and an image area of ​​the search results for "Huawei Building". For a specific example, please refer to [link / reference]. Figure 7F .

[0220] like Figure 7F As shown, the electronic device can display a user interface 770 for a map application, which displays the history of map queries. The user interface 770 may include records 771, which may include an icon 771A, characters 771B, and a map area 771C. Icon 771A indicates that the keyword type of the user's historical query is "query". In some embodiments, if the electronic device recognizes that the user's actual input query "Huawei Building" differs from the name of the geographical location selected by the user, "Huawei Building", it can consider the user's input incorrect. Therefore, the keyword recorded by the electronic device is the name of the geographical location selected by the user, and the characters included in character 771B are the corrected keyword "Huawei Building". Map area 741C indicates the map area for the search result "Huawei Building" obtained from the historical query "Huawei Building": "Haidian District, Beijing".

[0221] In some embodiments, in the above Figure 7E After the operation, the electronic device can display the history, such as Figure 7F The user interface 770 shown contains a record 771. The electronic device can receive touch operations (e.g., click operations) applied to the record 771. In response to this touch operation, it displays the map area 771C indicating "Haidian District, Beijing" and the geographical location related to the keyword "Huawei Building" indicated by character 771B, i.e., the geographical location "Huawei Building". For example, it displays... Figure 7B The user interface 720 shown in (3) is shown.

[0222] exist Figure 7F In the illustrated embodiment, the electronic device will not display the user's mistakenly entered keyword "Huawei Building" in the history. Therefore, when the electronic device receives a query request based on this history, the search results will not be geographical locations related to "Huawei Building". This minimizes the impact of user's mistaken input, and the history and search results obtained based on the history are more accurate and meet user needs.

[0223] exist Figure 7F In the illustrated embodiment, the electronic device does not display redundant historical records, such as simultaneously displaying... Figure 7A The historical records and corresponding query behaviors shown Figure 7E The historical records corresponding to the query behaviors shown are as follows: Figure 7A The historical records corresponding to the query behavior shown include the keyword "Huawei Building" of type query and the image area of ​​the search results "Beijing". Figure 7E The query history shown includes the keyword "Huawei Building" (i.e., the name of the POI selected by the user) and the map area "Haidian District, Beijing" for the search result "Huawei Building", making it more convenient for users to access the history and reducing the storage pressure on the device.

[0224] Not limited to Figure 7F In the example case, in other examples, in Figure 7E Afterwards, electronic devices can only display Figure 7E The query history shown includes the keyword "Huawei Building" (i.e., the name of the POI selected by the user) and the image area "Haidian District, Beijing" for the search result "Huawei Building". This avoids displaying redundant historical records (such as...). Figure 7A The historical records corresponding to the query behavior shown make it more convenient for users to access historical records and reduce the storage pressure on the device.

[0225] Based on the above embodiments, the map query method involved in this application is described. This method can be applied to... Figure 1A and Figure 1B The map query system 10 shown.

[0226] In one possible implementation, the network device can be used to train an intent model and a satisfaction model. The trained intent model and satisfaction model can then be sent to any electronic device to determine the history of map queries. See the example below. Figure 8 , Figure 8 This is a flowchart illustrating a map query method provided in an embodiment of this application. The method may include, but is not limited to, the following steps: S101: The application of the electronic device sends the first real-time sequence of user behavior to the logging module of the electronic device.

[0227] In some embodiments, the application can record the map query behavior of the first user using the electronic device in real time. Optionally, the application records the user's query behavior in the form of a behavior sequence, with each query behavior corresponding to a behavior sequence. Any behavior sequence may include, but is not limited to, the following: input keywords, query time, whether error correction was performed (for keywords), the corrected word (the word obtained after correcting the keywords), the operation of selecting a search result (e.g., selecting a search result from the search results list or clicking a search result on the displayed map), the selected POI, and parameters representing the map area displayed when the search results are shown (which may be simply referred to as the map area view). The selected POI may be represented, for example, but is not limited to, by its identity document (ID). The parameters representing the map area view may be, for example, but are not limited to, the minimum bounding rectangle (MBR).

[0228] In this application, the application receives user queries in ways including, but not limited to, touch operations on the display screen, voice operations, motion sensing operations, brainwaves, etc.

[0229] S102: The log module performs time-domain (session) segmentation on the behavior sequence of the first user.

[0230] In some embodiments, the log module can segment the behavior sequence of the first user according to the query time to obtain at least one behavior sequence in the time domain (which may be called a user log). There can be at least one behavior sequence in a time domain, and each behavior sequence can represent a query behavior. For example, behavior sequences whose query time is within a preset time period (such as the start time being the earliest query time and the end time being 5 minutes after the start time) belong to the same time domain.

[0231] In some embodiments, each time the logging module receives a behavior sequence sent by the application, it can perform time-domain segmentation on the behavior sequence to determine the corresponding time domain. For example, assume that if the difference in query times is less than or equal to a preset difference, they belong to the same time domain. The logging module first receives behavior sequence a. Since the difference between the query time of behavior sequence a and the query time of previously received behavior sequences is greater than the preset difference, it can determine that behavior sequence a corresponds to a new time domain a. Then, the logging module receives behavior sequence b. Since the difference between the query time of behavior sequence b and the query time of behavior sequence a is less than or equal to the preset difference, it can determine that behavior sequence b and behavior sequence a belong to the same time domain a.

[0232] In other embodiments, the logging module may receive a preset number of behavior sequences sent by the application and perform time-domain segmentation on these preset number of behavior sequences. In other embodiments, the logging module may perform time-domain segmentation on the behavior sequences sent by the application at preset intervals.

[0233] S103: The log module sends at least one time-domain behavior sequence to the training module of the network device.

[0234] In some embodiments, the log module may send at least one temporal behavior sequence to the training module at preset intervals.

[0235] S104: The training module trains the intent model and satisfaction model based on the behavior sequences of multiple users.

[0236] In some embodiments, the training module can take any user's behavior sequence in any time domain (assumed to be the first user's first time domain behavior sequence) as input and the corresponding prediction target as output to train the intent model. The prediction target can be understood as the target geographical location (such as at least one POI) corresponding to the query behavior indicated by the predicted first time domain behavior sequence. In some embodiments, the prediction target is input by the user to the network device. The prediction target can be characterized by, but is not limited to, at least one of the following: query keywords, POI identifier (such as POIID), name, map region, and parameters of the map region view when displaying the prediction target. The parameters of the map region view are, for example, MBR.

[0237] In some embodiments, the training module may use the behavior sequence of any user in any time domain (assumed to be the behavior sequence of the first user in the first time domain) as the input and the corresponding predicted satisfaction as the output to train the satisfaction model. Here, the satisfaction may be for the keywords included in the behavior sequence of the first time domain, and one satisfaction corresponds to one keyword, which can be used to represent the matching degree between the search results obtained based on this keyword and the search results required by the user (such as the output of the intent model, the POI selected by the user). For example, the satisfaction is a non - negative number less than or equal to 1. The greater the satisfaction, the higher the matching degree, which can be understood as the search results obtained based on this keyword are more in line with the user's intent. In some embodiments, the predicted satisfaction is input by the user to the network device.

[0238] For the convenience of description, in the examples of this application, different MBRs are represented by "MBR - different numbers", different POIs are represented by "POIID - different numbers", and different coordinates are represented by "coordinate - different numbers".

[0239] For example, when the user is located in Wuhan and first queries the keyword "Beijing", the search result obtained by the electronic device is the geographical location named "Beijing City". The behavior sequence 1 corresponding to this query behavior can be represented as: <Map area: Wuhan, Keyword: Beijing>. Then, the user queries the keyword "Huawei Exclusive Store", and the search result obtained by the electronic device is the geographical location named "Huawei Exclusive Store". The behavior sequence 2 corresponding to this query behavior can be represented as: <Map area: {Beijing City, MBR - 1}, Keyword: Huawei Exclusive Store, Click: POIID - 1, Name: Huawei Exclusive Store, Coordinate: coordinate - 1>, where "MBR - 1" can represent the map area view when displaying the geographical location "Huawei Exclusive Store", the POI identifier of the geographical location "Huawei Exclusive Store" is "POIID - 1", and the coordinate is "coordinate - 1". Assume that these two behavior sequences belong to the same time domain 1. Assume that the predicted target corresponding to the behavior sequence of the manually annotated time domain 1 is the above - mentioned geographical location "Huawei Exclusive Store" obtained from the second query, which can be represented as: <POI identifier: POIID - 1, Map area view: MBR - 1>. The satisfaction corresponding to the behavior sequence of the manually annotated time domain 1 is for the keyword "Huawei Exclusive Store", and the value is 1, which can be represented as: <Keyword: Huawei Exclusive Store, Satisfaction: 1>. The training module can use these two behavior sequences as the input of the intent model and the manually annotated predicted target as the output of the intent model to train the intent model. The training module can use these two behavior sequences as the input of the satisfaction model and the manually annotated satisfaction as the output of the satisfaction model to train the satisfaction model.

[0240] For example, assume that a user wants to search for the Langya Mountain Scenic Area in Baoding City. When the user is located in Baoding City, due to an input error, the user first queries the keyword "Blue Tooth Mountain". The user does not select any of the search results obtained from this query. The behavior sequence 3 corresponding to this query behavior can be characterized as: <Map area: Baoding City, Keyword: Blue Tooth Mountain, No click>. Then, the user queries the keyword "Langya Mountain", and the user selects one of the search results obtained from the query (assume it is a geographical location named "Langya Mountain Scenic Area"). The behavior sequence 4 corresponding to this query behavior can be characterized as: <Map area: {Baoding City, MBR-2}, Keyword: Langya Mountain, Click: POIID-2, Name: Langya Mountain Scenic Area, Coordinates: Coordinate-2>, where "MBR-2" can characterize the map area view when displaying the geographical location "Langya Mountain Scenic Area", the POI identifier of the geographical location "Langya Mountain Scenic Area" is "POIID-2", and the coordinates are "Coordinate-2". Assume that these two behavior sequences belong to the same time domain 2. Assume that the predicted target corresponding to the behavior sequence of the manually labeled time domain 2 is the geographical location "Langya Mountain Scenic Area" obtained from the second query, which can be characterized as: <POI identifier: POIID-2, Map area view: MBR-2>. The satisfaction corresponding to the behavior sequence of the manually labeled time domain 2 includes that for the keyword "Blue Tooth Mountain", the value is 0, which can be characterized as: <Keyword: Blue Tooth Mountain, Satisfaction: 0>, and also includes that for the keyword "Langya Mountain", the value is 1, which can be characterized as: <Keyword: Langya Mountain, Satisfaction: 1>. The training module can use these two behavior sequences as the input of the intent model and the manually labeled predicted target as the output of the intent model to train the intent model. The training module can use these two behavior sequences as the input of the satisfaction model and the manually labeled satisfaction as the output of the satisfaction model to train the satisfaction model.

[0241] S105: The training module of the network device sends the intent model and the satisfaction model to the model module of the electronic device.

[0242] In some embodiments, the training module of the network device can compress the trained intent model and satisfaction model and send the compressed intent model and satisfaction model to the model module of the electronic device.

[0243] In some embodiments, the intent model and the satisfaction model received by the model module can be used to determine the historical record, and the specific implementation is as follows Figure 9 As shown, it will not be elaborated in detail for the time.

[0244] In some embodiments, the training module can send the intent model and satisfaction model to the model module at preset intervals, such as once a week. In this way, the intent model and satisfaction model obtained by the electronic device are consistent with the user's current situation. Compared with methods such as sending only once, the historical records determined by the intent model and satisfaction model sent in this way, as well as the search results obtained based on the historical records, are more in line with the user's needs, thus improving the user experience.

[0245] In one possible implementation, after the electronic device receives the intent model and satisfaction model sent by the network device, it can update the intent model and / or satisfaction model itself. The updated intent model and satisfaction model, along with the historical records and search results obtained based on those records, are more in line with user habits and personalization, resulting in a better user experience. In this case, after step S105 above, the method may also include, but is not limited to, the following steps: S106: The application sends the first real-time sequence of user behavior to the logging module.

[0246] S107: The log module performs time-domain segmentation on the behavior sequence of the first user.

[0247] S106-S107 are similar to S101-S102; please refer to the description of S101-S102 for details.

[0248] S108: The log module sends at least one time-domain behavior sequence to the model module.

[0249] In some embodiments, the log module may send at least one temporal behavior sequence of the first user to the model module at preset intervals.

[0250] S109: The model module updates the intent model and / or satisfaction model based on the first user's behavior sequence.

[0251] In some embodiments, the model module can train and update the intent model and / or satisfaction model based on at least one temporal behavior sequence of the first user. The specific description is similar to step S104, except that the model module is trained only based on the behavior sequence of the first user, and the prediction target and the predicted satisfaction are not input by the user, but are determined by the electronic device itself.

[0252] In some embodiments, the electronic device can determine the prediction target and / or prediction satisfaction corresponding to the behavior sequence in any time domain based on the optimal behavior sequence in that time domain. The optimal behavior sequence can be characterized by, for example, the latest query time, the highest similarity between the keywords and the information of the selected POI (such as name and location), and at least one of the following operations: selecting the POI.

[0253] Based on the example in S103, the following exemplifies how an electronic device determines the prediction target and / or the predicted satisfaction level: For example, the behavioral sequence in time domain 1 includes behavioral sequence 1: <Map area: Wuhan, Keyword: Beijing>, and behavioral sequence 2: <Map area: {Beijing, MBR-1}, Keyword: Huawei Store, Click: POIID-1, Name: Huawei Store, Coordinate: Coordinate-1>. The query time of behavioral sequence 2 is later than that of behavioral sequence 1. Behavioral sequence 2 involves the operation of selecting a POI. Therefore, the prediction target and the predicted satisfaction corresponding to the behavioral sequence in time domain 1 can be determined based on behavioral sequence 2. That is, the search result corresponding to behavioral sequence 2 (geographical location "Huawei Store") is determined as the prediction target, and the satisfaction value corresponding to the keyword "Huawei Store" included in behavioral sequence 2 is set to 1.

[0254] For example, the behavioral sequences in time domain 2 include behavioral sequence 3: <Map area: Baoding City, Keyword: Langya Mountain, No clicks>, and behavioral sequence 4: <Map area: {Baoding City, MBR-2}, Keyword: Langya Mountain, Clicks: POIID-2, Name: Langya Mountain Scenic Area, Coordinates: Coordinates-2>. The query time of behavioral sequence 4 is later than that of behavioral sequence 3. Behavioral sequence 4 involves the action of selecting a POI. The keyword "Langya Mountain" in behavioral sequence 4 has the highest similarity to the name of the selected POI, "Langya Mountain Scenic Area". Therefore, the prediction target and prediction satisfaction corresponding to the behavioral sequences in time domain 2 can be determined based on behavioral sequence 4. That is, the search result corresponding to behavioral sequence 4 (the geographical location "Langya Mountain Scenic Area") is determined as the prediction target, and the satisfaction value corresponding to the keyword "Langya Mountain" in behavioral sequence 4 is set to 1. Furthermore, the satisfaction value corresponding to the keyword "Langya Mountain" in behavioral sequence 3 can be set to 0.

[0255] Not limited to the examples above, in other embodiments, when the network device trains the intent model and the satisfaction model, the prediction target and the predicted satisfaction may not be manually labeled, but determined by the network device itself. The determination method is similar to the method determined by the electronic device itself, and will not be repeated here.

[0256] In addition to the examples above, in other embodiments, network devices may also train and send only the intent model.

[0257] In one possible implementation, the electronic device can determine the historical record based on an intent model; see specific examples. Figure 9 , Figure 9 This is a flowchart illustrating another map query method provided in an embodiment of this application. The method may include, but is not limited to, the following steps: S200: The application of the electronic device performs a query process based on the query request input by the user and generates a first row sequence.

[0258] In some embodiments, the application can receive a query statement input by the user and a query request based on the query statement, and retrieve at least one geographical location (i.e., search results) related to the query statement. Optionally, when the application receives the query request, it can send a request message to the search module of the network device, the request message being used to request search results related to the query request, and receive the search results sent by the search module. The application can display the retrieved search results. The above process can be understood as the application performing a query based on the query request input by the user. The application can record relevant information from this query process to generate a first row sequence, wherein the information included in the first row sequence can be found in [reference needed]. Figure 8 Explanation of S101.

[0259] The following examples illustrate some first-line sequences, using a map application as an example.

[0260] For example, the query process performed by the application based on the user's input query request is as follows: Figure 4A The query process is shown below. For this query process, the map application can generate behavior sequence 5: <Map area: {Nanjing City, MBR-3}, Keyword: Gulou, Click: POIID-3, Name: Gulou District, Nanjing City, Coordinates: Coordinates-3>. Behavior sequence 5 can represent the query behavior of searching for the keyword "Gulou" within the map area "Nanjing City". Figure 4A In the query process shown, although the user did not select a POI after querying "Gulou," the electronic device can assume that the user selected the search result because only one result was obtained. Therefore, behavior sequence 5 records the user's selection of the POI named "Gulou District, Nanjing City," as described above: "Click: POIID-3, Name: Gulou District, Nanjing City, Coordinates: Coordinates-3." Thus, behavior sequence 5 represents that the user selected a POI with POIID "POIID-3," name "Gulou District, Nanjing City," and coordinates "Coordinates-3." The map view parameter for displaying this POI is "MBR-3." An example of the electronic device displaying the search result (i.e., the geographical location "Gulou District, Nanjing City") obtained during this query process can be found in [link to example]. Figure 4A The user interface 410 shown in the right figure, "MBR-3" can be a parameter that characterizes the view area 412 in the user interface 410.

[0261] For example, the query process performed by the application based on the user's input query request is as follows: Figure 4AThe query process shown, and Figure 4A After the query process shown, the application adjusted the map area displayed when showing the geographical location "Gulou District, Nanjing City". See details below. Figure 4C The illustrated embodiment shows that the map application can generate behavior sequence 6: <Map area: {Nanjing City, MBR-4}, Keywords: Gulou, Click: POIID-3, Name: Gulou District, Nanjing City, Coordinates: Coordinates-3>. Behavior sequence 6 is similar to behavior sequence 5, except that the parameter representing the view of the map area is different; in behavior sequence 6, it is "MBR-4". An example of an electronic device displaying the search results (i.e., the geographical location "Gulou District, Nanjing City") obtained during this query process can be found in [reference needed]. Figure 4C The user interface 440 shown in the right figure, "MBR-4" can be a parameter that characterizes the view area 441 in the user interface 440.

[0262] For example, the query process performed by the application based on the user's input query request is as follows: Figure 5A The query process is shown below. For this query process, the map application can generate behavior sequence 7: <Map area: {Beijing, MBR-5}, keyword: park>. Behavior sequence 7 represents the query behavior of searching for the keyword "park" within the map area "Beijing", and the parameter representing the map area's field of view is "MBR-5". An example of an electronic device displaying the search results obtained from this query process (i.e., multiple geographical locations within Beijing whose names include "park") can be found in [link to example]. Figure 5A The user interface 510 shown in the right figure, "MBR-5" can be a parameter that characterizes the view area 512 in the user interface 510.

[0263] For example, the query process performed by the application based on the user's input query request is as follows: Figure 6A The query process is shown below. For this query process, the map application can generate behavior sequence 8: <Map area: {Beijing, MBR-6}, Keyword: Fragrant Hills Park, Click: POIID-4, Name: Fragrant Hills Park, Coordinates: Coordinates-4>. Behavior sequence 8 represents the query behavior of searching for the keyword "Fragrant Hills Park" within the map area "Beijing". In this query, the user selected a POI with POIID "POIID-4", name "Fragrant Hills Park", and coordinates "coordinates-4". This can also be understood as a query behavior of searching for the POI named "Fragrant Hills Park". The parameter representing the map area view when displaying this POI is "MBR-6". An example of an electronic device displaying the search results (i.e., the geographical location "Fragrant Hills Park") obtained from this query process can be found in [link to example]. Figure 6A The user interface 620 shown in the right figure, "MBR-6" ​​can be a parameter characterizing the view area 622 in the user interface 620.

[0264] For example, the query process performed by the application based on the user's input query request is as follows: Figure 7A The query process is shown below. For this query process, the map application can generate behavior sequence 9: <Map area: {Beijing, MBR-7}, Keyword: Huahui Building>. Behavior sequence 9 represents the query behavior of searching for the keyword "Huahui Building" within the map area "Beijing", and the parameter representing the view of the map area is "MBR-7". An example of an electronic device displaying the search results obtained from this query process can be found in [link to example]. Figure 7A The user interface 710 shown in the right figure, "MBR-7" can be a parameter that characterizes the view area 712 in the user interface 710.

[0265] For example, the query process performed by the application based on the user's input query request is as follows: Figure 7B The query process is shown below. For this query process, the map application can generate behavior sequence 10: <Map area: {Beijing, MBR-8}, Keyword: Huawei Building, Click: POIID-5, Name: Huawei Building, Coordinates: Coordinates-5>. Behavior sequence 10 can represent the query behavior of searching for the keyword "Huawei Building" within the map area "Beijing". For this query, the user selected a POI with POIID "POIID-5", name "Huawei Building", and coordinates "coordinates-5". This can also be understood as a query behavior of searching for the POI named "Huawei Building". The parameter representing the view of the map area when displaying this POI is "MBR-8". An example of the search results (i.e., the geographical location "Huawei Building") obtained by the electronic device during this query process can be found in [link to example]. Figure 7B The user interface 720 shown in (3) can be “MBR-8”, which can be a parameter that characterizes the view area 721 in the user interface 720.

[0266] For example, the query process performed by the application based on the user's input query request is as follows: Figure 7C The query process is shown below. For this query process, the map application can generate behavior sequence 11: <Map area: {Beijing, MBR-8}, Keyword: Huawei Building, Information Road, Click: POIID-5, Name: Huawei Building, Coordinates: Coordinates-5>. Behavior sequence 11 can represent the query behavior of searching for the keyword "Huawei Building, Information Road" within the map area "Beijing". Figure 7CIn the query process shown, although the user did not select a POI after querying "Huawei Building, Xinxi Road", the electronic device can assume that the user selected the search result because only one result was obtained. Therefore, behavior sequence 11 records the user's selection of the POI named "Huawei Building", i.e., the above "Click: POIID-5, Name: Huawei Building, Coordinates: Coordinates-5". Thus, behavior sequence 11 can represent that the user selected a POI with POIID "POIID-5", name "Huawei Building", and coordinates "coordinates-5", and the map view parameter for displaying this POI is "MBR-8". An example of the electronic device displaying the search result (i.e., the geographical location "Huawei Building") obtained in this query process can be found in [reference needed]. Figure 7C The user interface 730 shown in the right figure, "MBR-8" can be a parameter that characterizes the view area 732 in the user interface 730.

[0267] For example, the query process performed by the application based on the user's input query request is as follows: Figure 7E The query process is shown below. For this query process, the map application can generate behavior sequence 12: <Map area: {Beijing, MBR-8}, Keywords: Huawei Building, Click: POIID-5, Name: Huawei Building, Coordinates: Coordinates-5>, see the description of behavior sequence 10 above for details. An example of an electronic device displaying the search results (i.e., the geographical location "Huawei Building") obtained from this query process can be found in [link to example]. Figure 7E The user interface 760 shown in the right figure, "MBR-8" can be a parameter that characterizes the view area 762 in the user interface 760.

[0268] S201: The application of the electronic device sends the first action sequence of the first user to the model module.

[0269] S202: The model module takes the first line sequence as input to the intent model and obtains the first position of the output.

[0270] In some embodiments, the location output by the intent model can be characterized by, but is not limited to, the query keywords and map regions, where the location output by the intent model is the geographic location within the map region indicated by the map region and related to the keyword. In some embodiments, the location output by the intent model can be characterized by, but is not limited to, at least one of the identifier (such as POIID), name, and coordinates of at least one POI, where the location output by the intent model is the at least one POI.

[0271] In some embodiments, the output of the intent model may also include parameters characterizing the map area view, such as MBR, where the map area view is the map area displayed when the intent model output is displayed.

[0272] Based on the example of S200, some first positions are exemplarily shown below: For example, the model module may use the above behavior sequence 5 as the input of the intent model, and obtain the output position 1: the geographical location "Gulou District, Nanjing City", which can be characterized as: <Keywords: Gulou, Map Area: Gulou District, Nanjing City>, or can also be characterized as: <POI Identifier: POIID-3, Name: Gulou District, Nanjing City, Coordinates: Coordinate-3>.

[0273] For example, the model module may use the above behavior sequence 6 as the input of the intent model, and obtain the output position 1 (i.e., the geographical location "Gulou District, Nanjing City") and the parameter "MBR-4" representing the map area view, which can be characterized as: <Keywords: Gulou, Map Area: Gulou District, Nanjing City, Map Area View: MBR-4>.

[0274] For example, the model module may use the above behavior sequence 7 as the input of the intent model, and obtain the output position 2: multiple geographical locations in Beijing whose names include "Park", which can be characterized as: <Keywords: Park, Map Area: Beijing>.

[0275] For example, the model module may use the above behavior sequence 8 as the input of the intent model, and obtain the output position 3: the geographical location "Fragrant Hills Park", which can be characterized as: <Keywords: Fragrant Hills Park, Map Area: Haidian District, Beijing>, or can also be characterized as: <POI Identifier: POIID-4, Name: Fragrant Hills Park, Coordinates: Coordinate-4>.

[0276] For example, the model module may use the above behavior sequence 10, behavior sequence 11, or behavior sequence 12 as the input of the intent model, and obtain the output position 4: the geographical location "Huawei Building", which can be characterized as: <Keywords: Huawei Building, Map Area: Haidian District, Beijing>, or can also be characterized as: <POI Identifier: POIID-5, Name: Huawei Building, Coordinates: Coordinate-5>.

[0277] In some embodiments, the model module may use the first behavior sequence and the second behavior sequence as the input of the intent model, and obtain the first position corresponding to the first behavior sequence output by the intent model, and optionally the second position corresponding to the second behavior sequence. The first behavior sequence and the second behavior sequence are behavior sequences belonging to the same time domain, and it can be understood that the first position corresponding to the first behavior sequence is obtained by combining the behavior sequences of the same time domain. Among them, the behavior sequences can be segmented in the time domain to obtain at least one behavior sequence in a time domain. For specific reference, see Figure 8 the description of S102.

[0278] For example, the application program successively performs Figure 5A and Figure 6A the query processes shown, Figure 5A The behavior sequences 7 corresponding to the query process shown and Figure 6A the behavior sequence 8 corresponding to the query process shown both belong to time domain 3. The model module can use the behavior sequences 7 and 8 as the input of the intent model to obtain the corresponding output. In the obtained output, both the behavior sequences 7 and 8 correspond to position 3 (i.e., the geographical location "Fragrant Hills Park"). The position 3 corresponding to the behavior sequence 7 can be characterized as: <Keywords: park, Map area: Haidian District, Beijing>, <POI identifier: POIID-4, Name: Fragrant Hills Park, Coordinates: Coordinate-4>. The characterization method of the position 3 corresponding to the behavior sequence 8 is similar to that of the position 3 corresponding to the behavior sequence 7, except that the included keyword is "Fragrant Hills Park".

[0279] For example, the application program successively performs Figure 7A , Figure 7B and Figure 7C the query processes shown. Figure 7A The behavior sequence 9 corresponding to the query process shown, Figure 7B the behavior sequence 10 corresponding to the query process shown, and Figure 7C the behavior sequence 11 corresponding to the query process shown all belong to time domain 4. The model module can use the behavior sequences 9, 10, and 11 as the input of the intent model to obtain the corresponding output. In the obtained output, the behavior sequences 9, 10, and 11 all correspond to position 4 (i.e., the geographical location "Huawei Building"). The position 4 corresponding to the behavior sequence 9 can be characterized as: <Keywords: Huawei Building, Map area: Haidian District, Beijing>, <POI identifier: POIID-5, Name: Huawei Building, Coordinates: Coordinate-5>. The characterization methods of the position 4 corresponding to the behavior sequences 10 and 11 are similar to that of the position 4 corresponding to the behavior sequence 9, except that the keyword included in the behavior sequence 10 is "Huawei Building", and the keyword included in the behavior sequence 11 is "Huawei Building on Information Road".

[0280] For example, the application program successively performs Figure 7A and Figure 7E the query processes shown. Figure 7A The behavior sequence 9 corresponding to the query process shown and Figure 7EThe behavior sequences 12 corresponding to the query processes shown all belong to the time domain 5. The model module can use the behavior sequence 9 and the behavior sequence 12 as the inputs of the intent model to obtain the corresponding outputs. In the obtained outputs, both the behavior sequence 9 and the behavior sequence 12 correspond to the position 4 (i.e., the geographical location "Huawei Building"). The position 4 corresponding to the behavior sequence 9 can be characterized as: <Keywords: Huawei Building, Map Area: Haidian District, Beijing>, <POI Identifier: POIID-5, Name: Huawei Building, Coordinates: Coordinate-5>. The characterization method of the position 4 corresponding to the behavior sequence 12 is similar to that of the position 4 corresponding to the behavior sequence 9, except that the included keyword is "Huawei Building".

[0281] S203: The model module generates a first historical record based on the keywords in the first behavior sequence and the first position.

[0282] In some embodiments, the first historical record may include the keywords in the first behavior sequence and the map area of the first position. Optionally, the first historical record may further include parameters characterizing the map area view, such as MBR. This map area view is the map area displayed when the first position is shown. Optionally, the parameters characterizing the map area view may be obtained from the output of the intent model.

[0283] Based on the examples of S200 and S202, some first historical records are示例性 shown below: For example, assume that the first position corresponding to the above behavior sequence 5 is the above position 1 (i.e., the geographical location "Gulou District, Nanjing City"). Then the historical record 1 generated by the model module includes the keyword "Gulou" in the above behavior sequence 5 and the map area "Gulou District, Nanjing City" of the above position 1.

[0284] For example, assume that the first position corresponding to the above behavior sequence 6 is the above position 1 (i.e., the geographical location "Gulou District, Nanjing City"), and when the above behavior sequence 6 is used as the input of the intent model, the output of the intent model further includes parameters characterizing the map area view (i.e., "MBR-4"). Then the historical record 2 generated by the model module includes the keyword "Gulou" in the above behavior sequence 6, the map area "Gulou District, Nanjing City" of the above position 1, and the above parameter "MBR-4" characterizing the map area view.

[0285] For example, assume that the first position corresponding to the above behavior sequence 7 is the above position 2 (i.e., geographical locations in Beijing with multiple names including "Park"). Then the historical record 3 generated by the model module includes the keyword "Park" in the above behavior sequence 7 and the map area "Beijing" of the above position 2.

[0286] For example, assuming that the first position corresponding to the above behavior sequence 8 is the above position 3 (i.e., the geographical location "Xiangshan Park"), the historical record 4 generated by the model module includes the keyword "Xiangshan Park" in the above behavior sequence 8, and the map area "Haidian District, Beijing" of the above position 3.

[0287] For example, assuming the first location corresponding to the above behavior sequence 11 is location 4 (i.e., the geographical location "Huawei Building"), then the historical record 5 generated by the model module includes the keyword "Information Road Huawei Building" from behavior sequence 11, and the map area "Haidian District, Beijing" for location 4. The historical records corresponding to behavior sequences 10 and 12 generated by the model module are similar to historical record 5, except that they include the keyword "Huawei Building".

[0288] For example, assuming that both behavior sequence 7 and behavior sequence 8 belong to time domain 3, and the output of the intent model corresponding to behavior sequence 7 and behavior sequence 8 is the aforementioned location 3 (i.e., the geographical location "Xiangshan Park"), then the historical record 6 corresponding to behavior sequence 7 generated by the model module includes the keyword "park" in behavior sequence 7, and the map area "Haidian District, Beijing" of the aforementioned location 3. The historical record corresponding to behavior sequence 8 generated by the model module is the aforementioned historical record 4, which will not be elaborated further.

[0289] For example, assuming that the above behavior sequences 9, 10, and 11 all belong to time domain 4, and the output of the intent model corresponding to behavior sequences 9, 10, and 11 is all the above location 4 (i.e., the geographical location "Huawei Building"), then the historical record 7 corresponding to behavior sequence 9 generated by the model module includes the keyword "Huawei Building" from behavior sequence 9, and the map area "Haidian District, Beijing" for the above location 4. The historical record 8 corresponding to behavior sequence 10 generated by the model module is similar to historical record 7, except that it includes the keyword "Huawei Building". The historical record corresponding to behavior sequence 11 generated by the model module is the above historical record 5, which will not be described further.

[0290] For example, assuming that both behavior sequence 9 and behavior sequence 12 belong to time domain 5, and the output of the intent model corresponding to behavior sequence 9 and behavior sequence 12 is the location 4 (i.e., the geographical location "Huawei Building"), then the historical record corresponding to behavior sequence 9 generated by the model module is the historical record 7, and the historical record corresponding to behavior sequence 12 generated by the model module is the historical record 8.

[0291] In some embodiments, the model module of the electronic device may also take the first behavioral sequence as input to the satisfaction model to obtain the output first satisfaction level. The model module will determine whether to generate and / or display the first historical record, and optionally whether to delete existing historical records, based on the first position and the first satisfaction level.

[0292] In some embodiments, the satisfaction level output by the satisfaction model can be used to characterize the search results corresponding to the input behavioral sequence and the search results desired by the user (e.g., Figure 8 The degree of matching of the predicted target in S104, optionally, the satisfaction is a numerical value, for example, the satisfaction is a non-negative number less than or equal to 1. The higher the satisfaction, the higher the degree of matching, that is, the more the search results corresponding to the behavior sequence are in line with the user's intent.

[0293] In some embodiments, assuming the first behavior sequence belongs to a first time domain behavior sequence, the model module can first determine whether the corresponding intent model output is a behavior sequence at a first position in the first time domain behavior sequence. In one case, if there is no corresponding intent model output at a first position behavior sequence in the first time domain behavior sequence, the model module can determine to generate and display a first history record, optionally without deleting existing history records. A specific example can be found in the first history record shown above. In another case, if there is a corresponding intent model output at a first position behavior sequence (which may be called a third behavior sequence) in the first time domain behavior sequence, the model module can compare the first satisfaction level corresponding to the first behavior sequence with the satisfaction level output by the satisfaction model corresponding to the third behavior sequence (which may be called a second satisfaction level). If the first satisfaction level is greater than the second satisfaction level, the model module can determine to generate and display the first history record, optionally and explicitly deleting the second history record corresponding to the third behavior sequence already displayed by the application. The model module can send an instruction to the application to delete the second history record, so that the application will not display the second history record when displaying the first history record.

[0294] For example, suppose the first behavior sequence is behavior sequence 8, and both behavior sequence 7 and behavior sequence 8 belong to time domain 3. The output of the intent model corresponding to behavior sequence 7 is the first position corresponding to behavior sequence 8 (i.e., the above position 3: geographical location "Xiangshan Park"). Suppose the satisfaction corresponding to behavior sequence 7 is 0.6 and the satisfaction corresponding to behavior sequence 8 is 1. Since the satisfaction corresponding to behavior sequence 8 is higher, the model module can determine to generate and display the historical record corresponding to behavior sequence 8, i.e. the above historical record 4.

[0295] For example, suppose the first behavior sequence is behavior sequence 11, and behavior sequences 9, 10, and 11 all belong to time domain 4. The output of the intent model corresponding to behavior sequences 9 and 11 is the first position corresponding to behavior sequence 11 (i.e., position 4: "Huawei Building"). Assume the satisfaction level for behavior sequence 9 is 0, the satisfaction level for behavior sequence 10 is 0.8, and the satisfaction level for behavior sequence 11 is 1. Since behavior sequence 11 has the highest satisfaction level, the model module can determine to generate and display the historical record corresponding to behavior sequence 11, i.e., historical record 5. Furthermore, the model module can instruct the application to delete the historical record corresponding to behavior sequence 9 (i.e., historical record 7) and the historical record corresponding to behavior sequence 10 (i.e., historical record 8).

[0296] For example, suppose the first behavior sequence is behavior sequence 12, and both behavior sequence 9 and behavior sequence 12 belong to time domain 5. The output of the intent model corresponding to behavior sequence 9 is the first position corresponding to behavior sequence 9 (i.e., position 4: "Huawei Building"). Assume the satisfaction level corresponding to behavior sequence 9 is 0, and the satisfaction level corresponding to behavior sequence 12 is 1. Since behavior sequence 12 has the highest satisfaction level, the model module can determine to generate and display the historical record corresponding to behavior sequence 12, i.e., the historical record 8. Furthermore, the model module can instruct the application to delete the historical record corresponding to behavior sequence 9 (i.e., the historical record 7).

[0297] If the first satisfaction level is less than the second satisfaction level, the model module can determine not to display the first historical record, and the electronic device may not execute S203-S205. If the first satisfaction level is equal to the second satisfaction level, the model module can determine to display the first historical record and not delete the second historical record, or the model module can determine not to display the first historical record, or the model module can determine to display the first historical record and delete the second historical record.

[0298] S204: The model module sends the first history record to the application.

[0299] S205: The application displays the first history record.

[0300] For example, the application can display Figure 4B The user interface 430 shown contains a record 431 for displaying either history record 1 or history record 2.

[0301] For example, the application can display Figure 5B The user interface 520 shown contains a record 521 for displaying the aforementioned history record 3.

[0302] For example, the application can display Figure 6B The user interface 630 shown has a record 631 for displaying the aforementioned history history 4 and a record 632 for displaying the aforementioned history history 6.

[0303] For example, the application can display Figure 7D The user interface 740 shown contains a record 741 used to display the aforementioned history record 5. However, the aforementioned history record 7 and history record 8 are not displayed in the user interface 740.

[0304] For example, the application can display Figure 7F The user interface 770 shown contains a record 771 used to display the aforementioned history record 8. However, the aforementioned history record 7 is not displayed in the user interface 740.

[0305] In one possible implementation, the method may further include: S206: The application sends a request message for the first historical record to the search module of the network device.

[0306] In some embodiments, the electronic device can receive user actions input by the user through an application regarding a first historical record, such as touch operations, voice operations, motion sensing operations, brainwaves, etc., which can be understood as receiving a query request based on the first historical record. The first historical record can be any record displayed by the application. When the application receives a query request based on the first historical record, it can send a request message for the first historical record to the search module of the network device.

[0307] In some embodiments, the request message for the first historical record includes keywords and map regions from the first historical record. Optionally, the first historical record also includes parameters characterizing the view area of ​​the map region, such as MBR, then the request message for the first historical record also includes parameters characterizing the view area of ​​the map region from the first historical record.

[0308] S207: The search module performs a search based on the keywords and map areas included in the request message to obtain the search results corresponding to the first historical record.

[0309] In some embodiments, when the search module receives a request message for a first historical record, it can search for geographical locations related to the keywords included in the request message (i.e., the keywords included in the first historical record) within the map area indicated by the map area included in the request message (i.e., the map area included in the first historical record), and the geographical locations are the search results.

[0310] In some embodiments, if the request message also includes a parameter characterizing the map area view (assuming it is the MBR included in the first historical record), the search module can obtain the map area view when displaying the search result according to the MBR.

[0311] S208: The search module sends the search results corresponding to the first historical record to the application.

[0312] In some embodiments, if the request message also includes a parameter characterizing the view area of ​​the map region, the search module may also send the view area of ​​the map region when displaying the search results corresponding to the first historical record to the application.

[0313] S209: The application displays the search results corresponding to the first historical record.

[0314] In some embodiments, when the application receives a search result corresponding to the first historical record sent by the search module, it may display the search result. Optionally, the application may also receive a map view sent by the search module, in which case the application may display the search result according to the map view.

[0315] The following are some examples of search results corresponding to the first historical record: For example, the first historical record is historical record 1 mentioned above, as detailed in [link to relevant documentation]. Figure 4B Record 431 is shown in the user interface 430. The request message for the first historical record may include the keyword "Gulou" and the map area "Gulou District, Nanjing City". The search result corresponding to the first historical record can be the geographical location "Gulou District, Nanjing City". An example of the application displaying this search result can be found in [link to example]. Figure 4A The user interface 410 is shown in the right figure.

[0316] For example, the first historical record is historical record 2 mentioned above, as detailed in [link to relevant documentation]. Figure 4B Record 431 is shown in the user interface 430. The request message for the first historical record may include the keyword "Gulou," the map area "Gulou District, Nanjing," and the parameter "MBR-4" representing the map area's field of view. The search result corresponding to the first historical record can be the geographical location "Gulou District, Nanjing." An example of the application displaying this search result can be found in [link to example]. Figure 4C The user interface 440 shown in the right figure, and the map view obtained by the search module based on "MBR-4" can be seen in the map view 441 in the user interface 440.

[0317] For example, the first historical record is historical record 3 mentioned above, as detailed in [link to relevant documentation]. Figure 5BRecord 521 in the user interface 520 shown. The request message for the first historical record may include the keywords "park" and the map area "Beijing". The search results corresponding to the first historical record can be multiple geographical locations within Beijing whose names include "park". An example of the application displaying this search result can be found in [link to example]. Figure 5A The user interface 510 is shown in the right figure.

[0318] For example, the first historical record is historical record 6 mentioned above, as detailed in [link to historical record]. Figure 6B Record 632 in the user interface 630 shown. The request message for the first historical record may include the keyword "park" and the map area "Haidian District, Beijing". The search result corresponding to the first historical record can be a geographical location within "Haidian District, Beijing" whose name includes "park", for example, the geographical location "Xiangshan Park". An example of the application displaying this search result can be found in [link to example]. Figure 6A The user interface 620 is shown in the right figure.

[0319] For example, the first historical record is historical record 5 mentioned above, as detailed in [link to historical record 5]. Figure 7D Record 741 in the user interface 740 shown. The request message for the first historical record may include the keywords "Information Road Huawei Building" and the map area "Beijing Haidian District". The search results corresponding to the first historical record can be information within "Beijing Haidian District" and geographical locations related to "Information Road Huawei Building", assuming it's the geographical location "Huawei Building". An example of the application displaying this search result can be found in [link to example]. Figure 7C The user interface 730 is shown in the right figure.

[0320] For example, the first historical record is historical record 8 mentioned above, as detailed in [link to historical record 8]. Figure 7F Record 771 is shown in the user interface 770. The request message for the first historical record may include the keywords "Huawei Building" and the map area "Haidian District, Beijing". The search results corresponding to the first historical record can be information within "Haidian District, Beijing" and geographical locations related to "Huawei Building". Assuming it is the geographical location "Huawei Building", an example of the application displaying this search result can be found in [link to example]. Figure 7E The user interface 760 is shown in the right figure.

[0321] Not limited to the examples above, in other embodiments, the first position may not be the output obtained by using the first behavior sequence as input to the intent model, but rather the search result corresponding to the first behavior sequence may be directly determined as the first position. In other embodiments, the first position may also be obtained based on the optimal behavior sequence in the behavior sequence in the time domain where the first behavior sequence is located. For details, please refer to [link to relevant documentation]. Figure 8 The description of how the electronic device determines the predicted target in S104.

[0322] Understandably, for any given sequence of user actions, an electronic device can perform at least one of the following: send a temporally segmented version of the action sequence to a network device for use in training an intent model and a satisfaction model (e.g., above). Figure 8 Step S103), based on the temporally segmented behavior sequence, updates the intent model and / or satisfaction model (e.g., above). Figure 8 Step S109), and determining the historical record corresponding to the behavior sequence (e.g., above) Figure 9 (Steps S202-S203) The order of these three items is not limited.

[0323] In the above method, electronic devices can record users' map query behavior and optimize the displayed history based on the recorded query behavior. For example, key elements such as map areas can be displayed in the history, while invalid and redundant history records can be removed, making it easier for users to query based on the history. Furthermore, the way of querying based on history can be optimized, such as searching for keywords included in the history within the map areas covered by the history, thereby accurately reproducing the search results of previous queries without requiring users to re-enter and search for geographical locations, reducing user operations and the processing load on the device.

[0324] Please see Figure 10 , Figure 10 This is a flowchart illustrating another map query method provided in an embodiment of this application. This method can be applied to... Figure 1A and Figure 1B The electronic device 100 in the map query system 10 shown. This method can be applied to... Figure 2A The illustrated electronic device 100. This method can be applied to... Figure 2B The electronic device 100 shown. This method may include, but is not limited to, the following processes: S301: The electronic device receives the first query request.

[0325] In some embodiments, the first query request is used to request a query for keywords entered by the user.

[0326] In some embodiments, the methods by which a user inputs keywords based on an electronic device include, but are not limited to: the user inputting keywords in the form of text, images, or videos by touching the screen of the electronic device; the user inputting keywords in the form of text by using a keyboard connected to the electronic device; the user inputting keywords in the form of voice by using a microphone connected to or built into the electronic device; and the user inputting keywords in the form of images, videos, or gestures by using a camera connected to or built into the electronic device. The form of keywords input by the user may include, but is not limited to, text, images, voice, video, and gestures.

[0327] In some embodiments, the electronic device can receive keywords and user actions input by the user, which can be understood as receiving a first query request based on those keywords, for example... Figure 4A In the illustrated embodiment, when the electronic device displays the user interface 400, it can receive the keyword "Gulou" entered by the user based on the search box 401A, and then receive touch operations (such as click operations) applied to the search control 310B. This can be understood as receiving the first query request based on "Gulou".

[0328] S302: The electronic device displays a first interface, which includes a first search result.

[0329] In some embodiments, the first search result includes at least one geographical location within the map area indicated by the first map area that is related to the first query request. In one case, the first map area is the map area where the electronic device is currently located, such as the city where the electronic device is currently located. In another case, the first map area is the map area adjusted by the user before S301. For example, when the electronic device is located in Beijing and receives a user's query for "Nanjing", the electronic device responds to the request by displaying the search result "Nanjing City", at which point the current map area is adjusted to "Nanjing City". In this case, when the electronic device receives the first query request again, the first search result is at least one geographical location within "Nanjing City" that is related to the first query request.

[0330] In some embodiments, when an electronic device receives a first query request, it may send a request message to a network device. This request message is used to request search results related to the first query request. In some embodiments, after receiving the request message, the network device may query at least one geographical location related to the first keyword within the current map area (such as the city where the electronic device is located), i.e., obtain the first search result. The first keyword is associated with the first query request. Optionally, the first keyword is the keyword described in S301. The network device may send the first search result to the electronic device. In some embodiments, after obtaining the first search result, the electronic device may display a first interface.

[0331] For example, Figure 4A In the illustrated embodiment, the electronic device displays... Figure 4A When the user interface 400 shown in the left figure is accessed, a click operation 401B is received (a query request based on the keyword "Gulou"), therefore the following is displayed: Figure 4A The user interface 410 (first interface) shown in the right figure includes the geographical location "Gulou District, Nanjing City" (first search result).

[0332] For example, Figure 5A In the illustrated embodiment, the electronic device displays... Figure 5AWhen the user interface 400 shown in the left figure is accessed, a click operation 401B is received (a query request based on the keyword "park"), therefore the following is displayed: Figure 5A The user interface 510 shown in the right figure (first interface) includes multiple geographical locations in Beijing whose names include "park" (first search results).

[0333] For example, Figure 6A In the illustrated embodiment, the electronic device displays... Figure 6A When the user interface 510 shown in the left figure is accessed, a click operation 5131 is received (a query request based on the keyword "Xiangshan Park" is received), therefore the following is displayed: Figure 6A The user interface 620 (first interface) shown in the right figure includes the geographical location "Xiangshan Park" (first search result).

[0334] For example, Figure 7C In the illustrated embodiment, the electronic device displays... Figure 7C When the user interface 400 shown in the left figure is accessed, a click operation 401B is received (a query request based on the keyword "Information Road Huawei Building"), therefore the following is displayed: Figure 7C The user interface 730 (first interface) shown in the right figure includes the geographical location "Huawei Building" (first search result).

[0335] The query behavior is not limited to the examples above; for example, there are also... Figure 7A , Figure 7B , Figure 7E The embodiments shown are described in a similar manner to the examples above, and will not be repeated here.

[0336] S303: The electronic device displays a second interface, which includes the first history record.

[0337] In some embodiments, the first historical record corresponds to the first query behavior shown in S301-S302. In some embodiments, the electronic device can record the user's first query behavior, which can be characterized by a corresponding first behavior sequence, as detailed in [reference needed]. Figure 9 Description of S200.

[0338] In some embodiments, the first historical record includes a first keyword and a first map area. The first keyword is associated with a first query request. Optionally, the first keyword is the keyword described in S301, or alternatively, the first keyword is a keyword in the first action sequence. In one case, the first map area is the map area where the first search result is located; in another case, the first map area is the map area where the first position corresponding to the first action sequence is located, and the first position is the output obtained by using the first action sequence as input to the intent model. In some embodiments, the first historical record also includes parameters characterizing the map area's field of view, such as an MBR characterizing the map area's field of view size, where the map area's field of view is the map area displayed when the first search result is displayed. Optionally, the parameters characterizing the map area's field of view can be the output obtained by using the first action sequence as input to the intent model.

[0339] For details on how electronic devices generate the first historical record, please refer to [link / reference needed]. Figure 9 Explanation of S202-S203.

[0340] For an example of an electronic device displaying a second interface, please refer to Figure 9 The description of S205.

[0341] In some embodiments, the first search result is a geographic location within a map area indicated by a first map region, and the first historical record includes the first map region. For example, Figure 4A The search result shown is the geographical location "Gulou District, Nanjing City". The corresponding first historical record displayed on the electronic device is... Figure 4B The user interface 430 shown contains a record 431, which includes a map area 431C indicating the geographic location "Gulou District, Nanjing City".

[0342] In other embodiments, the first search result includes multiple geographic locations, and the map extent indicated by the first map area may include the map extent indicated by the map areas containing these multiple geographic locations. For example, the first map area is the smallest map area that includes the map areas containing these multiple geographic locations. The first historical record includes the first map area. For example, Figure 5A The search results shown include the geographic locations "Xiangshan Park", "Beihai Park", and "World Park", corresponding to the map regions "Haidian District", "Xicheng District", and "Fengtai District" respectively. Assume the smallest map region including these three is "Beijing". The corresponding first historical record displayed on the electronic device is... Figure 5B The user interface 520 shown contains a record 521, and the map area 521C included in record 521 indicates the map area as "Beijing".

[0343] In some embodiments, the electronic device can perform temporal segmentation of the behavioral sequence, as detailed in [reference needed]. Figure 8The explanation of S102 assumes that the first action sequence and the second action sequence belong to the same time domain. In some embodiments, the electronic device can determine whether to display the first historical record corresponding to the first action sequence based on the target location and satisfaction level corresponding to the first action sequence and the second action sequence, respectively. The satisfaction level corresponding to the first action sequence can be the output obtained by using the first action sequence as input to a satisfaction model, and the same applies to the second action sequence. For example, when the target locations corresponding to the first action sequence and the second action sequence are the same, if the satisfaction level corresponding to the first action sequence is greater than the satisfaction level corresponding to the second action sequence, it can be determined that the first historical record corresponding to the first action sequence is displayed, and optionally, the historical record corresponding to the second action sequence is deleted. If the satisfaction level corresponding to the first action sequence is less than the satisfaction level corresponding to the second action sequence, it can be determined that the display is not limited to the first historical record corresponding to the first action sequence. See [link to relevant documentation] for details. Figure 9 Explanation of S203.

[0344] In some embodiments, the aforementioned intent model and / or satisfaction model may be trained by the network device and sent to the electronic device, as detailed in [reference needed]. Figure 8 The descriptions of S101-S105 are provided below. Optionally, the electronic device can update the intent model and / or satisfaction model it receives from the network device; see details below. Figure 8 The descriptions of S106-S109 are provided below. In some other embodiments, the above-mentioned intent model and / or satisfaction model can be trained by the electronic device itself, in a manner similar to that of network device reconnection, and will not be repeated here.

[0345] S304: The electronic device receives a second query request based on the first historical record.

[0346] In some embodiments, the electronic device may receive user input regarding user actions in relation to a first historical record, such as touch operations, voice operations, motion sensing operations, brainwaves, etc., which can be understood as receiving a query request based on the first historical record. For example, the electronic device displays... Figure 4B When the user interface 430 (second interface) is shown, a touch operation (e.g., a click operation) is received that acts on the record 431 (first history record), which can be understood as receiving a query request based on the record 431.

[0347] S305: The electronic device displays a third interface, which is the same as the first interface.

[0348] In some embodiments, when the electronic device receives the second query request, it is located at a first geographical location. The first geographical location is within a map area indicated by a second map area, which is different from the first map area. This can be understood as the map area where the electronic device is located in S304 being different from the map area where the electronic device is located in S301. For example, when the electronic device is located in "Nanjing City", the query is executed... Figure 4A The query behavior shown (including receiving the first query request) yielded the following search results: Figure 4A The user interface 410 shown in the right figure displays the geographical location "Gulou District, Nanjing City". The first historical record is... Figure 4B When the electronic device is located in "Beijing" and receives a touch operation on record 431 in the user interface 430 shown (receiving a second query request), the search result is still the above-mentioned geographical location "Gulou District, Nanjing", instead of geographical locations related to the keyword "Gulou" in "Beijing" and included in record 431.

[0349] In some embodiments, when an electronic device receives a query request based on a first historical record, it can send a request message to a network device. This request message requests search results related to a second query request. The request message includes a first map area and a first keyword. In some embodiments, after receiving the request message, the network device can query at least one geographical location related to the first keyword within the map area indicated by the first historical record, i.e., obtain search results. Figure 10 Taking the obtained search result as the first search result as an example, the network device can send the first search result to the electronic device. In some embodiments, after the electronic device obtains the first search result, it can display a third interface. See details below. Figure 9 Explanation of S206-S209.

[0350] In one possible implementation, the map query method provided in this application embodiment further includes: The electronic device receives a third query request, which is associated with the second keyword. For example, the electronic device displays... Figure 4A When the user interface 400 shown in the left figure is in use, it can receive the keyword "Gulou" (which can be understood as a second keyword associated with the third query request) entered by the user based on the search box 401A, and then it can receive touch operations (such as click operations) performed on the search control 310B, which can be understood as receiving the third query request.

[0351] The electronic device displays a fourth interface, which includes a second search result. The second search result includes at least one geographic location related to the third query request within the map area indicated by the fifth map area. For example, the electronic device displays... Figure 4AThe user interface 410 shown in the right figure (which can be understood as the fourth interface) includes the geographical location "Gulou District, Nanjing City" (which can be understood as the second search result), and the map area where the geographical location is located is "Gulou District, Nanjing City" (which can be understood as the fifth map area).

[0352] The electronic device receives a first user action. In some embodiments, the first user action is a zoom-out gesture or a zoom-in gesture. The electronic device displays a fifth interface, which includes a second search result, wherein the size of the fifth image area displayed on the fifth interface is different from the size of the fifth image area displayed on the fourth interface. For example, Figure 4C In the illustrated embodiment, the electronic device displays... Figure 4C When the user interface 410 shown in the left figure receives a two-finger zoom-out gesture (which can be understood as the first user operation), in response to the gesture, the size of the displayed area is reduced, and the display... Figure 4C The user interface 440 shown in the right figure (which can be understood as the fifth interface) has a smaller view area 441 compared to the view area 412 in the user interface 410.

[0353] The electronic device displays a sixth interface, which includes a second history section, comprising a second keyword section and a fifth image area. For example, the electronic device displays... Figure 4B The user interface 430 shown (which can be understood as the sixth interface) includes a record 431 (which can be understood as the second history record). The record 431 includes a character 431B indicating the keyword "Gulou" (which can be understood as the second keyword) and a map area 431C indicating "Gulou District, Nanjing City" (which can be understood as the fifth map area).

[0354] The electronic device receives a fourth query request based on a second historical record and displays a seventh interface, which is identical to the fifth interface. For example, the electronic device receives an action... Figure 4B The touch operation (e.g., click operation) of record 431 in the user interface 430 shown can be understood as receiving a fourth query request and responding to the touch operation by displaying... Figure 4C The user interface 440 shown in the right figure (which can be understood as the seventh interface) is shown in the right figure.

[0355] In some embodiments, when an electronic device receives a query request based on a second historical record, it can send a request message to a network device. This request message requests search results related to the fourth query request. The request message includes a second keyword, a fifth image area, and a first parameter. The first parameter characterizes the size of the fifth image area displayed on the fifth interface, such as the image area view 441 in the user interface 440. After receiving the request message, the network device can obtain the second search result and the corresponding image area view according to the first parameter, and send them to the electronic device. After receiving the image area view and the second search result, the electronic device can display the first search result within the image area view. See details... Figure 9 Explanation of S206-S209.

[0356] In yet another possible implementation, the map query method provided in this application embodiment further includes: The electronic device receives a fifth query request, which is associated with the third keyword. For example, the electronic device displays... Figure 5A When the user interface 400 shown in the left figure is in use, it can receive the keyword "park" (which can be understood as the third keyword associated with the fifth query request) entered by the user based on the search box 401A, and then it can receive touch operations (such as click operations) performed on the search control 310B, which can be understood as receiving the fifth query request.

[0357] The electronic device displays an eighth interface, which includes a third search result. The third search result includes a fifth geographical location and a sixth geographical location related to the fifth query request. The fifth geographical location is within the map area indicated by the sixth map area, and the sixth geographical location is within the map area indicated by the seventh map area. The sixth and seventh map areas are different. For example, the electronic device displays... Figure 5A The user interface 510 shown in the right figure (which can be understood as the eighth interface) includes multiple geographical locations in Beijing whose names include "park". These include the geographical locations "Xiangshan Park" (which can be understood as the fifth geographical location) and "Beihai Park" (which can be understood as the sixth geographical location). The map area for the geographical location "Xiangshan Park" is "Haidian District, Beijing" (which can be understood as the sixth map area), and the map area for the geographical location "Beihai Park" is "Xicheng District, Beijing" (which can be understood as the seventh map area).

[0358] The electronic device receives a second user operation on the eighth interface targeting the fifth geographic location. The electronic device then displays a ninth interface, which includes the fifth geographic location within the map area indicated in the sixth map region. For example, Figure 6A In the illustrated embodiment, the electronic device displays... Figure 5AWhen the user interface 510 shown in the right figure is accessed, a touch operation is received that acts on the search result 5131 or location identifier 512A in the user interface 510. This can be understood as receiving a second user operation. In response to the touch operation, the following is displayed: Figure 6A The user interface 620 shown in the right figure (which can be understood as the ninth interface) includes the geographical location "Xiangshan Park" in the area "Haidian District, Beijing".

[0359] The electronic device displays a tenth interface, which includes a third history section. This third history section includes a third keyword and a sixth image area. For example, the electronic device displays... Figure 6B The user interface 630 shown (which can be understood as the tenth interface) includes a record 632 (which can be understood as the third history record). The record 632 includes characters indicating the keyword "park" (which can be understood as the third keyword) and a map area 632A indicating "Haidian District, Beijing" (which can be understood as the sixth map area).

[0360] The electronic device receives a sixth query request based on a third historical record and displays an eleventh interface, which is identical to the ninth interface. For example, the electronic device receives an action... Figure 6B The touch operation on record 632 in the user interface 630 shown can be understood as receiving the sixth query request and responding to the touch operation by displaying... Figure 6A The user interface 620 shown in the right figure (which can be understood as the eleventh interface) is shown in the figure on the right.

[0361] In some embodiments, the fifth and sixth geographic locations are within the map area indicated by the eighth map area, which includes the map area indicated by the sixth map area and the map area indicated by the seventh map area. For example, an electronic device displays... Figure 5A The user interface 510 shown in the right figure includes multiple geographical locations in Beijing whose names include "park," including the geographical locations "Xiangshan Park" (fifth geographical location) and "Beihai Park" (sixth geographical location). The map area for the geographical location "Xiangshan Park" is "Haidian District, Beijing" (sixth map area), and the map area for the geographical location "Beihai Park" is "Xicheng District, Beijing" (seventh map area). The eighth map area can be "Beijing".

[0362] In some embodiments, the tenth interface further includes a fourth history record, which includes information about a first POI, which is a fifth geographic location. The information about the first POI includes the name of the fifth geographic location and a sixth map area. For example, an electronic device displays... Figure 6BThe user interface 630 shown (which can be understood as the tenth interface) includes records 632 (which can be understood as the third historical record) and 631 (which can be understood as the fourth historical record). Record 631 corresponds to the POI "Xiangshan Park" selected by the user from the search results after querying "park" (which can be understood as the fifth geographical location). Record 631 includes an icon 631A and a character 631B, which can indicate the keyword "Xiangshan Park" of type POI, that is, the name of the aforementioned POI "Xiangshan Park". Record 631 also includes a map area 631C, which can indicate the map area "Haidian District, Beijing" for the aforementioned POI "Xiangshan Park".

[0363] In yet another possible implementation, the map query method provided in this application embodiment further includes: The electronic device receives a seventh query request, which is associated with the fourth keyword. For example, the electronic device displays... Figure 7B When the user interface 400 shown in (1) is in use, it can receive the keyword "Huawei Building" (which can be understood as the fourth keyword associated with the seventh query request) entered by the user based on the search box 401A, and then it can receive the touch operation (e.g., click operation) performed on the search control 310B, which can be understood as receiving the seventh query request.

[0364] The electronic device displays a twelfth interface, which includes a fourth search result. This fourth search result includes a seventh geographic location related to the seventh query request. For example, the electronic device displays... Figure 7B The user interface 710 shown in (2) (which can be understood as the twelfth interface) includes multiple geographical locations in Beijing and related to "Huawei Building", including the geographical location "Huawei Building" (which can be understood as the seventh geographical location).

[0365] The electronic device receives a third user action regarding the seventh geographic location in the twelfth interface. The electronic device then displays a thirteenth interface, which includes the seventh geographic location within the map area indicated in the ninth map region. For example, the electronic device displays... Figure 7B When the user interface 710 shown in (2) is received, a touch operation acting on the search result 7131 or location identifier 712A in the user interface 710 can be understood as receiving a third user operation. The electronic device responds to this touch operation by displaying... Figure 7B The user interface 720 shown in (3) (which can be understood as the thirteenth interface) includes the geographical location "Huawei Building" (which can be understood as the seventh geographical location) with the map area "Haidian District, Beijing" (which can be understood as the ninth map area).

[0366] The electronic device receives an eighth query request, which is associated with a fifth keyword. The electronic device displays a fourteenth interface, which includes a fifth search result, which includes the seventh geographic location associated with the eighth query request. For example, the electronic device displays... Figure 7A When the user interface 400 shown in the left figure is active, it can receive the keyword "Huawei Building" (which can be understood as the fifth keyword associated with the eighth query request) entered by the user based on the search box 401A. Then, it can receive a touch operation on the search control 310B, which can be understood as receiving the eighth query request. The electronic device responds to this touch operation by displaying... Figure 7A The user interface 750 shown in the right figure (which can be understood as the fourteenth interface) includes multiple geographical locations in Beijing related to "Huawei Building", including the geographical location "Huawei Building" (which can be understood as the seventh geographical location).

[0367] The electronic device displays a fifteenth interface, which includes a fifth history record. The fifth history record includes a fourth keyword and a ninth map area. For example, the fourth keyword included in the fifth history record is the keyword "Huawei Building" associated with the seventh query request, and the ninth map area included in the fifth history record is the map area "Haidian District, Beijing" for the aforementioned seventh geographical location "Huawei Building".

[0368] The electronic device receives a ninth query request based on the fifth historical record and displays the sixteenth screen, which is identical to the thirteenth screen. For example, if the electronic device receives a touch operation on the fifth historical record, it can be understood as receiving a ninth query request. In response to this touch operation, the electronic device displays... Figure 7B The user interface 720 shown in (3) can be understood as the sixteenth interface.

[0369] In yet another possible implementation, prior to S301, the method further includes: An electronic device receives a tenth query request and displays a seventeenth interface. The seventeenth interface includes a sixth search result, which includes at least one geographic location related to the tenth query request. For example, the electronic device displays... Figure 7B When the user interface 400 shown in (1) is active, it can receive the keyword "Huawei Building" entered by the user based on the search box 401A and the touch operation on the search control 310B, which can be understood as receiving the tenth query request. The electronic device responds to the touch operation and displays Figure 7B The user interface 710 shown in (2) can be understood as the seventeenth interface.

[0370] After the electronic device displays the seventeenth screen, steps S301 and S302 can be executed. For example, the electronic device displays... Figure 7CWhen the user interface 400 shown in the left figure is active, it can receive the keyword "Information Road Huawei Building" entered by the user based on the search box 401A and the touch operation on the search control 310B, which can be understood as receiving the first query request. The electronic device responds to this touch operation by displaying... Figure 7C The user interface 730 shown in the right figure (which can be understood as the first interface) includes the geographical location "Huawei Building" (which can be understood as the first search result).

[0371] The second interface displayed by the electronic device in S303 is, for example, Figure 7D The user interface 740 shown includes a record 741 (which can be understood as the first historical record). The record 741 includes a character 741B indicating the first keyword "Information Road Huawei Building" and a map area 741C indicating the map area "Haidian District, Beijing" where the first search result "Huawei Building" is located.

[0372] The electronic device can execute S304-S305; for example, the electronic device can receive an action performed on... Figure 7D The touch operation on record 741 in the user interface 740 shown can be understood as receiving a second query request. In response to this touch operation, the electronic device displays... Figure 7C The user interface 730 shown in the right figure can be understood as a third interface.

[0373] In yet another possible implementation, the map query method provided in this application embodiment further includes: The electronic device receives the eleventh query request and displays the eighteenth interface, which includes the seventh search result. The seventh search result includes an eighth geographical location related to the eleventh query request. For example, the electronic device displays... Figure 7A When the user interface 400 shown in the left figure is active, it can receive the keyword "Huawei Building" entered by the user based on the search box 401A and the touch operation on the search control 310B, which can be understood as receiving the eleventh query request. The electronic device responds to this touch operation by displaying... Figure 7A The user interface 750 shown in the right figure (which can be understood as the eighteenth interface) includes multiple geographical locations in Beijing related to "Huawei Building", including the geographical location "Huawei Building" (which can be understood as the eighth geographical location).

[0374] The electronic device receives a fourth user operation on the eighteenth interface for the eighth geographic location, and displays the nineteenth interface, which includes the eighth geographic location within the map area indicated by the tenth map area. For example, Figure 7E In the illustrated embodiment, the electronic device displays... Figure 7AWhen the user interface 750 shown in the right figure is accessed, a touch operation is received on the search result 7532 within the user interface 750, which can be understood as receiving a fourth user operation. The electronic device responds to this touch operation by displaying... Figure 7E The user interface 760 shown in the right figure (which can be understood as the nineteenth interface) includes the geographical location "Huawei Building" (which can be understood as the eighth geographical location).

[0375] The electronic display has a twentieth interface, which includes a sixth history record. This history record includes a sixth keyword and the tenth map area. The sixth keyword is associated with the name of the eighth geographical location. For example, the electronic device displays... Figure 7F The user interface 770 shown (which can be understood as the twentieth interface) includes a record 771 (which can be understood as the sixth historical record). The record 771 includes a character 771B indicating the sixth keyword "Huawei Building". The sixth keyword is also the name of the eighth geographical location "Huawei Building". The record 771 also includes a map area 771C indicating the map area "Haidian District, Beijing" of the eighth geographical location "Huawei Building".

[0376] The electronic device receives a twelfth query request based on the sixth historical record and displays a twenty-first screen, which is identical to the nineteenth screen. For example, the electronic device receives an action... Figure 7F The touch operation on record 771 in the user interface 770 shown can be understood as receiving the twelfth query request. In response to this touch operation, the electronic device displays... Figure 7E The user interface 760 shown in the right figure (which can be understood as the twenty-first interface) is shown in the right figure.

[0377] Figure 10 A user interface example of the method shown can be found here. Figures 4A-4C , Figures 5A-5B , Figures 6A-6C , Figures 7A-7F .

[0378] The steps performed by the above modules or units can be implemented by multiple modules or units. One or more of the above modules or units can be implemented by software, hardware, or a combination of both.

[0379] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program using computer program-related hardware. This computer program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing computer program code, such as read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

Claims

1. A map query method, characterized in that, Applied to electronic devices, the method includes: Receive the first query request; The first interface is displayed, which includes a first search result. The first search result includes at least one geographical location related to the first query request within the map area indicated by the first map area. When the first query request is received, the electronic device is located within the map area indicated by the first map area. The second interface is displayed, which includes a first history record, which is associated with the first query request; the first history record includes a first keyword and a first image area. Receive a second query request based on the first historical record; The third interface is displayed based on the first keyword and the first image area.

2. The method as described in claim 1, characterized in that, When the electronic device receives a second query request based on the first historical record, it is located in a first geographical location, which is within a map area indicated by a second map area, which is different from the first map area.

3. The method as described in claim 1 or 2, characterized in that, The first keyword is associated with the first query request, and the first image area is associated with the first query request.

4. The method as described in claim 3, characterized in that, The at least one geographic location includes a third geographic location and a fourth geographic location, the third geographic location being within the map area indicated by the third map area, the fourth geographic location being within the map area indicated by the fourth map area, and the map area indicated by the first map area including the map area indicated by the third map area and the map area indicated by the fourth map area.

5. The method according to any one of claims 1-4, characterized in that, The method further includes: Receive a third query request; The fourth interface is displayed, which includes a second search result, which includes at least one geographic location related to the third query request within the map area indicated by the fifth map area. Receive the first user's operation; The fifth interface is displayed, which includes the second search results. The size of the fifth image area displayed on the fifth interface is different from the size of the fifth image area displayed on the fourth interface. The sixth interface is displayed, which includes a second history record, which includes a second keyword and the fifth image area. The second keyword is associated with the third query request. Receive a fourth query request based on the second historical record; The seventh interface is displayed, and the seventh interface is the same as the fifth interface.

6. The method as described in claim 5, characterized in that, The first user action is a zoom-out gesture or a zoom-in gesture.

7. The method according to any one of claims 1-4, characterized in that, The method further includes: Receive the fifth query request; The eighth interface is displayed, which includes a third search result. The third search result includes a fifth geographical location and a sixth geographical location related to the fifth query request. The fifth geographical location is within the map range indicated by the sixth map area, and the sixth geographical location is within the map range indicated by the seventh map area. The sixth map area and the seventh map area are different. Receive a second user action regarding the fifth geographic location in the eighth interface; Display a ninth interface, which includes the fifth geographical location within the map area indicated by the sixth map area; The tenth interface is displayed, which includes a third history record, which includes a third keyword and the sixth image area. The third keyword is associated with the fifth query request. Receive a sixth query request based on the third historical record; The eleventh interface is displayed, and the eleventh interface is the same as the ninth interface.

8. The method as described in claim 7, characterized in that, The fifth and sixth geographical locations are within the map area indicated by the eighth map area, which includes the map area indicated by the sixth map area and the map area indicated by the seventh map area.

9. The method as described in claim 7 or 8, characterized in that, The tenth interface also includes a fourth historical record, which includes information about a first point of interest (POI), which is the fifth geographical location. The information of the first POI includes the name of the fifth geographical location and the sixth map area.

10. The method according to any one of claims 1-4, characterized in that, The method further includes: Received the seventh query request; The twelfth screen is displayed, which includes a fourth search result, which includes a seventh geographic location related to the seventh query request; Receive a third user action on the seventh geographic location in the twelfth interface; The thirteenth interface is displayed, which includes the seventh geographical location within the map area indicated by the ninth map area; Received the eighth query request; The fourteenth screen is displayed, which includes a fifth search result, which includes the seventh geographic location related to the eighth query request; The fifteenth interface is displayed, which includes the fifth history record, which includes the fourth keyword and the ninth image area. The fourth keyword is associated with the seventh query request. Receive a ninth query request based on the fifth historical record; The sixteenth screen is displayed, and the sixteenth screen is the same as the thirteenth screen.

11. The method as described in claim 10, characterized in that, The fourth keyword and the fifth keyword are different, and the fifth keyword is associated with the eighth query request.

12. The method according to any one of claims 1-4, wherein before receiving the first query request, the method further comprises: Receive the tenth query request; The seventeenth screen is displayed, which includes the sixth search result, which includes at least one geographic location related to the tenth query request.

13. The method according to any one of claims 1-4, characterized in that, The method further includes: Received the eleventh query request; The eighteenth screen is displayed, which includes the seventh search result, which includes the eighth geographic location related to the eleventh query request; Receive a fourth user action on the eighth geographic location in the eighteenth interface; Display the nineteenth interface, which includes the eighth geographic location within the map area indicated by the tenth map area; The twentieth interface is displayed. The twentieth interface includes the sixth history record, which includes the sixth keyword and the tenth map area. The sixth keyword is associated with the name of the eighth geographical location. Receive the twelfth query request based on the sixth historical record; The twenty-first interface is displayed, and the twenty-first interface is the same as the nineteenth interface.

14. The method as described in claim 3 or 4, characterized in that, Before displaying the third interface, the method further includes: Send a first request message to the network device. The first request message is used to request search results related to the second query request. The first request message includes the first keyword and the first image area. The first search result sent by the network device is obtained, and the first search result is used by the electronic device to display the third interface.

15. The method as described in claim 5 or 6, characterized in that, Before displaying the seventh interface, the method further includes: Send a second request message to the network device. The second request message is used to request the search results related to the fourth query request. The second request message includes the second keyword, the fifth image area, and a first parameter. The first parameter is used to characterize the size of the fifth image area displayed on the fifth interface. The second search result sent by the network device is obtained, and the second search result is used by the electronic device to display the seventh interface.

16. An electronic device, characterized in that, It includes a transceiver, a processor, and a memory, the memory being used to store a computer program, and the processor calling the computer program to perform the method as described in any one of claims 1-15.

17. A computer storage medium, characterized in that, The computer storage medium stores a computer program, which, when executed by a processor, implements the method described in any one of claims 1-15.