Search

CN-122019564-A - Map query method and electronic equipment

CN122019564ACN 122019564 ACN122019564 ACN 122019564ACN-122019564-A

Abstract

The embodiment of the application provides a map query method and electronic equipment, and the map query method comprises the steps that the electronic equipment receives a first query request, a first interface is displayed, the first interface comprises a first search result, the first search result comprises at least one geographic position related to the first query request in a map range indicated by a first region, a second interface is displayed, the second interface comprises a first historical record, the first historical record is related to the first query request, a second query request based on the first historical record is received, and a third interface is displayed, wherein the third interface is identical to the first interface. By adopting the embodiment of the application, the search result obtained by the previous query can be reproduced when the query is based on the history record, the user operation is reduced, and the search result is more accurate.

Inventors

  • SUN FAN

Assignees

  • 华为技术有限公司

Dates

Publication Date
20260512
Application Date
20220127

Claims (17)

  1. 1. A map query method, applied to an electronic device, comprising: receiving a first query request; Displaying a first interface, wherein the first interface comprises a first search result, the first search result comprises at least one geographic position related to the first query request in a map range indicated by a first region, and the electronic equipment is positioned in the map range indicated by the first region when receiving the first query request; Displaying a second interface, wherein the second interface comprises a first history record, and the first history record is associated with the first query request, and comprises a first keyword and the first region; receiving a second query request based on the first history; And obtaining and displaying a third interface based on the first keyword and the first region.
  2. 2. The method of claim 1, wherein the electronic device is located at a first geographic location when receiving a second query based on the first history, the first geographic location being within a map range indicated by a second region, the second region being different from the first region.
  3. 3. The method of claim 1 or 2, wherein the first keyword is associated with the first query request, and wherein the first region is associated with the first query request.
  4. 4. The method of claim 3, wherein, The at least one geographic location includes a third geographic location and a fourth geographic location, the third geographic location is within a map range indicated by a third region, the fourth geographic location is within a map range indicated by a fourth region, and the map range indicated by the first region includes a map range indicated by the third region and a map range indicated by the fourth region.
  5. 5. The method of any one of claims 1-4, wherein the method further comprises: Receiving a third query request; Displaying a fourth interface, wherein the fourth interface comprises a second search result, and the second search result comprises at least one geographic position related to the third query request in a map range indicated by a fifth region; Receiving a first user operation; displaying a fifth interface, wherein the fifth interface comprises the second search result, and the size of the fifth drawing area displayed by the fifth interface is different from the size of the fifth drawing area displayed by the fourth interface; displaying a sixth interface, wherein the sixth interface comprises a second history record, the second history record comprises a second keyword and the fifth drawing area, and the second keyword is associated with the third query request; Receiving a fourth query request based on the second history; And displaying a seventh interface, wherein the seventh interface is the same as the fifth interface.
  6. 6. The method of claim 5, wherein the first user operation is a zoom-out gesture or a zoom-in gesture.
  7. 7. The method of any one of claims 1-4, wherein the method further comprises: Receiving a fifth query request; Displaying an eighth interface, wherein the eighth interface comprises a third search result, the third search result comprises a fifth geographic position and a sixth geographic position which are related to the fifth query request, the fifth geographic position is in a map range indicated by a sixth map region, the sixth geographic position is in a map range indicated by a seventh map region, and the sixth map region and the seventh map region are different; Receiving a second user operation for the fifth geographic location in the eighth interface; displaying a ninth interface, the ninth interface including the fifth geographic location within the map range indicated by the sixth plot; Displaying a tenth interface, the tenth interface comprising a third history record, the third history record comprising a third keyword and the sixth plot, the third keyword being associated with the fifth query request; Receiving a sixth query request based on the third history; displaying an eleventh interface, wherein the eleventh interface is the same as the ninth interface.
  8. 8. The method of claim 7, wherein the fifth geographic location and the sixth geographic location are within a map range indicated by an eighth region, the map range indicated by the eighth region comprising a map range indicated by the sixth region and a map range indicated by the seventh region.
  9. 9. A method according to claim 7 or 8, wherein the tenth interface further comprises a fourth history comprising information of a first POI, the first POI being the fifth geographical location, the information of the first POI comprising a name of the fifth geographical location and the sixth zone.
  10. 10. The method of any one of claims 1-4, wherein the method further comprises: receiving a seventh query request; Displaying a twelfth interface, the twelfth interface including a fourth search result, the fourth search result including a seventh geographic location related to the seventh query request; Receiving a third user operation for the seventh geographic location in the twelfth interface; Displaying a thirteenth interface, the thirteenth interface including the seventh geographic location within the map range indicated by the ninth zone; Receiving an eighth query request; displaying a fourteenth interface, the fourteenth interface comprising a fifth search result, the fifth search result comprising the seventh geographic location related to the eighth query request; displaying a fifteenth interface, the fifteenth interface comprising a fifth history record, the fifth history record comprising a fourth keyword and the ninth gallery, the fourth keyword being associated with the seventh query request; Receiving a ninth query request based on the fifth history; a sixteenth interface is displayed, the sixteenth interface being the same as the thirteenth interface.
  11. 11. The method of claim 10, wherein the fourth keyword and a fifth keyword are different, the fifth keyword being associated with the eighth query request.
  12. 12. The method of any of claims 1-4, prior to the receiving the first query request, the method further comprising: receiving a tenth query request; a seventeenth interface is displayed, the seventeenth interface including a sixth search result, the sixth search result including at least one geographic location associated with the tenth query request.
  13. 13. The method of any one of claims 1-4, wherein the method further comprises: receiving an eleventh query request; Displaying an eighteenth interface, the eighteenth interface comprising seventh search results, the seventh search results comprising an eighth geographic location related to the eleventh query request; receiving a fourth user operation for the eighth geographic location in the eighteenth interface; Displaying a nineteenth interface including the eighth geographic location within the map area indicated by the tenth plot; displaying a twentieth interface, the twentieth interface including a sixth history including a sixth keyword and the tenth plot, the sixth keyword being associated with a name of the eighth geographic location; receiving a twelfth query request based on the sixth history; and displaying a twenty-first interface, wherein the twenty-first interface is the same as the nineteenth interface.
  14. 14. The method of claim 3 or 4, wherein prior to the displaying the third interface, the method further comprises: A first request message is sent to network equipment, wherein the first request message is used for requesting to acquire search results related to the second query request, and the first request message comprises the first keyword and the first drawing area; And acquiring the first search result sent by the network equipment, wherein the first search result is used for displaying the third interface by the electronic equipment.
  15. 15. The method of claim 5 or 6, wherein prior to displaying the seventh interface, the method further comprises: a second request message is sent to the network equipment, wherein the second request message is used for requesting to acquire a search result related to the fourth query request, the second request message comprises the second keyword, the fifth drawing area and a first parameter, and the first parameter is used for representing the size of the fifth drawing area displayed by the fifth interface; and acquiring the second search result sent by the network equipment, wherein the second search result is used for displaying the seventh interface by the electronic equipment.
  16. 16. An electronic device comprising a transceiver, a processor and a memory, the memory for storing a computer program, the processor invoking the computer program for performing the method of any of claims 1-15.
  17. 17. A computer storage medium, characterized in that it stores a computer program which, when executed by a processor, implements the method of any of claims 1-15.

