WO2023142938A1 - 地图查询方法及电子设备 - Google Patents
地图查询方法及电子设备 Download PDFInfo
- Publication number
- WO2023142938A1 WO2023142938A1 PCT/CN2023/070626 CN2023070626W WO2023142938A1 WO 2023142938 A1 WO2023142938 A1 WO 2023142938A1 CN 2023070626 W CN2023070626 W CN 2023070626W WO 2023142938 A1 WO2023142938 A1 WO 2023142938A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- interface
- map
- query
- map area
- geographic location
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 158
- 230000015654 memory Effects 0.000 claims description 38
- 238000004590 computer program Methods 0.000 claims description 17
- 230000006399 behavior Effects 0.000 description 389
- 238000010586 diagram Methods 0.000 description 73
- 230000008569 process Effects 0.000 description 54
- 230000004044 response Effects 0.000 description 32
- 238000004891 communication Methods 0.000 description 25
- 238000012545 processing Methods 0.000 description 22
- 238000007726 management method Methods 0.000 description 21
- 238000012549 training Methods 0.000 description 19
- 230000006870 function Effects 0.000 description 17
- 238000010295 mobile communication Methods 0.000 description 11
- 230000005236 sound signal Effects 0.000 description 10
- 230000011218 segmentation Effects 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 5
- 229920001621 AMOLED Polymers 0.000 description 4
- 101100400624 Caenorhabditis elegans mbr-1 gene Proteins 0.000 description 4
- 238000012937 correction Methods 0.000 description 4
- 210000004556 brain Anatomy 0.000 description 3
- 230000003238 somatosensory effect Effects 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 238000013528 artificial neural network Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 230000003542 behavioural effect Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000012512 characterization method Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012554 master batch record Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/242—Query formulation
- G06F16/2425—Iterative querying; Query formulation based on the results of a preceding query
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/242—Query formulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/248—Presentation of query results
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
Definitions
- the present application relates to the field of computer technology, in particular to a map query method and electronic equipment.
- Electronic maps generally record user history or keywords that have been queried before. For example, if a user searches for the keyword "Drum Tower", the map will record the user's search history for "Drum Tower”. However, when the user searches again, the search will be limited to the current city. For example, although both Tianjin and Shanghai have the search results for "Drum Tower", the city where the electronic device is currently located is Tianjin, and the map search engine gives The search results will only be the search results for "Drum Tower” in Tianjin. The historical record query results provided by the electronic map are not accurate enough.
- the embodiment of the present application discloses a map query method and an electronic device, which can reproduce search results obtained from previous queries when querying based on historical records, the search results are more accurate, and user query operations are reduced.
- the present 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 includes a first search result, and the first search
- the results include at least one geographic location related to the first query request within the map range indicated by the first map area; display a second interface, the second interface includes a first history record, and the first history record is related to the first query request. associated with the first query request; receive a second query request based on the first history record; and display a third interface, where the third interface is the same as the first interface.
- the search result obtained by the electronic device based on the first historical record query is the first search result obtained from the previous query, and the user can reproduce the search result obtained from the previous query without performing cumbersome query operations, and the search result is more accurate , improve user experience, and reduce device processing pressure.
- the electronic device when the second query request based on the first history record is received, the electronic device is located at a first geographic location, and the first geographic location is within the map range indicated by the second map area. , the second image area is different from the first image area.
- the first map area is the map area where the electronic device was inquired before, and when the electronic device is in the second map area other than the first map area, it receives the second query request based on the first historical record, and the
- the search result obtained at the time is the first search result obtained from the previous query, rather than the search result related to the second query request in the second map area, which accurately reproduces the geographical location obtained from the previous search, and the search result is more accurate, very good Meet user needs.
- the first history record includes a first keyword and the first map area, and the first keyword is associated with the first query request.
- the first history record includes the first map area where the first search result obtained from the previous query is located, so that the user can quickly obtain the map area information of the search result of the historical query through the history record, and assist the user to select the desired Query historical records, user operation is more convenient.
- the at least one geographic location includes a second geographic location, and the second geographic location is within the map range indicated by the first map area; or, the at least one geographic location includes a second geographic location
- the third geographic location is within the map range indicated by the third map area
- the fourth geographic location is within the map range indicated by the fourth map area
- the first map area indicates The map range includes the map range indicated by the third map area and the map range indicated by the fourth map area.
- the method further includes: receiving a third query request; displaying a fourth interface, where the fourth interface includes a second search result, and the second search result includes the At least one geographic location within the range of the map related to the third query request; receiving the first user operation; displaying a fifth interface, the fifth interface including the second search result, wherein the fifth interface displays The size of the fifth map area is different from the size of the fifth map area displayed on the fourth interface; a sixth interface is displayed, and the sixth interface includes a second historical record, and the second historical record includes the first The second keyword is associated with the fifth map area, the second keyword is associated with the third query request; the fourth query request based on the second historical record is received; the seventh interface is displayed, and the seventh The interface is the same as the fifth interface.
- the first user operation is a zoom-out gesture or a zoom-in gesture.
- the size of the graph area when the electronic device displays the second search result obtained based on the second historical record query is the size of the graph area when the second search result queried was displayed before, and the user does not need to adjust the displayed graph.
- the operation of the size of the area further reduces user operations, and the search results are more accurate.
- the method further includes: receiving a fifth query request; displaying an eighth interface, where the eighth interface includes a third search result, and the third search result includes the fifth query request Related fifth geographic location and sixth geographic location, the fifth geographic location is within the map range indicated by the sixth map area, the sixth geographic location is within the map range indicated by the seventh map area, and the sixth geographic location is within the map range indicated by the seventh map area.
- the map area is different from the seventh map area; receive the second user operation for the fifth geographic location in the eighth interface; display the ninth interface, and the ninth interface is included in the sixth map area
- the third search result obtained by the electronic device query includes multiple geographic locations, and the user selects the fifth geographic location, and the correspondingly displayed third history record includes the fifth geographic location selected by the user.
- the search result obtained based on the third historical record query is the fifth geographic location previously selected by the user instead of the third search result, and the user does not need to perform the operation of selecting the fifth geographic location, further reducing user operations, Search results are more accurate.
- the fifth geographic location and the sixth geographic location are within a map range indicated by an eighth map area, and the map range indicated by the eighth map area includes the sixth map area The indicated map range and the map range indicated by the seventh map area.
- the tenth interface further includes a fourth history record, where the fourth history record includes information about a first information point POI, where the first POI is the fifth geographic location, and the The information of the first POI includes the name of the fifth geographic location and the sixth map area.
- the method further includes: receiving a seventh query request; displaying a twelfth interface, where the twelfth interface includes a fourth search result, and the fourth search result includes and the seventh Inquiring about the seventh geographic location related to the request; receiving a third user operation on the seventh geographic location in the twelfth interface; displaying a thirteenth interface, the thirteenth interface including the indication in the ninth map area The seventh geographical location within the range of the map; receive the eighth query request; display the fourteenth interface, the fourteenth interface includes the fifth search result, the fifth search result includes the eighth query request The related seventh geographic location; displaying the fifteenth interface, the fifteenth interface includes the fifth historical record, the fifth historical record includes the fourth keyword and the ninth map area, the fourth A keyword is associated with the seventh query request; a ninth query request based on the fifth history record is received; a sixteenth interface is displayed, and the sixteenth interface is the same as the thirteenth interface.
- the electronic device may only display the seventh geographic location corresponding to the first query.
- Five historical records can be understood as determining the displayed historical records based on whether there is an operation for the user to select a geographic location, avoiding displaying invalid and redundant historical records, making it more convenient for users to view, and reducing the storage pressure of the device.
- the search result obtained based on the fifth historical record query is the seventh geographic location previously selected by the user, rather than the fourth search result or the fifth search result, further reducing user operations and making the search result more accurate.
- the fourth keyword is different from the fifth keyword, and the fifth keyword is associated with the eighth query request.
- the method before receiving the first query request, further includes: receiving a tenth query request; displaying a seventeenth interface, where the seventeenth interface includes the sixth search result, and the first The sixth search result includes at least one geographic location related to the tenth query request.
- the electronic device when the user made multiple queries in a short period of time during the previous map query, the electronic device can only display the first historical record corresponding to the latest query, which can be understood as determining the displayed historical record according to the query time to avoid displaying Invalid and redundant historical records are more convenient for users to view and reduce the storage pressure of equipment.
- the search result obtained based on the first history record query is the first search result obtained by the user's latest query, and the search result is more accurate.
- the method further includes: receiving an eleventh query request; displaying an eighteenth interface, where the eighteenth interface includes a seventh search result, and the seventh search result includes and the first Eleventh query request related to the eighth geographic location; receive the fourth user operation for the eighth geographic location in the eighteenth interface; display the nineteenth interface, the nineteenth interface is included in the tenth figure The eighth geographic location within the map range indicated by the zone; display the twentieth interface, the twentieth interface includes the sixth historical record, the sixth historical record includes the sixth keyword and the tenth map area , the sixth keyword is associated with the name of the eighth geographical location; receiving the twelfth query request based on the sixth historical record; displaying the twenty-first interface, the twenty-first interface and the The above nineteen interfaces are the same.
- the keyword included in the sixth historical record displayed by the electronic device may not be the keyword input by the user, but the keyword
- the name correlation of the selected eighth geographic location can be understood as automatic error correction, which reduces the impact of user input errors, and the user does not need to perform the operation of selecting the eighth geographic location, further reducing user operations and making search results more accurate.
- the method before displaying the third interface, further includes: sending a first request message to a network device, where the first request message is used to request to obtain the search information related to the second query request As a result, the first request message includes the first keyword and the first map area; the first search result sent by the network device is obtained, and the first search result is used for display by the electronic device the third interface.
- the method before displaying the seventh interface, further includes: sending a second request message to the network device, where the second request message is used to request to obtain the search information related to the fourth query request As a result, the second request message includes the second keyword, the fifth graph area and a first parameter, and the first parameter is used to characterize the size of the fifth graph area displayed on the fifth interface and acquiring the second search result sent by the network device, where the second search result is used by the electronic device to display the seventh interface.
- the present application provides yet another map query method, which is applied to a network device.
- the method includes: receiving a first request message, the first request message is sent when the electronic device receives the first query request, and the The first request message is used to request to obtain search results related to the first query request; the first search result is sent to the electronic device, and the first search result is used for the electronic device to display a first interface, the The first search result includes at least one geographic location related to the first query request within the map range indicated by the first map area; receiving a second request message, the second request message being received by the electronic device based on the first query request A second query request for a historical record is sent, the first historical record is displayed after the electronic device displays the first interface, the first historical record is associated with the first query request, and the The second request message is used to request to obtain search results related to the second query request; sending the first search result to the electronic device, and the first search result is used for the electronic device to display a second interface, The second interface is the same as the first interface.
- the search result obtained by the electronic device based on the first historical record query is the first search result obtained from the previous query, and the user can reproduce the search result obtained from the previous query without performing cumbersome query operations, and the search result is more accurate , improve user experience, and reduce device processing pressure.
- the electronic device when the electronic device receives the second query request, the electronic device is located at a first geographic location, and the first geographic location is within the range of the map indicated by the second map area, so The second map area is different from the first map area.
- the first map area is the map area where the electronic device was inquired before, and when the electronic device is in the second map area other than the first map area, it receives the second query request based on the first historical record, and the
- the search result obtained at the time is the first search result obtained from the previous query, rather than the search result related to the second query request in the second map area, which accurately reproduces the geographical location obtained from the previous search, and the search result is more accurate, very good Meet user needs.
- the first history record includes a first keyword and the first map area, and the first keyword is associated with the first query request.
- the first history record includes the first map area where the first search result obtained from the previous query is located, so that the user can quickly obtain the map area information of the search result of the historical query through the history record, and assist the user to select the desired Query historical records, user operation is more convenient.
- the second request message includes the first keyword and the first map area.
- the at least one geographic location includes a second geographic location, and the second geographic location is within the map range indicated by the first map area; or, the at least one geographic location includes a second geographic location
- the third geographic location is within the map range indicated by the third map area
- the fourth geographic location is within the map range indicated by the fourth map area
- the first map area indicates The map range includes the map range indicated by the third map area and the map range indicated by the fourth map area.
- the method further includes: receiving a third request message, the third request message is sent when the electronic device receives a third query request, and the third request message is used to request Acquire search results related to the third query request; send a second search result to the electronic device, the second search result is used by the electronic device to display a third interface, and the second search result is included in the fifth At least one geographic location related to the third query request within the map range indicated by the map area; receiving a fourth request message, the fourth request message is sent when the electronic device receives a first user operation, the The first user operation is used to adjust the size of the fifth graphic area displayed by the electronic device on the third interface; send the adjusted fifth graphic area to the electronic device, and the adjusted fifth graphic area
- the fifth map area is used for the electronic device to display a fourth interface, the fourth interface includes the second search result, the size of the fifth map area displayed on the third interface and the size of the fourth interface The size of the displayed fifth map area is different; a fifth request message is received, and the fifth request message is
- the first user operation is a zoom-out gesture or a zoom-in gesture.
- the size of the graph area when the electronic device displays the second search result obtained based on the second historical record query is the size of the graph area when the second search result queried was displayed before, and the user does not need to adjust the displayed graph.
- the operation of the size of the area further reduces user operations, and the search results are more accurate.
- the second history record includes a second keyword and the fifth map area, and the second keyword is associated with the third query request.
- the fifth request message includes the second keyword, the fifth map area, and a first parameter, and the first parameter is used to characterize all the information displayed on the fourth interface. Describe the size of the fifth map area.
- the method further includes: receiving a sixth request message, the sixth request message is sent when the electronic device receives the fifth query request, and the sixth request message is used to request Obtain a search result related to the fifth query request; send a third search result to the electronic device, the third search result is used for the electronic device to display a sixth interface, the third search result includes and the The fifth query requests related fifth and sixth geographic locations, the fifth geographic location is within the map range indicated by the sixth map area, and the sixth geographic location is within the map range indicated by the seventh map area, The sixth map area is different from the seventh map area; a seventh request message is received, and the seventh request message is that the electronic device receives the sixth map for the fifth geographic location in the sixth interface. 2.
- Sent during user operation sending the fifth geographic location to the electronic device, the fifth geographic location is used for the electronic device to display the seventh interface; receiving an eighth request message, the eighth request message is When the electronic device receives the sixth query request based on the third historical record, the third historical record is displayed after the electronic device displays the seventh interface, the third historical record and the Associated with the fifth query request, the eighth request message is used to request to obtain search results related to the sixth query request; the fifth geographic location is sent to the electronic device, and the fifth geographic location is used for the The electronic device displays an eighth interface, where the eighth interface is the same as the seventh interface.
- the third search result obtained by the electronic device query includes multiple geographic locations, and the user selects the fifth geographic location, and the correspondingly displayed third history record includes the fifth geographic location selected by the user.
- the search result obtained based on the third historical record query is the fifth geographic location previously selected by the user instead of the third search result, and the user does not need to perform the operation of selecting the fifth geographic location, further reducing user operations, Search results are more accurate.
- the third history record includes a third keyword and the sixth map area, and the third keyword is associated with the fifth query request.
- the eighth request message includes the third keyword and the sixth map area.
- the fifth geographic location and the sixth geographic location are within a map range indicated by an eighth map area, and the map range indicated by the eighth map area includes the sixth map area The indicated map range and the map range indicated by the seventh map area.
- the electronic device when displaying the third history record, the electronic device also displays a fourth history record, where the fourth history record includes information about a first information point POI, and the first POI is the The fifth geographic location, the information of the first POI includes the name of the fifth geographic location and the sixth map area.
- the method further includes: receiving a ninth request message, the ninth request message is sent when the electronic device receives the seventh query request, and the ninth request message is used to request Obtain a search result related to the seventh query request; send a fourth search result to the electronic device, the fourth search result is used by the electronic device to display a ninth interface, the fourth search result includes and the The seventh query requests a related seventh geographic location; receiving a tenth request message, the tenth request message is when the electronic device receives a third user operation on the seventh geographic location in the ninth interface sent; sending the seventh geographic location to the electronic device, the seventh geographic location is used by the electronic device to display a tenth interface, and the seventh geographic location is within the map range indicated by the ninth map area; Receive an eleventh request message, the eleventh request message is sent when the electronic device receives the eighth query request, and the eleventh request message is used to request to obtain search results related to the eighth query request; sending a fifth search result to the electronic device, the fifth search result is used for the electronic device
- the electronic device may only display the seventh geographic location corresponding to the first query.
- Five historical records can be understood as determining the displayed historical records based on whether there is an operation for the user to select a geographic location, avoiding displaying invalid and redundant historical records, making it more convenient for users to view, and reducing the storage pressure of the device.
- the search result obtained based on the fifth historical record query is the seventh geographic location previously selected by the user, rather than the fourth search result or the fifth search result, further reducing user operations and making the search result more accurate.
- the fifth history record includes a fourth keyword and the ninth map area, and the fourth keyword is associated with the seventh query request.
- the twelfth request message includes the fourth keyword and the ninth map area.
- the fourth keyword is different from the fifth keyword, and the fifth keyword is associated with the eighth query request.
- the method before receiving the first request message, further includes: receiving a thirteenth request message, where the thirteenth request message is when the electronic device receives the tenth query request sent, the thirteenth request message is used to request to obtain the search result related to the tenth query request; the sixth search result is sent to the electronic device, and the sixth search result is used for the electronic device to display the search result related to the tenth query request.
- the sixth search result includes at least one geographic location related to the tenth query request.
- the electronic device when the user made multiple queries in a short period of time during the previous map query, the electronic device can only display the first historical record corresponding to the latest query, which can be understood as determining the displayed historical record according to the query time to avoid displaying Invalid and redundant historical records are more convenient for users to view and reduce the storage pressure of equipment.
- the search result obtained based on the first history record query is the first search result obtained by the user's latest query, and the search result is more accurate.
- the method further includes: receiving a fourteenth request message, the fourteenth request message is sent when the electronic device receives the eleventh query request, the fourteenth request The message is used to request to obtain the search result related to the eleventh query request; the seventh search result is sent to the electronic device, and the seventh search result is used for the electronic device to display the fourteenth interface, and the seventh
- the search result includes an eighth geographic location related to the eleventh query request; receiving a fifteenth request message, the fifteenth request message is received by the electronic device in the fourteenth interface for the The eighth geographic location is sent when the fourth user operates; the eighth geographic location is sent to the electronic device, the eighth geographic location is used for the electronic device to display the fifteenth interface, and the eighth geographic location Within the range of the map indicated by the tenth map area; receiving the sixteenth request message, the sixteenth request message is sent when the electronic device receives the twelfth query request based on the sixth historical record, the sixteenth request message The sixteenth request message is used to request to obtain search results related to the t
- the keyword included in the sixth historical record displayed by the electronic device may not be the keyword input by the user, but the keyword
- the name correlation of the selected eighth geographic location can be understood as automatic error correction, which reduces the impact of user input errors, and the user does not need to perform the operation of selecting the eighth geographic location, further reducing user operations and making search results more accurate.
- the sixth history record includes a sixth keyword and the tenth map area, and the sixth keyword is associated with a name of the eighth geographic location.
- the sixteenth request message includes the sixth keyword and the tenth map area.
- the present application provides a communication device, including a transceiver, a processor, and a memory, the memory is used to store a computer program, and the processor invokes the computer program to execute any possible The map query method in the implementation.
- the present application provides a communications device, including one or more processors and one or more memories.
- the one or more memories are coupled with one or more processors, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the above-mentioned communication means Execute the map query method in any possible implementation manner of any of the foregoing aspects.
- the embodiment of the present application provides a computer storage medium, the above-mentioned computer storage medium stores a computer program, and when the above-mentioned computer program is executed by a processor, the map query in any possible implementation manner of any one of the above-mentioned aspects can be realized method.
- an embodiment of the present application provides a computer program product, which, when running on a computer, causes the computer to execute the map query method in any possible implementation manner of any of the above aspects.
- FIG. 1A is a schematic diagram of the architecture of a map query system provided by an embodiment of the present application.
- FIG. 1B is an interactive schematic diagram of a map query system provided by an embodiment of the present application.
- FIG. 2A is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application.
- FIG. 2B is a schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application.
- FIG. 2C is a schematic diagram of a hardware structure of a network device provided by an embodiment of the present application.
- Fig. 3 is a schematic interface diagram of a historical record provided by the embodiment of the present application.
- Fig. 4A is a schematic interface diagram of a query behavior provided by the embodiment of the present application.
- Fig. 4B is a schematic interface diagram of another historical record provided by the embodiment of the present application.
- Fig. 4C is a schematic diagram of an interface for adjusting and displaying a map area provided by an embodiment of the present application.
- FIG. 5A is a schematic interface diagram of another query behavior provided by the embodiment of the present application.
- Fig. 5B is a schematic interface diagram of another historical record provided by the embodiment of the present application.
- Fig. 6A is a schematic interface diagram of another query behavior provided by the embodiment of the present application.
- Fig. 6B is a schematic interface diagram of another historical record provided by the embodiment of the present application.
- Fig. 6C is a schematic diagram of another historical record interface provided by the embodiment of the present application.
- Fig. 7A-Fig. 7C are the interface schematic diagrams of some other query behaviors provided by the embodiment of the present application.
- Fig. 7D is a schematic interface diagram of another historical record provided by the embodiment of the present application.
- FIG. 7E is a schematic interface diagram of another query behavior provided by the embodiment of the present application.
- FIG. 7F is a schematic diagram of another historical record interface provided by the embodiment of the present application.
- FIG. 8 is a schematic flow chart of a map query method provided by an embodiment of the present application.
- FIG. 9 is a schematic flowchart of another map query method provided by the embodiment of the present application.
- FIG. 10 is a schematic flowchart of another map query method provided by the embodiment of the present application.
- Query also known as “search”, “retrieval”, etc.
- search can be understood as starting from the user's information needs, using some technical means, and finding information that matches the user's information needs from the information collection according to some rules (ie search result).
- the above-mentioned user's information needs are determined based on, for example, a query sentence input by the user.
- the query in this application is implemented for the map, so the above-mentioned information collection can be a collection of geographical locations, generally the range of the map, which can be called the query map area.
- the map application of the electronic device will preset a default map area, for example The city where the current location is located, and the location related to the query statement entered by the user is searched in the default map area.
- the query result can be a geographic location.
- any geographic location can be a point of information (POI), and in a geographic information system, a POI can be any entity, such as a building, a store, a bus stop, and a mailbox wait.
- POI point of information
- Each POI includes, but is not limited to, at least one of the following information: name, coordinates, and classification, where the form of coordinates includes, but is not limited to, longitude and latitude.
- the map area of any geographic location may indicate the map range including the geographic location.
- the same geographical location can belong to map areas of different levels.
- the map area with a higher level indicates a larger geographical range.
- a map area with a higher level can include a map area with a lower level.
- the map areas of the map are "China", “Jiangsu province”, “Nanjing City”, “Gulou District of Nanjing City” in order of hierarchy from high to low.
- the map area of the geographic location is the map area of the smallest level including the geographic location, for example, the map area of the geographic location "Drum Tower District, Nanjing City" is "Drum Tower District, Nanjing City".
- the present application uses The map area of any geographic location is the smallest-level map area, and the smallest-level map area is a certain area under a certain city to which the geographic location belongs.
- the form of the query sentence input by the user may include, but is not limited to, text, pictures, voice, video, motion gestures, and the like.
- this application uses text as an example for description, and other forms are similar, and it can be understood that input information in any form is converted into text information for processing.
- the query sentences in this application may also be referred to as keywords.
- a map query system 10 involved in the embodiment of the present application is introduced below.
- FIG. 1A exemplarily shows a schematic diagram of a map query system 10 provided by an embodiment of the present application.
- the map query system 10 may include an electronic device 100 and a network device 200 .
- the electronic device 100 can be wired (for example, universal serial bus (universal serial bus, USB), twisted pair, coaxial cable, optical fiber, etc.) or wireless (for example, wireless local area networks (wireless local area networks, WLAN), bluetooth and Mobile device network, etc.) to communicate with network devices.
- wired for example, universal serial bus (universal serial bus, USB), twisted pair, coaxial cable, optical fiber, etc.
- wireless for example, wireless local area networks (wireless local area networks, WLAN), bluetooth and Mobile device network, etc.) to communicate with network devices.
- the electronic device 100 may be mobile terminals such as mobile phones, tablet computers, handheld computers, and personal digital assistants (Personal Digital Assistant, PDA), smart home devices such as smart TVs and smart cameras, smart bracelets, smart watches, smart glasses, etc. Wearable devices, or other desktops, laptops, notebooks, ultra-mobile personal computers (Ultra-mobile Personal Computer, UMPC), netbooks, smart screens and other devices.
- PDA Personal Digital Assistant
- UMPC ultra-mobile personal computers
- netbooks smart screens and other devices.
- the embodiment of the present application does not specifically limit the specific type of the electronic device 100 .
- the network device 200 may include at least one server, in some embodiments, any one server may be a hardware server, and in some embodiments, any one server may be a cloud server.
- the electronic device 100 may communicate with the network device 200 based on a browser/server (B/S) framework, or may communicate based on a client/server (client/server, C/S) framework.
- the electronic device 100 may receive a query request input by the user, and send a request message to the network device 200, so as to obtain search results (at least one geographic location) related to the query request. After receiving the search result sent by the network device 200, the electronic device 100 may display the search result.
- FIG. 1B exemplarily shows an interactive diagram of a map query system 10 provided by an embodiment of the present application.
- the electronic device 100 in the map query system 10 may include an application program (such as 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 the electronic device 100 may be used to receive a keyword input by a user and a query request based on the keyword.
- the application program may send a request message to the search module of the network device 200, and the request message is used to obtain search results related to the query request.
- the application program may record the behavior sequence of the map query corresponding to the query request, such as keywords input by the user, and send the behavior sequence to the model module of the electronic device 100 .
- the search module of the network device 200 When the search module of the network device 200 receives the request message sent by the application program of the electronic device 100, it can obtain relevant search results based on the request message. In some embodiments, the search module can obtain the current map area (such as the current At least one geographic location related to the above keywords within the city where you are located. The search module of the network device 200 may then send the obtained search results to the application program of the electronic device 100 .
- the search module can obtain the current map area (such as the current At least one geographic location related to the above keywords within the city where you are located.
- the application program of the electronic device 100 may display the search result.
- the model module of the electronic device 100 may generate a history record corresponding to the behavior sequence, and the history record may include keywords in the behavior sequence and a target location corresponding to the behavior sequence of the graph area.
- the model module can predict the target position corresponding to the behavior sequence, for example, the behavior sequence is used as the input of the intention model to obtain the output target position.
- the model module can correspond to the behavior sequence
- the search result for is determined to be the corresponding target location.
- the model module can send the generated history to the application.
- the application program of the electronic device 100 may display the history record.
- the application program of the electronic device 100 may also be used to receive a query request input by a user based on history records.
- the application program can send a request message to the search module of the network device 200, and when the search module of the network device 200 receives the request message sent by the application program of the electronic device 100, it can obtain the map area included in the historical record and the information contained in the historical record. At least one search result related to the keyword is to obtain the search result related to the query request.
- the search module of the network device 200 may then send the acquired search result to the application program of the electronic device 100, and the application program may display the search result.
- the electronic device 100 in the map query system 10 may also include a log module, which is used to receive the behavior sequence of the map query sent by the application program, and perform time-domain segmentation on the behavior sequence, such as query Behavior sequences whose time falls within the same preset period belong to the same time domain.
- a log module which is used to receive the behavior sequence of the map query sent by the application program, and perform time-domain segmentation on the behavior sequence, such as query Behavior sequences whose time falls within the same preset period belong to the same time domain.
- the network device 200 in the map query system 10 can also include a training module, the log module can send the behavior sequence after the time domain segmentation to the training module, and the training module can train the intention model and the behavior sequence based on the received behavior sequence. / or satisfaction model.
- the training module of the network device 200 may send the intention model and/or the satisfaction model to the model module of the electronic device 100, for example, every preset period of time, or an updated model when the version is updated.
- the intention model is used to obtain the target position corresponding to any behavior sequence, and the target position is used to determine the history record corresponding to the behavior sequence, for example, the history record includes the map area of the target position.
- the satisfaction model is used to obtain the satisfaction degree corresponding to at least one behavior sequence, and the satisfaction degree is used to determine whether to display the history record corresponding to the behavior sequence.
- the log module can send the time-domain segmented behavior sequence to the model module.
- the model module of the electronic device 100 receives the intention model and/or the satisfaction model sent by the training module of the network device 200, it can train the intention model and/or the satisfaction model based on the received behavior sequence.
- the model module after the model module receives the time-domain segmented behavior sequence sent by the log module, it can use the behavior sequence as the input of the intention model to obtain the output target position, and then judge whether there is a target position corresponding to the behavior sequence Behavior sequences that are the same and belong to the same time domain, if they exist, judge whether to display the historical records corresponding to the behavior sequence based on the satisfaction degree corresponding to the behavior sequence. For example, if the satisfaction degree corresponding to the behavior sequence is higher, it is determined to display the behavior The historical record corresponding to the sequence, wherein the satisfaction degree corresponding to the behavior sequence is the output obtained by taking the behavior sequence as the input of the satisfaction model.
- FIG. 2A shows a schematic structural diagram of an electronic device 100 .
- the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, and a wireless communication module 160 , audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
- SIM subscriber identification module
- the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
- the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 .
- the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
- the illustrated components can be realized in hardware, software or a combination of software and hardware.
- the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
- application processor application processor, AP
- modem processor graphics processing unit
- GPU graphics processing unit
- image signal processor image signal processor
- ISP image signal processor
- controller video codec
- digital signal processor digital signal processor
- baseband processor baseband processor
- neural network processor neural-network processing unit
- the controller can generate operation control signals according to instruction opcodes and timing signals, and complete the control of fetching and executing instructions.
- a memory may also be provided in the processor 110 for storing instructions and data.
- the memory in processor 110 is a cache memory.
- the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
- processor 110 may include one or more interfaces.
- the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
- I2C integrated circuit
- I2S integrated circuit built-in audio
- PCM pulse code modulation
- PCM pulse code modulation
- UART universal asynchronous transmitter
- MIPI mobile industry processor interface
- GPIO general-purpose input and output
- subscriber identity module subscriber identity module
- SIM subscriber identity module
- USB universal serial bus
- the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
- the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
- the charging management module 140 is configured to receive a charging input from a charger.
- the charger may be a wireless charger or a wired charger.
- the charging management module 140 can receive charging input from the wired charger through the USB interface 130 .
- the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also supply power to the electronic device through the power management module 141 .
- the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
- the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the display screen 194 , the camera 193 , and the wireless communication module 160 .
- the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
- the power management module 141 may also be disposed in the processor 110 .
- the power management module 141 and the charging management module 140 may also be set in the same device.
- the wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
- Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
- Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
- the antenna may be used in conjunction with a tuning switch.
- the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 .
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
- the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
- the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves and radiate them through the antenna 1 .
- at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
- at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
- a modem processor may include a modulator and a demodulator.
- the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
- the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
- the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
- the application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194 .
- the modem processor may be a stand-alone device. In some other embodiments, the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
- the wireless communication module 160 can provide information including WLAN (such as wireless fidelity (Wi-Fi) network), bluetooth (bluetooth, BT), and global navigation satellite system (global navigation satellite system, GNSS) applied on the electronic device 100. , frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
- the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
- the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
- the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
- GSM global system for mobile communications
- GPRS general packet radio service
- code division multiple access code division multiple access
- CDMA broadband Code division multiple access
- WCDMA wideband code division multiple access
- time division code division multiple access time-division code division multiple access
- TD-SCDMA time-division code division multiple access
- the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
- GPS global positioning system
- GLONASS global navigation satellite system
- Beidou navigation satellite system beidou navigation satellite system
- BDS Beidou navigation satellite system
- QZSS quasi-zenith satellite system
- SBAS satellite based augmentation systems
- the electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor.
- the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
- Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
- the display screen 194 is used to display images, videos and the like.
- the display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
- the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
- the electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
- the ISP is used for processing the data fed back by the camera 193 .
- the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
- ISP can also perform algorithm optimization on image noise, brightness, etc.
- ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
- the ISP may be located in the camera 193 .
- Camera 193 is used to capture still images or video.
- the object generates an optical image through the lens and projects it to the photosensitive element.
- the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
- the ISP outputs the digital image signal to the DSP for processing.
- DSP converts digital image signals into standard RGB, YUV and other image signals.
- the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
- the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
- the internal memory 121 may be used to store computer-executable program codes including instructions.
- the internal memory 121 may include an area for storing programs and an area for storing data.
- the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
- the storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like.
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
- the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
- the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
- the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
- the audio module 170 may also be used to encode and decode audio signals.
- the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
- Speaker 170A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
- Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls.
- Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
- the receiver 170B can be placed close to the human ear to receive the voice.
- the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C.
- the electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions, etc.
- the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
- pressure sensor 180A may be disposed on display screen 194 .
- pressure sensors 180A such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors.
- a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material.
- the electronic device 100 determines the intensity of pressure according to the change in capacitance.
- the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
- the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
- touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
- the touch sensor 180K is also called “touch device”.
- the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
- the touch sensor 180K is used to detect a touch operation on or near it.
- the touch sensor can pass 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 the display screen 194 .
- the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
- the keys 190 include a power key, a volume key and the like.
- the key 190 may be a mechanical key. It can also be a touch button.
- the electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
- the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
- the software system of the layered architecture may be an Android system, a Huawei mobile services (HMS) system, or other software systems.
- the embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
- FIG. 2B is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present application.
- the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
- the Android system is divided into four layers, which are respectively the application program layer, the application program framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer from top to bottom.
- the application layer can consist of a series of application packages.
- the application package may include applications such as camera, calendar, music, gallery, short message, call, map, bluetooth, and browser.
- the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
- the application framework layer includes some predefined functions.
- the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
- a window manager is used to manage window programs.
- the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
- Content providers are used to store and retrieve data and make it accessible to applications.
- Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
- the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
- the view system can be used to build applications.
- a display interface can consist of one or more views.
- a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
- the phone manager is used to provide communication functions of the electronic device 100 . For example, the management of call status (including connected, hung up, etc.).
- the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
- the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
- the notification manager is used to notify the download completion, message reminder, etc.
- the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
- prompting text information in the status bar issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
- Android runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
- the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
- the application layer and the application framework layer run in virtual machines.
- the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
- the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
- a system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
- the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
- the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
- the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
- the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
- 2D graphics engine is a drawing engine for 2D drawing.
- the kernel layer is the layer between hardware and software.
- the kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
- a corresponding hardware interrupt is sent to the kernel layer.
- the kernel layer processes touch operations into original input events (including touch coordinates, time stamps of touch operations, and other information).
- Raw input events are stored at the kernel level.
- the application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event.
- the map application calls the interface of the application framework layer to obtain the information indicated by the map area included in the history record 1 within the scope of the map, the geographic location related to the keyword included in the historical record 1 is further activated by calling the kernel layer to display the above geographic location through the display screen 194 .
- FIG. 2C shows a schematic structural diagram of a network device 200 .
- the network device 200 may include one or more processors 201, communication interfaces 202, and memories 203, wherein the processors 201, communication interfaces 202, and memories 203 may be connected via a bus or in other ways. Connection via bus 204 as an example. in:
- Processor 201 may be composed of one or more general-purpose processors, such as CPUs.
- the processor 201 can be used to run related program codes of the device control method.
- the communication interface 202 can be a wired interface (such as an Ethernet interface) or a wireless interface (such as a cellular network interface or a wireless local area network interface), and is used for communicating with other nodes. In the embodiment of the present application, the communication interface 202 may specifically be used to communicate with the electronic device 100 .
- the memory 203 may include volatile memory (volatile memory), such as RAM; the memory may also include non-volatile memory (non-vlatile memory), such as ROM, flash memory (flash memory), HDD or solid state disk SSD.
- volatile memory volatile memory
- non-vlatile memory non-volatile memory
- ROM read-only memory
- flash memory flash memory
- HDD solid state disk SSD
- the memory 203 may also include a combination of the above-mentioned kinds of memories.
- the memory 203 may be used to store a set of program codes, so that the processor 201 calls the program codes stored in the memory 203 to implement the implementation method in the server of the embodiment of the present application.
- the storage 203 may also be a storage array, and the like.
- the network device 200 may include multiple servers, for example, a web server, a background server, a download server, etc.
- the hardware structure of these multiple servers may refer to the hardware structure of the network device 200 shown in FIG. 2C .
- the network device 200 shown in FIG. 2C is only an implementation manner of the embodiment of the present application. In practical applications, the network device 200 may include more or fewer components, which is not limited here.
- FIG. 3 exemplarily shows a schematic diagram of a user interface.
- the electronic device may display a user interface 300 of a map application.
- User interface 300 may include a search bar 310, a history 320, and a clear control 330, wherein:
- Search bar 310 may include a search box 310A and a search control 310B.
- the search box 310A can be used to receive keywords input by the user, for example, includes the characters "search location", and is used to prompt the user to input keywords.
- Search control 310B can be used to trigger the execution of a query.
- the electronic device may receive a touch operation (such as a click operation) acting on the search control 310B, and in response to the touch operation, search for a relevant geographical location in a preset default map area based on a keyword input by the user.
- the above process can be understood as A query behavior, after a query behavior, the electronic device can record the keywords input by the user and display them to the user, for example, display the keywords that the user has queried through the history record 320 .
- the embodiment of the present application takes the city where the electronic device is located as an example for description by default.
- the historical records 320 are used to display the keywords queried by the user.
- Each historical record may include icons and characters.
- the characters are the keywords queried by the user, and the icons may indicate the type of the keywords.
- Types of keywords may include query and POI.
- the keyword whose type is query is the query statement entered by the user.
- the keyword whose type is POI is the name of the corresponding POI, and the POI is the geographical location pre-stored in the electronic map, such as a bus stop, a shop, and the like.
- historical record 320 includes record 321 and record 322, wherein:
- the record 321 includes an icon 321A and a character 321B.
- the icon 321A indicates that the type of the keyword in the record 321 is query (query), and the character 321B is the content of the keyword: "Drum Tower". That is to say, the record 321 can represent the user's historical query The behavior of the keyword "drum tower” whose type is query.
- the electronic device may receive the query sentence "Drum Tower” input by the user through the search box 310A, and receive a touch operation (such as a click operation) acting on the search control 310B.
- the query and "Drum Tower” "Related search results, after such a query behavior, the electronic device can record the query statement input by the user, save and display the record 321 .
- the record 322 includes an icon 322A and characters 322B.
- the icon 322A indicates that the type of the record 322 is POI, and the character 322B is the name of the POI "Headquarters of Nanjing First Hospital”.
- Location identification information used to describe a geographic location. That is to say, the record 322 may represent the user's historical query behavior of the keyword "Nanjing First Hospital Headquarters" whose type is POI.
- the electronic device may receive a query input by the user through the search box 310A, and at this time, multiple search results related to the query may be displayed, and then the electronic device may receive the query that acts on the multiple search results
- a touch operation such as a click operation
- this search result is a POI named "Nanjing First Hospital Headquarters”
- the electronic The device may record the name of the POI, save and display the record 322 . In this case, it can be understood that the user directly inquires about the POI.
- the electronic device may first receive a touch operation (such as a click operation) acting on the search control 310B, and respond to the user operation to Multiple search results related to the query statement are displayed, and the follow-up process is the same and will not be repeated here.
- a touch operation such as a click operation
- the electronic device may first receive a touch operation (such as a click operation) acting on the search control 310B, and respond to the user operation to Multiple search results related to the query statement are displayed, and the follow-up process is the same and will not be repeated here.
- a touch operation such as a click operation
- the historical record shown in FIG. 3 is only an example, and should not limit the present application.
- the situation of the user inputting other query statements is similar, and will not be repeated here.
- POI can include multiple types, such as subway stations, restaurants, scenic spots, etc.
- the icons in the historical records can have many different forms, so as to represent the above-mentioned multiple types
- the type of the characterizing keyword is POI and restaurant, which is not limited in the present application.
- Clear control 330 is used to delete the queried historical records.
- the electronic device may respond to a touch operation (such as a click operation) acting on the clear control 330, and delete all records that the user has queried based on the map application (that is, the information included in the historical record 320), and the user interface displayed at this time does not include the historical record 320. .
- the electronic device may receive a user operation acting on any historical record, and in response to the user operation, search for geographical locations related to keywords included in the historical record in the default map area, for example, assuming that the user historical query type
- the search results obtained in the historical query include at least one geographic location related to the keyword "Drum Tower” in the current default map area "Nanjing City", Suppose it is a POI named "Gulou District, Nanjing City”.
- the electronic device is located in Wuhan, it can receive a user operation acting on record 321.
- At least one geographic location related to the keyword "Drum Tower” in the current default map area "Wuhan City” can be obtained by querying, instead of A POI named "Gulou District, Nanjing City".
- the user wants to get the previous search result (the POI named "Gulou District of Nanjing City")
- the user needs to perform cumbersome query operations, and the device processing High pressure and poor user experience.
- the search result obtained by the electronic device can be the search result obtained by querying the keywords included in the historical record before, and the search result is more accurate, and the user does not need to perform cumbersome query operations. Improve user experience and reduce device processing pressure.
- Scenario 1 Suppose a user wants to search for Drum Towers in Nanjing.
- the electronic device is located in Nanjing City, that is, when the default map area is "Nanjing City"
- the user can input the query sentence "Drum Tower” and search.
- Figure 4A schematically shows an interface of a query behavior schematic diagram.
- the electronic device can display a user interface 400 of a map application.
- the user interface 400 includes a search bar 401, and the search bar 401 includes a search box 401A and a search control 401B.
- the specific description is the same as the user interface shown in FIG. 3
- the search box 310A in 300 is similar to the search control 310B, the difference is that the characters included in the search box 401A are the query sentence "Drum Tower" currently input by the user.
- the user interface 400 also includes a preview list 402.
- the preview list 402 is used to display the geographical locations in Nanjing city related to the query sentence "Drum Tower” included in the search box 401A, for example, in order from top to bottom: the name is "Drum Tower District”
- the electronic device can receive a touch operation (such as a click operation) acting on the search control 310B.
- the search results related to the query statement "Drum Tower” in Nanjing can be obtained.
- the preview list 402 can be displayed.
- For the first geographic location 402A see the right diagram of FIG. 4A for details.
- the electronic device can display a user interface 410 of a map application, and the user interface 410 includes a search result (also a geographical location) named "Gulou District, Nanjing City", which may be referred to as the search result "Nanjing” for short.
- a search result also a geographical location
- Drum Tower District of Nanjing City which may also be referred to as the geographic location "Gulou District of Nanjing City” for short, corresponds to the geographic location 402A in the user interface 400 shown in the left diagram of FIG. 4A .
- 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 return control 411A is used to return to the previous interface, such as the user interface 400 shown in the left diagram of FIG. 4A .
- Search box 411B is similar to search box 401A in user interface 400 shown in the left diagram of FIG. 4A .
- the cancel control 411C can be used to cancel this search, and optionally can also be used to return to the upper-level interface or the home page of the map application.
- the map area field of view 412 is the map area displayed on the current user interface.
- the location range 412A and the location identifier 412B are used to display the location on the map of the search result "Gulou District, Nanjing City", wherein the location identifier 412B is located within the location range 412A, including characters "Gulou District” may represent the map range where the location range 412A indicates the geographic location.
- the electronic device may display default map areas on the user interface, and the default map areas corresponding to different geographic locations are different.
- the map area view 412 in the user interface 410 is the default map area when the electronic device displays the geographic location "Gulou District, Nanjing City".
- the size and position of the graph area displayed on the user interface can be adjusted. It should be noted that the size of the area used to display the graph area is usually fixed (it can be understood as the size of the user interface is fixed), so adjusting the user interface display The size of the map area is actually to adjust the map range indicated by the map area.
- the electronic device may receive a two-finger pinch-out gesture acting on the user interface 410 (such as a gesture of sliding two fingers inward at the same time), and in response to the gesture, the view area 412 of the image area is reduced, and the view area 412 of the image area indicates at this time The extent of the map becomes larger.
- the electronic device may receive a two-finger zoom-in gesture acting on the user interface 410 (such as two fingers sliding outward at the same time), and respond to the gesture to zoom in on the view area 412, and at this time the view area 412 indicates the The map area is reduced.
- the electronic device may receive a drag operation acting on the user interface 410, and in response to the operation, adjust the position of the view area 412 on the map.
- the location information 413 may include a name 413A of the geographic location (including the characters "Gulou District, Nanjing City").
- the location information 413 can be used to display the detailed information of the geographic location "Gulou District, Nanjing City", such as the weather conditions of the geographic location, navigation controls, surrounding geographic information, etc., wherein the navigation control can be used to obtain the destination for the geographic location. navigation information.
- the electronic device can display the historical record corresponding to this query behavior, the historical record includes the query keyword "Drum Tower” and the map area of the search result "Drum Tower District, Nanjing City” , see Figure 4B for a specific example.
- the electronic device may display a user interface 430 of a map application, and the user interface 430 is used to display history records of map queries.
- the user interface 430 can include a record 431, and the record 431 can include an icon 431A, a character 431B, and a map area 431C.
- the icon 431A, the character 431B are similar to the icon 321A and the character 321B that the record 321 in the user interface 300 shown in FIG. 3 includes, and can be
- the instruction record 431 corresponds to the behavior of the keyword "drum tower" whose historical query type is query.
- the map area 431C is used to indicate the map area of the search result "Gulou District of Nanjing City" obtained from the user's historical query of "Drum Tower”: “Gulou District of Nanjing City”.
- the user can quickly obtain the map area information of the search result of the historical query through the historical records, assist the user to select the required historical records for query, and the user operation is more convenient.
- the electronic device can display historical records, for example, in the user interface 430 shown in FIG. 4B Record 431, the electronic device can receive a touch operation (such as a click operation) acting on the record 431, and in response to the touch operation, display the map range "Drum Tower District of Nanjing City" indicated by the map area 431C and the keyword "Drum Tower” indicated by the character 431B.
- a touch operation such as a click operation
- “Related geographical location that is, the geographical location "Drum Tower District, Nanjing City”
- the electronic device when the electronic device displays the search results related to the keyword input by the user, it may respond to the user operation to reduce or enlarge the currently displayed image area. For details, refer to FIG. 4C .
- the electronic device when the electronic device displays the user interface 410 shown in the right diagram of FIG. 4A , it receives a two-finger pinch-out gesture acting on the user interface 410, and in response to the gesture, zooms out the field of view 412 in the image area, specifically See the right panel of Figure 4C.
- the electronic device can display a user interface 440 of a map application.
- the user interface 440 is similar to the user interface 410.
- the map range indicated by the zone view 441 is larger than the map range indicated by the zone view 412 in the user interface 410 .
- the electronic device can record the historical record corresponding to the query behavior shown in FIG. 4A, and the graph area displayed after the operation shown in FIG. 4C.
- the historical record includes the key The map area of the word "Drum Tower” and the search result "Gulou District, Nanjing City".
- the map area displayed by the electronic device after the operation shown in FIG. 4C is the user interface View 441 of the map area in 440 .
- the displayed map area is the map area corresponding to the historical record, wherein the map area corresponding to the historical record may be an enlarged view of the map area The field of view of the map area, the field of view of the map area after zooming out, or the field of view of the map area after dragging.
- the electronic device can display historical records, such as the record 431 in the user interface 430 shown in FIG. 4B , the electronic device may receive a touch operation (such as a click operation) acting on the record 431, and in response to the touch operation, display the geographic location "Gulou District, Nanjing City" according to the map area corresponding to the record 431, for example, the map area corresponding to the record 431 is zoomed out
- the electronic device can display the user interface 440 in the last view area, that is, the view area 441 in the user interface 440 shown in the right diagram of FIG.
- this application searches based on the historical records of the map application, it can not only accurately reproduce the previously searched geographic location, but also accurately reproduce the map area displayed when the geographic location was displayed last time, further reducing user operations (such as At least once, enter the two-finger zoom out gesture) to improve user experience.
- FIG. 5A exemplarily shows another query behavior Interface diagram.
- the electronic device can display a user interface 400 of a map application.
- the user interface 400 is similar to the user interface 400 shown in the left diagram of FIG. 4A. The difference is that the user interface shown in the left diagram of FIG. 5A In 400 , the characters included in the search box 401A are the query sentence “park” currently input by the user, and the user interface 400 shown in the left diagram of FIG. 5A does not include the preview list 402 .
- the electronic device can receive a touch operation (such as a click operation) acting on the search control 310B, and in response to the touch operation, search results related to the query sentence "park” in Beijing can be obtained, as shown in the right diagram of FIG. 5A.
- a touch operation such as a click operation
- the electronic device may display a user interface 510 of a map application, and the user interface 510 includes multiple geographic locations in Beijing whose names include "park".
- User interface 510 may include a search field 511, a map view 512, and a search results list 513, wherein:
- the search field 511 is similar to the search field 401A in the user interface 400 shown in the left diagram of FIG. 5A .
- the map field of view 512 is similar to the map field of view 412 in the user interface 410 shown in the right figure of FIG. 4A, the difference is that the map field of view 512 is displayed when the electronic device displays multiple geographical locations with names including "park" in Beijing of the graph area.
- place marks displayed in the field of view 512 of the map area are respectively used to display the positions of the multiple geographical locations on the map, for example, the place mark 512A is used to show the position of the geographic location "Xiangshan Park” on the map, It can be referred to simply as the location identifier 512A corresponding to the geographic location "Xiangshan Park”, similarly, the location identifier 512B is corresponding to the geographic location "Beihai Park”, and the location identifier 512C is corresponding to the geographic location "World Park”.
- the search result list 513 is used to display the summary information of multiple geographical locations whose names include "park” in Beijing, such as search result 5131, search result 5132 and search result 5133, wherein the search result 5131 may include name 5131A and map area 5131B , the characters included in the name 5131A are the name "Xiangshan Park” of the geographical location indicated by the search result 5131, the characters included in the map area 5131B are "Haidian District” of the geographical location indicated by the search result 5131, and the geographical location indicated by the search result 5131 It is the geographic location "Xiangshan Park" corresponding to the location identifier 512A.
- the search result 5132 includes a name 5132A and a map area 5132B, which can represent the geographical location "Beihai Park” indicated by the search result 5132 (that is, the geographical location corresponding to the location identifier 512B), and the map area of this geographical location is "Xicheng District” .
- the search result 5133 includes a name 5133A and a map area 5133B, which can represent the geographic location indicated by the search result 5133 "World Park” (that is, the geographic location corresponding to the location identifier 512C), and the map area of the geographic location is "Fengtai District".
- the electronic device can display the historical record corresponding to this query behavior, which includes the query keyword "park” and search results (multiple names in Beijing include “ The map area of the geographic location of the "park", for a specific example, see Figure 5B.
- the electronic device may display a user interface 520 of a map application, and the user interface 520 is used to display history records of map queries.
- User interface 520 may include a record 521 that includes an icon 521A, a character 521B, and a plot 521C.
- the icons 521A and characters 521 are similar to the icons 321A and characters 321B included in the record 321 in the user interface 300 shown in FIG.
- the map area 521C is used to indicate the map area of the search results obtained from the user's historical query of "park" (locations with multiple names in Beijing including "park"): "Beijing".
- this application takes the map area of multiple geographical locations as the smallest map area including the corresponding map areas of these multiple geographical locations as an example.
- the above-mentioned geographical locations in Beijing whose names include “park” are specifically : The geographical location “Xiangshan Park", the geographical location “Beihai Park” and the geographical location “World Park”.
- the smallest map area of the district is "Beijing City", so the characters included in the map area 521C are "Beijing City”.
- the user can quickly obtain the map area information of the search result of the historical query through the historical records, assist the user to select the required historical records for query, and the user operation is more convenient.
- the electronic device can display historical records, for example, in the user interface 520 shown in FIG. 5B Record 521, the electronic device can receive a touch operation (such as a click operation) acting on record 521, and in response to the touch operation, display the map range "Beijing" indicated by the map area 521C and the keyword “park” indicated by the character 521B.
- a touch operation such as a click operation
- Geographical location that is, multiple geographical locations in Beijing whose names include "park”
- the user interface 510 shown in the right image of Figure 5A above is displayed, and searches related to "park” in "Wuhan City” will not be displayed As a result, search results are more accurate and meet user needs.
- Scenario 3 After the above-mentioned operation in FIG. 5A , the user can select a geographic location (assumed to be a name) in the above search results in the user interface 510 shown in the right diagram of FIG. 5A (also shown as the left diagram of FIG. 6A ). is the POI of "Xiangshan Park", for a specific example, please refer to Figure 6A.
- the electronic device may respond to a touch operation on the location identifier 512A in the user interface 510 to display the detailed information of the POI named "Xiangshan Park”. In other embodiments, the electronic device may respond to The touch operation on the search result 5131 in the user interface 510 displays the detailed information of the POI named "Xiangshan Park”. For details, please refer to the right diagram of FIG. 6A .
- the electronic device may display a user interface 620 of a map application, and the user interface 620 includes a POI named "Xiangshan Park" selected by the user.
- User interface 620 may include a search bar 621, map view 622, and location information 623, wherein:
- the search bar 621 is similar to the search bar 411 in the user interface 410 shown in the right diagram of FIG. 4A , the difference is that the search box 621A of the search bar 621 displays the keywords currently queried by the user, that is, the name of the POI selected by the user. :"Xiangshan Park".
- the map field of view 622 is similar to the map field of view 412 in the user interface 410 shown in the right diagram of FIG. 4A , the difference is that the map field of view 622 is the map area displayed when the electronic device displays the geographic location "Xiangshan Park".
- a location range 622A and a location identifier 622B are displayed in the view area 622 of the map, which are similar to the location range 412A and the location identifier 412B in the user interface 410, and are used to display the location of the geographic location "Xiangshan Park" on the map.
- the location information 623 may include a name 623A and a map area 623B.
- the characters included in the name 623A are the name of the geographical location "Xiangshan Park”: “Xiangshan Park”
- the characters included in the map area 623B are the map area of the geographical location "Xiangshan Park”: " Haiding district, Beijing”.
- the location information 623 can be used to display the detailed information of the geographic location "Xiangshan Park", such as the business hours of the geographic location, navigation controls, etc., wherein the navigation control can be used to obtain navigation information whose destination is the geographic location.
- the electronic device can display the historical records corresponding to the two query behaviors, one of the historical records includes the keyword "park” queried in the query behavior shown in FIG. 5A, and the user In the map area of the POI "Xiangshan Park” selected in the query behavior shown in Figure 6A, another historical record includes the name of the POI queried in the query behavior shown in Figure 6A (also the keyword of the query) "Xiangshan Park", and For the map area of the POI, please refer to FIG. 6B for details.
- the electronic device may display a user interface 630 of a map application, and the user interface 630 is used to display history records of map queries.
- the user interface 630 may include a record 631 and a record 632 , and the query time of the record 631 is later than that of the record 632 , so the display position of the record 631 has priority over the display position of the record 632 .
- Record 631 includes icon 631A, character 631B and figure area 631C, and icon 631A, character 631B are similar to icon 322A, character 322B that record 322 in the user interface 300 shown in Fig.
- the behavior of the POI keyword "Xiangshan Park" is the query behavior shown in Figure 6A.
- the map area 631C is used to indicate the map area of the POI whose name is "Xiangshan Park" that the user has historically queried: "Beijing Haidian District”.
- the record 632 is similar to the record 521 in the user interface 520 shown in FIG. 5B. The difference is that the map area 632A included in the record 632 indicates the POI "Xiangshan Park” selected by the user from the search results obtained after the user historically queried "park”. The map area: "Beijing Haidian District”.
- FIG. 6B since the user historically inquired about “Park” (corresponding record 632), only one of the multiple geographical locations obtained from the query (i.e.
- Xiangshan Park (corresponding record 631) was selected, so the electronic device can consider The target of the user performing the two query behaviors shown in Figure 5A and Figure 6A is the POI "Xiangshan Park", then the map area 632A of the record 632 corresponding to the query behavior shown in Figure 5A and the record 631 corresponding to the query behavior shown in Figure 6A The map area 631C is the same, and both indicate the map area of the POI "Xiangshan Park”.
- the electronic device can display the history record corresponding to the POI selected by the user, for example, as shown in FIG.
- the record 631 in the user interface 630 of the user interface 630 the electronic device can receive a touch operation (such as a click operation) acting on the record 631, and in response to the touch operation, display the map range "Beijing Haidian District" indicated by the map area 631C and the character 631B
- the geographical location related to the indicated keyword "Xiangshan Park", that is, the geographical location "Xiangshan Park” displays the user interface 620 shown in the right figure of FIG.
- the search results are more accurate and meet user needs.
- the electronic device can display historical records, for example, in the user interface 630 shown in FIG. 6B Record 632, the electronic device can receive a touch operation (such as a click operation) acting on the record 632, and in response to the touch operation, display the map range "Haidian District, Beijing" indicated by the map area 632A and the keyword "park” included in the record 632.
- a touch operation such as a click operation
- “Related geographical locations that is, geographical locations whose names include “park” in "Haidian District, Beijing”
- display the user interface 620 shown in the right figure of FIG. 6A instead of displaying "Wuhan City” and "park” Relevant search results will not display search results related to "park” in other areas of "Beijing" except “Haidian District", and the search results are more accurate and meet user needs.
- the geographic location obtained by query is the same as the geographic location obtained when the electronic device receives the query request based on record 632.
- only records whose keyword type is query may be displayed by default, such as record 632 .
- only records whose keyword type is POI may be displayed by default, such as record 631 .
- only the record with the latest query time may be displayed by default, such as record 631. It is not limited thereto, and may also display only the record with the latest query time among the records whose keyword type is query, such as record 632, which is not limited in this application.
- the map area 632A included in the record 632 indicates the map area of the POI selected by the user from the search results obtained from the query at the latest after the user historically queried "park". For example, after the user historically inquires about "park", the electronic device displays the user interface 510 shown in the right figure of Figure 5A. If the time is the latest (also referred to as the latest query time), the map area 632A included in the record 632 indicates the map area of POI "Xiangshan Park".
- the electronic device displays the user interface 510 shown in the right figure of Figure 5A, and the user not only selects the POI “Xiangshan Park", assuming that the POI "Beihai Park” is also selected, the historical records displayed by the electronic device can be seen in Figure 6C.
- the electronic device may display a user interface 640 of a map application, and the user interface 640 is used to display history records of map queries.
- the user interface 640 is similar to the user interface 630 shown in FIG. 6B, the difference is that the user interface 640 also includes a record 633, and the record 633 includes an icon 633A, a character 633B and a graph area 633C, and the icon 633A, the character 633B are the same as those shown in FIG.
- the icon 322A and character 322B included in the record 322 in the interface 300 are similar, which can indicate that the record 633 corresponds to the behavior of the keyword "Beihai Park" whose historical query type is POI.
- the map area 633C is used to indicate the map area of the POI whose name is "Beihai Park” that the user has historically queried: "Beijing Xicheng District”.
- the graph area 632A included in the record 632 in the user interface 640 indicates that the user has historically queried "park” (for details, refer to the user interface 510 shown in the right diagram of FIG. 5A ) , the map area of multiple POIs selected by the user from the search results obtained from the query: "Beijing City”.
- “Park” corresponding record 632
- the map area indicated by 632 is the smallest map area including the two POIs, that is, the map area “Beijing Haidian District” including POI “Xiangshan Park” and the map area "Beijing Xicheng District” of POI "Beihai Park” ”, assuming it is “Beijing”.
- FIG. 7A schematically shows another An interface schematic diagram of a query behavior.
- the electronic device can display a user interface 400 of a map application.
- the user interface 400 is similar to the user interface 400 shown in the left diagram of FIG. 5A .
- the characters included in the search box 401A are the query sentence "Huawei Building" currently input by the user.
- the electronic device can receive a touch operation (such as a click operation) acting on the search control 310B.
- a touch operation such as a click operation
- the search results related to the query statement "Huawei Building" in Beijing can be obtained.
- the right diagram of FIG. 7A please refer to the right diagram of FIG. 7A .
- the electronic device can display a user interface 750 of a map application, and the user interface 750 includes multiple geographic locations in Beijing related to "Huawei Building".
- User interface 750 may include a search field 751, a map view 752, and a search results list 753, wherein:
- Search bar 751 is similar to search box 401A in user interface 400 shown in the left diagram of FIG. 7A .
- the map field of view 752 is similar to the map field of view 412 in the user interface 410 shown in the right figure of FIG. 4A, the difference is that the map field of view 752 is an electronic device that displays multiple geographic locations in Beijing related to "Huawei Building" The area displayed when .
- a place mark 752A is displayed in the field of view 752 of the map area, and the place mark 752A includes the characters "Huawei Building", which is used to show the position of the first one of the multiple geographical locations "Huawei Building" on the map.
- the search result list 753 is used to display the summary information of multiple geographic locations in Beijing related to "Huawei Building", such as search result 7531, search result 7532 and search result 7533, wherein the search result 7531 may include name 7531A and location 7531B, the characters included in the name 7531A are the name "Huawei Building” of the geographic location indicated by the search result 7531, the characters included in the location 7531B are the location information "Xicheng District" of the geographic location indicated by the search result 7531, and the geographic location indicated by the search result 7531 The location is the geographic location "Huawei Building" corresponding to the location identifier 752A.
- the search result 7532 indicates a geographic location named "Huawei Building”, and the location information of the geographic location is "Information Road, Haidian District”.
- the search result 7533 indicates a geographic location named "Huawei Office Building”, and the location information of the geographic location is "Xicheng District”.
- FIG. 7A After the above operation in FIG. 7A , the user re-enters the query sentence "Huawei Building" and searches for it. For a specific example, see FIG. 7B .
- the electronic device can display a user interface 400 of a map application, the user interface 400 is similar to the user interface 400 shown in the left figure of Figure 5A, the difference is that the user interface 400 shown in (1) of Figure 7B
- the characters included in the search box 401A are the query sentence "Huawei Building" currently input by the user.
- the electronic device can receive a touch operation (such as a click operation) acting on the search control 310B, and in response to the touch operation, the search results related to the query statement "Huawei Building" in Beijing can be obtained. For details, see (2) in FIG. 7B .
- the electronic device can display a user interface 710 of a map application.
- the user interface 710 is similar to the user interface 750 shown in the right diagram of FIG.
- the characters in are the keywords currently input by the user: "Huawei Building”.
- the map view 712 in the user interface 710 is a map displayed when the electronic device displays multiple geographic locations in Beijing related to the query statement "Huawei Building", and the location identifier 712A in the map view 712 is used to display these multiple locations.
- the search result list 713 in the user interface 710 includes a search result 7131, a search result 7132, and a search result 7133.
- the search result 7131 is the same as the search result 7532 in the user interface 750.
- the search result 7132 indicates a geographical location named "Huawei Beijing Research Institute”. location, and the location information of the location is "Beiqing Road, Haidian District", the search result 7133 indicates a location named "Huawei (Easy Building Store)", and the location information of the location is "South Street, Dongcheng District” .
- the electronic device may receive a touch operation (such as a click operation) acting on the search result 7131 or the location identification 712A, and in response to the touch operation, display the detailed information of the POI named "Huawei Building", for details, refer to (3) in FIG. 7B .
- the electronic device can display a user interface 720 of a map application.
- the user interface 720 is similar to the user interface 620 shown in the right diagram of FIG. 6A . Details of a POI named "Huawei Building".
- the user interface 720 also includes a map area view 721 , and the map area view 721 is a map area displayed when the electronic device displays the geographic location "Huawei Building”.
- FIG. 7B After the above operation in FIG. 7B , the user enters a more comprehensive query sentence "Information Road Huawei Building” and searches for it. For a specific example, see FIG. 7C .
- the electronic device can display a user interface 400 of a map application.
- the user interface 400 is similar to the user interface 400 shown in the left diagram of FIG. 5A . The difference is that the user interface shown in the left diagram of FIG. 7C In 400, the characters included in the search box 401A are the query sentence "Information Road Huawei Building" currently input by the user, and the user interface 400 shown in the left diagram of FIG.
- the 7C also includes a preview list 403, which is used to display the The geographical locations related to the query statement "Huawei Building on Information Road” included in the search box 401A, for example, in order from top to bottom: the geographical location 403A named "Huawei Building", and the name "Huawei Beijing Research Institute” The geographical location of and the geographical location named "Huawei Building (Northwest Gate)".
- the electronic device can respond to a touch operation (such as a click operation) acting on the search control 310B, query and obtain search results related to the query statement "Huawei Building on Information Road” in Beijing, and optionally display the preview list 403.
- a geographic location 403A for details, refer to the right diagram of FIG. 7C.
- the electronic device may display a user interface 730 of a map application, and the user interface 730 includes a search result named "Huawei Building", corresponding to the geographic location in the user interface 400 shown in the left diagram of FIG. 7C 403A, the user interface 730 is similar to the user interface 720 shown in (3) of FIG. 7B , the difference is that the search bar 731 in the user interface 730 includes characters that are currently query keywords of the user: "Information Road Huawei Building".
- the user interface 730 also includes a map area view 732 , and the map area view 732 is a map area displayed when the electronic device displays the geographic location "Huawei Building".
- the electronic device can display the historical record corresponding to the query behavior shown in FIG. 7C , and the historical record includes the query keyword "Information Road Huawei Building” and the graph area of the search result "Huawei Building", for a specific example, refer to FIG. 7D.
- the electronic device may display a user interface 740 of a map application, and the user interface 740 is used to display history records of map queries.
- User interface 740 may include records 741, which may include icons 741A, characters 741B, and graphics 741C.
- the icon 741A and the character 741B are similar to the icon 321A and the character 321B included in the record 321 in the user interface 300 shown in FIG. That is, the query behavior shown in Figure 7C.
- the map area 741C is used to indicate the map area of the search result "Huawei Building" obtained from the historical query "Information Road Huawei Building": “Beijing Haidian District”.
- the difference between the query time of the three query behaviors shown in Figure 7A, Figure 7B and Figure 7C is within a preset period (such as 5 minutes), and the keywords of the query are similar (both including “Hua” and “ Building", and there is only one word between "Hua” and “Building”, and the geographical locations obtained by the query all include the geographical location "Huawei Building” selected by the user.
- the query behavior shown in Figure 7A the user did not select the geographical location obtained from the query.
- the user After the query behavior shown in Figure 7B and Figure 7C, the user selected the geographical location "Huawei Building” among the geographical locations obtained through the query, where Figure 7C
- the situation that the search result obtained by the shown query behavior is only one geographical location "Huawei Building” is also called that the user selects the geographical location "Huawei Building”. Since the query time of the query behavior shown in FIG. 7C is the latest, and the user selects the geographic location "Huawei Building", only the history record 741 corresponding to this query behavior is displayed.
- the electronic device can also determine the displayed historical records based on the query keywords. For example, the query keywords in the query behavior shown in FIG.
- the electronic device can display historical records, such as shown in Figure 7D
- the record 741 in the user interface 740 of the user interface 740 the electronic device can receive a touch operation (such as a click operation) acting on the record 741, and in response to the touch operation, display the map range "Beijing Haidian District" indicated by the map area 741C and the character 741B
- the geographical location related to the indicated keyword "Huawei Building on Information Road" that is, the geographical location "Huawei Building” for example, displays the user interface 730 shown in Figure 7C above, instead of displaying the location in "Wuhan City” and "Huawei Building on Information Road”.
- “Related search results the search results are more accurate and meet user needs.
- the electronic device may only display the history record corresponding to the query behavior shown in FIG. 7B , the history record includes the query keyword " Huawei Building” and the map area of the search result "Huawei Building”: "Beijing Haidian District”.
- the query time of the query behavior shown in FIG. 7B is the latest, only the history record corresponding to this query behavior is displayed.
- the user selects the geographical location "Huawei Building” obtained from the query, only the historical records corresponding to this query behavior are displayed.
- the query behavior shown in FIG. 7B since in the query behavior shown in FIG.
- the keywords of the query include the name of the geographic location "Huawei Building", only the historical records corresponding to this query behavior are displayed.
- the electronic device may display the history record corresponding to the query behavior shown in FIG. 7C , which will not be repeated here.
- the electronic device may also only display the history record corresponding to the query behavior shown in Figure 7B.
- the query behavior shown in FIG. 7B has the highest similarity (100%) between the query keyword and the name of the geographic location "Huawei Building”, only the historical records corresponding to this query behavior are displayed.
- the electronic device displays multiple geographic locations in Beijing that are related to the query statement "Huawei Building, Information Road”.
- the user interface 710 shown in (2) of FIG. 7B is displayed, and then the user selects the geographic location "Huawei Building” among the multiple geographic locations, and the electronic device displays the user interface 730 shown in the right diagram of FIG. 7C.
- the subsequent instructions for displaying history records are similar.
- Scenario 5 Suppose a user wants to search for Huawei buildings in Beijing. When the electronic device is located in Beijing, the user makes an input error and enters the query sentence "Huawei Building" and performs a search. The electronic device can display the search results (including the geographical location "Huawei Building”). For details, refer to the embodiment shown in FIG. 7A . Then, the user can select the geographic location "Huawei Building" in the above search results, and a specific example can be found in FIG. 7E.
- the electronic device displays the user interface 750 shown in the right diagram of FIG. 7A .
- the electronic device may respond to a touch operation on the search result 7532 in the user interface 750, and display detailed information of a POI named "Huawei Building", for details, refer to the right diagram of FIG. 7E.
- the electronic device can display a user interface 760 of a map application.
- the user interface 760 includes a search result named "Huawei Building", and the user interface 760 and the user interface 720 shown in (3) of FIG. 7B Similarly, the difference is that the search bar 761 in the user interface 760 contains characters that are the keywords currently inquired by the user: "Huawei Building”.
- the user interface 760 also includes a map area view 762, which is a map area displayed when the electronic device displays the geographic location "Huawei Building".
- the electronic device can display the historical record corresponding to this query behavior, the historical record includes the corrected keyword "Huawei Building” and the image of the search result "Huawei Building” area, see Figure 7F for a specific example.
- the electronic device may display a user interface 770 of a map application, and the user interface 770 is used to display history records of map queries.
- User interface 770 may include records 771, which may include icons 771A, characters 771B, and graphics 771C.
- the icon 771A indicates that the keyword type of the user's historical query is query.
- the electronic device recognizes that the query sentence "Huawei Building" actually input by the user is different from the name "Huawei Building" of the geographic location selected by the user, and it can be considered that the user input is wrong, so the keyword recorded by the electronic device is user
- the characters included in the character 771B are the keyword “Huawei Building” after the error correction of the electronic device.
- the map area 741C is used to indicate the map area of the search result "Huawei Building” obtained from the historical query "Huawei Building”: "Beijing Haidian District”.
- the electronic device can display history records, such as the record 771 in the user interface 770 shown in FIG. 7F , and the electronic device can receive a touch operation (such as a click operation) ), in response to the touch operation, display the geographical location related to the keyword "Huawei Building” indicated by the character 771B within the map range "Haidian District, Beijing” indicated by the map area 771C, that is, the geographical location "Huawei Building", for example, on the display The user interface 720 shown in (3) of FIG. 7B .
- a touch operation such as a click operation
- the electronic device will not display the keyword "Huawei Building" entered by the user by mistake in the history record, so when the electronic device receives a query request based on the history record, the search result obtained from the query will also be The geographical location related to "Huawei Building" is not used to minimize the impact of user input errors.
- the historical records and search results based on historical records are more accurate and meet user needs.
- the electronic device will not display redundant historical records, for example, simultaneously display the historical records corresponding to the query behavior shown in FIG. 7A and the historical records corresponding to the query behavior shown in FIG. 7E, as shown in FIG. 7A
- the historical records corresponding to the query behavior shown in Figure 7E include the keyword "Huawei Building" of the type query and the map area "Beijing" of the search results.
- the historical records corresponding to the query behavior shown in Figure 7E include the keyword "POI” of the type “Huawei Building” (that is, the name of the POI selected by the user) and the map area "Beijing Haidian District” of the search result "Huawei Building” make it easier for users to use historical records and reduce the storage pressure on devices.
- the electronic device may only display the historical record corresponding to the query behavior shown in FIG. 7E, and the historical record includes the keyword "Huawei Building” whose type is POI (that is, the name of the POI selected by the user) and the map area "Haidian District, Beijing" of the search result "Huawei Building”, avoid displaying redundant historical records (the historical records corresponding to the query behavior as shown in Figure 7A), allowing the user It is more convenient to use history records and reduce the storage pressure of equipment.
- the historical record includes the keyword "Huawei Building” whose type is POI (that is, the name of the POI selected by the user) and the map area "Haidian District, Beijing" of the search result "Huawei Building”
- the map query method involved in this application is introduced. This method can be applied to the map query system 10 shown in FIG. 1A and FIG. 1B .
- the network device can be used to train the intention model and the satisfaction model, and the trained intention model and satisfaction model can be sent to any electronic device for determining the historical record of the map query, specifically
- FIG. 8 is a schematic flowchart of a map query method provided in an embodiment of the present application. The method may include, but is not limited to, the following steps:
- S101 The application program of the electronic device sends the real-time behavior sequence of the first user to the log module of the electronic device.
- the application program can record in real time the behavior of the first user using the electronic device to perform map query.
- the application program records the user's query behavior in the form of a behavior sequence, and any query behavior corresponds to a behavior sequence.
- Any behavior sequence includes, for example but not limited to: input keywords, query time, whether to correct errors (for keywords), error correction words (words obtained after correcting keywords), operation of selecting search results (such as in The operation of selecting a search result in the search result list or clicking on the search result in the displayed map), the selected POI, the parameters representing the map area displayed when the search result is displayed (may be referred to as the field of view of the map area for short), etc.
- the selected POI is characterized by, for example but not limited to, an identity document (ID) of the POI.
- ID identity document
- the parameter characterizing the field of view of the image area is, for example but not limited to, a minimum bounding rectangle (MBR).
- the way that the application program receives the user's query behavior includes, for example but not limited to, touch operations acting on the display screen, voice operations, somatosensory operations, brain waves, and the like.
- S102 The log module performs time domain (session) segmentation on the behavior sequence of the first user.
- the log module may divide the behavior sequence of the first user in the time domain according to the query time to obtain at least one behavior sequence in the time domain (which may be called a user log), and a behavior sequence in the time domain may have at least One, each behavior sequence can represent a query behavior.
- the behavior sequence of the query time within the preset time period for example, the start time is the earliest query time, and the end time is the time 5 minutes after the start time belongs to the same time domain.
- each time the log module receives a behavior sequence sent by the application program it can divide the behavior sequence in time domain to determine the time domain corresponding to the behavior sequence. For example, it is assumed that when the difference of query time is less than or equal to the preset difference, they belong to the same time domain.
- the log module first receives the behavior sequence a, because the difference between the query time of the behavior sequence a and the query time of the previously received behavior sequence is greater than the preset difference, it can be determined that the behavior sequence a corresponds to a new time domain a, and then log After the module receives behavior sequence b, since the difference between the query time of behavior sequence b and behavior sequence a is less than or equal to the preset difference, it can be determined that behavior sequence b and behavior sequence a belong to the same time domain a.
- the log module may also receive a preset number of behavior sequences sent by the application program, and perform time domain segmentation on the preset number of behavior sequences. In some other embodiments, the log module may also perform time-domain segmentation on the behavior sequence sent by the application program at preset intervals.
- the log module sends at least one time-domain behavior sequence to the training module of the network device.
- the log module may send at least one time-domain behavior sequence to the training module at preset intervals.
- S104 the training module trains the intention model and the satisfaction model based on the behavior sequences of multiple users.
- the training module can take any user's behavior sequence in any time domain (assumed to be the behavior sequence in the first time domain of the first user) as input, and the corresponding prediction target as output to train the intention model,
- the predicted target can be understood as a target geographic location (such as at least one POI) corresponding to the query behavior indicated by the predicted behavior sequence in the first time domain.
- the predicted target is user input to the network device.
- the predicted target can be characterized by at least one of the keywords of the query, POI identification (such as POIID), name, map area, and the parameters of the view of the map area when the predicted target is displayed.
- the parameters of the view of the map area are, for example, for the MBR.
- the training module can take any user's behavior sequence in any time domain (assumed to be the behavior sequence in the first time domain of the first user) as input, and the corresponding predicted satisfaction as output, training satisfaction
- the model wherein the degree of satisfaction can be for the keywords included in the behavior sequence in the first time domain, and one degree of satisfaction corresponds to one keyword, which can be used to characterize the search results obtained by querying based on the keywords and the search required by the user
- the matching degree of the result (such as the output of the intent model, the POI selected by the user), for example, the degree of satisfaction is a non-negative number less than or equal to 1, the greater the degree of satisfaction, the higher the degree of matching, which can be understood as querying based on this keyword
- the search results obtained are more in line with user intent.
- the predicted satisfaction is user input to the network device.
- MBR-different numbers MBR-different numbers
- POIs POIID-different numbers
- coordinates coordinates-different numbers
- the search result obtained by the electronic device is the geographical location named "Beijing”.
- the behavior sequence 1 corresponding to this query behavior can be represented as: ⁇ Figure area: Wuhan City, keyword: Beijing>. Then, the user queries the keyword "Huawei store”, and the search result obtained by the electronic device is the geographical location named "Huawei store”.
- the behavior sequence 2 corresponding to this query behavior can be represented as: , MBR-1 ⁇ , keyword: Huawei store, click: POIID-1, name: Huawei store, coordinates: coordinate-1>, where "MBR-1" can represent the display location "Huawei store” The field of view of the map area, the POI identifier of the geographical location "Huawei Store” is "POIID-1", and the coordinate is "coordinate-1". Assume that these two behavior sequences belong to the same time domain 1.
- the prediction target corresponding to the behavior sequence in time domain 1 marked manually is the geographic location "Huawei Store” obtained from the second query above, which can be represented as: ⁇ POI identifier: POIID-1, map view: MBR-1>
- the degree of satisfaction corresponding to the behavior sequence of time domain 1 marked manually is for the keyword "Huawei store”, with a value of 1, which can be represented as: ⁇ keyword: Huawei store, satisfaction: 1>.
- the training module can use these two behavior sequences as the input of the intention model, and the artificially marked predicted target is the output of the intention model to train the intention model.
- the training module can use these two behavior sequences as the input of the satisfaction model, and the manually marked satisfaction as the output of the satisfaction model to train the satisfaction model.
- the behavior sequence 3 corresponding to this query behavior can be characterized as: ⁇ Figure area: Baoding City, keywords: bluetooth mountain, no click>.
- the user queries the keyword "Langya Mountain”, and the user selects a search result obtained from the query (assuming it is a geographical location named "Langya Mountain Scenic Area")
- the behavior sequence 4 corresponding to this query behavior can be represented as : ⁇ map area: ⁇ Baoding City, MBR-2 ⁇ , keyword: Langya Mountain, click: POIID-2, name: Langya Mountain Scenic Spot, coordinate: coordinate-2>, where "MBR-2" can represent The field of view of the map area when the geographical location "Langya Mountain Scenic Area” is displayed.
- the POI identifier of the geographical location "Langya Mountain Scenic Area” is "POIID-2”
- the coordinate is "Coordinate-2".
- the predicted target corresponding to the behavior sequence in the time domain 2 marked manually is the geographic location "Langya Mountain Scenic Spot" obtained by the second query above, which can be represented as: ⁇ POI ID: POIID-2, map area field of view: MBR-2 >, the degree of satisfaction corresponding to the manually marked time domain 2 behavior sequence includes the keyword "Bluetooth Mountain", the value is 0, which can be represented as: ⁇ keyword: Bluetooth Mountain, satisfaction: 0>, also includes the keyword The value of the word "Langya Mountain” is 1, which can be represented as: ⁇ Keywords: Langya Mountain, Satisfaction: 1>.
- the training module can use these two behavior sequences as the input of the intention model, and the artificially marked predicted target is the output of the intention model to train the intention model.
- the training module can use these two behavior sequences as the input of the satisfaction model, and the manually marked satisfaction as the output of the satisfaction model to train the satisfaction model.
- the training module of the network device sends the intention model and the satisfaction model to the model module of the electronic device.
- the training module of the network device may compress the trained intention model and satisfaction model, and send the compressed intention model and satisfaction model to the model module of the electronic device.
- the intention model and the satisfaction model received by the model module can be used to determine the historical records.
- the specific implementation is shown in FIG. 9 below, which will not be described in detail.
- the training module can send the intention model and satisfaction model to the model module at preset intervals, for example, once a week, so that the intention model and satisfaction model obtained by the electronic device are in line with the user's current situation, compared with Sending only once, based on the historical records determined by the intent model and satisfaction model sent in this way, and the search results based on historical records are more in line with user needs and improve user experience.
- the electronic device after the electronic device obtains the intent model and satisfaction model sent by the network device, it can update the intent model and/or the satisfaction model by itself, and the updated intent model and satisfaction model determine the Historical records and search results based on historical records are more in line with user habits and personalized, and the user experience is better.
- the method may also include but not limited to the following steps:
- S106 The application program sends the real-time behavior sequence of the first user to the log module.
- the log module performs time-domain segmentation on the behavior sequence of the first user.
- S106-S107 are similar to S101-S102, please refer to the description of S101-S102 for details.
- the log module sends at least one time-domain behavior sequence to the model module.
- the log module may send at least one time-domain behavior sequence of the first user to the model module at preset intervals.
- the model module updates the intention model and/or the satisfaction model based on the behavior sequence of the first user.
- the model module can train and update the intention model and/or satisfaction model based on at least one time-domain behavior sequence of the first user.
- the user's behavior sequence is trained, and the predicted goal and predicted satisfaction are not input by the user, but determined by the electronic device itself.
- the electronic device can determine the predicted target and/or predicted satisfaction degree corresponding to the behavior sequence in any time domain according to the optimal behavior sequence in any time-domain behavior sequence.
- the keyword has the highest similarity with the information of the selected POI (such as name, location), and is represented by at least one item in the operation of selecting the POI.
- the behavior sequence in time domain 1 includes behavior sequence 1: ⁇ map area: Wuhan, keyword: Beijing>, and behavior sequence 2: ⁇ map area: ⁇ Beijing, MBR-1 ⁇ , keyword: Huawei store , click: POIID-1, name: Huawei store, coordinates: coordinates-1>, where the query time of behavior sequence 2 is later than the query time of behavior sequence 1, and behavior sequence 2 has the operation behavior of selecting POI, so it can be based on Behavior sequence 2 determines the predicted target and predicted satisfaction level corresponding to the behavior sequence in time domain 1, that is, the search result corresponding to behavior sequence 2 (geographic location "Huawei store") is determined as the predicted target, and the keywords included in behavior sequence 2 The satisfaction value corresponding to "Huawei Store" is set to 1.
- the behavior sequence of time domain 2 includes behavior sequence 3: ⁇ map area: Baoding City, keyword: Bluetooth Mountain, no click>, and behavior sequence 4: ⁇ map area: ⁇ Baoding City, MBR-2 ⁇ , keyword : Langya Mountain, click: POIID-2, name: Langya Mountain Scenic Spot, coordinates: coordinate-2>, where the query time of behavior sequence 4 is later than the query time of behavior sequence 3, and behavior sequence 4 has the operation of selecting POI Behavior, the keyword "Langya Mountain” included in behavior sequence 4 has the highest similarity with the selected POI name "Langya Mountain Scenic Spot", so the prediction target and prediction corresponding to the behavior sequence in time domain 2 can be determined according to behavior sequence 4 Satisfaction, that is, determine the search result corresponding to behavior sequence 4 (geographic location "Langya Mountain Scenic Area") as the prediction target, and set the satisfaction value corresponding to the keyword "Langya Mountain” included in behavior sequence 4 to 1.
- the prediction target and the predicted satisfaction degree used may not be marked manually, but determined by the network device itself.
- the determination method is similar to the above-mentioned self-determination method of the electronic device, and will not be repeated here.
- the network device may only train and send the intent model.
- the electronic device may determine the history record based on the intent model.
- FIG. 9 is a schematic flow chart of another map query method provided in an embodiment of the present application. The method may include, but is not limited to, the following steps:
- S200 The application program of the electronic device performs a query process based on the query request input by the user, and generates a first behavior sequence.
- the application program can receive a query statement input by the user and a query request based on the query statement, and obtain at least one geographic location (ie, a search result) related to the query statement.
- the application program receives
- a request message may be sent to the search module of the network device, the request message is used to request to obtain search results related to the query request, and receive the search results sent by the search module.
- the application can display the resulting search results.
- the above process can be understood as a query process performed by the application program based on the query request input by the user.
- the application program may record relevant information of this query process to generate a first behavior sequence, wherein information included in the first behavior sequence may refer to the description of S101 in FIG. 8 .
- the query process performed by the application program based on the query request input by the user is the query process shown in FIG. 4A .
- the map application can generate behavior sequence 5: ⁇ map area: ⁇ Nanjing City, MBR-3 ⁇ , keyword: Drum Tower, click: POIID-3, name: Drum Tower District, Nanjing City, coordinates: coordinates-3 >.
- Behavior sequence 5 may represent the query behavior of searching for the keyword "Drum Tower” in the map area "Nanjing City”.
- the electronic device can be considered that the user can be determined after executing this query.
- Behavior Sequence 5 records the user's operation of selecting a POI named "Gulou District, Nanjing City", that is, the above-mentioned "click: POIID-3, name: Gulou District, Nanjing City, coordinates: coordinates-3". Therefore, behavior sequence 5 can indicate that the query user has selected a POI.
- the POIID of the POI is "POIID-3", the name is "Gulou District, Nanjing City", and the coordinate is "coordinate-3".
- the field of view parameter is "MBR-3".
- the electronic device displaying the search results obtained during the query process that is, the geographic location "Gulou District, Nanjing City
- the parameters of the field of view 412 of the map area please refer to the user interface 410 shown in the right figure of FIG.
- the query process performed by the application program based on the query request input by the user is the query process shown in Figure 4A, and after the query process shown in Figure 4A, the application program adjusts the map displayed when displaying the geographic location "Gulou District, Nanjing City".
- the map application can generate behavior sequence 6: ⁇ map area: ⁇ Nanjing City, MBR-4 ⁇ , keyword: Drum Tower, click: POIID-3, name: Drum Tower District, Nanjing City, coordinates: coordinates-3>, behavior sequence 6 and Behavior sequence 5 is similar, the difference is that the parameters that characterize the field of view of the map area are different, and behavior sequence 6 is "MBR-4".
- the electronic device displaying the search results obtained during this query process (that is, the geographic location "Gulou District, Nanjing City")
- the user interface 440 shown in the right figure of FIG. 4C and "MBR-4" may represent the The parameters of the field of view 441 of the map area.
- the query process performed by the application program based on the query request input by the user is the query process shown in FIG. 5A .
- the map application can generate behavior sequence 7: ⁇ map area: ⁇ Beijing, MBR-5 ⁇ , keyword: park>.
- Behavior sequence 7 can represent the query behavior of searching for the keyword "park” in the map area "Beijing”, and the parameter representing the field of view of the map area is "MBR-5".
- the electronic device displaying the search results obtained during this query process that is, multiple geographical locations with names including "park” in Beijing
- “MBR-5" can be Parameters characterizing the viewport 512 in the user interface 510 .
- the query process performed by the application program based on the query request input by the user is the query process shown in FIG. 6A .
- the map application can generate behavior sequence 8: ⁇ map area: ⁇ Beijing, MBR-6 ⁇ , keyword: Xiangshan Park, click: POIID-4, name: Xiangshan Park, coordinates: coordinates-4> .
- Behavior sequence 8 can represent the query behavior of searching for the keyword "Xiangshan Park" in the map area "Beijing", and the user selected a POI for this query.
- the POIID of this POI is "POIID-4" and the name is "Xiangshan Park".
- the coordinate is "coordinate-4”, which can also be understood as the query behavior of searching for a POI named “Xiangshan Park”, and the parameter representing the field of view of the map area when displaying this POI is "MBR-6".
- the electronic device displaying the search results obtained during this query process that is, the geographic location "Xiangshan Park”
- the user interface 620 shown in the right figure of FIG. Parameters of the field of view 622.
- the query process performed by the application program based on the query request input by the user is the query process shown in FIG. 7A .
- the map application can generate a behavior sequence 9: ⁇ map area: ⁇ Beijing, MBR-7 ⁇ , keyword: Huawei Building>.
- Behavior sequence 9 can represent the query behavior of searching for the keyword "Huawei Building” in the map area "Beijing”, and the parameter representing the field of view of the map area is "MBR-7".
- the electronic device displaying the search results obtained in this query process refer to the user interface 710 shown in the right diagram of FIG.
- the query process performed by the application program based on the query request input by the user is the query process shown in FIG. 7B .
- the map application can generate behavior sequence 10: ⁇ map area: ⁇ Beijing, MBR-8 ⁇ , keyword: Huawei Building, click: POIID-5, name: Huawei Building, coordinate: coordinate-5> .
- Behavior sequence 10 can represent the query behavior of searching for the keyword "Huawei Building" in the map area "Beijing", and for this query, the user selects a POI whose POIID is "POIID-5" and whose name is "Huawei Building".
- the coordinate is "coordinate-5”, which can also be understood as the query behavior of searching for a POI named "Huawei Building”, and the parameter representing the field of view when displaying this POI is "MBR-8".
- the electronic device displaying the search results obtained in this query process that is, the geographic location "Huawei Building”
- the query process performed by the application program based on the query request input by the user is the query process shown in FIG. 7C .
- 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 may represent the query behavior of searching for the keyword "Huawei Building on Information Road" in the map area "Beijing".
- behavior sequence 11 records the operation of the user selecting the POI named "Huawei Building", that is, the above "click: POIID-5, name: Huawei Building, coordinates: coordinates-5 ". Therefore, behavior sequence 11 can indicate that the query user has selected a POI.
- the POIID of the POI is "POIID-5", the name is “Huawei Building”, and the coordinate is “coordinate-5", which indicates the map area when the POI is displayed.
- the field of view parameter is "MBR-8".
- the query process performed by the application program based on the query request input by the user is the query process shown in FIG. 7E .
- the map application can generate behavior sequence 12: ⁇ map area: ⁇ Beijing, MBR-8 ⁇ , keyword: Huawei Building, click: POIID-5, name: Huawei Building, coordinate: coordinate-5> , for details, refer to the description of the above-mentioned behavior sequence 10.
- the electronic device displaying the search results obtained in this query process that is, the geographic location "Huawei Building”
- the user interface 760 shown in the right figure of FIG. Parameters of the field of view 762.
- S201 An application program of an electronic device sends a first behavior sequence of a first user to a model module.
- the model module takes the first behavior sequence as an input of the intention model, and obtains the output first position.
- the location output by the intent model can be characterized by, but not limited to, a query keyword and a map area, and the output location of the intent model is a geographic location related to the keyword within the map range indicated by the map area.
- the position output by the intention model may be characterized by at least one item of identifier (such as POIID), name, and coordinates of at least one POI, and the position output by the intention model is the at least one POI.
- the output of the intent model may also include parameters characterizing the view of the map area, such as MBR, where the view of the map area is the map area displayed when the position output by the intent model is displayed.
- the model module can take the above-mentioned behavior sequence 5 as the input of the intention model, and obtain the output position 1: the geographic location "Gulou District, Nanjing City", which can be represented as: ⁇ keyword: Drum Tower, map area: Gulou District, Nanjing>, It can also be characterized as: ⁇ POI identifier: POIID-3, name: Gulou District, Nanjing, coordinates: coordinates-3>.
- the model module can take the above-mentioned behavior sequence 6 as the input of the intention model, and obtain the output position 1 (that is, the geographic location "Gulou District, Nanjing City") and the parameter "MBR-4" representing the field of view of the map area, which can be represented as: ⁇ Keywords: Drum Tower, map area: Drum Tower District, Nanjing City, map area view: MBR-4>.
- the model module can take the above-mentioned behavior sequence 7 as the input of the intention model, and obtain the output location 2: the geographical location of multiple names including "park” in Beijing, which can be represented as: ⁇ keyword: park, map area: Beijing City>.
- the model module can take the above-mentioned behavior sequence 8 as the input of the intention model, and obtain the output position 3: the geographic location "Xiangshan Park", which can be represented as: ⁇ keyword: Xiangshan Park, map area: Haidian District, Beijing>, also It can be characterized as: ⁇ POI identifier: POIID-4, name: Xiangshan Park, coordinates: coordinates-4>.
- the model module can take the above-mentioned behavior sequence 10, behavior sequence 11 or behavior sequence 12 as the input of the intention model, and obtain the output position 4: geographical location "Huawei Building", which can be represented as: ⁇ keywords: Huawei Building, map area : Haidian District, Beijing>, which can also be characterized as: ⁇ POI identifier: POIID-5, name: Huawei Building, coordinates: coordinates-5>.
- the model module can take the first behavior sequence and the second behavior sequence as input to the intention model, and obtain the first position corresponding to the first behavior sequence output by the intention model, and optionally the corresponding position of the second behavior sequence.
- the first behavior sequence and the second behavior sequence belong to the behavior sequence in the same time domain, which can be understood as combining the behavior sequence in the same time domain to obtain the first position corresponding to the first behavior sequence.
- the behavior sequence is segmented in time domain to obtain at least one behavior sequence in time domain. For details, refer to the description of S102 in FIG. 8 .
- the application program successively performs the query process shown in Figure 5A and Figure 6A, the behavior sequence 7 corresponding to the query process shown in Figure 5A and the behavior sequence 8 corresponding to the query process shown in Figure 6A both belong to the time domain 3, and the model module
- the behavior sequence 7 and the behavior sequence 8 can be used as the input of the intention model to obtain the corresponding output.
- behavior sequence 7 and behavior sequence 8 both correspond to location 3 (that is, the geographic location "Xiangshan Park")
- location 3 corresponding to behavior sequence 7 can be characterized as: ⁇ Keywords: park, map area: Haidian District, Beijing >, ⁇ POI ID: POIID-4, Name: Xiangshan Park, Coordinate: Coordinate-4>
- the representation method of position 3 corresponding to behavior sequence 8 is similar to the representation method of position 3 corresponding to behavior sequence 7, the difference lies in the included
- the keyword is "Xiangshan Park”.
- the application program sequentially performs the query process shown in Figure 7A, Figure 7B and Figure 7C, the behavior sequence 9 corresponding to the query process shown in Figure 7A, the behavior sequence 10 corresponding to the query process shown in Figure 7B and the behavior sequence shown in Figure 7C
- Behavior sequences 11 corresponding to the query process belong to time domain 4, and the model module can use behavior sequences 9, 10, and 11 as input to the intent model to obtain corresponding outputs.
- behavior sequences 9, 10, and 11 all correspond to location 4 (that is, the geographic location "Huawei Building"), and location 4 corresponding to behavior sequence 9 can be represented as: ⁇ Keywords: Huawei Building, map area: Beijing Haidian District>, ⁇ POI ID: POIID-5, Name: Huawei Building, Coordinate: Coordinate-5>, the characterization method of position 4 corresponding to behavior sequence 10 and 11 is similar to the representation method of position 4 corresponding to behavior sequence 9, but the difference That is, the behavior sequence 10 corresponds to the keyword "Huawei Building", and the behavior sequence 11 corresponds to the keyword "Information Road Huawei Building".
- the application program successively performs the query process shown in Figure 7A and Figure 7E, the behavior sequence 9 corresponding to the query process shown in Figure 7A and the behavior sequence 12 corresponding to the query process shown in Figure 7E both belong to the time domain 5, and the model module
- the behavior sequence 9 and the behavior sequence 12 can be used as the input of the intention model to obtain the corresponding output.
- behavior sequence 9 and behavior sequence 12 both correspond to location 4 (that is, the geographic location "Huawei Building"), and location 4 corresponding to behavior sequence 9 can be characterized as: ⁇ Keywords: Huawei Building, map area: Beijing Haidian District>, ⁇ POI ID: POIID-5, Name: Huawei Building, Coordinate: Coordinate-5>, the representation method of position 4 corresponding to behavior sequence 12 is similar to the representation method of position 4 corresponding to behavior sequence 9, the difference is that, The keyword included is "Huawei Building".
- the model module generates a first history record based on the keyword and the first position in the first behavior sequence.
- the first history record may include the keywords in the first behavior sequence and the map area of the first location.
- the first history record may also include parameters characterizing the field of view of the map area, such as MBR, where the field of view of the map area is the map area displayed when the first position is displayed.
- the parameters characterizing the field of view of the map area may be The output of the model is obtained.
- the historical record 1 generated by the model module includes the keyword "Drum Tower” in the above-mentioned behavior sequence 5, and The map area at position 1 above is "Drum Tower District, Nanjing City”.
- the output of the intention model also includes the visual field of the representative map area parameter (that is, "MBR-4")
- the historical record 2 generated by the model module includes the keyword "Drum Tower” in the above-mentioned behavior sequence 6, the above-mentioned map area "Drum Tower District of Nanjing City" in the above-mentioned position 1, and the above-mentioned representation map area Field of view parameter "MBR-4".
- the historical record 3 generated by the model module includes the keywords in the above-mentioned behavior sequence 7 "Park", and the map area "Beijing" in location 2 above.
- the historical record 4 generated by the model module includes the keyword “Xiangshan Park” in the above-mentioned behavior sequence 8, and the above-mentioned The map area at position 3 is "Beijing Haidian District”.
- the historical record 5 generated by the model module includes the keyword "Information Road Huawei Building” in the above-mentioned behavior sequence 11, And the map area "Beijing Haidian District” in the above position 4.
- the history records corresponding to the behavior sequence 10 and behavior sequence 12 generated by the model module are similar to the history record 5, except that the keyword included is "Huawei Building”.
- the model module For example, assuming that the above-mentioned behavior sequence 7 and the above-mentioned behavior sequence 8 both belong to the time domain 3, and the outputs of the intention models corresponding to the behavior sequence 7 and behavior sequence 8 are both the above-mentioned location 3 (that is, the geographic location "Xiangshan Park"), then the model module generates
- the historical record 6 corresponding to the behavior sequence 7 includes the keyword "park” in the behavior sequence 7, and the map area "Beijing Haidian District" in the above-mentioned location 3.
- the history record corresponding to the behavior sequence 8 generated by the model module is the above-mentioned history record 4, which will not be repeated here.
- the model module For example, assuming that the above behavior sequences 9, 10 and 11 all belong to the time domain 4, and the output of the intent model corresponding to the behavior sequences 9, 10 and 11 is the above location 4 (that is, the geographic location "Huawei Building"), then the model module generates
- the historical record 7 corresponding to the behavior sequence 9 includes the keyword "Huawei Building” in the behavior sequence 9, and the map area of the above-mentioned location 4 "Haidian District, Beijing".
- the history record 8 corresponding to the behavior sequence 10 generated by the model module is similar to the history record 7, except that the keyword included is "Huawei Building".
- the history record corresponding to the behavior sequence 11 generated by the model module is the above-mentioned history record 5, which will not be repeated here.
- the model module For example, assuming that the above-mentioned behavior sequence 9 and behavior sequence 12 both belong to the time domain 5, and the output of the intention model corresponding to the behavior sequence 9 and behavior sequence 12 is both the above-mentioned location 4 (that is, the geographic location "Huawei Building"), then the model module generates The history record corresponding to the behavior sequence 9 is the above-mentioned history record 7, and the history record corresponding to the behavior sequence 12 generated by the model module is the above-mentioned history record 8.
- the model module of the electronic device may also use the first behavior sequence as an input of the satisfaction model to obtain the output first satisfaction degree.
- the model module will judge whether to generate and/or display the first history record according to the first position and the first degree of satisfaction, and optionally delete the existing history record.
- the degree of satisfaction output by the satisfaction model can be used to characterize the matching degree of the search result corresponding to the input behavior sequence and the search result required by the user (such as the predicted target in S104 of FIG. 8 ), optionally , the degree of satisfaction is a value, for example, the degree of satisfaction is a non-negative number less than or equal to 1. The greater the degree of satisfaction, the higher the degree of matching, which means that the search result corresponding to the behavior sequence is more in line with the user's intention.
- the model module may first determine whether the behavior sequence in the first time domain exists: the output of the corresponding intention model is the behavior sequence in the first location. In one case, if there is no corresponding behavior sequence in the behavior sequence of the first time domain, the output of the intention model is the behavior sequence of the first position, the model module can determine to generate and display the first history record, and optionally does not delete the existing There are historical records, for specific examples, refer to the first historical record shown above.
- the model module can compare the behavior sequence corresponding to the first behavior sequence and the satisfaction degree output by the satisfaction model corresponding to the third behavior sequence (which may be called the second satisfaction degree). If the first degree of satisfaction is greater than the second degree of satisfaction, the model module can determine to generate and display the first History records, optionally, if it is determined to delete the second history record corresponding to the third behavior sequence that the application program has displayed, the model module can send instruction information to the application program to delete the second history record, so that the application program displays the first history record Secondary history is not displayed while recording.
- the first behavior sequence is the above-mentioned behavior sequence 8
- the above-mentioned behavior sequence 7 and the above-mentioned behavior sequence 8 both belong to the time domain 3
- the output of the intention model corresponding to the behavior sequence 7 is the first position corresponding to the behavior sequence 8 (ie The above position 3: geographic location "Xiangshan Park")
- the satisfaction degree corresponding to behavior sequence 7 is 0.6
- the satisfaction degree corresponding to behavior sequence 8 is 1. Since the satisfaction degree corresponding to behavior sequence 8 is higher, the model module can determine to generate The history record corresponding to the display behavior sequence 8 is the above-mentioned history record 4 .
- the model module can determine the history record corresponding to the generated and displayed behavior sequence 11, that is, the above-mentioned history record 5. Furthermore, the model module may instruct the application program to delete the history record corresponding to the behavior sequence 9 (namely the above-mentioned history record 7 ) and the history record corresponding to the behavior sequence 10 (ie the above-mentioned history record 8 ).
- the model module can determine the generation and display behavior
- the history record corresponding to the sequence 12 is the above-mentioned history record 8.
- the model module may instruct the application program to delete the history record corresponding to the behavior sequence 9 (that is, the above history record 7).
- the model module may determine not to display the first history record, and at this time, the electronic device may not execute S203-S205. If the first satisfaction degree is equal to the second satisfaction degree, the model module may determine to display the first history record and not delete the second history record, or the model module may determine not to display the first history record, or the model module may determine to display First history and delete second history.
- S204 The model module sends the first history record to the application program.
- S205 The application program displays the first history record.
- the application program may display the user interface 430 shown in FIG. 4B , and the record 431 in the user interface 430 is used to display the above-mentioned history record 1 or history record 2 .
- the application program may display the user interface 520 shown in FIG. 5B , and the record 521 in the user interface 520 is used to display the above-mentioned history record 3 .
- the application program can display the user interface 630 shown in FIG. 6B , the record 631 in the user interface 630 is used to display the above-mentioned historical record 4 , and the record 632 in the user interface 630 is used to display the above-mentioned historical record 6 .
- the application program can display the user interface 740 shown in FIG. 7D , and the record 741 in the user interface 740 is used to display the above-mentioned history record 5 . Moreover, the above-mentioned history record 7 and the above-mentioned history record 8 are not displayed in the user interface 740 .
- the application program may display the user interface 770 shown in FIG. 7F , and the record 771 in the user interface 770 is used to display the above-mentioned history record 8 . Moreover, the above-mentioned history record 7 is not displayed in the user interface 740 .
- the method may also include:
- S206 The application program sends a request message for the first history record to the search module of the network device.
- the electronic device may receive user operations on the first history record input by the user through the application program, such as touch operations, voice operations, somatosensory operations, brain waves, etc. query request.
- the first historical record may be any historical record displayed by the application program.
- the application program When the application program receives the query request based on the first historical record, it may send a request message for the first historical record to the search module of the network device.
- the request message for the first history record includes keywords and regions in the first history record.
- the first history record further includes a parameter representing the field of view of the map area, for example, MBR, and the request message for the first history record further includes the parameter representing the field of view of the map area in the first history record.
- the search module performs a search based on keywords and map areas included in the request message to obtain a search result corresponding to the first history record.
- the search module when the search module receives the request message for the first historical record, it can search the information included in the request message within the map range indicated by the map area included in the request message (that is, the map area included in the first historical record). The geographic location related to the keyword (that is, the keyword included in the first historical record), which is the search result.
- the search module can obtain the view of the map area when displaying the search result according to the MBR.
- the search module sends the search result corresponding to the first history record to the application program.
- the search module may also send the field of view of the map area when displaying the search result corresponding to the first history record to the application program.
- S209 The application program displays the search result corresponding to the first history record.
- the application program when the application program receives the search result corresponding to the first history record sent by the search module, it may display the search result.
- the application program also receives the view of the map area sent by the search module, and the application program can display the search result according to the view area of the map area.
- the first history record is the above-mentioned history record 1, for details, refer to the record 431 in the user interface 430 shown in FIG. 4B .
- the request message for the first historical record may include the keyword "Drum Tower” and the map area "Gulou District, Nanjing City”.
- the search result corresponding to the first historical record may be the geographic location "Gulou District, Nanjing City”.
- the application program displaying the search result refer to the user interface 410 shown in the right figure of FIG. 4A .
- the first history record is the above-mentioned history record 2, for details, refer to the record 431 in the user interface 430 shown in FIG. 4B.
- the request message for the first history record may include the keyword "Drum Tower", the map area "Gulou District of Nanjing City” and the parameter "MBR-4" representing the field of view of the map area.
- the search result corresponding to the first historical record may be the geographic location "Gulou District, Nanjing City”.
- the search result displayed by the application please refer to the user interface 440 shown in the right figure of FIG.
- For the view of the map area refer to the view area of the map area 441 in the user interface 440 .
- the first history record is the above-mentioned history record 3, for details, refer to the record 521 in the user interface 520 shown in FIG. 5B.
- the request message for the first historical record may include the keyword "park” and the map area "Beijing".
- the search result corresponding to the first history record may be multiple geographic locations in Beijing whose names include "park”.
- the application program displaying the search result refer to the user interface 510 shown in the right figure of FIG. 5A.
- the first history record is the above-mentioned history record 6, for details, refer to the record 632 in the user interface 630 shown in FIG. 6B.
- 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 geographic location whose name includes "park” in "Haidian District, Beijing", assuming the geographic location is "Xiangshan Park”.
- the search result displayed by the application please refer to the right figure of Figure 6A User interface 620 is shown.
- the first history record is the above-mentioned history record 5, for details, refer to the record 741 in the user interface 740 shown in FIG. 7D.
- the request message for the first historical record may include keywords "Huawei Building, Information Road” and map area "Haidian District, Beijing”.
- the search result corresponding to the first historical record can be the information in "Haidian District, Beijing” and the geographical location related to "Huawei Building on Information Road”. Assume that the geographical location is "Huawei Building".
- An example of the application displaying the search result can be seen in Fig. 7C shows user interface 730 on the right.
- the first history record is the above-mentioned history record 8, for details, please refer to the record 771 in the user interface 770 shown in FIG. 7F.
- the request message for the first historical record may include the keyword "Huawei Building” and the map area "Haidian District, Beijing”.
- the geographic location of assuming the geographic location "Huawei Building", an example of the search result displayed by the application can refer to the user interface 760 shown in the right diagram of FIG. 7E.
- the first position may not be the output obtained by using the first behavior sequence as the input of the intention model, but directly determine the search result corresponding to the first behavior sequence as the first A position.
- the first position may also be obtained based on the optimal behavior sequence in the time domain where the first behavior sequence is located. For details, please refer to the determination of the predicted target by the electronic device in S104 in FIG. 8 illustrate.
- the electronic device can perform at least one of the following: send the time-domain segmented behavior sequence to the network device for training the intention model and the satisfaction model (such as the above figure 8 Step S103), update the intention model and/or satisfaction model based on the behavior sequence after time domain segmentation (for example, step S109 in Figure 8 above), and determine the history record corresponding to the behavior sequence (for example, step S202- S203), the order of these three items is not limited.
- the electronic device can record the user's map query behavior, and optimize the displayed historical records based on the recorded query behavior, such as embodying key elements such as the map area on the displayed historical records, and removing invalid and redundant historical records , which is convenient for users to query based on historical records. And optimize the way of querying based on historical records, such as querying the keywords included in the historical records in the map area included in the historical records, so as to accurately reproduce the search results of previous queries, without the need for users to re-enter and search for geographic locations, reducing user operations, Reduce processing stress on equipment.
- FIG. 10 is a schematic flowchart of another map query method provided by an embodiment of the present application.
- the method can be applied to the electronic device 100 in the map query system 10 shown in FIG. 1A and FIG. 1B .
- This method can be applied to the electronic device 100 shown in FIG. 2A.
- This method can be applied to the electronic device 100 shown in FIG. 2B.
- This method may include, but is not limited to, the following procedures:
- S301 The electronic device receives a first query request.
- the first query request is used to request to query keywords input by the user.
- the way for users to input keywords based on electronic devices includes, for example but not limited to: the user inputs keywords in the form of text, pictures or videos by touching the display screen of the electronic device, and the user inputs keywords in the form of text through a keyboard connected to the electronic device.
- the user inputs the keyword in the form of voice through the connection of the electronic device or the built-in microphone, and the user inputs the keyword in the form of a picture, video or motion gesture through the connection of the electronic device or the built-in camera.
- the form of the keyword input by the user may include, but is not limited to, text, picture, voice, video, motion gesture, and the like.
- the electronic device can receive the keyword input by the user and the user operation, which can be understood as receiving the first query request based on the keyword.
- the electronic device displays
- the keyword "Drum Tower" input by the user based on the search box 401A may be received, and then a touch operation (such as a click operation) acting on the search control 310B may be received.
- the first query request can be received.
- S302 The electronic device displays a first interface, where the first interface includes a first search result.
- the first search result includes at least one geographic location related to the first query request within the map range indicated by the first map area.
- 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, such as the electronic device When in Beijing, the user receives a request for querying "Nanjing", and the electronic device displays the search result "Nanjing City" in response to the request, and at this time the current map area is adjusted to "Nanjing City”. In this case, the electronic device receives the first query request again, and the obtained first search result is at least one geographic location in "Nanjing City" that is related to the first query request.
- the electronic device when the electronic device receives the first query request, it may send a request message to the network device, where the request message is used to request to obtain search results related to the first query request.
- the network device after the network device receives the request message, it can query at least one geographic location related to the first keyword in the current map area (such as the city where the electronic device is located), that is, obtain the first search result, the first The keyword is associated with the first query request, and optionally, the first keyword is the keyword described in S301.
- the network device may send the first search result to the electronic device.
- the electronic device obtains the first search result it may display the first interface.
- the electronic device when the electronic device displays the user interface 400 shown in the left figure of FIG. 4A, it receives the operation of clicking 401B (receiving a query request based on the keyword "Drum Tower"), so the display in FIG. 4A
- the user interface 410 (the first interface) shown on the right of the figure, the user interface 410 includes the geographic location "Gulou District, Nanjing City" (the first search result).
- the electronic device when the electronic device displays the user interface 400 shown in the left figure of FIG. 5A, it receives the operation of clicking 401B (receives a query request based on the keyword "park"), so the display in FIG. 5A
- the user interface 510 (the first interface) shown on the right of the figure, the user interface 510 includes multiple geographic locations (the first search result) whose names include "park" in Beijing.
- the electronic device displays the user interface 510 shown in the left figure of FIG. 6A shows the user interface 620 (the first interface)
- the user interface 620 includes the geographic location "Xiangshan Park" (the first search result).
- the electronic device when the electronic device displays the user interface 400 shown in the left figure of FIG. 7C, it receives the operation of clicking 401B (receives a query request based on the keyword "Information Road Huawei Building"), so The user interface 730 (the first interface) shown in the right diagram of FIG. 7C is displayed, and the user interface 730 includes the geographic location "Huawei Building" (the first search result).
- FIG. 7A , FIG. 7B , and FIG. 7E It is not limited to the query behavior of the above example, for example, there are embodiments shown in FIG. 7A , FIG. 7B , and FIG. 7E , and the specific description is similar to the above example, and will not be repeated here.
- S303 The electronic device displays a second interface, where the second interface includes the first history record.
- the first history record corresponds to the first query behavior shown in S301-S302.
- the electronic device may record the user's first query behavior, and the first query behavior may be characterized by a corresponding first behavior sequence, for details, refer to the description of S200 in FIG. 9 .
- the first history record includes a first keyword and a first map area, and the first keyword is associated with the first query request.
- the first keyword is the keyword described in S301, which may be
- the first keyword is a keyword in the first row sequence.
- the first map area is the map area where the first search result is located.
- the first map area is the map area where the first position corresponding to the first behavior sequence is located.
- the first position is The output obtained by using the first row sequence as input to the intent model.
- the first history record further includes a parameter characterizing the view of the map area, for example, an MBR representing the size of the view of the map area, and the view of the map area is the map area displayed when the first search result is displayed.
- the parameter characterizing the field of view of the map area may be an output obtained by using the first behavior sequence as an input of the intention model.
- the first search result is a geographic location within the range of the map indicated by the first map area
- the first history record includes the first map area.
- the search result obtained by the query behavior shown in FIG. 4A is the geographic location "Gulou District, Nanjing City”
- the corresponding first historical record displayed by the electronic device is the record 431 in the user interface 430 shown in FIG. 4B
- the record 431 includes The map area 431C indicates the map area of the geographic location "Gulou District, Nanjing City”: "Gulou District, Nanjing City”.
- the first search result includes multiple geographic locations
- the map range indicated by the first map area may include the map range indicated by the map area where the multiple geographic locations are located.
- the first map area includes these multiple geographic locations.
- the first history record includes a first map area.
- the search results obtained from the query behavior shown in Figure 5A include geographic location "Xiangshan Park", geographic location "Beihai Park” and geographic location "World Park”, and the corresponding map areas are "Haidian District", “Xicheng District " and “Fengtai District” assume that the smallest map area including these three map areas is "Beijing".
- the corresponding first history record displayed by the electronic device is the record 521 in the user interface 520 shown in FIG. 5B , and the map area 521C included in the record 521 indicates "Beijing City".
- the electronic device may divide the behavior sequence in the time domain. For details, refer to the description of S102 in FIG. 8 , assuming that the first behavior sequence and the second behavior sequence belong to the same time domain. In some embodiments, the electronic device may determine whether to display the first history record corresponding to the first behavior sequence based on the target position and satisfaction level corresponding to the first behavior sequence and the second behavior sequence, wherein the first behavior sequence corresponds to Satisfaction may be an output obtained by using the first behavior sequence as input to the satisfaction model, and the second behavior sequence is similar.
- the satisfaction degree corresponding to the first behavior sequence is greater than the satisfaction degree corresponding to the second behavior sequence, it can be determined to display the first history corresponding to the first behavior sequence record, and optionally delete the history record corresponding to the second behavior sequence, if the satisfaction degree corresponding to the first behavior sequence is less than the satisfaction degree corresponding to the second behavior sequence, it can be determined that it is not limited to the first history record corresponding to the first behavior sequence, For details, refer to the description of S203 in FIG. 9 .
- the aforementioned intention model and/or satisfaction model may be sent to the electronic device after being trained by the network device.
- the electronic device receives the intention model and/or the satisfaction model sent by the network device, and may update itself.
- the aforementioned intention model and/or satisfaction model may be trained by the electronic device itself, and the specific manner is similar to that of network device continuation, which will not be repeated here.
- S304 The electronic device receives a second query request based on the first history record.
- the electronic device may receive a user operation for the first history record input by the user, such as touch operation, voice operation, somatosensory operation, brain wave, etc., which may be understood as receiving a query request based on the first history record .
- a user operation for the first history record input by the user such as touch operation, voice operation, somatosensory operation, brain wave, etc.
- receiving a touch operation such as a click operation
- the record 431 the first history record
- S305 The electronic device displays a third interface, where the third interface is the same as the first interface.
- the electronic device is located at the first geographic location when receiving the second query request, and the first geographic location is within the range of the map indicated by the second map area, and the second map area is different from the first map area.
- the map area where the electronic device is located at S304 is different from the map area where the electronic device is located at S301, for example, when the electronic device is located in "Nanjing City", the query behavior shown in Figure 4A is executed (including receiving the first query request) , the obtained search result is the geographic location "Gulou District, Nanjing City" displayed on the user interface 410 shown in the right figure of FIG. 4A .
- the first historical record is the record 431 in the user interface 430 shown in Figure 4B.
- the electronic device When the electronic device is located in "Beijing City", it receives a touch operation on the record 431 (receives the second query request), and the obtained search result is still
- the above-mentioned geographical location is "Gulou District, Nanjing City", not the geographical location related to the keyword "Gulou” included in record 431 in "Beijing City”.
- the electronic device when it receives the query request based on the first history record, it may send a request message to the network device, where the request message is used to request to obtain search results related to the second query request.
- the request message includes the first map area and the first keyword.
- the network device after receiving the request message, the network device may query at least one geographic location related to the first keyword within the map range indicated by the first map area included in the first history record, that is, obtain the search result, FIG. 10 is illustrated by taking the obtained search result as the first search result as an example.
- the network device may send the first search result to the electronic device.
- the electronic device after the electronic device obtains the first search result, it may display a third interface. For details, refer to the description of S206-S209 in FIG. 9 .
- the map query method provided in the embodiment of the present application further includes:
- the electronic device receives the third query request, and the third query request is associated with the second keyword.
- the electronic device may receive the keyword "Drum Tower" input by the user based on the search box 401A (which can be understood as the second keyword associated with the third query request) , and then a touch operation (such as a click operation) acting on the search control 310B may be received, which may be understood as receiving a third query request.
- a touch operation such as a click operation
- the electronic device displays a fourth interface, the fourth interface includes a second search result, and the second search result includes at least one geographic location related to the third query request within the map range indicated by the fifth map area.
- the electronic device displays the user interface 410 (which can be understood as the fourth interface) shown in the right figure of FIG.
- the map area where the geographic location is located is "Gulou District, Nanjing City" (it can be understood as the fifth map area).
- the electronic device receives a first user operation.
- the first user action is a zoom out gesture or a zoom in gesture.
- the electronic device displays a fifth interface, and the fifth interface includes the second search result, wherein the size of the fifth graphic area displayed on the fifth interface is different from the size of the fifth graphic area displayed on the fourth interface.
- the electronic device displays the user interface 410 shown in the left figure of FIG.
- the size of the map area display the user interface 440 shown in the right figure of FIG. zoom out.
- the electronic device displays a sixth interface, the sixth interface includes a second history record, and the second history record includes a second keyword and a fifth map area.
- the electronic device displays the user interface 430 (which can be understood as the sixth interface) shown in FIG. It can be understood as the character 431B of the second keyword), and the map area 431C indicating "Gulou District of Nanjing City" (which can be understood as the fifth map area).
- the electronic device receives the fourth query request based on the second history record, and displays a seventh interface, where the seventh interface is the same as the fifth interface.
- the electronic device receives a touch operation (such as a click operation) acting on the record 431 in the user interface 430 shown in FIG. 4B, it can be understood as receiving the fourth query request.
- the user interface 440 shown in the figure can be understood as the seventh interface).
- the electronic device when it receives the query request based on the second history record, it may send a request message to the network device, where the request message is used to request to obtain search results related to the fourth query request.
- the request message includes a second keyword, a fifth map area and a first parameter, and the first parameter is used to characterize the size of the fifth map area displayed on the fifth interface, for example, the map area field of view 441 in the user interface 440 .
- the network device After receiving the request message, the network device can obtain the second search result and the corresponding view of the map area according to the first parameter, and send them to the electronic device. After receiving the view of the map area and the second search result, the electronic device may display the first search result in the view of the map area. For details, refer to the description of S206-S209 in FIG. 9 .
- map query method provided in the embodiment of the present application further includes:
- the electronic device receives the fifth query request, and the fifth query request is associated with the third keyword.
- the electronic device may receive the keyword "park" input by the user based on the search box 401A (it can be understood as the third keyword associated with the fifth query request) , and then a touch operation (such as a click operation) acting on the search control 310B may be received, which may be understood as receiving a fifth query request.
- a touch operation such as a click operation
- the electronic device displays an eighth interface, the eighth interface includes the third search result, the third search result includes the fifth geographic location and the sixth geographic location related to the fifth query request, and the fifth geographic location is indicated on the map in the sixth map area Within the range, the sixth geographic location is within the map range indicated by the seventh map area, and the sixth map area is different from the seventh map area.
- the electronic device displays the user interface 510 shown in the right figure of FIG. 5A (which can be understood as the eighth interface).
- the user interface 510 includes multiple geographical locations in Beijing whose names include “park”, including the geographical location “Xiangshan Park” (which can be understood as the fifth geographical location) and the geographical location “Beihai Park” (which can be understood as the sixth geographical location), and the map area of the geographical location “Xiangshan Park” is "Beijing Haidian District” (which can be understood as is the sixth map area), and the map area of the geographical location “Beihai Park” is "Beijing Xicheng District” (which can be understood as the seventh map area).
- the electronic device receives a second user operation on the fifth geographic location on the eighth interface.
- the electronic device displays a ninth interface, and the ninth interface includes a fifth geographic location within the range of the map indicated by the sixth map area.
- the ninth interface includes a fifth geographic location within the range of the map indicated by the sixth map area.
- the electronic device displays a tenth interface, the tenth interface includes a third history record, and the third history record includes a third keyword and a sixth map area.
- the electronic device displays the user interface 630 (which can be understood as the tenth interface) shown in FIG. It can be understood as the character of the third keyword), and the map area 632A indicating "Haidian District, Beijing" (which can be understood as the sixth map area).
- the electronic device receives the sixth query request based on the third history record, and displays an eleventh interface, which is the same as the ninth interface.
- an eleventh interface which is the same as the ninth interface.
- the electronic device receives a touch operation acting on the record 632 in the user interface 630 shown in FIG. 6B, it can be understood as receiving the sixth query request, and in response to the touch operation, displays the User interface 620 (can be understood as the eleventh interface).
- the fifth geographic location and the sixth geographic location are within the map range indicated by the eighth map area, and the map range indicated by the eighth map area includes the map range indicated by the sixth map area and the map area indicated by the seventh map area. map extent.
- the electronic device displays the user interface 510 shown in the right figure of FIG.
- the user interface 510 includes a plurality of geographical locations in Beijing whose names include “park”, including geographical location “Xiangshan Park” (the fifth geographical location) and Geographical location “Beihai Park” (sixth geographical location), geographical location “Xiangshan Park” map area is "Beijing Haidian District” (sixth map area), geographical location “Beihai Park” map area is "Beijing West City” (the seventh map area).
- the eighth map area may be "Beijing City”.
- the tenth interface further includes a fourth history record, the fourth history record includes the information of the first POI, the first POI is the fifth geographic location, and the information of the first POI includes the name of the fifth geographic location and the fifth geographic location.
- Six map area For example, the electronic device displays a user interface 630 (which can be understood as the tenth interface) shown in FIG. record), the record 631 may correspond to the POI "Xiangshan Park" selected by the user from the search results obtained after the user historically inquired about "park” (it can be understood as the fifth geographic location).
- the record 631 includes an icon 631A and a character 631B, which can indicate the keyword "Xiangshan Park” whose type is POI, that is, the name of the POI "Xiangshan Park”.
- the record 631 also includes a map area 631C, which can indicate the map area "Beijing Haidian District" of the above-mentioned POI "Xiangshan Park”.
- map query method provided in the embodiment of the present application further includes:
- the electronic device receives the seventh query request, and the seventh query request is associated with the fourth keyword.
- the electronic device may receive the keyword "Huawei Building" input by the user based on the search box 401A (which can be understood as the fourth key associated with the seventh query request). words), and then a touch operation (for example, a click operation) acting on the search control 310B may be received, which may be understood as receiving the seventh query request.
- the electronic device displays a twelfth interface, the twelfth interface includes a fourth search result, and the fourth search result includes a seventh geographic location related to the seventh query request.
- the electronic device displays the user interface 710 shown in (2) of FIG. 7B (which can be understood as the twelfth interface).
- the user interface 710 includes multiple geographic locations in Beijing related to "Huawei Building", including Location "Huawei Building” (can be understood as the seventh geographic location).
- the electronic device receives a third user operation on the seventh geographic location on the twelfth interface.
- the electronic device displays a thirteenth interface, and the thirteenth interface includes a seventh geographic location within the range of the map indicated by the ninth map area.
- receiving a touch operation acting on the search result 7131 or the location identification 712A in the user interface 710 may be understood as receiving a third user operation.
- the electronic device displays the user interface 720 (which can be understood as the thirteenth interface) shown in (3) of FIG.
- the geographical location "Huawei Building" in the ninth map area) (can be understood as the seventh geographical location).
- the electronic device receives the eighth query request, and the eighth query request is associated with the fifth keyword.
- the electronic device displays a fourteenth interface, the fourteenth interface includes a fifth search result, and the fifth search result includes the seventh geographic location related to the eighth query request.
- the electronic device displays the user interface 400 shown in the left figure of FIG. 7A, it may receive the keyword "Huawei Building" input by the user based on the search box 401A (which can be understood as the fifth key associated with the eighth query request). word), and then a touch operation acting on the search control 310B may be received, which may be understood as receiving an eighth query request.
- the electronic device displays a user interface 750 (which can be understood as the fourteenth interface) shown in the right figure of FIG. 7A, and the user interface 750 includes multiple geographic locations in Beijing related to "Huawei Building” , including the geographic location "Huawei Building” (which can be understood as the seventh geographic location).
- the electronic device displays a fifteenth interface, and the fifteenth interface includes a fifth history record, and the fifth history record includes a fourth keyword and a ninth map area.
- the fourth keyword included in the fifth historical record is the keyword "Huawei Building" associated with the seventh query request
- the ninth map area included in the fifth historical record is the map of the seventh geographical location "Huawei Building”. District "Haidian District, Beijing”.
- the electronic device receives the ninth query request based on the fifth history record, and displays a sixteenth interface, where the sixteenth interface is the same as the thirteenth interface. For example, when the electronic device receives a touch operation acting on the fifth history record, it can be understood as receiving a ninth query request. In response to the touch operation, the electronic device displays the user interface 720 (which can be understood as the sixteenth interface) shown in (3) of FIG. 7B .
- the method before S301, the method further includes:
- the electronic device receives the tenth query request, and displays a seventeenth interface, where the seventeenth interface includes a sixth search result, and the sixth search result includes at least one geographic location related to the tenth query request.
- the electronic device displays the user interface 400 shown in (1) of FIG. 7B, it may receive the keyword "Huawei Building" input by the user based on the search box 401A and the touch operation on the search control 310B, which may be understood as receiving the first Ten inquiry requests.
- the electronic device displays the user interface 710 (which can be understood as the seventeenth interface) shown in (2) of FIG. 7B .
- S301 and S302 may be executed.
- the electronic device displays the user interface 400 shown in the left figure of FIG. 7C , it may receive the keyword “Information Road Huawei Building” input 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 displays the user interface 730 shown in the right figure of FIG. 7C (which can be understood as the first interface), and the user interface 730 includes the geographic location "Huawei Building” (which can be understood as the first search result). .
- the second interface displayed by the electronic device at S303 is, for example, the user interface 740 shown in FIG. 7D.
- the user interface 740 includes a record 741 (which can be understood as the first historical record), and the record 741 includes 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.
- the electronic device may execute S304-S305.
- the electronic device may receive a touch operation on the record 741 in the user interface 740 shown in FIG. 7D, which may be understood as receiving the second query request.
- the electronic device displays the user interface 730 (which can be understood as the third interface) shown in the right diagram of FIG. 7C .
- map query method provided in the embodiment of the present application further includes:
- the electronic device receives the eleventh query request, and displays an eighteenth interface, the eighteenth interface includes a seventh search result, and the seventh search result includes an eighth geographic location related to the eleventh query request.
- the electronic device displays the user interface 400 shown in the left figure of FIG. 7A, it may receive the keyword "Huawei Building" input 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 Eleven inquiry requests.
- the electronic device displays a user interface 750 (which can be understood as the eighteenth interface) shown in the right figure of FIG. 7A, and the user interface 750 includes multiple geographic locations in Beijing related to "Huawei Building” , including the geographic location "Huawei Building” (which can be understood as the eighth geographic location).
- the electronic device receives the fourth user operation for the eighth geographic location on the eighteenth interface, and displays the nineteenth interface, where the nineteenth interface includes the eighth geographic location within the map range indicated by the tenth map area.
- the nineteenth interface includes the eighth geographic location within the map range indicated by the tenth map area.
- FIG. 7E when the electronic device displays the user interface 750 shown in the right figure of FIG. user action.
- the electronic device displays a user interface 760 (which can be understood as the nineteenth interface) shown in the right figure of FIG. ).
- the twentieth interface is electronically displayed, the twentieth interface includes a sixth historical record, the sixth historical record includes a sixth keyword and the tenth map area, and the sixth keyword is associated with the name of the eighth geographic location.
- the electronic device displays the user interface 770 shown in FIG. 7F (which can be understood as the twentieth interface), and the user interface 770 includes a record 771 (which can be understood as the sixth historical record), and the record 771 includes instructions indicating the sixth keyword " The character 771B of "Huawei Building", the sixth keyword is also the name of the eighth geographical location "Huawei Building”, and the record 771 also includes the map area 771C indicating the map area "Beijing Haidian District” of the eighth geographical location "Huawei Building” .
- the electronic device receives the twelfth query request based on the sixth history record, and displays the twenty-first interface, where the twenty-first interface is the same as the nineteenth interface. For example, when the electronic device receives a touch operation on the record 771 in the user interface 770 shown in FIG. 7F , it can be understood as receiving the twelfth query request. In response to the touch operation, the electronic device displays the user interface 760 (which can be understood as the twenty-first interface) shown in the right diagram of FIG. 7E .
- FIGS. 4A-4C, 5A-5B, 6A-6C, and 7A-7F Examples of the user interface of the method shown in FIG. 10 can be found in FIGS. 4A-4C, 5A-5B, 6A-6C, and 7A-7F.
- the steps performed by the above modules or units can be divided into multiple modules or units for implementation.
- One or more of the above modules or units may be realized by software, hardware or a combination of both.
- the processes can be completed by computer programs or hardware related to the computer programs.
- the computer programs can be stored in computer-readable storage media.
- the computer programs During execution, it may include the processes of the foregoing method embodiments.
- the aforementioned storage medium includes: various media capable of storing computer program codes such as read-only memory (ROM) or random access memory (RAM), magnetic disk or optical disk.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Computational Linguistics (AREA)
- Mathematical Physics (AREA)
- Remote Sensing (AREA)
- Human Computer Interaction (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Navigation (AREA)
Abstract
本申请实施例提供一种地图查询方法及电子设备,该方法包括:电子设备接收第一查询请求;显示第一界面,第一界面包括第一搜索结果,第一搜索结果包括在第一图区指示的地图范围内和第一查询请求相关的至少一个地理位置;显示第二界面,第二界面包括第一历史记录,第一历史记录与第一查询请求相关联;接收基于第一历史记录的第二查询请求;显示第三界面,第三界面和第一界面相同。采用本申请实施例能够在基于历史记录查询时复现之前查询得到的搜索结果,减少用户操作,搜索结果更加准确。
Description
本申请要求于2022年01月27日提交中国专利局、申请号为202210103861.7、申请名称为“地图查询方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及计算机技术领域,尤其涉及一种地图查询方法及电子设备。
电子地图一般会记录用户历史或之前已查询过的关键词。例如用户搜索关键词“鼓楼”,地图会记录用户搜索历史“鼓楼”。然而,当用户再次搜索时,会限制在当前城市内搜索,例如,虽然,天津市和上海市都有“鼓楼”的搜索结果,但电子设备当前所在的城市为天津市,地图搜索引擎给出的搜索结果只会是天津市的“鼓楼”的搜索结果。电子地图提供的基于历史记录查询的结果不够准确。
发明内容
本申请实施例公开了一种地图查询方法及电子设备,能够在基于历史记录查询时复现之前查询得到的搜索结果,搜索结果更加准确,减少用户查询的操作。
第一方面,本申请提供了一种地图查询方法,应用于电子设备,该方法包括:接收第一查询请求;显示第一界面,所述第一界面包括第一搜索结果,所述第一搜索结果包括在第一图区指示的地图范围内和所述第一查询请求相关的至少一个地理位置;显示第二界面,所述第二界面包括第一历史记录,所述第一历史记录与所述第一查询请求相关联;接收基于所述第一历史记录的第二查询请求;显示第三界面,所述第三界面和所述第一界面相同。
在上述方法中,电子设备基于第一历史记录查询得到的搜索结果是之前查询得到的第一搜索结果,用户无需再执行繁琐的查询操作即可复现之前查询到的搜索结果,搜索结果更加准确,提升用户体验感,也减小了设备处理压力。
在一种可能的实现方式中,所述接收基于所述第一历史记录的第二查询请求时所述电子设备位于第一地理位置,所述第一地理位置在第二图区指示的地图范围内,所述第二图区和所述第一图区不同。
在上述方法中,第一图区为电子设备之前查询时所在的图区,当电子设备在第一图区以外的第二图区时,接收到基于第一历史记录的第二查询请求,此时得到的搜索结果是之前查询得到的第一搜索结果,而不是第二图区内和第二查询请求相关的搜索结果,准确复现之前搜索得到的地理位置,搜索结果更加准确,很好的满足了用户需求。
在一种可能的实现方式中,所述第一历史记录包括第一关键词和所述第一图区,所述第一关键词和所述第一查询请求相关联。
在上述方法中,第一历史记录包括之前查询得到的第一搜索结果所在的第一图区,这样用户可以通过历史记录快速获取到历史查询的搜索结果的图区信息,协助用户选择所需的历史记录进行查询,用户操作更方便。
在一种可能的实现方式中,所述至少一个地理位置包括第二地理位置,所述第二地理位置在所述第一图区指示的地图范围内;或,所述至少一个地理位置包括第三地理位置和第四地理位置,所述第三地理位置在第三图区指示的地图范围内,所述第四地理位置在第四图区指示的地图范围内,所述第一图区指示的地图范围包括所述第三图区指示的地图范围和所述第四图区指示的地图范围。
在一种可能的实现方式中,该方法还包括:接收第三查询请求;显示第四界面,所述第四界面包括第二搜索结果,所述第二搜索结果包括在第五图区指示的地图范围内和所述第三查询请求相关的至少一个地理位置;接收第一用户操作;显示第五界面,所述第五界面包括所述第二搜索结果,其中,所述第五界面显示的所述第五图区的大小和所述第四界面显示的所述第五图区的大小不同;显示第六界面,所述第六界面包括第二历史记录,所述第二历史记录包括第二关键词和所述第五图区,所述第二关键词和所述第三查询请求相关联;接收基于所述第二历史记录的第四查询请求;显示第七界面,所述第七界面和所述第五界面相同。
在一种可能的实现方式中,所述第一用户操作为缩小手势或者放大手势。
在上述方法中,电子设备显示基于第二历史记录查询得到的第二搜索结果时的图区大小,是之前显示查询到的第二搜索结果时的图区大小,用户无需再执行调整显示的图区大小的操作,进一步减少用户操作,搜索结果更加准确。
在一种可能的实现方式中,该方法还包括:接收第五查询请求;显示第八界面,所述第八界面包括第三搜索结果,所述第三搜索结果包括和所述第五查询请求相关的第五地理位置和第六地理位置,所述第五地理位置在第六图区指示的地图范围内,所述第六地理位置在第七图区指示的地图范围内,所述第六图区和所述第七图区不同;接收在所述第八界面中针对所述第五地理位置的第二用户操作;显示第九界面,所述第九界面包括在所述第六图区指示的地图范围内的所述第五地理位置;显示第十界面,所述第十界面包括第三历史记录,所述第三历史记录包括第三关键词和所述第六图区,所述第三关键词与所述第五查询请求相关联;接收基于所述第三历史记录的第六查询请求;显示第十一界面,所述第十一界面和所述第九界面相同。
在上述方法中,之前进行地图查询时,电子设备查询得到的第三搜索结果包括多个地理位置,并且用户选择了其中的第五地理位置,对应显示的第三历史记录包括用户选择的第五地理位置所在的第六图区。在这种情况下,基于第三历史记录查询得到的搜索结果为用户之前选择的第五地理位置,而非第三搜索结果,用户无需再执行选择第五地理位置的操作,进一步减少用户操作,搜索结果更加准确。
在一种可能的实现方式中,所述第五地理位置和所述第六地理位置在第八图区指示的地图范围内,所述第八图区指示的地图范围包括所述第六图区指示的地图范围和所述第七图区指示的地图范围。
在一种可能的实现方式中,所述第十界面还包括第四历史记录,所述第四历史记录包括第一信息点POI的信息,所述第一POI为所述第五地理位置,所述第一POI的信息包括所述第五地理位置的名称和所述第六图区。
在一种可能的实现方式中,该方法还包括:接收第七查询请求;显示第十二界面,所述第十二界面包括第四搜索结果,所述第四搜索结果包括和所述第七查询请求相关的第七地理位置;接收在所述第十二界面中针对所述第七地理位置的第三用户操作;显示第十三界面,所述第十三界面包括在第九图区指示的地图范围内的所述第七地理位置;接收第八查询请求;显示第十四界面,所述第十四界面包括第五搜索结果,所述第五搜索结果包括和所述第八查 询请求相关的所述第七地理位置;显示第十五界面,所述第十五界面包括第五历史记录,所述第五历史记录包括第四关键词和所述第九图区,所述第四关键词和所述第七查询请求相关联;接收基于所述第五历史记录的第九查询请求;显示第十六界面,所述第十六界面和所述第十三界面相同。
在上述方法中,之前进行地图查询时,用户短时间进行了多次查询,并且用户在第一次查询时选择了查询得到的第七地理位置,电子设备可以仅显示第一次查询对应的第五历史记录,可以理解为是根据是否存在用户选择地理位置的操作确定显示的历史记录,避免显示无效、冗余的历史记录,用户查看更加方便,也减少了设备的存储压力。并且,基于第五历史记录查询得到的搜索结果为用户之前选择的第七地理位置,而非第四搜索结果或第五搜索结果,进一步减少用户操作,搜索结果更加准确。
在一种可能的实现方式中,所述第四关键词和第五关键词不同,所述第五关键词和所述第八查询请求相关联。
在一种可能的实现方式中,所述接收第一查询请求之前,该方法还包括:接收第十查询请求;显示第十七界面,所述第十七界面包括第六搜索结果,所述第六搜索结果包括和所述第十查询请求相关的至少一个地理位置。
在上述方法中,之前进行地图查询时,用户短时间进行了多次查询,电子设备可以仅显示最近一次查询对应的第一历史记录,可以理解为是根据查询时间确定显示的历史记录,避免显示无效、冗余的历史记录,用户查看更方便,减少了设备的存储压力。并且,基于第一历史记录查询得到的搜索结果为用户最近一次查询得到的第一搜索结果,搜索结果更加准确。
在一种可能的实现方式中,该方法还包括:接收第十一查询请求;显示第十八界面,所述第十八界面包括第七搜索结果,所述第七搜索结果包括和所述第十一查询请求相关的第八地理位置;接收在所述第十八界面中针对所述第八地理位置的第四用户操作;显示第十九界面,所述第十九界面包括在第十图区指示的地图范围内的所述第八地理位置;显示第二十界面,所述第二十界面包括第六历史记录,所述第六历史记录包括第六关键词和所述第十图区,所述第六关键词与所述第八地理位置的名称相关联;接收基于所述第六历史记录的第十二查询请求;显示第二十一界面,所述第二十一界面和所述十九界面相同。
在上述方法中,之前进行地图查询时,用户输入的关键词和用户选择的第八地理位置不同,电子设备显示的第六历史记录包括的关键词可以不是用户输入的关键词,而是和用户选择的第八地理位置的名称相关,可以理解为是进行了自动纠错,减少用户误输入情况的影响,用户无需再执行选择第八地理位置的操作,进一步减少用户操作,搜索结果更加准确。
在一种可能的实现方式中,所述显示第三界面之前,该方法还包括:向网络设备发送第一请求消息,所述第一请求消息用于请求获取所述第二查询请求相关的搜索结果,所述第一请求消息包括所述第一关键词和所述第一图区;获取所述网络设备发送的所述第一搜索结果,所述第一搜索结果用于所述电子设备显示所述第三界面。
在一种可能的实现方式中,所述显示第七界面之前,该方法还包括:向网络设备发送第二请求消息,所述第二请求消息用于请求获取所述第四查询请求相关的搜索结果,所述第二请求消息包括所述第二关键词、所述第五图区和第一参数,所述第一参数用于表征所述第五界面显示的所述第五图区的大小;获取所述网络设备发送的所述第二搜索结果,所述第二搜索结果用于所述电子设备显示所述第七界面。
第二方面,本申请提供了又一种地图查询方法,应用于网络设备,该方法包括:接收第 一请求消息,所述第一请求消息为电子设备接收到第一查询请求时发送的,所述第一请求消息用于请求获取所述第一查询请求相关的搜索结果;向所述电子设备发送第一搜索结果,所述第一搜索结果用于所述电子设备显示第一界面,所述第一搜索结果包括在第一图区指示的地图范围内和所述第一查询请求相关的至少一个地理位置;接收第二请求消息,所述第二请求消息为所述电子设备接收到基于第一历史记录的第二查询请求时发送的,所述第一历史记录为所述电子设备显示所述第一界面之后显示的,所述第一历史记录与所述第一查询请求相关联,所述第二请求消息用于请求获取所述第二查询请求相关的搜索结果;向所述电子设备发送所述第一搜索结果,所述第一搜索结果用于所述电子设备显示第二界面,所述第二界面和所述第一界面相同。
在上述方法中,电子设备基于第一历史记录查询得到的搜索结果是之前查询得到的第一搜索结果,用户无需再执行繁琐的查询操作即可复现之前查询到的搜索结果,搜索结果更加准确,提升用户体验感,也减小了设备处理压力。
在一种可能的实现方式中,所述电子设备接收到所述第二查询请求时所述电子设备位于第一地理位置,所述第一地理位置在第二图区指示的地图范围内,所述第二图区和所述第一图区不同。
在上述方法中,第一图区为电子设备之前查询时所在的图区,当电子设备在第一图区以外的第二图区时,接收到基于第一历史记录的第二查询请求,此时得到的搜索结果是之前查询得到的第一搜索结果,而不是第二图区内和第二查询请求相关的搜索结果,准确复现之前搜索得到的地理位置,搜索结果更加准确,很好的满足了用户需求。
在一种可能的实现方式中,所述第一历史记录包括第一关键词和所述第一图区,所述第一关键词和所述第一查询请求相关联。
在上述方法中,第一历史记录包括之前查询得到的第一搜索结果所在的第一图区,这样用户可以通过历史记录快速获取到历史查询的搜索结果的图区信息,协助用户选择所需的历史记录进行查询,用户操作更方便。
在一种可能的实现方式中,所述第二请求消息包括所述第一关键词和所述第一图区。
在一种可能的实现方式中,所述至少一个地理位置包括第二地理位置,所述第二地理位置在所述第一图区指示的地图范围内;或,所述至少一个地理位置包括第三地理位置和第四地理位置,所述第三地理位置在第三图区指示的地图范围内,所述第四地理位置在第四图区指示的地图范围内,所述第一图区指示的地图范围包括所述第三图区指示的地图范围和所述第四图区指示的地图范围。
在一种可能的实现方式中,该方法还包括:接收第三请求消息,所述第三请求消息为所述电子设备接收到第三查询请求时发送的,所述第三请求消息用于请求获取所述第三查询请求相关的搜索结果;向所述电子设备发送第二搜索结果,所述第二搜索结果用于所述电子设备显示第三界面,所述第二搜索结果包括在第五图区指示的地图范围内和所述第三查询请求相关的至少一个地理位置;接收第四请求消息,所述第四请求消息为所述电子设备接收到第一用户操作时发送的,所述第一用户操作用于调整所述电子设备在所述第三界面显示的所述第五图区的大小;向所述电子设备发送调整后的所述第五图区,所述调整后的所述第五图区用于所述电子设备显示第四界面,所述第四界面包括所述第二搜索结果,所述第三界面显示的所述第五图区的大小和所述第四界面显示的所述第五图区的大小不同;接收第五请求消息,所述第五请求消息为所述电子设备接收到基于第二历史记录的第四查询请求时发送的,所述第二历史记录为所述电子设备显示所述第四界面之后显示的,所述第二历史记录和所述第三 查询请求相关联,所述第五请求消息用于请求获取所述第四查询请求相关的搜索结果;向所述电子设备发送所述第二搜索结果和所述调整后的所述第五图区,所述第二搜索结果和所述调整后的所述第五图区用于所述电子设备显示第五界面,所述第五界面和所述第四界面相同。
在一种可能的实现方式中,所述第一用户操作为缩小手势或者放大手势。
在上述方法中,电子设备显示基于第二历史记录查询得到的第二搜索结果时的图区大小,是之前显示查询到的第二搜索结果时的图区大小,用户无需再执行调整显示的图区大小的操作,进一步减少用户操作,搜索结果更加准确。
在一种可能的实现方式中,所述第二历史记录包括第二关键词和所述第五图区,所述第二关键词和所述第三查询请求相关联。
在一种可能的实现方式中,所述第五请求消息包括所述第二关键词、所述第五图区和第一参数,所述第一参数用于表征所述第四界面显示的所述第五图区的大小。
在一种可能的实现方式中,该方法还包括:接收第六请求消息,所述第六请求消息为所述电子设备接收到第五查询请求时发送的,所述第六请求消息用于请求获取所述第五查询请求相关的搜索结果;向所述电子设备发送第三搜索结果,所述第三搜索结果用于所述电子设备显示第六界面,所述第三搜索结果包括和所述第五查询请求相关的第五地理位置和第六地理位置,所述第五地理位置在第六图区指示的地图范围内,所述第六地理位置在第七图区指示的地图范围内,所述第六图区和所述第七图区不同;接收第七请求消息,所述第七请求消息为所述电子设备接收到在所述第六界面中针对所述第五地理位置的第二用户操作时发送的;向所述电子设备发送所述第五地理位置,所述第五地理位置用于所述电子设备显示第七界面;接收第八请求消息,所述第八请求消息为所述电子设备接收到基于第三历史记录的第六查询请求时发送的,所述第三历史记录为所述电子设备显示所述第七界面之后显示的,所述第三历史记录和所述第五查询请求相关联,所述第八请求消息用于请求获取所述第六查询请求相关的搜索结果;向所述电子设备发送所述第五地理位置,所述第五地理位置用于所述电子设备显示第八界面,所述第八界面和所述第七界面相同。
在上述方法中,之前进行地图查询时,电子设备查询得到的第三搜索结果包括多个地理位置,并且用户选择了其中的第五地理位置,对应显示的第三历史记录包括用户选择的第五地理位置所在的第六图区。在这种情况下,基于第三历史记录查询得到的搜索结果为用户之前选择的第五地理位置,而非第三搜索结果,用户无需再执行选择第五地理位置的操作,进一步减少用户操作,搜索结果更加准确。
在一种可能的实现方式中,所述第三历史记录包括第三关键词和所述第六图区,所述第三关键词和所述第五查询请求相关联。
在一种可能的实现方式中,所述第八请求消息包括所述第三关键词和所述第六图区。
在一种可能的实现方式中,所述第五地理位置和所述第六地理位置在第八图区指示的地图范围内,所述第八图区指示的地图范围包括所述第六图区指示的地图范围和所述第七图区指示的地图范围。
在一种可能的实现方式中,所述电子设备显示所述第三历史记录时还显示第四历史记录,所述第四历史记录包括第一信息点POI的信息,所述第一POI为所述第五地理位置,所述第一POI的信息包括所述第五地理位置的名称和所述第六图区。
在一种可能的实现方式中,该方法还包括:接收第九请求消息,所述第九请求消息为所述电子设备接收到第七查询请求时发送的,所述第九请求消息用于请求获取所述第七查询请求相关的搜索结果;向所述电子设备发送第四搜索结果,所述第四搜索结果用于所述电子设 备显示第九界面,所述第四搜索结果包括和所述第七查询请求相关的第七地理位置;接收第十请求消息,所述第十请求消息为所述电子设备接收到在所述第九界面中针对所述第七地理位置的第三用户操作时发送的;向所述电子设备发送所述第七地理位置,所述第七地理位置用于所述电子设备显示第十界面,所述第七地理位置在第九图区指示的地图范围内;接收第十一请求消息,所述第十一请求消息为所述电子设备接收到第八查询请求时发送的,所述十一请求消息用于请求获取所述第八查询请求相关的搜索结果;向所述电子设备发送第五搜索结果,所述第五搜索结果用于所述电子设备显示第十一界面,所述第五搜索结果包括和所述第八查询请求相关的所述第七地理位置;接收第十二请求消息,所述第十二请求消息为所述电子设备接收到基于第五历史记录的第九查询请求时发送的,所述第五历史记录为所述电子设备显示所述第十一界面之后显示的,所述第五历史记录和所述第七查询请求相关联,所述第十二请求消息用于请求获取所述第九查询请求相关的搜索结果;向所述电子设备发送所述第七地理位置,所述第七地理位置用于所述电子设备显示第十二界面,所述第十二界面和所述第十界面相同。
在上述方法中,之前进行地图查询时,用户短时间进行了多次查询,并且用户在第一次查询时选择了查询得到的第七地理位置,电子设备可以仅显示第一次查询对应的第五历史记录,可以理解为是根据是否存在用户选择地理位置的操作确定显示的历史记录,避免显示无效、冗余的历史记录,用户查看更加方便,也减少了设备的存储压力。并且,基于第五历史记录查询得到的搜索结果为用户之前选择的第七地理位置,而非第四搜索结果或第五搜索结果,进一步减少用户操作,搜索结果更加准确。
在一种可能的实现方式中,所述第五历史记录包括第四关键词和所述第九图区,所述第四关键词和所述第七查询请求相关联。
在一种可能的实现方式中,所述第十二请求消息包括所述第四关键词和所述第九图区。
在一种可能的实现方式中,所述第四关键词和第五关键词不同,所述第五关键词和所述第八查询请求相关联。
在一种可能的实现方式中,所述接收第一请求消息之前,所述方法还包括:接收第十三请求消息,所述第十三请求消息为所述电子设备接收到第十查询请求时发送的,所述第十三请求消息用于请求获取所述第十查询请求相关的搜索结果;向所述电子设备发送第六搜索结果,所述第六搜索结果用于所述电子设备显示第十三界面,所述第六搜索结果包括和所述第十查询请求相关的至少一个地理位置。
在上述方法中,之前进行地图查询时,用户短时间进行了多次查询,电子设备可以仅显示最近一次查询对应的第一历史记录,可以理解为是根据查询时间确定显示的历史记录,避免显示无效、冗余的历史记录,用户查看更方便,减少了设备的存储压力。并且,基于第一历史记录查询得到的搜索结果为用户最近一次查询得到的第一搜索结果,搜索结果更加准确。
在一种可能的实现方式中,该方法还包括:接收第十四请求消息,所述第十四请求消息为所述电子设备接收到第十一查询请求时发送的,所述第十四请求消息用于请求获取所述第十一查询请求相关的搜索结果;向所述电子设备发送第七搜索结果,所述第七搜索结果用于所述电子设备显示第十四界面,所述第七搜索结果包括和所述第十一查询请求相关的第八地理位置;接收第十五请求消息,所述第十五请求消息为所述电子设备接收到在所述第十四界面中针对所述第八地理位置的第四用户操作时发送的;向所述电子设备发送所述第八地理位置,所述第八地理位置用于所述电子设备显示第十五界面,所述第八地理位置在第十图区指示的地图范围内;接收第十六请求消息,所述第十六请求消息为所述电子设备接收到基于第 六历史记录的第十二查询请求时发送的,所述第十六请求消息用于请求获取所述第十二查询请求相关的搜索结果;向所述电子设备发送第八地理位置,所述第八地理位置用于所述电子设备显示第十六界面,所述第十六界面和所述第十五界面相同。
在上述方法中,之前进行地图查询时,用户输入的关键词和用户选择的第八地理位置不同,电子设备显示的第六历史记录包括的关键词可以不是用户输入的关键词,而是和用户选择的第八地理位置的名称相关,可以理解为是进行了自动纠错,减少用户误输入情况的影响,用户无需再执行选择第八地理位置的操作,进一步减少用户操作,搜索结果更加准确。
在一种可能的实现方式中,所述第六历史记录包括第六关键词和所述第十图区,所述第六关键词与所述第八地理位置的名称相关联。
在一种可能的实现方式中,所述第十六请求消息包括所述第六关键词和所述第十图区。
第三方面,本申请提供了一种通信装置,包括收发器、处理器和存储器,上述存储器用于存储计算机程序,上述处理器调用上述计算机程序,用于执行上述任一方面任意一种可能的实现方式中的地图查询方法。
第四方面,本申请提供了一种通信装置,包括一个或多个处理器和一个或多个存储器。该一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,使得上述通信装置执行上述任一方面任意一种可能的实现方式中的地图查询方法。
第五方面,本申请实施例提供了一种计算机存储介质,上述计算机存储介质存储有计算机程序,上述计算机程序被处理器执行时,实现上述任一方面任意一种可能的实现方式中的地图查询方法。
第六方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述任一方面任意一种可能的实现方式中的地图查询方法。
以下对本申请实施例用到的附图进行介绍。
图1A是本申请实施例提供的一种地图查询***的架构示意图;
图1B是本申请实施例提供的一种地图查询***的交互示意图;
图2A是本申请实施例提供的一种电子设备的硬件结构示意图;
图2B是本申请实施例提供的一种电子设备的软件架构示意图;
图2C是本申请实施例提供的一种网络设备的硬件结构示意图;
图3是本申请实施例提供的一种历史记录的界面示意图;
图4A是本申请实施例提供的一种查询行为的界面示意图;
图4B是本申请实施例提供的又一种历史记录的界面示意图;
图4C是本申请实施例提供的一种调整显示的图区的界面示意图;
图5A是本申请实施例提供的又一种查询行为的界面示意图;
图5B是本申请实施例提供的又一种历史记录的界面示意图;
图6A是本申请实施例提供的又一种查询行为的界面示意图;
图6B是本申请实施例提供的又一种历史记录的界面示意图;
图6C是本申请实施例提供的又一种历史记录的界面示意图;
图7A-图7C是本申请实施例提供的又一些查询行为的界面示意图;
图7D是本申请实施例提供的又一种历史记录的界面示意图;
图7E是本申请实施例提供的又一种查询行为的界面示意图;
图7F是本申请实施例提供的又一种历史记录的界面示意图;
图8是本申请实施例提供的一种地图查询方法的流程示意图;
图9是本申请实施例提供的又一种地图查询方法的流程示意图;
图10是本申请实施例提供的又一种地图查询方法的流程示意图。
在本文中对本申请的描述中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如本在发明的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。
首先介绍本申请相关的概念。
查询,也可称为“搜索”,“检索”等,可以理解为是从用户的信息需求出发,采用一些技术手段,按照一些规则从信息集合中查找出和用户的信息需求匹配的信息(即查询结果)。其中,上述用户的信息需求例如是基于用户输入的查询语句确定的。本申请中的查询是针对地图实现的,因此上述信息集合可以是地理位置的集合,一般为地图范围,可称为查询的图区,通常电子设备的地图应用会预设有默认图区,例如当前定位所在的城市,并在默认图区内搜索和用户输入的查询语句相关的地理位置。查询结果可以是地理位置。
本申请中,任意一个地理位置可以为一个信息点(point of information,POI),在地理信息***中,一个POI可以是任意一个实体,例如一栋建筑物、一个商铺、一个公交站、一个邮筒等。每个POI包括但不限于以下至少一项信息:名称、坐标和分类,其中坐标的形式例如但不限于包括经纬度。
本申请中,任意一个地理位置的图区可以指示包括该地理位置的地图范围。同一个地理位置可以属于不同层级的图区,层级越高的图区指示的地理范围越大,层级较高的图区可以包括层级较低的图区,例如地理位置“南京市鼓楼区”所属的图区按照层级从高到低依次为“中国”、“江苏省”、“南京市、”“南京市鼓楼区”。在一些实施例中,地理位置的图区为包括该地理位置的最小层级的图区,例如地理位置“南京市鼓楼区”的图区为“南京市鼓楼区”,为了方便说明,本申请以任意一个地理位置的图区为最小层级的图区,且最小层级的图区为该地理位置所属的某个城市下的某个区域为例进行说明。
用户输入的查询语句的形式可以但不限于包括文字、图片、语音、视频、运动姿态等。为了方便说明,本申请以文字为例进行说明,其他形式类似,可以理解为是将任意形式的输入信息转换为文字信息来进行处理。本申请中的查询语句也可称为关键词。
下面介绍本申请实施例涉及的一种地图查询***10。
图1A示例性示出了本申请实施例提供的一种地图查询***10的架构示意图。
如图1A所示,地图查询***10可以包括电子设备100和网络设备200。电子设备100可以通过有线(例如,通用串行总线(universal serial bus,USB)、双绞线、同轴电缆和光纤等) 或无线(例如,无线局域网(wireless local area networks,WLAN)、蓝牙和移动设备网络等)的方式,和网络设备进行通信。
其中,电子设备100可以是手机、平板电脑、手持计算机、个人数字助理(Personal Digital Assistant,PDA)等移动终端,智能电视、智能摄像头等智能家居设备,智能手环、智能手表、智能眼镜等可穿戴设备,或其他桌面型、膝上型、笔记本电脑、超级移动个人计算机(Ultra-mobile Personal Computer,UMPC)、上网本、智慧屏等设备。本申请实施例对电子设备100的具体类型不作特殊限制。
其中,网络设备200可以包括至少一个服务器,在一些实施例中,任意一个服务器可以为硬件服务器,在一些实施例中,任意一个服务器可以为云服务器。
在一些实施例中,电子设备100可以与网络设备200基于浏览器/服务器(browser/server,B/S)架构通信,也可以基于客户端/服务器(client/server,C/S)架构通信。电子设备100可以接收用户输入的查询请求,向网络设备200发送请求消息,以获取和该查询请求相关的搜索结果(至少一个地理位置)。电子设备100接收到网络设备200发送的搜索结果后,可以显示该搜索结果。
图1B示例性示出了本申请实施例提供的一种地图查询***10的交互示意图。
如图1B所示,地图查询***10中的电子设备100可以包括应用程序(例如地图应用)和模型模块。地图查询***10中的网络设备200可以包括搜索模块,其中:
电子设备100的应用程序可以用于接收用户输入的关键词和基于该关键词的查询请求。在一些实施例中,应用程序可以向网络设备200的搜索模块发送请求消息,该请求消息用于获取和该查询请求相关的搜索结果。在一些实施例中,应用程序可以记录此次查询请求对应的地图查询的行为序列,例如用户输入的关键词等信息,并向电子设备100的模型模块发送该行为序列。
网络设备200的搜索模块接收到电子设备100的应用程序发送的请求消息时,可以基于该请求消息获取相关的搜索结果,在一些实施例中,搜索模块可以获取当前图区(如电子设备100当前所在的城市)内和上述关键词相关的至少一个地理位置。网络设备200的搜索模块接可以向电子设备100的应用程序发送获取到的搜索结果。
电子设备100的应用程序接收到网络设备200的搜索模块发送的搜索结果后,可以显示该搜索结果。
电子设备100的模型模块接收到应用程序发送的地图查询的行为序列后,可以生成该行为序列对应的历史记录,该历史记录可以包括该行为序列中的关键词,以及该行为序列对应的目标位置的图区。在一些实施例中,模型模块可以预测该行为序列对应的目标位置,例如将该行为序列作为意图模型的输入,得到输出的目标位置,在另一些实施例中,模型模块可以将该行为序列对应的搜索结果确定为是对应的目标位置。模型模块可以向应用程序发送生成的历史记录。
电子设备100的应用程序接收到模型模块发送的历史记录后,可以显示该历史记录。
在一种可能的实现方式中,电子设备100的应用程序还可以用于接收用户输入的基于历史记录的查询请求。应用程序可以向网络设备200的搜索模块发送请求消息,网络设备200的搜索模块接收到电子设备100的应用程序发送的请求消息时,可以获取该历史记录包括的图区内和该历史记录包括的关键词相关的至少一个搜索结果,也就是获取和该查询请求相关的搜索结果。网络设备200的搜索模块接可以向电子设备100的应用程序发送获取到的搜索 结果,应用程序可以显示该搜索结果。
在一种可能的实现方式中,地图查询***10中的电子设备100还可以包括日志模块,日志模块用于接收应用程序发送的地图查询的行为序列,并对行为序列进行时域分割,例如查询时间在同一个预设时段内的行为序列属于同一个时域。
在一些实施例中,地图查询***10中的网络设备200还可以包括训练模块,日志模块可以将时域分割后的行为序列发送给训练模块,训练模块可以基于接收到的行为序列训练意图模型和/或满意度模型。网络设备200的训练模块可以向电子设备100的模型模块发送意图模型和/或满意度模型,例如每隔预设时长发送,又例如版本更新时发送更新版本后的模型。其中,意图模型用于获取任意一条行为序列对应的目标位置,目标位置用于确定该行为序列对应的历史记录,例如该历史记录包括目标位置的图区。满意度模型用于获取至少一条行为序列对应的满意度,满意度用于确定是否显示该行为序列对应的历史记录。
在一些实施例中,日志模块可以将时域分割后的行为序列发送给模型模块。电子设备100的模型模块接收到网络设备200的训练模块发送的意图模型和/或满意度模型后,可以基于接收到的行为序列自行训练意图模型和/或满意度模型。
在一些实施例中,模型模块接收到日志模块发送的时域分割后的行为序列后,可以将该行为序列作为意图模型的输入获取输出的目标位置,然后判断是否存在和该行为序列的目标位置相同,且属于同一个时域的行为序列,若存在,则基于该行为序列对应的满意度判断是否显示该行为序列对应的历史记录,例如该行为序列对应的满意度更高则确定显示该行为序列对应的历史记录,其中该行为序列对应的满意度为将该行为序列作为满意度模型的输入得到的输出。
接下来介绍本申请实施例中提供的示例性的电子设备。
请参见图2A,图2A示出了一种电子设备100的结构示意图。
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,USB接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的 控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了***的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信 号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括WLAN(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星***(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯***(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,和/或IR技术等。所述GNSS可以包括全球卫星定位***(global positioning system,GPS),全球导航卫星***(global navigation satellite system,GLONASS),北斗卫星导航***(beidou navigation satellite system,BDS),准天顶卫星***(quasi-zenith satellite system,QZSS)和/或星基增强***(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度等进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中, 电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作***,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触 摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
电子设备100的软件***可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。例如,分层架构的软件***可以是安卓(Android)***,也可以是华为移动服务(huawei mobile services,HMS)***,或其它软件***。本申请实施例以分层架构的Android***为例,示例性说明电子设备100的软件结构。
图2B是本申请实施例的电子设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android***分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和***库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图2B所示,应用程序包可以包括相机,日历,音乐,图库,短信息,通话,地图,蓝牙,浏览器等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2B所示,应用程序框架层可以包括窗口管理器,内容提供器,视图***,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图***包括可视控件,例如显示文字的控件,显示图片的控件等。视图***可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在***顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android runtime包括核心库和虚拟机。Android runtime负责安卓***的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
***库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子***进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
下面结合地图查询场景,示例性说明电子设备100软件以及硬件的工作流程。
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为地图应用中指示历史记录1的控件为例,地图应用调用应用框架层的接口,获取历史记录1包括的图区指示的地图范围内,和历史记录1包括的关键词相关的地理位置,进而通过调用内核层启动显示驱动,通过显示屏194显示上述地理位置。
接下来介绍本申请实施例中提供的示例性的网络设备。
请参见图2C,图2C示出了一种网络设备200的结构示意图。
如图2C所示,网络设备200可以包括一个或多个处理器201、通信接口202、存储器203,其中处理器201、通信接口202、存储器203可通过总线或者其它方式连接,本申请实施例以通过总线204连接为例。其中:
处理器201可以由一个或者多个通用处理器构成,例如CPU。处理器201可用于运行设备控制方法的相关的程序代码。
通信接口202可以为有线接口(例如以太网接口)或无线接口(例如蜂窝网络接口或使用无线局域网接口),用于与其他节点进行通信。本申请实施例中,通信接口202具体可用于与电子设备100进行通信。
存储器203可以包括易失性存储器(volatile memory),例如RAM;存储器也可以包括非易失性存储器(non-vlatile memory),例如ROM、快闪存储器(flash memory)、HDD或固态硬盘SSD。存储器203还可以包括上述种类的存储器的组合。存储器203可用于存储一组程序代码,以便于处理器201调用存储器203中存储的程序代码以实现本申请实施例的在服务器的实现方法。在本申请实施例中,存储器203还可以是存储阵列,等等。
在一些实施例中,网络设备200可以包括多个服务器,例如,网页服务器、后台服务器、下载服务器等,这多个服务器的硬件结构都可参照图2C所示的网络设备200的硬件结构。
需要说明的,图2C所示的网络设备200仅仅是本申请实施例的一种实现方式,实际应用中,网络设备200还可以包括更多或更少的部件,这里不作限制。
下面介绍本申请实施例涉及的应用场景以及该场景下的用户界面实施例。
请参见图3,图3示例性示出一种用户界面的示意图。
如图3所示,电子设备可以显示地图应用的用户界面300。用户界面300可以包括搜索栏310、历史记录320和清除控件330,其中:
搜索栏310可以包括搜索框310A和搜索控件310B。搜索框310A可以用于接收用户输入的关键词,例如包括字符“搜地点”,用于提示用户输入关键词。搜索控件310B可以用于触发执行查询。电子设备可以接收作用于搜索控件310B的触摸操作(例如点击操作),响应于该触摸操作,基于用户输入的关键词在预设的默认图区内搜索相关的地理位置,上述过程可以理解为是一次查询行为,一次查询行为后,电子设备可以记录用户输入的关键词,并显示给用户,例如通过历史记录320显示用户查询过的关键词。
为了方便说明,本申请实施例以默认图区为电子设备所在位置所属的城市为例进行说明。
历史记录320用于显示用户查询过的关键词,每一条历史记录可以包括图标和字符,字符为用户查询过的关键词,图标可以表征该关键词的类型。关键词的类型可以包括查询(query)和POI。类型为query的关键词为用户输入的查询语句。类型为POI的关键词为对应的POI的名称,POI是电子地图预先存储的地理位置,例如一个公交站、一个商铺等。例如,历史记录320包括记录321和记录322,其中:
记录321包括图标321A和字符321B,图标321A表征记录321中的关键词的类型为查询(query),字符321B为该关键词的内容:“鼓楼”,也就是说,记录321可以表征用户历史查询类型为query的关键词“鼓楼”的行为。在一些实施例中,电子设备可以接收用户通过搜索框310A输入的查询语句“鼓楼”,并接收作用于搜索控件310B的触摸操作(例如点击操作),响应于该用户操作,查询得到和“鼓楼”相关的搜索结果,这样的查询行为后,电子设备可以记录用户输入的查询语句,保存并显示记录321。
记录322包括图标322A和字符322B,图标322A表征记录322的类型为POI,字符322B为该POI的名称“南京市第一医院本部”,POI是记录由地图应用从服务器获取的地理位置信息,用于说明某个地理位置的位置标识信息。也就是说,记录322可以表征用户历史查询类型为POI的关键词“南京市第一医院本部”的行为。在一些实施例中,电子设备可以接收用户通过搜索框310A输入的查询语句,此时可以显示和该查询语句相关的多个搜索结果,然后,电子设备可以接收作用于这多个搜索结果中的一个搜索结果的触摸操作(例如点击操作),这一个搜索结果是名称为“南京市第一医院本部”的POI,响应于该触摸操作,显示该POI的详细信息,这样的查询行为后,电子设备可以记录该POI的名称,保存并显示记录322。这种情况可以理解为是用户直接查询该POI。不限于此,在另一些实施例中,上述电子设备接收用户通过搜索框310A输入的查询语句后,可以先接收作用于搜索控件310B的触摸操作(例如点击操作),响应于该用户操作,才显示和该查询语句相关的多个搜索结果,后续过程一致,不再赘述。这种情况可以理解为是用户先进行了一次查询并选择了此次查询得到的一个POI。
图3所示的历史记录仅为示例,不应对本申请构成限定,用户输入其他查询语句的情况类似,不再赘述。
不限于上述示例的情况,在另一些示例中,POI又可以包括多种类型,例如地铁站、餐厅、景区等,历史记录中的图标可以有多种不同的形式,以此表征上述多种类型,例如图标为叉子的形状时,表征关键词的类型为POI且为餐厅,本申请对此不作限定。
清除控件330用于删除查询过的历史记录。电子设备可以响应于作用于清除控件330的触摸操作(例如点击操作),删除用户基于地图应用查询过的所有记录(即历史记录320包括的信息),此时显示的用户界面不包括历史记录320。
可以理解地,电子设备可以接收作用于任意一条历史记录的用户操作,响应于该用户操作,在默认图区内搜索和该历史记录包括的关键词相关的地理位置,例如,假设用户历史查询类型为query的关键词“鼓楼”(对应记录321)时,电子设备位于南京,则历史查询到的搜索结果包括当前默认图区“南京市”内和关键词“鼓楼”相关的至少一个地理位置,假设为名称为“南京市鼓楼区”的POI。电子设备位于武汉时,可以接收作用于记录321的用户操作,响应于该用户操作,查询得到当前默认图区“武汉市”内和关键词“鼓楼”相关的至少一个地理位置,而不再是名称为“南京市鼓楼区”的POI。若用户想要得到之前的搜索结果(名称为“南京市鼓楼区”的POI),就需要先将图区切换为“南京市”,操作复杂。也就是说,基于地图应用的历史记录进行搜索时,很可能无法准确复现之前搜索的结果,无法满足用户的搜索需求,若需复现之前搜索的结果需要用户执行繁琐的查询操作,设备处理压力大,用户体验感差。
本申请中,针对基于任意一条历史记录的查询请求,电子设备得到的搜索结果可以为之前查询该历史记录包括的关键词得到的搜索结果,搜索结果更加准确,用户无需再执行繁琐的查询操作,提升用户体验感,也减小了设备处理压力。
场景1:假设用户想要搜索南京市内的鼓楼。当电子设备位于南京市时,即默认图区为“南京市”时,用户可以输入查询语句“鼓楼”并进行搜索,具体示例可参见图4A,图4A示例性示出一种查询行为的界面示意图。
如图4A的左图所示,电子设备可以显示地图应用的用户界面400,用户界面400包括搜索栏401,搜索栏401包括搜索框401A和搜索控件401B,具体描述和图3所示的用户界面300中的搜索框310A和搜索控件310B类似,区别在于,搜索框401A包括的字符为用户当前输入的查询语句“鼓楼”。用户界面400还包括预览列表402,预览列表402用于显示南京市内和搜索框401A包括的查询语句“鼓楼”相关的地理位置,例如按照从上往下的顺序依次为:名称为“鼓楼区”的地理位置402A、名称为“鼓楼医院-门诊部”的地理位置和名称为“鼓楼公园”的地理位置。电子设备可以接收作用于搜索控件310B的触摸操作(例如点击操作),响应于该触摸操作,查询得到南京市内和查询语句“鼓楼”相关的搜索结果,可选地,显示预览列表402中排列在第一个的地理位置402A,具体可参见图4A的右图。
如图4A的右图所示,电子设备可以显示地图应用的用户界面410,用户界面410包括名称为“南京市鼓楼区”的搜索结果(也为一个地理位置),可简称为搜索结果“南京市鼓楼区”,也可简称为地理位置“南京市鼓楼区”,对应图4A的左图所示的用户界面400中的地理位置402A。用户界面410可以包括搜索栏411、图区视野412和地点信息413,其中:
搜索栏411可以包括返回控件411A、搜索框411B和取消控件411C。返回控件411A用于返回上一级界面,例如图4A的左图所示的用户界面400。搜索框411B和图4A的左图所示的用户界面400中的搜索框401A类似。取消控件411C可以用于取消此次搜索,可选地还可以用于返回上一级界面或者地图应用的首页。
图区视野412为当前用户界面显示的图区,地点范围412A和地点标识412B用于展示搜索结果“南京市鼓楼区”在地图上的位置,其中,地点标识412B位于地点范围412A内,包括字符“鼓楼区”,可以表征地点范围412A指示该地理位置的地图范围。在一些实施例中,电子设备可以在用户界面上显示默认的图区,不同地理位置对应的默认图区不同。例如,用户界面410中的图区视野412为电子设备显示地理位置“南京市鼓楼区”时的默认图区。用户界面显示的图区的大小和位置可以被调整,需要说明的是,用于显示图区的区域大小通常 是固定的(可理解为是用户界面的大小是固定的),因此调整用户界面显示的图区的大小,实际是调整该图区指示的地图范围。
在一些实施例中,电子设备可以接收作用于用户界面410的双指缩小手势(如双指同时向内滑动的手势),响应于该手势,缩小图区视野412,此时图区视野412指示的地图范围变大。在另一些实施例中,电子设备可以接收作用于用户界面410的双指放大手势(如双指同时向外滑动),响应于该手势,放大图区视野412,此时图区视野412指示的地图范围变小。在另一些实施例中,电子设备可以接收作用于用户界面410的拖动操作,响应于该操作,调整图区视野412在地图上的位置。
地点信息413可以包括地理位置的名称413A(包括字符“南京市鼓楼区”)。地点信息413可以用于显示地理位置“南京市鼓楼区”的详细信息,例如该地理位置的天气情况,导航控件,周边的地理信息等,其中导航控件可以用于获取目的地为该地理位置的导航信息。
在一些实施例中,在上述图4A的操作后,电子设备可以显示这次查询行为对应的历史记录,该历史记录包括查询的关键词“鼓楼”和搜索结果“南京市鼓楼区”的图区,具体示例可参见图4B。
如图4B所示,电子设备可以显示地图应用的用户界面430,用户界面430用于显示地图查询的历史记录。用户界面430可以包括记录431,记录431可以包括图标431A、字符431B和图区431C,图标431A、字符431B与图3所示的用户界面300中的记录321包括的图标321A、字符321B类似,可以指示记录431对应用户历史查询类型为query的关键词“鼓楼”的行为。图区431C用于指示用户历史查询“鼓楼”得到的搜索结果“南京市鼓楼区”的图区:“南京市鼓楼区”。这样用户可以通过历史记录,快速获取到历史查询的搜索结果的图区信息,协助用户选择所需的历史记录进行查询,用户操作更方便。
在一些实施例中,在上述图4A的操作之后,电子设备位于“南京市”以外的城市(假设为北京市)时,电子设备可以显示历史记录,例如图4B所示的用户界面430中的记录431,电子设备可以接收作用于记录431的触摸操作(例如点击操作),响应于该触摸操作,显示图区431C指示的地图范围“南京市鼓楼区”内和字符431B指示的关键词“鼓楼”相关的地理位置,即地理位置“南京市鼓楼区”,例如显示上图4A的右图所示的用户界面410,而不会显示“北京市”内和“鼓楼”相关的搜索结果。也就是说,电子设备基于地图应用的历史记录进行搜索时,可以准确复现之前搜索的地理位置,“一步到位”,无需额外的用户操作,减小设备的处理压力。
在一些实施例中,在上述图4A的操作之后,电子设备显示和用户输入的关键词相关的搜索结果时,可以响应于用户操作,缩小或放大当前显示的图区,具体可参见图4C。
如图4C的左图所示,电子设备显示图4A的右图所示的用户界面410时,接收到作用于用户界面410的双指缩小手势,响应于该手势,缩小图区视野412,具体可参见图4C的右图。
如图4C的右图所示,电子设备可以显示地图应用的用户界面440,用户界面440和用户界面410类似,区别在于,用户界面440中的图区视野441为缩小后的图区视野,图区视野441指示的地图范围大于用户界面410中的图区视野412指示的地图范围。
在一些实施例中,在上述图4C的操作之后,电子设备可以记录图4A所示的查询行为对应的历史记录,以及图4C所示的操作后显示的图区,该历史记录包括查询的关键词“鼓楼”和搜索结果“南京市鼓楼区”的图区,具体示例可参见图4B所示的用户界面430中的记录431,图4C所示的操作后电子设备显示的图区为用户界面440中的图区视野441。
在一些实施例中,电子设备显示基于任意一条历史记录查询得到的搜索结果时显示的图 区为该历史记录对应的图区,其中,该历史记录对应的图区可以为图区的放大后的图区视野、缩小后的图区视野,或者拖动后的图区视野。
示例性地,在上述图4C的操作之后,电子设备位于“南京市”以外的城市(假设为北京市)时,电子设备可以显示历史记录,例如图4B所示的用户界面430中的记录431,电子设备可以接收作用于记录431的触摸操作(例如点击操作),响应于该触摸操作,按照记录431对应的图区显示地理位置“南京市鼓楼区”,例如记录431对应的图区为缩小后的图区视野,即图4C的右图所示的用户界面440中的图区视野441,电子设备可以显示用户界面440。也就是说,本申请基于地图应用的历史记录进行搜索时,不仅可以准确复现之前搜索的地理位置,而且可以准确复现最近一次显示该地理位置时显示的图区,进一步减少用户操作(如至少一次输入双指缩小手势),提升用户体验。
场景2:假设用户想要搜索北京市内的公园。当电子设备位于北京市时,即默认图区为“北京市”时,用户可以输入查询语句“公园”并进行搜索,具体示例可参见图5A,图5A示例性示出又一种查询行为的界面示意图。
如图5A的左图所示,电子设备可以显示地图应用的用户界面400,用户界面400和图4A的左图所示的用户界面400类似,区别在于,图5A的左图所示的用户界面400中,搜索框401A包括的字符为用户当前输入的查询语句“公园”,并且图5A的左图所示的用户界面400不包括预览列表402。电子设备可以接收作用于搜索控件310B的触摸操作(例如点击操作),响应于该触摸操作,查询得到北京市内和查询语句“公园”相关的搜索结果,具体可参见图5A的右图。
如图5A的右图所示,电子设备可以显示地图应用的用户界面510,用户界面510包括北京市内多个名称包括“公园”的地理位置。用户界面510可以包括搜索栏511、图区视野512和搜索结果列表513,其中:
搜索栏511和图5A的左图所示的用户界面400中的搜索框401A类似。
图区视野512和图4A的右图所示的用户界面410中的图区视野412类似,区别在于,图区视野512为电子设备显示北京市内多个名称包括“公园”的地理位置时显示的图区。图区视野512内显示有多个地点标识,这些地点标识分别用于展示这多个地理位置在地图上的位置,例如,地点标识512A用于展示地理位置“香山公园”在地图上的位置,可简称为地点标识512A对应地理位置“香山公园”,类似地,地点标识512B对应地理位置“北海公园”,地点标识512C对应地理位置“世界公园”。
搜索结果列表513用于显示北京市内多个名称包括“公园”的地理位置的概要信息,例如搜索结果5131、搜索结果5132和搜索结果5133,其中,搜索结果5131可以包括名称5131A和图区5131B,名称5131A包括的字符为搜索结果5131指示的地理位置的名称“香山公园”,图区5131B包括的字符为搜索结果5131指示的地理位置的图区“海淀区”,搜索结果5131指示的地理位置即为地点标识512A对应的地理位置“香山公园”。类似地,搜索结果5132包括名称5132A和图区5132B,可以表征搜索结果5132指示的地理位置“北海公园”(即为地点标识512B对应的地理位置),该地理位置的图区为“西城区”。搜索结果5133包括名称5133A和图区5133B,可以表征搜索结果5133指示的地理位置“世界公园”(即为地点标识512C对应的地理位置),该地理位置的图区为“丰台区”。
在一些实施例中,在上述图5A的操作后,电子设备可以显示这次查询行为对应的历史记录,该历史记录包括查询的关键词“公园”和搜索结果(北京市内多个名称包括“公园” 的地理位置)的图区,具体示例可参见图5B。
如图5B所示,电子设备可以显示地图应用的用户界面520,用户界面520用于显示地图查询的历史记录。用户界面520可以包括记录521,记录521包括图标521A、字符521B和图区521C。图标521A、字符521与图3所示的用户界面300中的记录321包括的图标321A、字符321B类似,可以指示记录521对应用户历史查询类型为query的关键词“公园”的行为。图区521C用于指示用户历史查询“公园”得到的搜索结果(北京市内多个名称包括“公园”的地理位置)的图区:“北京市”。其中,本申请以多个地理位置的图区为包括这多个地理位置各自对应的图区的最小图区为例进行说明,例如上述北京市内多个名称包括“公园”的地理位置具体为:地理位置“香山公园”、地理位置“北海公园”和地理位置“世界公园”,各自对应的图区依次为“海淀区”、“西城区”和“丰台区”,假设包括这三个图区的最小图区为“北京市”,因此图区521C包括的字符为“北京市”。这样用户可以通过历史记录,快速获取到历史查询的搜索结果的图区信息,协助用户选择所需的历史记录进行查询,用户操作更方便。
在一些实施例中,在上述图5A的操作后,电子设备位于“北京市”以外的城市(假设为武汉市)时,电子设备可以显示历史记录,例如图5B所示的用户界面520中的记录521,电子设备可以接收作用于记录521的触摸操作(例如点击操作),响应于该触摸操作,显示图区521C指示的地图范围“北京市”内和字符521B指示的关键词“公园”相关的地理位置,即北京市内多个名称包括“公园”的地理位置,例如显示上图5A的右图所示的用户界面510,而不会显示“武汉市”内和“公园”相关的搜索结果,搜索结果更加准确,符合用户需求。
场景3:在上述图5A的操作后,用户在图5A的右图所示的用户界面510中(又示为图6A的左图),可以选择上述搜索结果中的一个地理位置(假设是名称为“香山公园”的POI),具体示例可参见图6A。
在一些实施例中,电子设备可以响应于作用于用户界面510中的地点标识512A的触摸操作,显示名称为“香山公园”的POI的详细信息,在另一些实施例中,电子设备可以响应于作用于用户界面510中的搜索结果5131的触摸操作,显示名称为“香山公园”的POI的详细信息,具体可参见图6A的右图。
如图6A的右图所示,电子设备可以显示地图应用的用户界面620,用户界面620包括用户选择的名称为“香山公园”的POI。用户界面620可以包括搜索栏621、图区视野622和地点信息623,其中:
搜索栏621和图4A的右图所示的用户界面410中的搜索栏411类似,区别在于,搜索栏621的搜索框621A此时显示用户当前查询的关键词,也就是用户选择的POI的名称:“香山公园”。
图区视野622和图4A的右图所示的用户界面410中的图区视野412类似,区别在于,图区视野622为电子设备显示地理位置“香山公园”时显示的图区。图区视野622内显示有地点范围622A和地点标识622B,和用户界面410中的地点范围412A和地点标识412B类似,用于展示地理位置“香山公园”在地图上的位置。
地点信息623可以包括名称623A和图区623B,名称623A包括的字符为地理位置“香山公园”的名称:“香山公园”,图区623B包括的字符为地理位置“香山公园”的图区:“北京市海淀区”。地点信息623可以用于显示地理位置“香山公园”的详细信息,例如该地理位置的营业时间、导航控件等,其中导航控件可以用于获取目的地为该地理位置的导航信息。
在一些实施例中,在上述图6A的操作之后,电子设备可以显示这两次查询行为对应的历史记录,其中一条历史记录包括图5A所示查询行为中查询的关键词“公园”,以及用户在图6A所示查询行为中选择的POI“香山公园”的图区,另外一条历史记录包括图6A所示查询行为中查询的POI的名称(也为查询的关键词)“香山公园”,以及该POI的图区,具体可参见图6B。
如图6B所示,电子设备可以显示地图应用的用户界面630,用户界面630用于显示地图查询的历史记录。用户界面630可以包括记录631和记录632,记录631的查询时间晚于记录632,因此记录631的显示位置优先于记录632的显示位置。记录631包括图标631A、字符631B和图区631C,图标631A、字符631B与图3所示的用户界面300中的记录322包括的图标322A、字符322B类似,可以指示记录631对应用户历史查询类型为POI的关键词“香山公园”的行为,也就是图6A所示的查询行为。图区631C用于指示用户历史查询名称为“香山公园”的POI的图区:“北京市海淀区”。记录632和图5B所示的用户界面520中的记录521类似,区别在于,记录632包括的图区632A指示用户历史查询“公园”后用户从查询得到的搜索结果中选择的POI“香山公园”的图区:“北京市海淀区”。图6B中,由于用户历史查询“公园”(对应记录632)后,仅选择查询得到的多个地理位置中的一个地理位置(即“香山公园”)(对应记录631),因此电子设备可以认为用户执行图5A和图6A所示的两次查询行为的目标就是POI“香山公园”,则图5A所示查询行为对应的记录632的图区632A和图6A所示查询行为对应的记录631的图区631C一致,均指示POI“香山公园”的图区。
在一些实施例中,在上述图6A的操作之后,电子设备位于“北京市”以外的城市(假设为武汉市)时,电子设备可以显示用户选择的POI对应的历史记录,例如图6B所示的用户界面630中的记录631,电子设备可以接收作用于记录631的触摸操作(例如点击操作),响应于该触摸操作,显示图区631C指示的地图范围“北京市海淀区”内和字符631B指示的关键词“香山公园”相关的地理位置,即地理位置“香山公园”,例如显示图6A的右图所示的用户界面620,而不会显示“武汉市”内和“香山公园”相关的搜索结果,搜索结果更加准确,符合用户需求。
在一些实施例中,在上述图6A的操作之后,电子设备位于“北京市”以外的城市(假设为武汉市)时,电子设备可以显示历史记录,例如图6B所示的用户界面630中的记录632,电子设备可以接收作用于记录632的触摸操作(例如点击操作),响应于该触摸操作,显示图区632A指示的地图范围“北京市海淀区”内和记录632包括的关键词“公园”相关的地理位置,即“北京市海淀区”内名称包括“公园”的地理位置,例如显示图6A的右图所示的用户界面620,而不会显示“武汉市”内和“公园”相关的搜索结果,也不会显示“北京市”内除“海淀区”以外的其他图区内和“公园”相关的搜索结果,搜索结果更加准确,符合用户需求。
在一些实施例中,电子设备接收到基于记录631的查询请求时查询得到的地理位置,和电子设备接收到基于记录632的查询请求时查询得到地理位置相同时,例如均为地理位置“香山公园”时,可以仅显示记录631或者仅显示记录632,即去除冗余的历史记录(可称为去重),历史记录更加精简,方便用户选择所需的历史记录,减少设备的存储压力。在一种情况下,可以默认仅显示关键词的类型为query的记录,例如记录632。在另一种情况下,可以默认仅显示关键词的类型为POI的记录,例如记录631。在另一种情况下,可以默认仅显示查询时间最晚的记录,例如记录631。不限于此,还可以是仅显示关键词的类型为query的记录中查询时间最晚的记录,例如记录632,本申请对此不作限定。
不限于上述示例的情况,在另一些示例中,记录632包括的图区632A指示用户历史查询“公园”后,用户最晚一次从查询得到的搜索结果中选择的POI的图区。例如,用户历史查询“公园”后,电子设备显示图5A的右图所示的用户界面510,用户不止选择了查询得到的搜索结果中的POI“香山公园”,但选择POI“香山公园”的时刻最晚(也可称为查询时间最晚),则记录632包括的图区632A指示POI“香山公园”的图区。
不限于上述示例的情况,在另一些示例中,用户历史查询“公园”后,电子设备显示图5A的右图所示的用户界面510,用户不止选择了查询得到的搜索结果中的POI“香山公园”,假设还选择了POI“北海公园”,则电子设备显示的历史记录可以参见图6C。
如图6C所示,电子设备可以显示地图应用的用户界面640,用户界面640用于显示地图查询的历史记录。用户界面640和图6B所示的用户界面630类似,区别在于,用户界面640还包括记录633,记录633包括图标633A、字符633B和图区633C,图标633A、字符633B与图3所示的用户界面300中的记录322包括的图标322A、字符322B类似,可以指示记录633对应用户历史查询类型为POI的关键词“北海公园”的行为。图区633C用于指示用户历史查询名称为“北海公园”的POI的图区:“北京市西城区”。并且,区别于图6B所示的用户界面630,用户界面640中的记录632包括的图区632A,指示用户历史查询“公园”后(具体可参见图5A的右图所示的用户界面510),用户从查询得到的搜索结果中选择的多个POI的图区:“北京市”。图6C中,由于用户历史查询“公园”(对应记录632)后(具体可参见图5A的右图所示的用户界面510),选择了查询得到的多个地理位置中的地理位置“香山公园”(对应记录631)和地理位置“北海公园”(对应记录633),因此电子设备可以认为用户执行查询行为的目标是POI“香山公园”和POI“北海公园”,则记录632包括的图区632指示的图区为包括这两个POI的图区的最小图区,也就是包括POI“香山公园”的图区“北京市海淀区”和POI“北海公园”的图区“北京市西城区”的最小图区,假设为“北京市”。
场景4:假设用户想要搜索北京市内的华为大厦。当电子设备位于北京市时,即默认图区为“北京市”时,用户输入失误,输入了查询语句“华维大厦”并进行搜索,具体示例可参见图7A,图7A示例性示出又一种查询行为的界面示意图。
如图7A的左图所示,电子设备可以显示地图应用的用户界面400,用户界面400和图5A的左图所示的用户界面400类似,区别在于,图7A的左图所示的用户界面400中,搜索框401A包括的字符为用户当前输入的查询语句“华维大厦”。电子设备可以接收作用于搜索控件310B的触摸操作(例如点击操作),响应于该触摸操作,查询得到北京市内和查询语句“华维大厦”相关的搜索结果,具体可参见图7A的右图。
如图7A的右图所示,电子设备可以显示地图应用的用户界面750,用户界面750包括北京市内和“华维大厦”相关的多个地理位置。用户界面750可以包括搜索栏751、图区视野752和搜索结果列表753,其中:
搜索栏751和图7A的左图所示的用户界面400中的搜索框401A类似。
图区视野752和图4A的右图所示的用户界面410中的图区视野412类似,区别在于,图区视野752为电子设备显示北京市内和“华维大厦”相关的多个地理位置时显示的图区。图区视野752内显示有地点标识752A,地点标识752A包括字符“华维大厦”,用于展示这多个地理位置中的第一个地理位置“华维大厦”在地图上的位置。
搜索结果列表753用于显示北京市内和“华维大厦”相关的多个地理位置的概要信息,例如搜索结果7531、搜索结果7532和搜索结果7533,其中,搜索结果7531可以包括名称 7531A和位置7531B,名称7531A包括的字符为搜索结果7531指示的地理位置的名称“华维大厦”,位置7531B包括的字符为搜索结果7531指示的地理位置的位置信息“西城区”,搜索结果7531指示的地理位置即为地点标识752A对应的地理位置“华维大厦”。类似地,搜索结果7532指示名称为“华为大厦”的地理位置,并且该地理位置的位置信息为“海淀区信息路”。搜索结果7533指示名称为“华伟写字楼”的地理位置,并且该地理位置的位置信息为“西城区”。
在上述图7A的操作后,用户重新输入查询语句“华为大厦”并进行搜索,具体示例可参见图7B,图7B示例性示出又一种查询行为的界面示意图。
如图7B的(1)所示,电子设备可以显示地图应用的用户界面400,用户界面400和图5A的左图所示的用户界面400类似,区别在于,图7B的(1)所示的用户界面400中,搜索框401A包括的字符为用户当前输入的查询语句“华为大厦”。电子设备可以接收作用于搜索控件310B的触摸操作(例如点击操作),响应于该触摸操作,查询得到北京市内和查询语句“华为大厦”相关的搜索结果,具体可参见图7B的(2)。
如图7B的(2)所示,电子设备可以显示地图应用的用户界面710,用户界面710和图7A的右图所示的用户界面750类似,区别在于:用户界面710中的搜索栏711包括的字符为用户当前输入的关键词:“华为大厦”。用户界面710中的图区视野712为电子设备显示北京市内和查询语句“华为大厦”相关的多个地理位置时显示的图区,图区视野712中的地点标识712A用于展示这多个地理位置中的第一个地理位置“华为大厦”在地图上的位置。用户界面710中的搜索结果列表713包括搜索结果7131、搜索结果7132和搜索结果7133,搜索结果7131和用户界面750中的搜索结果7532相同,搜索结果7132指示名称为“华为北京研究所”的地理位置,并且该地理位置的位置信息为“海淀区北清路”,搜索结果7133指示名称为“华为(居然大厦店)”的地理位置,并且该地理位置的位置信息为“东城区南大街”。电子设备可以接收作用于搜索结果7131或地点标识712A的触摸操作(例如点击操作),响应于该触摸操作,显示名称为“华为大厦”的POI的详细信息,具体可参见图7B的(3)。
如图7B的(3)所示,电子设备可以显示地图应用的用户界面720,用户界面720和图6A的右图所示的用户界面620类似,区别在于,用户界面720用于显示用户选择的名称为“华为大厦”的POI的详细信息。用户界面720还包括图区视野721,图区视野721是电子设备显示地理位置“华为大厦”时显示的图区。
在上述图7B的操作后,用户输入更为全面的查询语句“信息路华为大厦”并进行搜索,具体示例可参见图7C,图7C示例性示出又一种查询行为的界面示意图。
如图7C的左图所示,电子设备可以显示地图应用的用户界面400,用户界面400和图5A的左图所示的用户界面400类似,区别在于,图7C的左图所示的用户界面400中,搜索框401A包括的字符为用户当前输入的查询语句“信息路华为大厦”,并且,图7C的左图所示的用户界面400还包括预览列表403,预览列表403用于显示北京市内和搜索框401A包括的查询语句“信息路华为大厦”相关的地理位置,例如按照从上往下的顺序依次为:名称为“华为大厦”的地理位置403A、名称为“华为北京研究所”的地理位置和名称为“华为大厦(西北门)”的地理位置。电子设备可以响应于作用于搜索控件310B的触摸操作(例如点击操作),查询得到北京市内和查询语句“信息路华为大厦”相关的搜索结果,可选地,显示预览列表403中排列在第一个的地理位置403A,具体可参见图7C的右图。
如图7C的右图所示,电子设备可以显示地图应用的用户界面730,用户界面730包括名称为“华为大厦”的搜索结果,对应图7C的左图所示的用户界面400中的地理位置403A, 用户界面730和图7B的(3)所示的用户界面720类似,区别在于,用户界面730中的搜索栏731包括的字符为用户当前查询的关键词:“信息路华为大厦”。用户界面730还包括图区视野732,图区视野732是电子设备显示地理位置“华为大厦”时显示的图区。
在一些实施例中,在上述图7A、图7B和图7C的操作后,电子设备可以显示图7C所示的查询行为对应的历史记录,该历史记录包括查询的关键词“信息路华为大厦”和搜索结果“华为大厦”的图区,具体示例可参见图7D。
如图7D所示,电子设备可以显示地图应用的用户界面740,用户界面740用于显示地图查询的历史记录。用户界面740可以包括记录741,记录741可以包括图标741A、字符741B和图区741C。图标741A、字符741B与图3所示的用户界面300中的记录321包括的图标321A、字符321B类似,可以指示记录741对应用户历史查询类型为query的关键词“信息路华为大厦”的行为,也就是图7C所示的查询行为。图区741C用于指示历史查询“信息路华为大厦”得到的搜索结果“华为大厦”的图区:“北京市海淀区”。
在一些实施例中,图7A、图7B和图7C所示的三次查询行为的查询时间的差值在预设时段(如5分钟)内,查询的关键词相近(均包括“华”和“大厦”,且“华”和“大厦”之间只存在一个字),并且查询得到的地理位置均包括用户选择的地理位置“华为大厦”。图7A所示的查询行为后,用户未选择查询得到的地理位置,图7B和图7C所示的查询行为后,用户选择了查询得到的地理位置中的地理位置“华为大厦”,其中图7C所示的查询行为得到的搜索结果仅为一个地理位置“华为大厦”的情况也称为用户选择了地理位置“华为大厦”。由于图7C所示的查询行为的查询时间最晚,并且用户选择了地理位置“华为大厦”,因此仅显示这次查询行为对应的历史记录741。可选地,电子设备还可以基于查询的关键词来确定显示的历史记录,例如图7C所示的查询行为中查询的关键词不仅包括地理位置“华为大厦”的名称,而且包括地理位置“华为大厦”的位置信息“信息路”,因此仅显示这次查询行为对应的历史记录741。这样可以避免显示无效的历史记录(如图7A所示的查询行为对应的历史记录)、冗余的历史记录(如图7B所示的查询行为对应的历史记录),让用户使用历史记录更加方便,减少设备的存储压力。
在一些实施例中,在上述图7A、图7B和图7C的操作后,电子设备位于“北京市”以外的城市(假设为武汉市)时,电子设备可以显示历史记录,例如图7D所示的用户界面740中的记录741,电子设备可以接收作用于记录741的触摸操作(例如点击操作),响应于该触摸操作,显示图区741C指示的地图范围“北京市海淀区”内和字符741B指示的关键词“信息路华为大厦”相关的地理位置,即地理位置“华为大厦”,例如显示上图7C所示的用户界面730,而不会显示“武汉市”内和“信息路华为大厦”相关的搜索结果,搜索结果更加准确,符合用户需求。
不限于上述示例的情况,在另一些示例中,在上述图7A和图7B的操作后,电子设备可以仅显示图7B所示的查询行为对应的历史记录,该历史记录包括查询的关键词“华为大厦”和搜索结果“华为大厦”的图区:“北京市海淀区”。可选地,由于图7B所示的查询行为的查询时间最晚,因此仅显示这次查询行为对应的历史记录。可选地,由于图7B所示的查询行为中,用户选择了查询得到的地理位置“华为大厦”,因此仅显示这次查询行为对应的历史记录。可选地,由于图7B所示的查询行为中,查询的关键词包括地理位置“华为大厦”的名称,因此仅显示这次查询行为对应的历史记录。类似地,在上述图7A和图7C的操作后,电子设备可以显示图7C所示的查询行为对应的历史记录,不再赘述。
不限于上述示例的情况,在另一些示例中,在上述图7A、图7B和图7C的操作后,电 子设备也可以仅显示图7B所示的查询行为对应的历史记录。可选地,由于图7B所示的查询行为中,查询的关键词和地理位置“华为大厦”的名称的相似度最高(为100%),因此仅显示这次查询行为对应的历史记录。
不限于上图7C所示的查询行为,在另一些示例中,用户输入查询语句“信息路华为大厦”后,电子设备显示北京市内和查询语句“信息路华为大厦”相关的多个地理位置,例如显示图7B的(2)所示的用户界面710,然后用户选择这多个地理位置中的地理位置“华为大厦”,电子设备显示图7C的右图所示的用户界面730。后续显示历史记录的说明类似。
场景5:假设用户想要搜索北京市内的华为大厦。当电子设备位于北京市时,用户输入失误,输入了查询语句“华维大厦”并进行搜索,电子设备可以显示搜索结果(包括地理位置“华为大厦”),具体可参见图7A所示实施例。然后,用户可以选择上述搜索结果中的地理位置“华为大厦”,具体示例可参见图7E。
如图7E的左图所示,电子设备显示图7A的右图所示的用户界面750。电子设备可以响应于作用于用户界面750中的搜索结果7532的触摸操作,显示名称为“华为大厦”的POI的详细信息,具体可参见图7E的右图。
如图7E的右图所示,电子设备可以显示地图应用的用户界面760,用户界面760包括名称为“华为大厦”的搜索结果,用户界面760和图7B的(3)所示的用户界面720类似,区别在于,用户界面760中的搜索栏761包括的字符为用户当前查询的关键词:“华维大厦”。用户界面760还包括图区视野762,图区视野762是电子设备显示地理位置“华为大厦”时显示的图区。
在一些实施例中,在上述图7E的操作后,电子设备可以显示这次查询行为对应的历史记录,该历史记录包括纠错后的关键词“华为大厦”和搜索结果“华为大厦”的图区,具体示例可参见图7F。
如图7F所示,电子设备可以显示地图应用的用户界面770,用户界面770用于显示地图查询的历史记录。用户界面770可以包括记录771,记录771可以包括图标771A、字符771B和图区771C。图标771A表征用户历史查询的关键词的类型为query。在一些实施例中,电子设备识别到用户实际输入的查询语句“华维大厦”和用户选择的地理位置的名称“华为大厦”不同,可以认为用户输入错误,因此电子设备记录的关键词为用户选择的地理位置的名称,则字符771B包括的字符为电子设备纠错后的关键词“华为大厦”。图区741C用于指示历史查询“华维大厦”得到的搜索结果“华为大厦”的图区:“北京市海淀区”。
在一些实施例中,在上述图7E的操作之后,电子设备可以显示历史记录,例如图7F所示的用户界面770中的记录771,电子设备可以接收作用于记录771的触摸操作(例如点击操作),响应于该触摸操作,显示图区771C指示的地图范围“北京市海淀区”内和字符771B指示的关键词“华为大厦”相关的地理位置,即地理位置“华为大厦”,例如显示上图7B的(3)所示的用户界面720。
在图7F所示实施例中,电子设备不会在历史记录中显示用户误输入的关键词“华维大厦”,因此电子设备接收到基于该历史记录的查询请求时,查询得到的搜索结果也不会为和“华维大厦”相关的地理位置,尽可能减少了用户误输入带来的影响,历史记录和基于历史记录查询得到的搜索结果更加准确,符合用户需求。
在图7F所示实施例中,电子设备不会显示冗余的历史记录,例如同时显示图7A所示的查询行为对应的历史记录和图7E所示的查询行为对应的历史记录,图7A所示的查询行为对 应的历史记录包括类型为query的关键词“华维大厦”和搜索结果的图区“北京市”,图7E所示的查询行为对应的历史记录包括类型为POI的关键词“华为大厦”(即用户选择的POI的名称)和搜索结果“华为大厦”的图区“北京市海淀区”,让用户使用历史记录更加方便,减少设备的存储压力。
不限于图7F示例的情况,在另一些示例中,在图7E后,电子设备可以仅显示图7E所示的查询行为对应的历史记录,该历史记录包括类型为POI的关键词“华为大厦”(即用户选择的POI的名称)和搜索结果“华为大厦”的图区“北京市海淀区”,避免显示冗余的历史记录(如图7A所示的查询行为对应的历史记录),让用户使用历史记录更加方便,减少设备的存储压力。
基于以上实施例,介绍本申请涉及的地图查询方法。该方法可以应用于图1A和图1B所示的地图查询***10。
在一种可能的实现方式中,网络设备可以用于训练意图模型和满意度模型,训练得到的意图模型和满意度模型可以发送给任意一个电子设备,以用于确定地图查询的历史记录,具体示例可参见图8,图8是本申请实施例提供的一种地图查询方法的流程示意图。该方法可以包括但不限于如下步骤:
S101:电子设备的应用程序向电子设备的日志模块发送第一用户实时的行为序列。
在一些实施例中,应用程序可以实时记录使用电子设备的第一用户进行地图查询的行为,可选地,应用程序以行为序列的形式记录用户的查询行为,任意一次查询行为对应一条行为序列。任一条行为序列例如但不限于包括:输入的关键词、查询时间、是否(针对关键词)纠错、纠错词(对关键词纠错后得到的词)、选择搜索结果的操作(例如在搜索结果列表中选择搜索结果的操作或者在显示的地图中点击搜索结果的操作)、选择的POI、表征显示搜索结果时显示的图区(可简称为图区视野)的参数等。其中,选择的POI例如但不限于通过POI的、身份标识号(identity document,ID)表征。表征图区视野的参数例如但不限于为最小外接矩形(minimum bounding rectangle,MBR)。
本申请中,应用程序接收用户的查询行为的方式例如但不限于包括通过作用于显示屏的触摸操作,语音操作、体感操作、脑电波等等。
S102:日志模块对第一用户的行为序列进行时域(session)分割。
在一些实施例中,日志模块可以按照查询时间对第一用户的行为序列进行时域分割,以得到至少一个时域的行为序列(可称为用户日志),一个时域的行为序列可以有至少一条,每条行为序列可以表征一次查询行为。例如查询时间在预设时段(如起始时刻为最早的查询时间,截止时刻为起始时刻后经过5分钟的时刻)内的行为序列属于同一个时域。
在一些实施例中,日志模块每接收到应用程序发送的一条行为序列,可以对该行为序列进行时域分割,以确定该行为序列对应的时域。例如,假设查询时间的差值小于或等于预设差值时属于同一个时域。日志模块先接收到行为序列a,由于行为序列a的查询时间和之前接收到的行为序列的查询时间的差值大于预设差值,可以确定行为序列a对应一个新的时域a,然后日志模块后接收到行为序列b,由于行为序列b的查询时间和行为序列a的查询时间的差值小于或等于预设差值,因此可以确定行为序列b和行为序列a属于同一个时域a。
在另一些实施例中,日志模块也可以是接收到应用程序发送的预设数量条行为序列,对这预设数量条行为序列进行时域分割。在另一些实施例中,日志模块也可以是每隔预设时长,对应用程序发送的行为序列进行时域分割。
S103:日志模块向网络设备的训练模块发送至少一个时域的行为序列。
在一些实施例中,日志模块可以每隔预设时长向训练模块发送至少一个时域的行为序列。
S104:训练模块基于多个用户的行为序列训练意图模型和满意度模型。
在一些实施例中,训练模块可以将任意一个用户的任意一个时域的行为序列(假设为第一用户的第一时域的行为序列)作为输入,对应的预测目标作为输出,训练意图模型,预测目标可以理解为是预测的第一时域的行为序列指示的查询行为对应查询的目标地理位置(如至少一个POI)。在一些实施例中,预测目标是用户输入给网络设备的。其中,预测目标可以但不限于通过查询的关键词、POI的标识(如POIID)、名称、图区和显示预测目标时的图区视野的参数中至少一项来表征,图区视野的参数例如为MBR。
在一些实施例中,训练模块可以将任意一个用户的任意一个时域的行为序列(假设为第一用户的第一时域的行为序列)作为输入,对应预测的满意度作为输出,训练满意度模型,其中,满意度可以是针对第一时域的行为序列包括的关键词的,一个满意度对应一个关键词,可以用于表征基于该关键词进行查询得到的搜索结果和用户所需的搜索结果(例如为意图模型的输出,用户选择的POI)的匹配程度,例如满意度为小于或等于1的非负数,满意度越大,匹配程度越高,可以理解为是基于该关键词进行查询得到的搜索结果越符合用户意图。在一些实施例中,预测的满意度是用户输入给网络设备的。
为了方便说明,本申请的示例中,不同MBR以“MBR-不同数字”表征,不同POI以“POIID-不同数字”表征,不同坐标以“坐标-不同数字”表征。
例如,用户位于武汉市时先查询关键词“北京”,电子设备得到的搜索结果是名称为“北京市”的地理位置,这次查询行为对应的行为序列1可以表征为:<图区:武汉市,关键词:北京>。然后,用户查询关键词“华为专卖店”,电子设备得到的搜索结果是名称为“华为专卖店”的地理位置,这次查询行为对应的行为序列2可以表征为:<图区:{北京市,MBR-1},关键词:华为专卖店,点击:POIID-1,名称:华为专卖店,坐标:坐标-1>,其中,“MBR-1”可以表征显示地理位置“华为专卖店”时的图区视野,地理位置“华为专卖店”的POI标识为“POIID-1”,坐标为“坐标-1”。假设这两条行为序列是属于同一个时域1的。假设人工标注的时域1的行为序列对应的预测目标为上述第二次查询得到的地理位置“华为专卖店”,可以表征为:<POI标识:POIID-1,图区视野:MBR-1>,人工标注的时域1的行为序列对应的满意度是针对关键词“华为专卖店”的,数值为1,可以表征为:<关键词:华为专卖店,满意度:1>。训练模块可以将这两条行为序列作为意图模型的输入,人工标注的预测目标为意图模型的输出,来训练意图模型。训练模块可以将这两条行为序列作为满意度模型的输入,人工标注的满意度为满意度模型的输出,来训练满意度模型。
例如,假设用户想要搜索保定市内的狼牙山景区。用户位于保定市时,输入失误,先查询了关键词“蓝牙山”,用户没有选择这次查询得到的任意一个搜索结果,这次查询行为对应的行为序列3可以表征为:<图区:保定市,关键词:蓝牙山,无点击>。然后,用户查询关键词“狼牙山”,并且用户选择了查询得到的一个搜索结果(假设是名称为“狼牙山景区”的地理位置),这次查询行为对应的行为序列4可以表征为:<图区:{保定市,MBR-2},关键词:狼牙山,点击:POIID-2,名称:狼牙山景区,坐标:坐标-2>,其中,“MBR-2”可以表征显示地理位置“狼牙山景区”时的图区视野,地理位置“狼牙山景区”的POI标识为“POIID-2”,坐标为“坐标-2”。假设这两条行为序列是属于同一个时域2的。假设人工标注的时域2的行为序列对应的预测目标为上述第二次查询得到的地理位置“狼牙山景区”,可以表征为:<POI标识:POIID-2,图区视野:MBR-2>,人工标注的时域2的行为序列对应的满意度包括针对 关键词“蓝牙山”的,数值为0,可以表征为:<关键词:蓝牙山,满意度:0>,还包括针对关键词“狼牙山”的,数值为1,可以表征为:<关键词:狼牙山,满意度:1>。训练模块可以将这两条行为序列作为意图模型的输入,人工标注的预测目标为意图模型的输出,来训练意图模型。训练模块可以将这两条行为序列作为满意度模型的输入,人工标注的满意度为满意度模型的输出,来训练满意度模型。
S105:网络设备的训练模块向电子设备的模型模块发送意图模型和满意度模型。
在一些实施例中,网络设备的训练模块可以对训练得到的意图模型和满意度模型进行压缩,并向电子设备的模型模块发送压缩后的意图模型和满意度模型。
在一些实施例中,模型模块接收到的意图模型和满意度模型可以用于确定历史记录,具体实现如下图9所示,暂不详述。
在一些实施例中,训练模块可以每隔预设时长向模型模块发送意图模型和满意度模型,例如每周发送一次,这样电子设备得到的意图模型和满意度模型是符合用户近况的,相比只发送一次等方式,基于这种方式发送的意图模型和满意度模型确定的历史记录,以及基于历史记录查询到的搜索结果更符合用户需求,提升用户体验。
在一种可能的实现方式中,电子设备获取到网络设备发送的意图模型和满意度模型之后,可以自行更新该意图模型和/或该满意度模型,更新后的意图模型和满意度模型确定的历史记录以及基于历史记录查询到的搜索结果,更加符合用户习惯和个性化,用户体验更好。在这种情况下,上述步骤S105之后,该方法还可以包括但不限于以下步骤:
S106:应用程序向日志模块发送第一用户实时的行为序列。
S107:日志模块对第一用户的行为序列进行时域分割。
S106-S107和S101-S102类似,具体可参见S101-S102的说明。
S108:日志模块向模型模块发送至少一个时域的行为序列。
在一些实施例中,日志模块可以每隔预设时长向模型模块发送第一用户的至少一个时域的行为序列。
S109:模型模块基于第一用户的行为序列更新意图模型和/或满意度模型。
在一些实施例中,模型模块可以基于第一用户的至少一个时域的行为序列训练更新意图模型和/或满意度模型,具体说明和步骤S104类似,区别在于,模型模块此时只基于第一用户的行为序列进行训练,并且,预测目标和预测的满意度不是用户输入的,而是电子设备自行确定。
在一些实施例中,电子设备可以根据任意一个时域的行为序列中最优一条行为序列,确定该时域的行为序列对应的预测目标和/或预测的满意度,最优一次例如通过查询时间最晚,关键词和选择的POI的信息(如名称、位置)的相似度最高,有选择POI的操作中至少一项来表征。
基于S103的示例,示例性说明电子设备确定预测目标和/或预测的满意度的方式:
例如,时域1的行为序列包括行为序列1:<图区:武汉市,关键词:北京>,以及行为序列2:<图区:{北京市,MBR-1},关键词:华为专卖店,点击:POIID-1,名称:华为专卖店,坐标:坐标-1>,其中,行为序列2的查询时间晚于行为序列1的查询时间,行为序列2有选择POI的操作行为,因此可以根据行为序列2确定时域1的行为序列对应的预测目标和预测的满意度,即将行为序列2对应的搜索结果(地理位置“华为专卖店”)确定为预测目标,将行为序列2包括的关键词“华为专卖店”对应的满意度的数值设置为1。
例如,时域2的行为序列包括行为序列3:<图区:保定市,关键词:蓝牙山,无点击>, 以及行为序列4:<图区:{保定市,MBR-2},关键词:狼牙山,点击:POIID-2,名称:狼牙山景区,坐标:坐标-2>,其中,行为序列4的查询时间晚于行为序列3的查询时间,行为序列4有选择POI的操作行为,行为序列4包括的关键词“狼牙山”和选择的POI的名称“狼牙山景区”的相似度最高,因此可以根据行为序列4确定时域2的行为序列对应的预测目标和预测的满意度,即将行为序列4对应的搜索结果(地理位置“狼牙山景区”)确定为预测目标,将行为序列4包括的关键词“狼牙山”对应的满意度的数值设置为1。并且,可以将另外的行为序列3包括的关键词“蓝牙山”对应的满意度的数值设置为0。
不限于上述示例的情况,在另一些实施例中,网络设备训练意图模型和满意度模型时,使用的预测目标和预测的满意度,也可以不是人工标注的,而是网络设备自行确定的,确定方式和上述电子设备自行确定的方式类似,不再赘述。
不限于上述示例的情况,在另一些实施例中,网络设备也可以仅训练和发送意图模型。
在一种可能的实现方式中,电子设备可以基于意图模型确定历史记录,具体示例可参见图9,图9是本申请实施例提供的又一种地图查询方法的流程示意图。该方法可以包括但不限于如下步骤:
S200:电子设备的应用程序基于用户输入的查询请求进行查询过程,生成第一行为序列。
在一些实施例中,应用程序可以接收用户输入的查询语句和基于该查询语句的查询请求,查询得到和该查询语句相关的至少一个地理位置(即搜索结果),可选地,应用程序接收到该查询请求时,可以向网络设备的搜索模块发送请求消息,该请求消息用于请求获取和该查询请求相关的搜索结果,并接收搜索模块发送的搜索结果。应用程序可以显示得到的搜索结果。上述过程可以理解为是应用程序基于用户输入的查询请求进行查询过程。应用程序可以记录此次查询过程的相关信息以生成第一行为序列,其中,第一行为序列包括的信息可参见图8的S101的说明。
接下来示例性示出一些第一行为序列,以下示例以应用程序为地图应用为例进行说明。
例如,应用程序基于用户输入的查询请求进行的查询过程为图4A所示的查询过程。针对此次查询过程,地图应用可以生成行为序列5:<图区:{南京市,MBR-3},关键词:鼓楼,点击:POIID-3,名称:南京市鼓楼区,坐标:坐标-3>。行为序列5可以表征在图区“南京市”内搜索关键词“鼓楼”的查询行为。图4A所示的查询过程中,虽然用户查询“鼓楼”后没有执行选择POI的操作,但由于查询“鼓楼”得到的搜索结果仅有一个,电子设备可以认为执行了此次查询就可以确定用户选择了该搜索结果,因此行为序列5记录了用户选择名称为“南京市鼓楼区”的POI的操作,即上述“点击:POIID-3,名称:南京市鼓楼区,坐标:坐标-3”。因此,行为序列5可以表征此次查询用户选择了一个POI,该POI的POIID为“POIID-3”,名称为“南京市鼓楼区”,坐标为“坐标-3”,显示该POI时的图区视野的参数为“MBR-3”。电子设备显示此次查询过程得到的搜索结果(即地理位置“南京市鼓楼区”)的示例可参见图4A的右图所示的用户界面410,“MBR-3”可以是表征用户界面410中的图区视野412的参数。
例如,应用程序基于用户输入的查询请求进行的查询过程为图4A所示的查询过程,并且图4A所示的查询过程后,应用程序调整了显示地理位置“南京市鼓楼区”时显示的图区,具体可参见图4C所示实施例。地图应用可以生成行为序列6:<图区:{南京市,MBR-4},关键词:鼓楼,点击:POIID-3,名称:南京市鼓楼区,坐标:坐标-3>,行为序列6和行为序列5类似,区别在于,表征图区视野的参数不同,行为序列6中是“MBR-4”。电子设备显 示此次查询过程得到的搜索结果(即地理位置“南京市鼓楼区”)的示例可参见图4C的右图所示的用户界面440,“MBR-4”可以是表征用户界面440中的图区视野441的参数。
例如,应用程序基于用户输入的查询请求进行的查询过程为图5A所示的查询过程。针对此次查询过程,地图应用可以生成行为序列7:<图区:{北京市,MBR-5},关键词:公园>。行为序列7可以表征在图区“北京市”内搜索关键词“公园”的查询行为,表征图区视野的参数是“MBR-5”。电子设备显示此次查询过程得到的搜索结果(即北京市内多个名称包括“公园”的地理位置)的示例可参见图5A的右图所示的用户界面510,“MBR-5”可以是表征用户界面510中的图区视野512的参数。
例如,应用程序基于用户输入的查询请求进行的查询过程为图6A所示的查询过程。针对此次查询过程,地图应用可以生成行为序列8:<图区:{北京市,MBR-6},关键词:香山公园,点击:POIID-4,名称:香山公园,坐标:坐标-4>。行为序列8可以表征在图区“北京市”内搜索关键词“香山公园”的查询行为,并且对于此次查询用户选择了一个POI,该POI的POIID为“POIID-4”,名称为“香山公园”,坐标为“坐标-4”,也可理解为是搜索名称为“香山公园”的POI的查询行为,表征显示该POI时的图区视野的参数为“MBR-6”。电子设备显示此次查询过程得到的搜索结果(即地理位置“香山公园”)的示例可参见图6A的右图所示的用户界面620,“MBR-6”可以是表征用户界面620中的图区视野622的参数。
例如,应用程序基于用户输入的查询请求进行的查询过程为图7A所示的查询过程。针对此次查询过程,地图应用可以生成行为序列9:<图区:{北京市,MBR-7},关键词:华维大厦>。行为序列9可以表征在图区“北京市”内搜索关键词“华维大厦”的查询行为,表征图区视野的参数是“MBR-7”。电子设备显示此次查询过程得到的搜索结果的示例可参见图7A的右图所示的用户界面710,“MBR-7”可以是表征用户界面710中的图区视野712的参数。
例如,应用程序基于用户输入的查询请求进行的查询过程为图7B所示的查询过程。针对此次查询过程,地图应用可以生成行为序列10:<图区:{北京市,MBR-8},关键词:华为大厦,点击:POIID-5,名称:华为大厦,坐标:坐标-5>。行为序列10可以表征在图区“北京市”内搜索关键词“华为大厦”的查询行为,并且对于此次查询用户选择了一个POI,该POI的POIID为“POIID-5”,名称为“华为大厦”,坐标为“坐标-5”,也可理解为是搜索名称为“华为大厦”的POI的查询行为,表征显示该POI时的图区视野的参数为“MBR-8”。电子设备显示此次查询过程得到的搜索结果(即地理位置“华为大厦”)的示例可参见图7B的(3)所示的用户界面720,“MBR-8”可以是表征用户界面720中的图区视野721的参数。
例如,应用程序基于用户输入的查询请求进行的查询过程为图7C所示的查询过程。针对此次查询过程,地图应用可以生成行为序列11:<图区:{北京市,MBR-8},关键词:信息路华为大厦,点击:POIID-5,名称:华为大厦,坐标:坐标-5>。行为序列11可以表征在图区“北京市”内搜索关键词“信息路华为大厦”的查询行为。图7C所示的查询过程中,虽然用户查询“信息路华为大厦”后没有执行选择POI的操作,但由于查询“信息路华为大厦”得到的搜索结果仅有一个,电子设备可以认为执行了此次查询就可以确定用户选择了该搜索结果,因此行为序列11记录了用户选择名称为“华为大厦”的POI的操作,即上述“点击:POIID-5,名称:华为大厦,坐标:坐标-5”。因此,行为序列11可以表征此次查询用户选择了一个POI,该POI的POIID为“POIID-5”,名称为“华为大厦”,坐标为“坐标-5”,表征显示该POI时的图区视野的参数为“MBR-8”。电子设备显示此次查询过程得到的搜索结果(即地理位置“华为大厦”)的示例可参见图7C的右图所示的用户界面730,“MBR-8” 可以是表征用户界面730中的图区视野732的参数。
例如,应用程序基于用户输入的查询请求进行的查询过程为图7E所示的查询过程。针对此次查询过程,地图应用可以生成行为序列12:<图区:{北京市,MBR-8},关键词:华为大厦,点击:POIID-5,名称:华为大厦,坐标:坐标-5>,具体可参见上述行为序列10的说明。电子设备显示此次查询过程得到的搜索结果(即地理位置“华为大厦”)的示例可参见图7E的右图所示的用户界面760,“MBR-8”可以是表征用户界面760中的图区视野762的参数。
S201:电子设备的应用程序向模型模块发送第一用户的第一行为序列。
S202:模型模块将第一行为序列作为意图模型的输入,得到输出的第一位置。
在一些实施例中,意图模型输出的位置可以但不限于通过查询的关键词和图区来表征,意图模型输出的位置为该图区指示的地图范围内和该关键词相关的地理位置。在一些实施例中,意图模型输出的位置可以但不限于通过至少一个POI的标识(如POIID)、名称和坐标中至少一项来表征,意图模型输出的位置为这至少一个POI。
在一些实施例中,意图模型的输出还可以包括表征图区视野的参数,例如MBR,图区视野为显示意图模型输出的位置时显示的图区。
基于S200的示例,接下来示例性示出一些第一位置:
例如,模型模块可以将上述行为序列5作为意图模型的输入,得到输出的位置1:地理位置“南京市鼓楼区”,可以表征为:<关键词:鼓楼,图区:南京市鼓楼区>,也可以表征为:<POI标识:POIID-3,名称:南京市鼓楼区,坐标:坐标-3>。
例如,模型模块可以将上述行为序列6作为意图模型的输入,得到输出的位置1(即地理位置“南京市鼓楼区”)和表征图区视野的参数“MBR-4”,可以表征为:<关键词:鼓楼,图区:南京市鼓楼区,图区视野:MBR-4>。
例如,模型模块可以将上述行为序列7作为意图模型的输入,得到输出的位置2:北京市内多个名称包括“公园”的地理位置,可以表征为:<关键词:公园,图区:北京市>。
例如,模型模块可以将上述行为序列8作为意图模型的输入,得到输出的位置3:地理位置“香山公园”,可以表征为:<关键词:香山公园,图区:北京市海淀区>,也可以表征为:<POI标识:POIID-4,名称:香山公园,坐标:坐标-4>。
例如,模型模块可以将上述行为序列10、行为序列11或行为序列12作为意图模型的输入,得到输出的位置4:地理位置“华为大厦”,可以表征为:<关键词:华为大厦,图区:北京市海淀区>,也可以表征为:<POI标识:POIID-5,名称:华为大厦,坐标:坐标-5>。
在一些实施例中,模型模块可以将第一行为序列和第二行为序列作为意图模型的输入,得到意图模型输出的第一行为序列对应的第一位置,可选地以及第二行为序列对应的第二位置,第一行为序列和第二行为序列是属于同一个时域的行为序列,可以理解为是结合同一个时域的行为序列来获取第一行为序列对应的第一位置,其中,可以对行为序列进行时域分割得到至少一个时域的行为序列,具体可参见图8的S102的说明。
例如,应用程序先后进行图5A和图6A所示的查询过程,图5A所示的查询过程对应的行为序列7和图6A所示的查询过程对应的行为序列8均属于时域3,模型模块可以将行为序列7和行为序列8作为意图模型的输入,得到对应的输出。得到的输出中,行为序列7和行为序列8均对应位置3(即地理位置“香山公园”),行为序列7对应的位置3可以表征为:<关键词:公园,图区:北京市海淀区>,<POI标识:POIID-4,名称:香山公园,坐标:坐标-4>,行为序列8对应的位置3的表征方式和行为序列7对应的位置3的表征方式类似,区别 在于,包括的关键词为“香山公园”。
例如,应用程序依次进行图7A、图7B和图7C所示的查询过程,图7A所示的查询过程对应的行为序列9、图7B所示的查询过程对应的行为序列10和图7C所示的查询过程对应的行为序列11均属于时域4,模型模块可以将行为序列9、10和11作为意图模型的输入,得到对应的输出。得到的输出中,行为序列9、10和11均对应位置4(即地理位置“华为大厦”),行为序列9对应的位置4可以表征为:<关键词:华维大厦,图区:北京市海淀区>,<POI标识:POIID-5,名称:华为大厦,坐标:坐标-5>,行为序列10和11对应的位置4的表征方式和行为序列9对应的位置4的表征方式类似,区别在于,行为序列10对应包括的关键词为“华为大厦”,行为序列11对应包括的关键词为“信息路华为大厦”。
例如,应用程序先后进行图7A和图7E所示的查询过程,图7A所示的查询过程对应的行为序列9和图7E所示的查询过程对应的行为序列12均属于时域5,模型模块可以将行为序列9和行为序列12作为意图模型的输入,得到对应的输出。得到的输出中,行为序列9和行为序列12均对应位置4(即地理位置“华为大厦”),行为序列9对应的位置4可以表征为:<关键词:华维大厦,图区:北京市海淀区>,<POI标识:POIID-5,名称:华为大厦,坐标:坐标-5>,行为序列12对应的位置4的表征方式和行为序列9对应的位置4的表征方式类似,区别在于,包括的关键词为“华为大厦”。
S203:模型模块基于第一行为序列中的关键词和第一位置生成第一历史记录。
在一些实施例中,第一历史记录可以包括第一行为序列中的关键词和第一位置的图区。可选地,第一历史记录还可以包括表征图区视野的参数,例如MBR,该图区视野为显示第一位置时显示的图区,可选地,表征图区视野的参数可以是从意图模型的输出得到的。
基于S200和S202的示例,接下来示例性示出一些第一历史记录:
例如,假设上述行为序列5对应的第一位置是上述位置1(即地理位置“南京市鼓楼区”),则模型模块生成的历史记录1包括上述行为序列5中的关键词“鼓楼”,以及上述位置1的图区“南京市鼓楼区”。
例如,假设上述行为序列6对应的第一位置是上述位置1(即地理位置“南京市鼓楼区”),并且上述行为序列6作为意图模型的输入时,意图模型的输出还包括表征图区视野的参数(即“MBR-4”),则模型模块生成的历史记录2包括上述行为序列6中的关键词“鼓楼”,上述位置1的图区“南京市鼓楼区”,以及上述表征图区视野的参数“MBR-4”。
例如,假设上述行为序列7对应的第一位置是上述位置2(即北京市内多个名称包括“公园”的地理位置),则模型模块生成的历史记录3包括上述行为序列7中的关键词“公园”,以及上述位置2的图区“北京市”。
例如,假设上述行为序列8对应的第一位置是上述位置3(即地理位置“香山公园”),则模型模块生成的历史记录4包括上述行为序列8中的关键词“香山公园”,以及上述位置3的图区“北京市海淀区”。
例如,假设上述行为序列11对应的第一位置是上述位置4(即地理位置“华为大厦”),则模型模块生成的历史记录5包括上述行为序列11中的关键词“信息路华为大厦”,以及上述位置4的图区“北京市海淀区”。模型模块生成的行为序列10和行为序列12对应的历史记录与历史记录5类似,区别在于包括的关键词为“华为大厦”。
例如,假设上述行为序列7和上述行为序列8均属于时域3,行为序列7和行为序列8对应的意图模型的输出均为上述位置3(即地理位置“香山公园”),则模型模块生成的行为序列7对应的历史记录6包括行为序列7中的关键词“公园”,以及上述位置3的图区“北京 市海淀区”。模型模块生成的行为序列8对应的历史记录为上述历史记录4,不再赘述。
例如,假设上述行为序列9、10和11均属于时域4,行为序列9、10和11对应的意图模型的输出均为上述位置4(即地理位置“华为大厦”),则模型模块生成的行为序列9对应的历史记录7包括行为序列9中的关键词“华维大厦”,以及上述位置4的图区“北京市海淀区”。模型模块生成的行为序列10对应的历史记录8和历史记录7类似,区别在于包括的关键词为“华为大厦”。模型模块生成的行为序列11对应的历史记录为上述历史记录5,不再赘述。
例如,假设上述行为序列9和行为序列12均属于时域5,行为序列9和行为序列12对应的意图模型的输出均为上述位置4(即地理位置“华为大厦”),则模型模块生成的行为序列9对应的历史记录为上述历史记录7,模型模块生成的行为序列12对应的历史记录为上述历史记录8。
在一些实施例中,电子设备的模型模块还可以将第一行为序列作为满意度模型的输入,得到输出的第一满意度。模型模块会根据第一位置和第一满意度判断是否生成和/或显示第一历史记录,可选地以及是否删除已有的历史记录。
在一些实施例中,满意度模型输出的满意度可以用于表征输入的行为序列对应的搜索结果和用户所需的搜索结果(例如图8的S104中的预测目标)的匹配程度,可选地,满意度为数值,例如满意度为小于或等于1的非负数,满意度越大,匹配程度越高,也就是表征该行为序列对应的搜索结果越符合用户意图。
在一些实施例中,假设第一行为序列属于第一时域的行为序列,模型模块可以先判断第一时域的行为序列中是否存在:对应的意图模型的输出为第一位置的行为序列。在一种情况下,若第一时域的行为序列中不存在对应的意图模型的输出为第一位置的行为序列,模型模块可以确定生成和显示第一历史记录,可选地并且不删除已有的历史记录,具体示例可参见上述示出的第一历史记录。在另一种情况下,若第一时域的行为序列中存在对应的意图模型的输出为第一位置的行为序列(可称为第三行为序列),则模型模块可以比较第一行为序列对应的第一满意度,以及第三行为序列对应的满意度模型输出的满意度(可称为第二满意度),若第一满意度大于第二满意度,模型模块可以确定生成和显示第一历史记录,可选地并且确定删除应用程序已显示的第三行为序列对应的第二历史记录,模型模块可以向应用程序发送指示删除第二历史记录的指示信息,这样应用程序在显示第一历史记录时不会显示第二历史记录。
例如,假设第一行为序列为上述行为序列8,而上述行为序列7和上述行为序列8均属于时域3,并且行为序列7对应的意图模型的输出为行为序列8对应的第一位置(即上述位置3:地理位置“香山公园”),假设行为序列7对应的满意度为0.6,行为序列8对应的满意度为1,由于行为序列8对应的满意度更高,因此模型模块可以确定生成和显示行为序列8对应的历史记录,即上述历史记录4。
例如,假设第一行为序列为上述行为序列11,而上述行为序列9、10和上述行为序列11均属于时域4,并且行为序列9、11对应的意图模型的输出为行为序列11对应的第一位置(即上述位置4:“华为大厦”),假设行为序列9对应的满意度为0,行为序列10对应的满意度为0.8,行为序列11对应的满意度为1,由于行为序列11对应的满意度最高,因此模型模块可以确定生成和显示行为序列11对应的历史记录,即上述历史记录5。并且,模型模块可以指示应用程序删除行为序列9对应的历史记录(即上述历史记录7)和行为序列10对应的历史记录(即上述历史记录8)。
例如,假设第一行为序列为上述行为序列12,而上述行为序列9和上述行为序列12均属于时域5,并且行为序列9对应的意图模型的输出为行为序列9对应的第一位置(即上述位置4:“华为大厦”),假设行为序列9对应的满意度为0,行为序列12对应的满意度为1,由于行为序列12对应的满意度最高,因此模型模块可以确定生成和显示行为序列12对应的历史记录,即上述历史记录8。并且,模型模块可以指示应用程序删除行为序列9对应的历史记录(即上述历史记录7)。
若第一满意度小于第二满意度,模型模块可以确定不显示第一历史记录,此时电子设备可以不执行S203-S205。若第一满意度等于第二满意度,模型模块可以确定显示第一历史记录,并且不会删除第二历史记录,或者,模型模块可以确定不显示第一历史记录,或者,模型模块可以确定显示第一历史记录和删除第二历史记录。
S204:模型模块向应用程序发送第一历史记录。
S205:应用程序显示第一历史记录。
例如,应用程序可以显示图4B所示的用户界面430,用户界面430中的记录431用于显示上述历史记录1或历史记录2。
例如,应用程序可以显示图5B所示的用户界面520,用户界面520中的记录521用于显示上述历史记录3。
例如,应用程序可以显示图6B所示的用户界面630,用户界面630中的记录631用于显示上述历史记录4,用户界面630中的记录632用于显示上述历史记录6。
例如,应用程序可以显示图7D所示的用户界面740,用户界面740中的记录741用于显示上述历史记录5。并且,用户界面740中未显示上述历史记录7和上述历史记录8。
例如,应用程序可以显示图7F所示的用户界面770,用户界面770中的记录771用于显示上述历史记录8。并且,用户界面740中未显示上述历史记录7。
在一种可能的实现方式中,该方法还可以包括:
S206:应用程序向网络设备的搜索模块发送针对第一历史记录的请求消息。
在一些实施例中,电子设备可以接收用户通过应用程序输入的针对第一历史记录的用户操作,例如触摸操作、语音操作、体感操作、脑电波等,可以理解为是接收到基于第一历史记录的查询请求。其中,第一历史记录可以为应用程序显示的任意一条历史记录。应用程序接收到基于第一历史记录的查询请求时,可以向网络设备的搜索模块发送针对第一历史记录的请求消息。
在一些实施例中,针对第一历史记录的请求消息包括第一历史记录中的关键词和图区。可选地,第一历史记录还包括表征图区视野的参数,例如为MBR,则针对第一历史记录的请求消息还包括第一历史记录中的表征图区视野的参数。
S207:搜索模块基于请求消息包括的关键词和图区进行搜索,以得到第一历史记录对应的搜索结果。
在一些实施例中,搜索模块接收到针对第一历史记录的请求消息时,可以在请求消息包括的图区(即第一历史记录包括的图区)指示的地图范围内,搜索请求消息包括的关键词(即第一历史记录包括的关键词)相关的地理位置,该地理位置为搜索结果。
在一些实施例中,若请求消息还包括表征图区视野的参数(假设为第一历史记录包括的MBR),则搜索模块可以按照该MBR来获取显示该搜索结果时的图区视野。
S208:搜索模块向应用程序发送第一历史记录对应的搜索结果。
在一些实施例中,若请求消息还包括表征图区视野的参数,则搜索模块还可以向应用程 序发送显示第一历史记录对应的搜索结果时的图区视野。
S209:应用程序显示第一历史记录对应的搜索结果。
在一些实施例中,应用程序接收到搜索模块发送的第一历史记录对应的搜索结果时,可以显示该搜索结果。可选地,应用程序还接收到搜索模块发送的图区视野,则应用程序可以按照该图区视野显示该搜索结果。
接下来示例性示出一些第一历史记录对应的搜索结果:
例如,第一历史记录为上述历史记录1,具体可参见图4B所示的用户界面430中的记录431。针对第一历史记录的请求消息可以包括关键词“鼓楼”和图区“南京市鼓楼区”。第一历史记录对应的搜索结果可以为地理位置“南京市鼓楼区”,应用程序显示该搜索结果的示例可参见图4A的右图所示的用户界面410。
例如,第一历史记录为上述历史记录2,具体可参见图4B所示的用户界面430中的记录431。针对第一历史记录的请求消息可以包括关键词“鼓楼”、图区“南京市鼓楼区”和表征图区视野的参数“MBR-4”。第一历史记录对应的搜索结果可以为地理位置“南京市鼓楼区”,应用程序显示该搜索结果的示例可参见图4C的右图所示的用户界面440,搜索模块基于“MBR-4”获取到的图区视野可参见用户界面440中的图区视野441。
例如,第一历史记录为上述历史记录3,具体可参见图5B所示的用户界面520中的记录521。针对第一历史记录的请求消息可以包括关键词“公园”和图区“北京市”。第一历史记录对应的搜索结果可以为北京市内多个名称包括“公园”的地理位置,应用程序显示该搜索结果的示例可参见图5A的右图所示的用户界面510。
例如,第一历史记录为上述历史记录6,具体可参见图6B所示的用户界面630中的记录632。针对第一历史记录的请求消息可以包括关键词“公园”和图区“北京市海淀区”。第一历史记录对应的搜索结果可以为“北京市海淀区”内名称包括“公园”的地理位置,假设为地理位置“香山公园”,应用程序显示该搜索结果的示例可参见图6A的右图所示的用户界面620。
例如,第一历史记录为上述历史记录5,具体可参见图7D所示的用户界面740中的记录741。针对第一历史记录的请求消息可以包括关键词“信息路华为大厦”和图区“北京市海淀区”。第一历史记录对应的搜索结果可以为“北京市海淀区”内信息和“信息路华为大厦”相关的地理位置,假设为地理位置“华为大厦”,应用程序显示该搜索结果的示例可参见图7C的右图所示的用户界面730。
例如,第一历史记录为上述历史记录8,具体可参见图7F所示的用户界面770中的记录771。针对第一历史记录的请求消息可以包括关键词“华为大厦”和图区“北京市海淀区”,第一历史记录对应的搜索结果可以为“北京市海淀区”内信息和“华为大厦”相关的地理位置,假设为地理位置“华为大厦”,应用程序显示该搜索结果的示例可参见图7E的右图所示的用户界面760。
不限于上述示例的情况,在另一些实施例中,第一位置也可以不是将第一行为序列作为意图模型的输入得到的输出,而是直接将第一行为序列对应的搜索结果确定为是第一位置,在另一些实施例中,第一位置也可以是基于第一行为序列所在时域的行为序列中最优一条行为序列得到的,具体可参见图8的S104中电子设备确定预测目标的说明。
可以理解地,对于用户任意时刻的行为序列,电子设备都可以执行以下至少一项:向网络设备发送时域分割后的该行为序列以用于训练意图模型和满意度模型(例如上图8的步骤S103),基于时域分割后的该行为序列更新意图模型和/或满意度模型(例如上图8的步骤 S109),以及确定该行为序列对应的历史记录(例如上图9的步骤S202-S203),这三项的顺序不作限定。
在上述方法中,电子设备可以记录用户的地图查询行为,基于记录的查询行为优化显示的历史记录,如将图区这种关键要素体现在显示的历史记录上,去除无效、冗余的历史记录,方便用户基于历史记录进行查询。并且优化基于历史记录进行查询的方式,如在历史记录包括的图区内查询历史记录包括的关键词,从而准确复现之前查询的搜索结果,无需用户重新输入和查找地理位置,减少用户操作,减小设备的处理压力。
请参见图10,图10是本申请实施例提供的又一种地图查询方法的流程示意图。该方法可以应用于图1A和图1B所示的地图查询***10中的电子设备100。该方法可以应用于图2A所示的电子设备100。该方法可以应用于图2B所示的电子设备100。该方法可以包括但不限于如下流程:
S301:电子设备接收第一查询请求。
在一些实施例中,第一查询请求用于请求查询用户输入的关键词。
在一些实施例中,用户基于电子设备输入关键词的方式例如但不限于包括:用户通过触摸电子设备的显示屏输入文字、图片或者视频形式的关键词,用户通过电子设备连接的键盘输入文字形式的关键词,用户通过电子设备连接或内置的麦克风输入语音形式的关键词,用户通过电子设备连接或者内置的摄像头输入图片、视频或者运动姿态形式的关键词。用户输入的关键词的形式可以但不限于包括文字、图片、语音、视频、运动姿态等。
在一些实施例中,电子设备可以接收用户输入的关键词和用户操作,此时可以理解为是接收到基于该关键词的第一查询请求,例如,图4A所示实施例中,电子设备显示用户界面400时,可以接收用户基于搜索框401A输入的关键词“鼓楼”,然后可以接收作用于搜索控件310B的触摸操作(例如点击操作),此时可以理解为是接收到基于“鼓楼”的第一查询请求。
S302:电子设备显示第一界面,第一界面包括第一搜索结果。
在一些实施例中,第一搜索结果包括在第一图区指示的地图范围内和第一查询请求相关的至少一个地理位置。在一种情况下,第一图区为电子设备当前所在的图区,例如电子设备当前所在的城市,在另一种情况下,第一图区为S301之前用户调整的图区,例如电子设备处于北京市时,接收到用户查询“南京”的请求,电子设备响应于该请求显示搜索结果“南京市”,此时当前图区被调整为“南京市”。在这种情况下,电子设备再接收到第一查询请求,得到的第一搜索结果是“南京市”内和第一查询请求相关的至少一个地理位置。
在一些实施例中,电子设备接收到第一查询请求时,可以向网络设备发送请求消息,该请求消息用于请求获取第一查询请求相关的搜索结果。在一些实施例中,网络设备接收到请求消息后,可以在当前图区(如电子设备所在的城市)内查询和第一关键词相关的至少一个地理位置,即获取第一搜索结果,第一关键词和第一查询请求相关联,可选地,第一关键词为S301中描述的关键词。网络设备可以向电子设备发送第一搜索结果。在一些实施例中,电子设备获取到第一搜索结果后,可以显示第一界面。
例如,图4A所示实施例中,电子设备显示图4A的左图所示的用户界面400时,接收到点击401B的操作(接收到基于关键词“鼓楼”的查询请求),因此显示图4A的右图所示的用户界面410(第一界面),用户界面410包括地理位置“南京市鼓楼区”(第一搜索结果)。
例如,图5A所示实施例中,电子设备显示图5A的左图所示的用户界面400时,接收到 点击401B的操作(接收到基于关键词“公园”的查询请求),因此显示图5A的右图所示的用户界面510(第一界面),用户界面510包括北京市内多个名称包括“公园”的地理位置(第一搜索结果)。
例如,图6A所示实施例中,电子设备显示图6A的左图所示的用户界面510时,接收到点击5131的操作(接收到基于关键词“香山公园”的查询请求),因此显示图6A的右图所示的用户界面620(第一界面),用户界面620包括地理位置“香山公园”(第一搜索结果)。
例如,图7C所示实施例中,电子设备显示图7C的左图所示的用户界面400时,接收到点击401B的操作(接收到基于关键词“信息路华为大厦”的查询请求),因此显示图7C的右图所示的用户界面730(第一界面),用户界面730包括地理位置“华为大厦”(第一搜索结果)。
不限于上述示例的查询行为,例如还有图7A、图7B、图7E所示实施例,具体描述和上述示例类似,不再赘述。
S303:电子设备显示第二界面,第二界面包括第一历史记录。
在一些实施例中,第一历史记录对应S301-S302所示的第一查询行为。在一些实施例中,电子设备可以记录用户的第一查询行为,第一查询行为可以通过对应的第一行为序列来表征,具体可参见图9的S200的说明。
在一些实施例中,第一历史记录包括第一关键词和第一图区,第一关键词和第一查询请求相关联,可选地,第一关键词为S301中描述的关键词,可选地,第一关键词是第一行为序列中的关键词。在一种情况下,第一图区是第一搜索结果所在的图区,在另一种情况下,第一图区是第一行为序列对应的第一位置所在的图区,第一位置是将第一行为序列作为意图模型的输入得到的输出。在一些实施例中,第一历史记录还包括表征图区视野的参数,例如为表征图区视野大小的MBR,图区视野是显示第一搜索结果时显示的图区。可选地,表征图区视野的参数可以是将第一行为序列作为意图模型的输入得到的输出。
电子设备生成第一历史记录的说明具体可参见图9的S202-S203的说明。
电子设备显示第二界面的示例可参见图9的S205的说明。
在一些实施例中,第一搜索结果为一个地理位置,该地理位置在第一图区指示的地图范围内,第一历史记录包括第一图区。例如,图4A所示的查询行为得到的搜索结果为地理位置“南京市鼓楼区”,电子设备显示的对应的第一历史记录为图4B所示的用户界面430中的记录431,记录431包括的图区431C指示地理位置“南京市鼓楼区”的图区:“南京市鼓楼区”。
在另一些实施例中,第一搜索结果包括多个地理位置,第一图区指示的地图范围可以包括这多个地理位置所在的图区指示的地图范围,例如第一图区是包括这多个地理位置所在的图区的最小图区。第一历史记录包括第一图区。例如,图5A所示的查询行为得到的搜索结果包括地理位置“香山公园”、地理位置“北海公园”和地理位置“世界公园”,各自对应的图区依次为“海淀区”、“西城区”和“丰台区”假设包括这三个图区的最小图区为“北京市”。电子设备显示的对应的第一历史记录为图5B所示的用户界面520中的记录521,记录521包括的图区521C指示的图区为“北京市”。
在一些实施例中,电子设备可以对行为序列进行时域分割,具体可参见图8的S102的说明,假设第一行为序列和第二行为序列属于同一个时域。在一些实施例中,电子设备可以基于第一行为序列和第二行为序列分别对应的目标位置和满意度,判断是否显示第一行为序列对应的第一历史记录,其中,第一行为序列对应的满意度可以是将第一行为序列作为满意度 模型的输入得到的输出,第二行为序列类似。例如,当第一行为序列和第二行为序列对应的目标位置相同时,若第一行为序列对应的满意度大于第二行为序列对应的满意度,可以确定显示第一行为序列对应的第一历史记录,可选地以及删除第二行为序列对应的历史记录,若第一行为序列对应的满意度小于第二行为序列对应的满意度,可以确定不限于第一行为序列对应的第一历史记录,具体可参见图9的S203的说明。
在一些实施例中,上述意图模型和/或满意度模型可以是网络设备训练后发送给电子设备的,具体可参见图8的S101-S105的说明。可选地,电子设备接收到网络设备发送的意图模型和/或满意度模型,可以自行进行更新,具体可参见图8的S106-S109的说明。在另一些实施例中,上述意图模型和/或满意度模型可以是电子设备自行训练的,具体方式和网络设备续联的方式类似,不再赘述。
S304:电子设备接收基于第一历史记录的第二查询请求。
在一些实施例中,电子设备可以接收用户输入的针对第一历史记录的用户操作,例如触摸操作、语音操作、体感操作、脑电波等,可以理解为是接收到基于第一历史记录的查询请求。例如,电子设备显示图4B所示的用户界面430(第二界面)时,接收到作用于记录431(第一历史记录)的触摸操作(例如点击操作),可以理解为是接收到基于记录431的查询请求。
S305:电子设备显示第三界面,第三界面和第一界面相同。
在一些实施例中,电子设备接收第二查询请求时位于第一地理位置,第一地理位置在第二图区指示的地图范围内,第二图区和上述第一图区不同。可以理解为是,S304时电子设备所在的图区和S301时电子设备所在的图区不同,例如电子设备位于“南京市”时执行图4A所示的查询行为(包括接收到第一查询请求),得到的搜索结果为图4A的右图所示的用户界面410显示的地理位置“南京市鼓楼区”。第一历史记录为图4B所示的用户界面430中的记录431,电子设备位于“北京市”时接收到作用于记录431的触摸操作(接收到第二查询请求),得到的搜索结果仍为上述地理位置“南京市鼓楼区”,而不是“北京市”内和记录431包括的关键词“鼓楼”相关的地理位置。
在一些实施例中,电子设备接收到基于第一历史记录的查询请求时,可以向网络设备发送请求消息,该请求消息用于请求获取第二查询请求相关的搜索结果。其中,该请求消息包括第一图区和第一关键词。在一些实施例中,网络设备接收到该请求消息后,可以在第一历史记录包括的第一图区指示的地图范围内查询和第一关键词相关的至少一个地理位置,即获取搜索结果,图10以获取的该搜索结果为第一搜索结果为例进行说明。网络设备可以向电子设备发送第一搜索结果。在一些实施例中,电子设备获取到第一搜索结果后,可以显示第三界面。具体可参见图9的S206-S209的说明。
在一种可能的实现方式中,本申请实施例提供的地图查询方法还包括:
电子设备接收第三查询请求,第三查询请求和第二关键词相关联。例如,电子设备显示图4A的左图所示的用户界面400时,可以接收用户基于搜索框401A输入的关键词“鼓楼”(可以理解为是和第三查询请求相关联的第二关键词),然后可以接收作用于搜索控件310B的触摸操作(例如点击操作),可以理解为是接收第三查询请求。
电子设备显示第四界面,第四界面包括第二搜索结果,第二搜索结果包括在第五图区指示的地图范围内和第三查询请求相关的至少一个地理位置。例如,电子设备显示图4A的右图所示的用户界面410(可以理解为是第四界面),用户界面410包括地理位置“南京市鼓楼区”(可以理解为是第二搜索结果),该地理位置所在的图区为“南京市鼓楼区”(可以理解为 是第五图区)。
电子设备接收第一用户操作。在一些实施例中,第一用户操作为缩小手势或放大手势。电子设备显示第五界面,第五界面包括第二搜索结果,其中,第五界面显示的第五图区的大小和第四界面显示的第五图区的大小不同。例如,图4C所示实施例中,电子设备显示图4C的左图所示的用户界面410时,接收到双指缩小手势(可以理解为是第一用户操作),响应于该手势,缩小显示的图区的大小,显示图4C的右图所示的用户界面440(可以理解为是第五界面),相比用户界面410中的图区视野412,用户界面440中的图区视野441被缩小。
电子设备显示第六界面,第六界面包括第二历史记录,第二历史记录包括第二关键词和第五图区。例如,电子设备显示图4B所示的用户界面430(可以理解为是第六界面),用户界面430包括记录431(可理解为是第二历史记录),记录431包括指示关键词“鼓楼”(可以理解为是第二关键词)的字符431B,以及指示“南京市鼓楼区”(可以理解为是第五图区)的图区431C。
电子设备接收基于第二历史记录的第四查询请求,显示第七界面,第七界面和第五界面相同。例如,电子设备接收到作用于图4B所示的用户界面430中的记录431触摸操作(例如点击操作),可以理解为是接收到第四查询请求,响应于该触摸操作,显示图4C的右图所示的用户界面440(可以理解为是第七界面)。
在一些实施例中,电子设备接收到基于第二历史记录的查询请求时,可以向网络设备发送请求消息,该请求消息用于请求获取第四查询请求相关的搜索结果。其中,该请求消息包括第二关键词、第五图区和第一参数,第一参数用于表征第五界面显示的第五图区的大小,例如用户界面440中的图区视野441。网络设备接收到该请求消息后,可以获取第二搜索结果和按照第一参数获取对应的图区视野,并发送给电子设备。电子设备接收到该图区视野和第二搜索结果后,可以在该图区视野内显示第一搜索结果。具体可参见图9的S206-S209的说明。
在又一种可能的实现方式中,本申请实施例提供的地图查询方法还包括:
电子设备接收第五查询请求,第五查询请求和第三关键词相关联。例如,电子设备显示图5A的左图所示的用户界面400时,可以接收用户基于搜索框401A输入的关键词“公园”(可以理解为是和第五查询请求相关联的第三关键词),然后可以接收作用于搜索控件310B的触摸操作(例如点击操作),可以理解为是接收第五查询请求。
电子设备显示第八界面,第八界面包括第三搜索结果,第三搜索结果包括和第五查询请求相关的第五地理位置和第六地理位置,第五地理位置在第六图区指示的地图范围内,第六地理位置在第七图区指示的地图范围内,第六图区和第七图区不同。例如,电子设备显示图5A的右图所示的用户界面510(可以理解为是第八界面),用户界面510包括北京市内多个名称包括“公园”的地理位置,其中包括地理位置“香山公园”(可以理解为是第五地理位置)和地理位置“北海公园”(可以理解为是第六地理位置),地理位置“香山公园”的图区为“北京市海淀区”(可以理解为是第六图区),地理位置“北海公园”的图区为“北京市西城区”(可以理解为是第七图区)。
电子设备接收在第八界面中针对第五地理位置的第二用户操作。电子设备显示第九界面,第九界面包括在第六图区指示的地图范围内的第五地理位置。例如,图6A所示实施例中,电子设备显示图5A的右图所示的用户界面510时,接收到作用于用户界面510中的搜索结果5131或地点标识512A的触摸操作,可以理解为是接收到第二用户操作,响应于该触摸操作,显示图6A的右图所示的用户界面620(可以理解为是第九界面),用户界面620包括图 区为“北京市海淀区”的地理位置“香山公园”。
电子设备显示第十界面,第十界面包括第三历史记录,第三历史记录包括第三关键词和第六图区。例如,电子设备显示图6B所示的用户界面630(可以理解为是第十界面),用户界面630包括记录632(可以理解为是第三历史记录),记录632包括指示关键词“公园”(可以理解为是第三关键词)的字符,以及指示“北京市海淀区”(可以理解为是第六图区)的图区632A。
电子设备接收基于第三历史记录的第六查询请求,显示第十一界面,第十一界面和所述第九界面相同。例如,电子设备接收到作用于图6B所示的用户界面630中的记录632的触摸操作,可以理解为是接收到第六查询请求,响应于该触摸操作,显示图6A的右图所示的用户界面620(可以理解为是第十一界面)。
在一些实施例中,第五地理位置和第六地理位置在第八图区指示的地图范围内,第八图区指示的地图范围包括第六图区指示的地图范围和第七图区指示的地图范围。例如,电子设备显示图5A的右图所示的用户界面510,用户界面510包括北京市内多个名称包括“公园”的地理位置,其中包括地理位置“香山公园”(第五地理位置)和地理位置“北海公园”(第六地理位置),地理位置“香山公园”的图区为“北京市海淀区”(第六图区),地理位置“北海公园”的图区为“北京市西城区”(第七图区)。第八图区可以为“北京市”。
在一些实施例中,第十界面还包括第四历史记录,第四历史记录包括第一POI的信息,第一POI为第五地理位置,第一POI的信息包括第五地理位置的名称和第六图区。例如,电子设备显示图6B所示的用户界面630(可以理解为是第十界面),用户界面630包括记录632(可以理解为是第三历史记录)和记录631(可以理解为是第四历史记录),记录631可以对应用户历史查询“公园”后用户从查询得到的搜索结果中选择的POI“香山公园”(可以理解为是第五地理位置)。记录631包括图标631A、字符631B,可以指示类型为POI的关键词“香山公园”,也就是上述POI“香山公园”的名称。记录631还包括图区631C,可以指示上述POI“香山公园”的图区“北京市海淀区”。
在又一种可能的实现方式中,本申请实施例提供的地图查询方法还包括:
电子设备接收第七查询请求,第七查询请求和第四关键词关联。例如,电子设备显示图7B的(1)所示的用户界面400时,可以接收用户基于搜索框401A输入的关键词“华为大厦”(可以理解为是和第七查询请求相关联的第四关键词),然后可以接收作用于搜索控件310B的触摸操作(例如点击操作),可以理解为是接收第七查询请求。
电子设备显示第十二界面,第十二界面包括第四搜索结果,第四搜索结果包括和第七查询请求相关的第七地理位置。例如,电子设备显示图7B的(2)所示的用户界面710(可以理解为是第十二界面),用户界面710包括北京市内和“华为大厦”相关的多个地理位置,其中包括地理位置“华为大厦”(可以理解为是第七地理位置)。
电子设备接收在第十二界面中针对第七地理位置的第三用户操作。电子设备显示第十三界面,第十三界面包括在第九图区指示的地图范围内的第七地理位置。例如,电子设备显示图7B的(2)所示的用户界面710时,接收到作用于用户界面710中的搜索结果7131或地点标识712A的触摸操作,可以理解为是接收到第三用户操作。电子设备响应于该触摸操作,显示图7B的(3)所示的用户界面720(可以理解为是第十三界面),用户界面720包括图区为“北京市海淀区”(可以理解为是第九图区)的地理位置“华为大厦”(可以理解为是第七地理位置)。
电子设备接收第八查询请求,第八查询请求和第五关键词相关联。电子设备显示第十四 界面,第十四界面包括第五搜索结果,第五搜索结果包括和第八查询请求相关的所述第七地理位置。例如,电子设备显示图7A的左图所示的用户界面400时,可以接收用户基于搜索框401A输入的关键词“华维大厦”(可以理解为是和第八查询请求相关联的第五关键词),然后可以接收作用于搜索控件310B的触摸操作,可以理解为是接收第八查询请求。电子设备响应于该触摸操作,显示图7A的右图所示的用户界面750(可以理解为是第十四界面),用户界面750包括北京市内和“华伟大厦”相关的多个地理位置,其中包括地理位置“华为大厦”(可以理解为是第七地理位置)。
电子设备显示第十五界面,第十五界面包括第五历史记录,第五历史记录包括第四关键词和第九图区。例如,第五历史记录包括的第四关键词为和第七查询请求相关联的关键词“华为大厦”,第五历史记录包括的第九图区为上述第七地理位置“华为大厦”的图区“北京市海淀区”。
电子设备接收基于第五历史记录的第九查询请求,显示第十六界面,第十六界面和第十三界面相同。例如,电子设备接收到作用于第五历史记录的触摸操作,可以理解为是接收到第九查询请求。电子设备响应于该触摸操作,显示图7B的(3)所示的用户界面720(可以理解为是第十六界面)。
在又一种可能的实现方式中,S301之前,该方法还包括:
电子设备接收第十查询请求,显示第十七界面,第十七界面包括第六搜索结果,第六搜索结果包括和第十查询请求相关的至少一个地理位置。例如,电子设备显示图7B的(1)所示的用户界面400时,可以接收用户基于搜索框401A输入的关键词“华为大厦”和作用于搜索控件310B的触摸操作,可以理解为是接收第十查询请求。电子设备响应于该触摸操作,显示图7B的(2)所示的用户界面710(可以理解为是第十七界面)。
电子设备显示第十七界面之后,可以执行S301和S302。例如,电子设备显示图7C的左图所示的用户界面400时,可以接收用户基于搜索框401A输入的关键词“信息路华为大厦”和作用于搜索控件310B的触摸操作,可以理解为是接收第一查询请求。电子设备响应于该触摸操作,显示图7C的右图所示的用户界面730(可以理解为是第一界面),用户界面730包括地理位置“华为大厦”(可以理解为是第一搜索结果)。
电子设备在S303显示的第二界面例如为图7D所示的用户界面740,用户界面740包括记录741(可以理解为是第一历史记录),记录741包括指示第一关键词“信息路华为大厦”的字符741B,以及指示第一搜索结果“华为大厦”所在的图区“北京市海淀区”的图区741C。
电子设备可以执行S304-S305,例如,电子设备可以接收作用于图7D所示的用户界面740中的记录741的触摸操作,可以理解为是接收到第二查询请求。电子设备响应于该触摸操作,显示图7C的右图所示的用户界面730(可以理解为是第三界面)。
在又一种可能的实现方式中,本申请实施例提供的地图查询方法还包括:
电子设备接收第十一查询请求,显示第十八界面,第十八界面包括第七搜索结果,第七搜索结果包括和第十一查询请求相关的第八地理位置。例如,电子设备显示图7A的左图所示的用户界面400时,可以接收用户基于搜索框401A输入的关键词“华维大厦”和作用于搜索控件310B的触摸操作,可以理解为是接收第十一查询请求。电子设备响应于该触摸操作,显示图7A的右图所示的用户界面750(可以理解为是第十八界面),用户界面750包括北京市内和“华伟大厦”相关的多个地理位置,其中包括地理位置“华为大厦”(可以理解为是第八地理位置)。
电子设备接收在第十八界面中针对第八地理位置的第四用户操作,显示第十九界面,第 十九界面包括在第十图区指示的地图范围内的第八地理位置。例如,图7E所示实施例中,电子设备显示图7A的右图所示的用户界面750时,接收到作用于用户界面750中的搜索结果7532的触摸操作,可以理解为是接收到第四用户操作。电子设备响应于该触摸操作,显示图7E的右图所示的用户界面760(可以理解为是第十九界面),用户界面760包括地理位置“华为大厦”(可以理解为是第八地理位置)。
电子显示第二十界面,第二十界面包括第六历史记录,第六历史记录包括第六关键词和所述第十图区,第六关键词与所述第八地理位置的名称相关联。例如,电子设备显示图7F所示的用户界面770(可以理解为是第二十界面),用户界面770包括记录771(可以理解为是第六历史记录),记录771包括指示第六关键词“华为大厦”的字符771B,第六关键词也为第八地理位置“华为大厦”的名称,记录771还包括指示第八地理位置“华为大厦”的图区“北京市海淀区”的图区771C。
电子设备接收基于第六历史记录的第十二查询请求,显示第二十一界面,第二十一界面和十九界面相同。例如,电子设备接收到作用于图7F所示的用户界面770中的记录771的触摸操作,可以理解为是接收到第十二查询请求。电子设备响应于该触摸操作,显示图7E的右图所示的用户界面760(可以理解为是第二十一界面)。
图10所示方法的用户界面示例可参见图4A-图4C、图5A-图5B、图6A-图6C、图7A-图7F。
以上模块或单元执行的步骤可以分成多个模块或单元来实现。以上模块或单元的一个或多个可以软件、硬件或二者结合来实现。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来计算机程序相关的硬件完成,该计算机程序可存储于计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:只读存储器(read-only memory,ROM)或随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可存储计算机程序代码的介质。
Claims (17)
- 一种地图查询方法,其特征在于,应用于电子设备,所述方法包括:接收第一查询请求;显示第一界面,所述第一界面包括第一搜索结果,所述第一搜索结果包括在第一图区指示的地图范围内和所述第一查询请求相关的至少一个地理位置;显示第二界面,所述第二界面包括第一历史记录,所述第一历史记录与所述第一查询请求相关联;接收基于所述第一历史记录的第二查询请求;显示第三界面,所述第三界面和所述第一界面相同。
- 如权利要求1所述的方法,其特征在于,所述接收基于所述第一历史记录的第二查询请求时所述电子设备位于第一地理位置,所述第一地理位置在第二图区指示的地图范围内,所述第二图区和所述第一图区不同。
- 如权利要求1或2所述的方法,其特征在于,所述第一历史记录包括第一关键词和所述第一图区,所述第一关键词和所述第一查询请求相关联。
- 如权利要求3所述的方法,其特征在于,所述至少一个地理位置包括第二地理位置,所述第二地理位置在所述第一图区指示的地图范围内;或,所述至少一个地理位置包括第三地理位置和第四地理位置,所述第三地理位置在第三图区指示的地图范围内,所述第四地理位置在第四图区指示的地图范围内,所述第一图区指示的地图范围包括所述第三图区指示的地图范围和所述第四图区指示的地图范围。
- 如权利要求1-4任一项所述的方法,其特征在于,所述方法还包括:接收第三查询请求;显示第四界面,所述第四界面包括第二搜索结果,所述第二搜索结果包括在第五图区指示的地图范围内和所述第三查询请求相关的至少一个地理位置;接收第一用户操作;显示第五界面,所述第五界面包括所述第二搜索结果,其中,所述第五界面显示的所述第五图区的大小和所述第四界面显示的所述第五图区的大小不同;显示第六界面,所述第六界面包括第二历史记录,所述第二历史记录包括第二关键词和所述第五图区,所述第二关键词和所述第三查询请求相关联;接收基于所述第二历史记录的第四查询请求;显示第七界面,所述第七界面和所述第五界面相同。
- 如权利要求5所述的方法,其特征在于,所述第一用户操作为缩小手势或者放大手势。
- 如权利要求1-4任一项所述的方法,其特征在于,所述方法还包括:接收第五查询请求;显示第八界面,所述第八界面包括第三搜索结果,所述第三搜索结果包括和所述第五查询请求相关的第五地理位置和第六地理位置,所述第五地理位置在第六图区指示的地图范围 内,所述第六地理位置在第七图区指示的地图范围内,所述第六图区和所述第七图区不同;接收在所述第八界面中针对所述第五地理位置的第二用户操作;显示第九界面,所述第九界面包括在所述第六图区指示的地图范围内的所述第五地理位置;显示第十界面,所述第十界面包括第三历史记录,所述第三历史记录包括第三关键词和所述第六图区,所述第三关键词与所述第五查询请求相关联;接收基于所述第三历史记录的第六查询请求;显示第十一界面,所述第十一界面和所述第九界面相同。
- 如权利要求7所述的方法,其特征在于,所述第五地理位置和所述第六地理位置在第八图区指示的地图范围内,所述第八图区指示的地图范围包括所述第六图区指示的地图范围和所述第七图区指示的地图范围。
- 如权利要求7或8所述的方法,其特征在于,所述第十界面还包括第四历史记录,所述第四历史记录包括第一信息点POI的信息,所述第一POI为所述第五地理位置,所述第一POI的信息包括所述第五地理位置的名称和所述第六图区。
- 如权利要求1-4任一项所述的方法,其特征在于,所述方法还包括:接收第七查询请求;显示第十二界面,所述第十二界面包括第四搜索结果,所述第四搜索结果包括和所述第七查询请求相关的第七地理位置;接收在所述第十二界面中针对所述第七地理位置的第三用户操作;显示第十三界面,所述第十三界面包括在第九图区指示的地图范围内的所述第七地理位置;接收第八查询请求;显示第十四界面,所述第十四界面包括第五搜索结果,所述第五搜索结果包括和所述第八查询请求相关的所述第七地理位置;显示第十五界面,所述第十五界面包括第五历史记录,所述第五历史记录包括第四关键词和所述第九图区,所述第四关键词和所述第七查询请求相关联;接收基于所述第五历史记录的第九查询请求;显示第十六界面,所述第十六界面和所述第十三界面相同。
- 如权利要求10所述的方法,其特征在于,所述第四关键词和第五关键词不同,所述第五关键词和所述第八查询请求相关联。
- 如权利要求1-4任一项所述的方法,所述接收第一查询请求之前,所述方法还包括:接收第十查询请求;显示第十七界面,所述第十七界面包括第六搜索结果,所述第六搜索结果包括和所述第十查询请求相关的至少一个地理位置。
- 如权利要求1-4任一项所述的方法,其特征在于,所述方法还包括:接收第十一查询请求;显示第十八界面,所述第十八界面包括第七搜索结果,所述第七搜索结果包括和所述第十一查询请求相关的第八地理位置;接收在所述第十八界面中针对所述第八地理位置的第四用户操作;显示第十九界面,所述第十九界面包括在第十图区指示的地图范围内的所述第八地理位置;显示第二十界面,所述第二十界面包括第六历史记录,所述第六历史记录包括第六关键词和所述第十图区,所述第六关键词与所述第八地理位置的名称相关联;接收基于所述第六历史记录的第十二查询请求;显示第二十一界面,所述第二十一界面和所述十九界面相同。
- 如权利要求3或4所述的方法,其特征在于,所述显示第三界面之前,所述方法还包括:向网络设备发送第一请求消息,所述第一请求消息用于请求获取所述第二查询请求相关的搜索结果,所述第一请求消息包括所述第一关键词和所述第一图区;获取所述网络设备发送的所述第一搜索结果,所述第一搜索结果用于所述电子设备显示所述第三界面。
- 如权利要求5或6所述的方法,其特征在于,所述显示第七界面之前,所述方法还包括:向网络设备发送第二请求消息,所述第二请求消息用于请求获取所述第四查询请求相关的搜索结果,所述第二请求消息包括所述第二关键词、所述第五图区和第一参数,所述第一参数用于表征所述第五界面显示的所述第五图区的大小;获取所述网络设备发送的所述第二搜索结果,所述第二搜索结果用于所述电子设备显示所述第七界面。
- 一种电子设备,其特征在于,包括收发器、处理器和存储器,所述存储器用于存储计算机程序,所述处理器调用所述计算机程序,用于执行如权利要求1-15任一项所述的方法。
- 一种计算机存储介质,其特征在于,所述计算机存储介质存储有计算机程序,所述计算机程序被处理器执行时,实现权利要求1-15任一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210103861.7A CN116561153A (zh) | 2022-01-27 | 2022-01-27 | 地图查询方法及电子设备 |
CN202210103861.7 | 2022-01-27 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023142938A1 true WO2023142938A1 (zh) | 2023-08-03 |
Family
ID=87470558
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/070626 WO2023142938A1 (zh) | 2022-01-27 | 2023-01-05 | 地图查询方法及电子设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN116561153A (zh) |
WO (1) | WO2023142938A1 (zh) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102789480A (zh) * | 2012-06-08 | 2012-11-21 | 北京百度网讯科技有限公司 | 一种电子地图历史查询结果的展示方法及客户端 |
CN104166657A (zh) * | 2013-05-17 | 2014-11-26 | 北京百度网讯科技有限公司 | 电子地图搜索方法以及服务器 |
CN104380293A (zh) * | 2012-06-22 | 2015-02-25 | 谷歌公司 | 基于位置从地图历史提供关于相关元素的信息 |
WO2017001944A1 (en) * | 2015-06-30 | 2017-01-05 | Yandex Europe Ag | Method, system and computer readable memory for generating ranked search results incorporating suggests |
-
2022
- 2022-01-27 CN CN202210103861.7A patent/CN116561153A/zh active Pending
-
2023
- 2023-01-05 WO PCT/CN2023/070626 patent/WO2023142938A1/zh unknown
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102789480A (zh) * | 2012-06-08 | 2012-11-21 | 北京百度网讯科技有限公司 | 一种电子地图历史查询结果的展示方法及客户端 |
CN104380293A (zh) * | 2012-06-22 | 2015-02-25 | 谷歌公司 | 基于位置从地图历史提供关于相关元素的信息 |
CN107092638A (zh) * | 2012-06-22 | 2017-08-25 | 谷歌公司 | 基于位置从地图历史提供相关元素信息的方法和计算装置 |
CN104166657A (zh) * | 2013-05-17 | 2014-11-26 | 北京百度网讯科技有限公司 | 电子地图搜索方法以及服务器 |
WO2017001944A1 (en) * | 2015-06-30 | 2017-01-05 | Yandex Europe Ag | Method, system and computer readable memory for generating ranked search results incorporating suggests |
Also Published As
Publication number | Publication date |
---|---|
CN116561153A (zh) | 2023-08-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020192456A1 (zh) | 一种语音交互方法及电子设备 | |
US20170235435A1 (en) | Electronic device and method of application data display therefor | |
US20110313859A1 (en) | Techniques for advertiser geotargeting using map coordinates | |
WO2020211705A1 (zh) | 一种联系人的推荐方法及电子设备 | |
KR20160043677A (ko) | 음성 태그를 이용한 이미지 관리 방법 및 그 장치 | |
CN110865756B (zh) | 图像标注方法、装置、设备及存储介质 | |
US9947137B2 (en) | Method for effect display of electronic device, and electronic device thereof | |
CN112130714B (zh) | 可进行学习的关键词搜索方法和电子设备 | |
US10042035B2 (en) | System and method for tile-based reduction of access point location information | |
WO2022100221A1 (zh) | 检索处理方法、装置及存储介质 | |
US11394871B2 (en) | Photo taking control method and system based on mobile terminal, and storage medium | |
KR102071250B1 (ko) | 위치 정보를 고려한 사진 데이터 표시 방법 및 이를 위한 장치 | |
CN109917988B (zh) | 选中内容显示方法、装置、终端及计算机可读存储介质 | |
WO2022127200A1 (zh) | 内容显示方法及装置 | |
CN110995842A (zh) | 业务数据下载方法、装置、设备及存储介质 | |
CN113409041B (zh) | 一种电子卡的选取方法、装置、终端以及存储介质 | |
CN112740148A (zh) | 一种向输入框中输入信息的方法及电子设备 | |
CN116128571B (zh) | 广告曝光量分析方法及相关装置 | |
CN110149408B (zh) | 业务数据显示方法、装置、终端及服务器 | |
WO2023142938A1 (zh) | 地图查询方法及电子设备 | |
CN111275607A (zh) | 界面显示方法、装置、计算机设备及存储介质 | |
CN115134316B (zh) | 话题展示方法、装置、终端及存储介质 | |
CN110390065B (zh) | 网页获取方法、装置及*** | |
CN114594882A (zh) | 一种反馈方法、装置及*** | |
CN116089368B (zh) | 文件搜索方法和相关装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23745823 Country of ref document: EP Kind code of ref document: A1 |