Description

Map query method and electronic equipment The present application is a divisional application, the application number of the original application is 2022101038617, the original application date is 2022, 1 month and 27 days, and the whole content of the original application is incorporated by reference into the present application. Technical Field The present application relates to the field of computer technologies, and in particular, to a map query method and an electronic device. Background Electronic maps typically record keywords that have been queried or have been historic to the user. For example, the user search keyword "drum building" and the map would record the user search history "drum building". However, when the user searches again, the search in the current city is limited, for example, although both Tianjin city and Shanghai city have the search result of "drum building", the city where the electronic device is currently located is Tianjin city, and the search result given by the map search engine is only the search result of "drum building" of Tianjin city. The results of the history-based query provided by the electronic map are not accurate enough. Disclosure of Invention The embodiment of the application discloses a map query method and electronic equipment, which can reproduce the search result obtained by previous query when querying based on a history record, and the search result is more accurate, so that the operation of user query is reduced. In a first aspect, the application provides a map query method applied to electronic equipment, which comprises the steps of receiving a first query request, displaying a first interface, wherein the first interface comprises a first search result, the first search result comprises at least one geographic position related to the first query request in a map range indicated by a first region, displaying a second interface, the second interface comprises a first historical record, the first historical record is related to the first query request, receiving a second query request based on the first historical record, and displaying a third interface, and the third interface is identical to the first interface. In the method, the search result obtained by the electronic equipment based on the first historical record query is the first search result obtained by the previous query, the user can reproduce the search result obtained by the previous query without executing complicated query operation, the search result is more accurate, the user experience is improved, and the equipment processing pressure is reduced. In one possible implementation, the electronic device is located at a first geographic location when receiving a second query request based on the first history, the first geographic location being within a map range indicated by a second region, the second region being different from the first region. In the method, the first region is the region where the electronic device is located when inquiring before, when the electronic device is in the second region outside the first region, the second inquiry request based on the first history is received, the obtained search result is the first search result obtained by inquiring before but not the search result related to the second inquiry request in the second region, the geographical position obtained by searching before is accurately reproduced, the search result is more accurate, and the user requirement is well met. In one possible implementation, the first history record includes a first keyword and the first region, the first keyword being associated with the first query request. In the method, the first historical record comprises the first region where the first search result obtained by the previous query is located, so that the user can quickly acquire the region information of the search result of the historical query through the historical record, the user can be assisted in selecting the required historical record for query, and the user operation is more convenient. In one possible implementation, the at least one geographic location includes a second geographic location within a map range indicated by the first region, or the at least one geographic location includes a third geographic location within a map range indicated by a third region and a fourth geographic location within a map range indicated by a fourth region, the map range indicated by the first region including the map range indicated by the third region and the map range indicated by the fourth region. In one possible implementation, the method further includes receiving a third query request, displaying a fourth interface including a second search result including at least one geographic location related to the third query request within a map range indicated by a fifth region, receiving a first user operation, displaying a fifth interface including the second search result, wherein a size of the fifth region dis