Map display method and related equipment
By converting the address information in the document page into a map form and using location marking information to display multiple locations, the problem of cumbersome and unintuitive display in the existing technology is solved, and the map reading experience and route planning are improved accuracy.
Patent Information
- Application Number
- CN202310572063.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-19
- Publication Date
- 2024-11-22
AI Technical Summary
When existing electronic map applications query the locations of multiple locations, users need to manually enter address information multiple times. The operation is complicated and the map display is not intuitive and clear enough, making it difficult to intuitively display the locations and planned routes of multiple locations.
Provide a map display method, convert address information into map form through document pages, use location marking information to mark multiple locations, improve reading experience and efficiency, simplify operations, and intuitively display the location and planned routes of each location in the map .
It realizes the intuitive display of text information, simplifies user operations, improves the accuracy of map reading experience and route planning, and avoids the tedious process of manual input multiple times.
Smart Images

Figure CN119003643A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a map display method and related equipment. Background Art
[0002] With the development of Internet services, electronic map applications have been widely used. Users can use electronic map applications to query current locations, real-time navigation, rides, etc.
[0003] In some application scenarios, such as interviews at multiple locations, or planning routes to multiple tourist attractions, users may need to query the locations of multiple locations. With current related technologies, when users want to query the locations of multiple locations, they need to manually enter the specific address information of each location in the electronic map application multiple times, which is cumbersome, and the electronic map application only displays the location of a single location at a time, and the map display is not intuitive and clear enough. Summary of the invention
[0004] The embodiments of the present application provide a map display method and related equipment. The related equipment may include a map display device, an electronic device, a computer-readable storage medium and a computer program product. The address information in the document content can be converted into a map for presentation, thereby improving the reading experience and efficiency of the text and being easy to operate. Multiple locations can also be marked on the map through location mark information, making the presentation of each location more intuitive and clear.
[0005] The present application provides a map display method, including:
[0006] Displaying a document page, wherein the document page includes document content of a target document, wherein the document content includes address information corresponding to at least one geographic entity object;
[0007] In response to the map mode display operation of the document content, a map display area is inserted into the document page, and a map corresponding to the target area is displayed in the map display area. The target area is the area where the address information is located, and the map includes location mark information for marking the geographical location corresponding to each geographic entity object.
[0008] Accordingly, an embodiment of the present application provides a map display device, including:
[0009] A page display unit, used to display a document page, wherein the document page includes document content of a target document, and the document content includes address information corresponding to at least one geographic entity object;
[0010] A map display unit is used to respond to a map mode display operation on the document content, insert a map display area into the document page, and display a map corresponding to a target area in the map display area, wherein the target area is the area where the address information is located, and the map includes location mark information for marking the geographical location corresponding to each geographic entity object.
[0011] Optionally, in some embodiments of the present application, the map display device may further include a modification unit, as follows:
[0012] The modification unit is used to update the location mark information of the geographical location corresponding to the target geographical entity object in the map display area in real time based on the modified address information when a modification operation is detected on the address information of the target geographical entity object in the document content.
[0013] Optionally, in some embodiments of the present application, the document content also includes entity association information of each geographic entity object;
[0014] The map display device may further include an information viewing unit, as follows:
[0015] The information viewing unit is used to respond to an information viewing trigger operation on the location mark information corresponding to the target geographic entity object on the map, and display the entity association information and address information of the target geographic entity object in a target information format around the geographical location corresponding to the target geographic entity object. The target geographic entity object is any geographic entity object.
[0016] Optionally, in some embodiments of the present application, the map display device may further include a format conversion unit as follows:
[0017] The format conversion unit is used to convert the address information from a plain text format to an address format in response to a format setting operation on the address information;
[0018] The map display unit may include an identification subunit and an insertion display subunit, as follows:
[0019] The identification subunit is used to identify address information from the document content based on the address format in response to the map mode display operation on the document content;
[0020] The inserting display subunit is used to insert a display map display area into the document page according to the address information.
[0021] Optionally, in some embodiments of the present application, the document page further includes a pass attribute adding control; the document content includes object attribute information of each geographic entity object arranged in a preset order, and the object attribute information includes address information;
[0022] The map display device may further include a traffic attribute adding unit and a traffic attribute display unit, as follows:
[0023] The traffic attribute adding unit is used to determine every two adjacent geographic entity objects according to the preset order in response to the triggering operation of the traffic attribute adding control;
[0024] The access attribute display unit is used to display the access attribute information between every two adjacent geographic entity objects in the document page based on the address information of every two adjacent geographic entity objects.
[0025] Optionally, in some embodiments of the present application, the document page further includes a passage selection area, and the passage selection area includes a selection control corresponding to at least one candidate passage;
[0026] The map display device may further include an update display unit, as follows:
[0027] The update display unit is used to respond to the triggering operation of the selection control corresponding to the target passage mode, and update and display the passage attribute information between every two adjacent geographic entity objects in the document page based on the target passage mode, and the target passage mode is any candidate passage mode.
[0028] Optionally, in some embodiments of the present application, the document page further includes a transit mode selection control for each geographic entity object;
[0029] The map display device may also include a traffic mode selection unit, a traffic attribute determination unit, and a traffic attribute update unit, as follows:
[0030] The transit mode selection unit is configured to display a target transit mode selection area for the target geographic entity object in response to a triggering operation of a transit mode selection control for the target geographic entity object, wherein the target transit mode selection area includes a selection control corresponding to at least one candidate transit mode;
[0031] a traffic attribute determination unit, configured to determine, in response to a triggering operation of a selection control corresponding to a target traffic mode, target traffic attribute information of the target geographic entity object and the adjacent geographic entity object under the target traffic mode based on address information of the target geographic entity object and the adjacent geographic entity object, wherein the adjacent geographic entity object is a geographic entity object adjacent to the target geographic entity object;
[0032] The access attribute updating unit is used to update the access attribute information between the target geographic entity object and the adjacent geographic entity object in the document page based on the target access attribute information.
[0033] Optionally, in some embodiments of the present application, the document page further includes a sorting mode selection control under a target sorting strategy; the target sorting strategy is used to make the travel attribute information of the travel route corresponding to the re-sorted geographic entity object meet a preset condition;
[0034] The map display device may further include a sorting mode triggering unit, an arrangement order determining unit and a sorting updating unit, as follows:
[0035] The sorting mode triggering unit is used to respond to the triggering operation of the sorting mode selection control and determine, based on the target sorting strategy, a target travel route formed by connecting the geographical locations of the geographical entity objects, wherein the traffic attribute information of the target travel route meets a preset condition;
[0036] An arrangement order determination unit, used to determine a target arrangement order of each geographic entity object according to the travel order corresponding to each geographic entity object in the target travel route;
[0037] The sorting updating unit is used to update the sorting of the object attribute information corresponding to each geographic entity object in the document page based on the target sorting order, and update the access attribute information between every two adjacent geographic entity objects.
[0038] Optionally, in some embodiments of the present application, the target document is a shared document that supports simultaneous or non-simultaneous operations by at least two authorized objects, and the map mode display operation is an operation performed on the document content by any authorized object.
[0039] Optionally, in some embodiments of the present application, the page display unit may include a first display subunit, an editing subunit and a second display subunit, as follows:
[0040] The first display subunit is used to display an initial document page under a target content template, wherein the target content template is a template having a table structure;
[0041] An editing subunit, for editing information of geographic entity objects on the initial document page based on the target content template, so that object attribute information of each geographic entity object under the same dimension is located in the content area of the same list item in the table, and object attribute information under different dimensions is located in the content area of different list items;
[0042] The second display subunit is used to display the edited document page, the document content of the document page includes object attribute information of the edited geographic entity object in at least one dimension, and the object attribute information includes address information and entity association information in at least one dimension.
[0043] Optionally, in some embodiments of the present application, the map display unit may include a parsing subunit, an address recognition subunit, and a third display subunit, as follows:
[0044] The parsing subunit is used to parse the document content based on the table structure in response to the map mode display operation on the document content, so as to identify the target list item where the address information is located from each list item in the table;
[0045] An address identification subunit, used to identify address information in a content area corresponding to the target list item;
[0046] The third display subunit is used to insert a map display area into the document page based on the identified address information, and display a map corresponding to the target area in the map display area.
[0047] Optionally, in some embodiments of the present application, the document page further includes a pass attribute adding control; object attribute information corresponding to different geographic entity objects is located in different list rows in the table;
[0048] The map display device may further include a list item inserting unit, a determining unit and a filling unit, as follows:
[0049] The list item inserting unit is used to insert a list item corresponding to the pass attribute into the table based on the position of the list item corresponding to the address information in response to a triggering operation on the pass attribute adding control;
[0050] A determination unit, configured to determine the access attribute information between the geographic entity objects in every two adjacent list rows based on the address information of the geographic entity objects in every two adjacent list rows;
[0051] A filling unit is used to fill the access attribute information into the list item corresponding to the access attribute.
[0052] Optionally, in some embodiments of the present application, the map display device may further include a valid address display unit and an invalid address display unit, as follows:
[0053] The effective address display unit is used to display the address information in a preset format in the table when a geographical location corresponding to the address information is identified;
[0054] The invalid address display unit is used to display the invalid address prompt information corresponding to the address information in the table when the geographical location corresponding to the address information cannot be identified.
[0055] Optionally, in some embodiments of the present application, the sorting mode triggering unit may include a first selection subunit, a second selection subunit, a first determination subunit, an analysis subunit, and a second determination subunit, as follows:
[0056] The first selection subunit is used to select a starting geographic entity object from each geographic entity object based on the target sorting strategy;
[0057] A second selection subunit is used to select at least two candidate adjacent geographic entity objects of the starting geographic entity object from reference geographic entity objects according to the distribution information of the geographic location of each geographic entity object on the map, wherein the reference geographic entity object is a geographic entity object other than the starting geographic entity object;
[0058] A first determining subunit is used to determine, from each candidate adjacent geographic entity object, a target adjacent geographic entity object having a spatial adjacent relationship with the starting geographic entity object according to the travel distance between each candidate adjacent geographic entity object and the starting geographic entity object;
[0059] An analysis subunit, used for analyzing the position relationship between the target adjacent geographic entity object and other reference geographic entity objects, so as to obtain the spatial adjacent relationship between the geographic entity objects;
[0060] The second determination subunit is used to determine the travel order of each geographic entity object based on the spatial adjacent relationship between each geographic entity object, and obtain a target travel route formed by connecting the geographical locations of each geographic entity object.
[0061] Optionally, in some embodiments of the present application, the analysis subunit can be specifically used to take the target adjacent geographic entity object as a new starting geographic entity object; return to execute the step of selecting at least two candidate adjacent geographic entity objects of the starting geographic entity object from reference geographic entity objects according to the distribution information of the geographic location of each geographic entity object on the map, until the number of reference geographic entity objects is less than a preset number, thereby obtaining the spatial adjacent relationship between the geographic entity objects.
[0062] An electronic device provided in an embodiment of the present application includes a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the steps in the map display method provided in the embodiment of the present application.
[0063] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps in the map display method provided in the embodiment of the present application.
[0064] In addition, an embodiment of the present application also provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements the steps in the map display method provided in the embodiment of the present application.
[0065] The embodiment of the present application provides a map display method and related equipment, which can display a document page, wherein the document page includes the document content of the target document, and the document content includes address information corresponding to at least one geographic entity object; in response to the map mode display operation of the document content, a map display area is inserted into the document page, and a map corresponding to the target area is displayed in the map display area, wherein the target area is the area where the address information is located, and the map includes location mark information for marking the geographical location corresponding to each geographic entity object. The present application can convert the address information in the document content in the document page from text mode to map form for presentation, which not only improves the reading experience and efficiency of the text, but also does not require the user to manually input each address information into the electronic map application for query, which is easy to operate, and can also mark multiple locations in the map through location mark information, so that the presentation of each location is more intuitive and clear. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0067] Figure 1a is a schematic diagram of a scene of a map display method provided in an embodiment of the present application;
[0068] Figure 1b is a flowchart of a map display method provided in an embodiment of the present application;
[0069] Figure 1c It is a page schematic diagram of the map display method provided in the embodiment of the present application;
[0070] Figure 1d is another page schematic diagram of the map display method provided in the embodiment of the present application;
[0071] Figure 1e is another page schematic diagram of the map display method provided in the embodiment of the present application;
[0072] Figure 1f is another page schematic diagram of the map display method provided in the embodiment of the present application;
[0073] Figure 1g is another page schematic diagram of the map display method provided in the embodiment of the present application;
[0074] Figure 1h is another page schematic diagram of the map display method provided in the embodiment of the present application;
[0075] Figure 1i is another page schematic diagram of the map display method provided in the embodiment of the present application;
[0076] Figure 1j is a logic flow chart of the map display method provided in the embodiment of the present application;
[0077] Figure 2 is another flow chart of the map display method provided in the embodiment of the present application;
[0078] Figure 3 is a structural schematic diagram of a map display device provided in an embodiment of the present application;
[0079] Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0080] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0081] The embodiment of the present application provides a map display method and related equipment, and the related equipment may include a map display device, an electronic device, a computer-readable storage medium and a computer program product. The map display device may be integrated in an electronic device, and the electronic device may be a terminal or a server.
[0082] like Figure 1a As shown, a terminal and a server jointly execute a map display method as an example. The map display system provided in the embodiment of the present application includes a terminal 10 and a server 11, etc. The terminal 10 and the server 11 are connected via a network, such as a wired or wireless network connection, etc., wherein the map display device can be integrated in the terminal.
[0083] Among them, the terminal 10 can be used to: display a document page, the document page includes the document content of the target document, the document content includes address information corresponding to at least one geographic entity object; in response to the map mode display operation of the document content, insert a display map display area into the document page, and display a map corresponding to the target area in the map display area, the target area is the area where the address information is located, and the map includes location mark information for marking the geographical location corresponding to each geographic entity object. Among them, the terminal 10 can include a mobile phone, a smart TV, a tablet computer, a laptop computer, a smart car terminal, or a personal computer (PC, Personal Computer), etc. A client can also be set on the terminal 10, and the client can be an application client or a browser client, etc.
[0084] The server 11 can be used to: receive a map mode display instruction sent by the terminal 10, the map mode display instruction is an instruction generated based on the map mode display operation of the document content; based on the map mode display instruction, identify the address information from the document content, and determine the map corresponding to the target area where the address information is located, and send the map to the terminal 10, so that the terminal 10 displays the map in the map display area inserted in the document page. The server 11 can be a single server, or a server cluster or cloud server composed of multiple servers.
[0085] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.
[0086] This embodiment will be described from the perspective of a map display device, which may be integrated into an electronic device, such as a server or a terminal.
[0087] It is understandable that in the specific implementation of the present application, related data such as user information (such as address information) is involved. When the above embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0088] This embodiment can be applied to various scenarios such as cloud technology, artificial intelligence, smart transportation, and assisted driving.
[0089] like Figure 1b As shown, the specific process of the map display method can be as follows:
[0090] 101. Display a document page, where the document page includes document content of a target document, and the document content includes address information corresponding to at least one geographic entity object.
[0091] The target document may be of various document types, which are not specifically limited in this embodiment. The document types may include text documents, table documents, slide documents, collection tables, and flow charts. In a specific embodiment, the target document may be a table-type document. The document content in a table-type document is more easily structured.
[0092] In this embodiment, the document content of the target document can be displayed through the document application, and the document content can record the address information of multiple locations, and the address information can include geographic related information including specific address, postal code, administrative number, longitude and latitude, etc.
[0093] Specifically, the document content may include object attribute information of each geographic entity object in at least one dimension, and the object attribute information may include address information and entity association information in at least one dimension, wherein the entity association information may include dimensions such as store name and contact information.
[0094] In specific application scenarios, such as interview scenarios, geographic entity objects can be the locations of various businesses that the interviewer wants to interview. In current related technologies, the address information of each geographic entity object is input into a map application to determine the specific geographic location of each geographic entity object, and then the interview route is planned by the user, that is, the order of going to each location. This requires manual input of the specific address information of each location in the map application multiple times, which is cumbersome and time-consuming. In addition, the electronic map application only displays the location of a single location at a time, and the map display is not intuitive and clear enough, which results in the self-planned route being inaccurate.
[0095] This application can provide a method for dotting and presenting a map based on document content. Specifically, it can automatically identify and understand geographically relevant information including specific addresses, postal codes, administrative numbers, and longitude and latitude based on the information in the target document, and finally present it in the form of a map. The map dotting here specifically refers to location marking. This application can also convert the address information in the document into points marked on the map, and mark the geographical location of each geographical entity object through location marking information, which improves the reading experience and efficiency of the text, and can present each location intuitively and clearly, making it convenient for users to plan routes and helping to improve the accuracy of route planning.
[0096] Optionally, in this embodiment, the target document is a shared document that supports simultaneous or non-simultaneous operations by at least two authorized objects.
[0097] The shared document may be an online document that supports simultaneous or non-simultaneous operations by at least two authorized objects. The types of operations here may include viewing, editing, and map mode display operations, etc., which may be set according to actual conditions. For example, object A and object B may edit the document content in the shared document at the same time.
[0098] Among them, online documents refer to documents in the cloud, which usually have the characteristics of "online", "multi-person collaboration", "document editing", etc. Specifically, online documents are documents that can be edited online by users, collaborated by multiple users, and saved in real time in the cloud. They can be opened and edited using the front-end web page. Online documents can be displayed through HTML (Hypertext Markup Language) pages, and rely on the communication between the client and the server to synchronize the user's edited content. The types of online documents can be online Word documents, online Excel documents, online PPT documents, and online drawing documents.
[0099] When editing online documents, each user sends the document data to the cloud through the corresponding front end, and the cloud organizes and saves the document data sent by the front end. Online documents support multiple people editing documents online at the same time, making it easier for users to collect document data.
[0100] In one embodiment, the shared document can support viewing and editing on multiple types of devices, etc. For example, the shared document can support viewing and editing on devices such as a computer or a mobile terminal.
[0101] In one embodiment, the shared document can support multiple types of online Word, Excel, PPT, PDF, collection table, mind map, flow chart, etc. For example, the shared document can be a word (text) document, an excel (table) document, or a PPT (slide) document.
[0102] 102. In response to a map mode display operation on the document content, a map display area is inserted into the document page, and a map corresponding to a target area is displayed in the map display area, wherein the target area is the area where the address information is located, and the map includes location mark information for marking the geographical location corresponding to each geographic entity object.
[0103] Specifically, the document page also includes a map mode display control. The map mode display operation of the document content can be a trigger operation of the map mode display control in the target document by any object with operation authority. The trigger operation can be a click operation or a slide operation, etc. This embodiment does not limit this. By triggering the map mode display control, the address information in the target document can be converted into a map form for presentation. Specifically, a map display area can be embedded in the document page, and the map display area can include a map corresponding to the target area where each address information is located.
[0104] The target area may be a geographical region including the geographical locations of each geographical entity object.
[0105] Among them, the location marking information can be used to mark the geographical location of the geographical entity object in the map. The location marking information can be presented in the form of an arrow, and the arrow points to the geographical location of the geographical entity object; the location marking information can also be displayed in the form of a dotted star, specifically, a "star" pattern is marked on the geographical location of the geographical entity object. Through the location marking information of each geographical location, the location distribution information of the geographical location corresponding to each geographical entity object can be clearly presented. In some embodiments, the location marking information can also be used to plan the travel order for each geographical entity object.
[0106] Optionally, in this embodiment, the target document is a shared document that supports simultaneous or non-simultaneous operations by at least two authorized objects, and the map mode display operation is an operation performed on the document content by any authorized object.
[0107] The present application can share the instruction corresponding to the operation performed by the target operation object to objects within the target object range through a shared document, and the target object range includes objects with operation permissions for the shared document. The target operation object can be an object with operation permissions.
[0108] For example, when a target operation object with permission performs an editing operation on a shared document, the changes in page content during the editing process can be displayed not only on the document page of the document application used by the target operation object, but also on the document page of the document application used by other operation objects.
[0109] Optionally, in this embodiment, before the step of “inserting a map display area into the document page in response to the map mode display operation on the document content”, the following may also be included:
[0110] In response to a formatting operation on the address information, converting the address information from a plain text format to an address format;
[0111] The step of “inserting a map display area into the document page in response to a map mode display operation on the document content” may include:
[0112] In response to a map mode display operation on the document content, identifying address information from the document content based on the address format;
[0113] According to the address information, a map display area is inserted into the document page.
[0114] Optionally, the document page may include an address format setting control, and the format setting operation on the address information may specifically be a trigger operation on the address format setting control, and the trigger operation may be a click operation or a slide operation, etc.
[0115] Specifically, the target document can be a table-type document, and the address information of each geographic entity object can be in a column in the table. The format setting operation of the address information can be to select the column where the address information is located, and then click the address format setting control to set the address information to the address format, so as to facilitate the system to extract the address information from the document content.
[0116] Optionally, in this embodiment, the map display method may further include:
[0117] When a modification operation on the address information of the target geographic entity object in the document content is detected, the location mark information of the geographic location corresponding to the target geographic entity object in the map display area is updated in real time based on the modified address information.
[0118] The target geographic entity object may be any geographic entity object whose address information is modified.
[0119] Optionally, in this embodiment, the document content also includes entity association information of each geographic entity object;
[0120] The map display method may further include:
[0121] In response to an information viewing trigger operation on the location mark information corresponding to the target geographic entity object on the map, entity association information and address information of the target geographic entity object are displayed in a target information format around the geographic location corresponding to the target geographic entity object, and the target geographic entity object is any geographic entity object.
[0122] The information viewing trigger operation can be specifically set according to actual conditions, and this embodiment does not limit this. Specifically, the information viewing trigger operation can be an operation of hovering the mouse on the location mark information corresponding to the target geographic entity object.
[0123] The target information format may be an information card or other format.
[0124] In a specific embodiment, the identified address information can be converted to a map for display. Specifically, a map can be directly inserted on the right side of the document. The map can include the geographical location of each geographic entity object, and the geographical location of the geographic entity object is marked with location mark information. When the user hovers the mouse over the geographical location or location mark information of a geographic entity object, a floating information card of the geographic entity object can be displayed. The floating information card includes all the information of the geographic entity object in the document. If the user edits and modifies the information of the geographic entity object in the document at this time, the information in the floating information card of the point (i.e., the geographic entity object) will also change accordingly.
[0125] Optionally, in this embodiment, the target information format is an information card; the map display method may further include:
[0126] When a modification operation on the entity association information of the target geographic entity object in the document content is received, the entity association information in the information card corresponding to the target geographic entity object is updated and displayed.
[0127] For example, if a user modifies the entity association information of a geographic entity object in a document, the entity association information in the information card of the geographic entity object displayed on the map can be updated based on the modified entity association information; for example, the entity association information "store name" of a geographic entity object was originally "xx tea shop", and the store name "xx tea shop" was displayed in the information card of the geographic entity object on the map. When it is detected that the user has modified the "xx tea shop" in the document to "xx milk tea shop", the "xx tea shop" in the information card can be updated and displayed as "xx milk tea shop".
[0128] In a specific scenario, Figure 1c As shown, the document creation page of the document application is displayed. The document creation page may include document creation controls under various document types, such as document creation controls of online (text) documents, online forms, online slides, online collection tables, online mind maps, online flow charts and other document types. Users can choose to create target documents of corresponding document types according to actual needs; for example, users can click the document creation control corresponding to "online forms" to create a target document of the form type and fill in the content.
[0129] In addition, the document creation page can also include a list of recently viewed documents, such as Figure 1cAs shown, the recently browsed document list may include documents such as "Untitled Flowchart" and "Video Editing Script Template", among which the last browsed time and the creator of the document may also be displayed. If the user has opened the target document within the historical time period, the target document may be opened again in the recently browsed document list for editing. The document creation page may also support functions such as file search and importing local files.
[0130] Specifically, in a scenario where multiple location objects are investigated, the user can edit the target document according to the investigated objects, such as Figure 1d As shown in the figure, it can be the target document after the user completes the filling. The document content includes the address information, store name, and contact information of 9 geographic entity objects. A row in the table represents a geographic entity object. The object attribute information of the three different dimensions of store name, contact information, and address information corresponds to different columns. Through the document page, the user can set the format of the address information to the address format; for example, refer to Figure 1d , the document page can include an icon corresponding to "data". The user can first select the address-related column and then click the icon to display the data setting area on the document page. The data setting area can include controls such as data validation, highlight duplicate values, other conditional formats, manage conditional formats, and smart column sorting. Based on the triggering operation of the data validation control, the data special format setting area can be displayed on the document page. The data special format setting area can include format setting controls such as check box, address, progress, identity, mobile phone number, phone number, email address, number, text content / length, time date, temperature, etc. The user can define the address information in the address-related column as "address" format by clicking the address format setting control.
[0131] After setting the "Address" format, refer to Figure 1e , users can click "Show" - "Show in Map Mode" on the document page to convert the address information in the table into a map. Figure 1f As shown, the address information in the table will be displayed in the form of dotted stars, that is, the geographical location of each geographic entity object is marked with five-pointed star position marking information. In some embodiments, when the user hovers the mouse over this point (the five-pointed star corresponding to a geographic entity object), the entire row of information corresponding to this point in the table will be displayed in the form of an information card, such as Figure 1f The information card on the left side shows the information of the geographic entity object in the second row of the table: "xx milk tea shop, Lao Li 133xxx, District A - No. 333, xx Avenue", and the information card on the right side shows the information of the geographic entity object in the third row of the table: "xx leather care shop, Xiaohong 133xxx, District A - No. 3, Lane 4, xx Community".
[0132] Specifically, the user triggers the "display" control in the document page of the terminal (such as a click operation), and a display mode selection area is displayed in the document page. The display mode selection area may include cell pictures, floating pictures, icons, links, display in map mode, pivot tables, insert rows and columns, insert cells and other controls. In response to the user's triggering operation on the control corresponding to "display in map mode", each address information identified based on the address format can be converted into a map for display. Specifically, a map display area can be inserted in the document page, and the map display area includes a map corresponding to the target area, and the map includes location mark information for marking the geographical location of each address information.
[0133] Optionally, in this embodiment, the map display method may further include:
[0134] In response to a zoom-in viewing operation on the map, the map is zoomed in and displayed in the map display area with the touch point of the zoom-in viewing operation as the center.
[0135] The zoomed-in viewing operation of the map may be a two-finger outward sliding operation on the map in the map display area, and this embodiment does not impose any limitation on this.
[0136] Optionally, in this embodiment, the map display method may further include:
[0137] When a moving operation on a map displayed in a map display area is detected, a map corresponding to a moving track of the moving operation is loaded and displayed in the map display area.
[0138] The moving operation may be a sliding operation on the map.
[0139] Optionally, in this embodiment, the step of “inserting a map display area into the document page in response to a map mode display operation on the document content” may include:
[0140] In response to a map mode display operation on the document content, calling a map application associated with the document application;
[0141] identifying address information in the document content by the map application;
[0142] Determine a target area where the address information is located from preset geographical areas;
[0143] Based on the map corresponding to the target area, a map display area is embedded in the document page.
[0144] The preset geographical area can be set according to the actual situation, for example, it can be a geographical area corresponding to a city, or it can be a geographical area corresponding to a province, and this embodiment does not limit this. The preset geographical area can be divided into multiple areas. In some embodiments, a region containing all or most of the address information can be determined from the multiple areas obtained by division, and the region is determined as the target area where the address information is located. The majority here can refer to a proportion greater than the preset proportion.
[0145] In this embodiment, the text-formatted address information can be understood and converted. Specifically, the map display system of the present application can identify the coordinate system corresponding to the address information, and then, based on the coordinate system, find the geographical location corresponding to the address information, so as to determine the target area where the address information is located according to the geographical location.
[0146] The coordinate systems here can include WGS84 and GCJ02. WGS84 is a geodetic coordinate system and is also the coordinate system used by the currently widely used GPS global satellite positioning system. GCJ02 is a coordinate system of the geographic information system formulated by the National Administration of Surveying, Mapping and Geoinformation, which is an encrypted coordinate system of the WGS84 coordinate system.
[0147] Optionally, in this embodiment, the document page further includes a pass attribute adding control; the document content includes object attribute information of each geographic entity object arranged in a preset order, and the object attribute information includes address information;
[0148] The map display method may further include:
[0149] In response to the triggering operation of the traffic attribute adding control, every two adjacent geographic entity objects are determined according to the preset order;
[0150] Based on the address information of every two adjacent geographic entity objects, the access attribute information between the every two adjacent geographic entity objects is displayed in the document page.
[0151] The triggering operation for adding a control to a traffic attribute may be a click operation or a sliding operation on the control to add a traffic attribute.
[0152] The traffic attribute information may be the traffic time, traffic speed, traffic distance, traffic fee, traffic congestion, etc. This embodiment does not limit this and can be set according to actual conditions. Specifically, the traffic attribute information is the communication attribute information between the geographical locations corresponding to the geographical entity objects in two adjacent rows in the table document. For example, the traffic attribute information may be the traffic time between two locations.
[0153] Specifically, the target document may be a table-type document, and the preset order may refer to the order of rows in which the object attribute information of each geographic entity object is located in the table. Geographic entity objects in upper and lower rows may be determined as adjacent geographic entity objects.
[0154] In some embodiments, the travel time limited to a certain mode of travel selected by the user can be displayed; in other embodiments, the travel time between geographic entity objects can be calculated based on the mode of travel preset by the system.
[0155] Optionally, in this embodiment, the document page further includes a passage selection area, and the passage selection area includes a selection control corresponding to at least one candidate passage;
[0156] The map display method may further include:
[0157] In response to a triggering operation on a selection control corresponding to a target transit mode, the transit attribute information between every two adjacent geographic entity objects in the document page is updated and displayed based on the target transit mode, where the target transit mode is any candidate transit mode.
[0158] The candidate modes of transportation may include walking, bus, subway, cycling, driving, etc. The target mode of transportation may be one of the candidate modes of transportation, and the triggering operation of the selection control corresponding to the target mode of transportation may specifically be a click operation of the selection control corresponding to the target mode of transportation.
[0159] Specifically, the document page may include a general control for selecting a mode of travel. Based on a triggering operation (such as a click operation or a sliding operation, etc.) on the general control for selecting a mode of travel, a mode of travel selection area may be displayed in the document page.
[0160] In this embodiment, a traffic mode setting control for all geographic entity objects (ie, the above-mentioned traffic mode selection master control) may be provided, or a traffic mode may be set separately for each geographic entity object.
[0161] Optionally, in this embodiment, the document page further includes a travel mode selection control for each geographic entity object;
[0162] The map display method may further include:
[0163] In response to a triggering operation of a transit mode selection control for a target geographic entity object, displaying a target transit mode selection area for the target geographic entity object, the target transit mode selection area including a selection control corresponding to at least one candidate transit mode;
[0164] In response to a triggering operation on a selection control corresponding to a target transit mode, target transit attribute information of the target geographic entity object and the adjacent geographic entity object under the target transit mode is determined based on address information of the target geographic entity object and the adjacent geographic entity object, wherein the adjacent geographic entity object is a geographic entity object adjacent to the target geographic entity object;
[0165] Based on the target traffic attribute information, the traffic attribute information between the target geographic entity object and the adjacent geographic entity object in the document page is updated and displayed.
[0166] The target geographic entity object may be any geographic entity object, and the triggering operation of the access mode selection control of the target geographic entity object may be a click operation or a slide operation of the access mode selection control of the target geographic entity object. Specifically, when the target document is a table-type document, the access mode selection control of the target geographic entity object may be located at the lower right corner of the cell where the access time of the target geographic entity object is located.
[0167] The adjacent geographic entity object and the target geographic entity object are adjacent to each other in terms of a preset order of the geographic entity objects in the document. If the target document is a table document, the adjacent geographic entity object may specifically be a geographic entity object in the next row of the row where the target geographic entity object is located.
[0168] Among them, the step of "updating the access attribute information between the target geographic entity object and the adjacent geographic entity object in the document page based on the target access attribute information" may include: updating the access attribute information between the target geographic entity object and the adjacent geographic entity object in the document page to the target access attribute information under the target access mode.
[0169] Optionally, in this embodiment, the document page further includes a sorting mode selection control under a target sorting strategy; the target sorting strategy is used to make the travel attribute information of the travel route corresponding to the re-sorted geographic entity object meet a preset condition;
[0170] The map display method may further include:
[0171] In response to a triggering operation on the sorting mode selection control, based on the target sorting strategy, a target travel route formed by connecting the geographical locations of the geographical entity objects is determined, and the traffic attribute information of the target travel route meets a preset condition;
[0172] Determine the target arrangement order of each geographic entity object according to the travel order corresponding to each geographic entity object in the target travel route;
[0173] Based on the target sorting order, the sorting of the object attribute information corresponding to each geographic entity object in the document page is updated and displayed, and the access attribute information between every two adjacent geographic entity objects is updated and displayed.
[0174] The triggering operation of the sorting mode selection control may be a click operation or a sliding operation on the sorting mode selection control.
[0175] Among them, the target sorting strategy is a strategy to make the travel attribute information of the travel route corresponding to the re-sorted geographic entity objects meet the preset conditions; specifically, the target sorting strategy is a strategy to make the travel time of the travel route composed of the sorted geographic entity objects meet the preset time conditions; the preset time condition can be that the travel time corresponding to the travel route is the shortest duration, that is, the target sorting strategy is a strategy to select the geographic entity objects in the target document to sort by "shortest duration", and the "shortest duration" sorting means that the travel route composed of the arrangement order of the geographic entity objects in the target document has the shortest travel time, wherein the arrangement order of the geographic entity objects in the target document is the corresponding travel order. In response to the "shortest duration" sorting selected by the user terminal, the travel order corresponding to the geographical location of each geographic entity object can be determined based on the sorting strategy corresponding to the "shortest duration", and the travel duration of the travel route constituted by the travel order satisfies the "shortest duration", that is, compared with other travel orders, the travel duration of the travel route constituted by the travel order is the shortest; then, based on the travel order of each geographic entity object in the determined travel route, the arrangement order of the geographic entity objects in the table document is adjusted so that the arrangement order of the geographic entity objects in the table document is consistent with the travel order, the travel time between two adjacent geographic entity objects after the order adjustment in the table document is calculated, and the calculated new travel time is filled in the column corresponding to the "travel time".
[0176] Among them, the travel order corresponding to each geographic entity object in the target travel route is the target arrangement order of the object attribute information of each geographic entity object in the target document. Based on the target arrangement order, the arrangement order of the object attribute information corresponding to each geographic entity object in the document page is updated, so that the arrangement order of the object attribute information of each geographic entity object after the update is consistent with the travel order, and based on the geographic entity objects after the order is adjusted, the access attribute information between adjacent geographic entity objects is recalculated, so as to update the access attribute information between every two adjacent geographic entity objects.
[0177] Optionally, in this embodiment, the step of “determining a target travel route formed by connecting the geographical locations of the geographical entity objects based on the target sorting strategy” may include:
[0178] Based on the target sorting strategy, selecting a starting geographic entity object from each geographic entity object;
[0179] According to the distribution information of the geographical location of each geographical entity object on the map, at least two candidate adjacent geographical entity objects of the starting geographical entity object are selected from the reference geographical entity objects, wherein the reference geographical entity objects are geographical entity objects other than the starting geographical entity object;
[0180] According to the travel distance between each candidate adjacent geographic entity object and the starting geographic entity object, determine a target adjacent geographic entity object having a spatial adjacent relationship with the starting geographic entity object from each candidate adjacent geographic entity object;
[0181] Performing position relationship analysis on the target adjacent geographic entity objects and other reference geographic entity objects to obtain spatial adjacent relationships between the geographic entity objects;
[0182] Based on the spatial adjacency relationship between the geographic entity objects, the travel order of the geographic entity objects is determined, and a target travel route formed by connecting the geographical locations of the geographic entity objects is obtained.
[0183] The selection of the starting geographic entity object may be arbitrary, or may be the first geographic entity object in the target document. For example, if the target document is a table document, the starting geographic entity object may be the geographic entity object in the first row of the table.
[0184] Among them, the step of "selecting at least two candidate adjacent geographic entity objects of the starting geographic entity object from the reference geographic entity objects according to the distribution information of the geographic location of each geographic entity object on the map" may specifically include: according to the distribution information of the geographic location of each geographic entity object on the map, determining the reference geographic entity objects whose travel distance with the starting geographic entity object meets the preset distance condition as candidate adjacent geographic entity objects.
[0185] Among them, in some embodiments, the preset distance condition may be that the travel distance is within a preset distance range, and the preset distance range can be set according to actual conditions; in other embodiments, the preset distance condition may be that the travel distance between the reference geographic entity object and the starting geographic entity object satisfies the first n smallest travel distances.
[0186] The step of “determining, from among the candidate adjacent geographic entity objects, a target adjacent geographic entity object having a spatial adjacent relationship with the starting geographic entity object according to the travel distance between each candidate adjacent geographic entity object and the starting geographic entity object” may include:
[0187] Calculating the travel distance between each candidate adjacent geographic entity object and the starting geographic entity object;
[0188] The candidate adjacent geographic entity object with the shortest travel distance is determined as the target adjacent geographic entity object having a spatial adjacent relationship with the starting geographic entity object.
[0189] Specifically, the address information of each candidate adjacent geographic entity object and the starting geographic entity object may be input into a map application, thereby obtaining the travel distance between the two.
[0190] Among them, the step of "determining the travel order of each geographic entity object based on the spatial adjacent relationship between each geographic entity object" may include: taking the initial starting geographic entity object as the starting point of the travel, and arranging each geographic entity object according to the spatial adjacent relationship between each geographic entity object, so that after the arrangement, there is a spatial adjacent relationship between two adjacent geographic entity objects, thereby obtaining the travel order of each geographic entity object.
[0191] Optionally, in this embodiment, the step of “performing positional relationship analysis on the target adjacent geographic entity objects and other reference geographic entity objects to obtain spatial adjacent relationships between the geographic entity objects” may include:
[0192] Taking the target adjacent geographic entity object as a new starting geographic entity object;
[0193] Return to the step of selecting at least two candidate adjacent geographic entity objects of the starting geographic entity object from the reference geographic entity objects according to the distribution information of the geographic location of each geographic entity object on the map, until the number of reference geographic entity objects is less than a preset number, thereby obtaining the spatial adjacent relationship between the geographic entity objects.
[0194] The preset number may be set based on actual conditions, for example, may be set to a positive integer of 1.
[0195] In a specific embodiment, in order to improve operating efficiency, the background of the document application can first determine the starting geographic entity object from various geographic entity objects, and then select three points closest to the geographic entity object according to the proximity distance on the map to calculate the travel distance, thereby obtaining the target adjacent geographic entity object of the starting geographic entity object, and then use this method to obtain the target adjacent geographic entity object of each geographic entity object one by one, and finally determine the travel order to each location, which can be regarded as the travel order under the shortest time. Based on the travel order, the order of the table is automatically adjusted, and finally the order of each location displayed in the table is the final overall travel plan.
[0196] For example, there are 10 geographic entity objects A1-A10 (regarded as 10 points). First, select a point. The selection method of the point can be arbitrary. For example, A1 can be selected as the initial starting geographic entity object. According to the distribution of points on the map, select the three points closest to A1, such as A3, A6, and A10. Then calculate the distance between these three points and A1, and the point closest to A1 is used as the next point of A1. For example, the closest point is A10. Then, select the three points closest to A10 from the remaining points (A2-A9). Like A1, get the next point of A10. The other points are also used in this way, so as to get the travel order: A1, A10... Finally, the travel time can be calculated according to the addresses of two adjacent points in the determined travel order.
[0197] In a specific scenario, the target document is a table document, and the user can add a column of travel time in the table, such as Figure 1g As shown, the user can select the address-related column and right-click the mouse to display the control corresponding to "Insert travel time on the right". Based on the click of the "Insert travel time on the right" control, a new column can be inserted to the right of the address-related column. The newly inserted column is the column corresponding to "travel time". After inserting the new column, the system can also automatically calculate the travel time between two adjacent rows and fill it into the corresponding cell of the column, as shown in the figure below. Figure 1h shown.
[0198] In addition, users can also choose commuting methods (such as driving, public transportation, cycling, walking, etc.), such as Figure 1i As shown in , you can select the corresponding commuting mode by checking the corresponding commuting mode selection control. Based on the commuting mode selected by the user, the system can automatically display the travel distance between the two rows. Figure 1i As shown, a "sort by shortest duration" control can also be provided. By turning on this control, the system will adjust the order of each geographic entity object in the table so that each geographic entity object is displayed in the order of "shortest duration". The specific solution can refer to the description of the above embodiment, which will not be repeated here.
[0199] Optionally, in this embodiment, the step of “displaying the document page” may include:
[0200] Displaying an initial document page under a target content template, wherein the target content template is a template having a table structure;
[0201] Based on the target content template, editing the information of the geographic entity objects on the initial document page so that the object attribute information of each geographic entity object under the same dimension is located in the content area of the same list item in the table, and the object attribute information under different dimensions is located in the content area of different list items;
[0202] The edited document page is displayed, wherein the document content of the document page includes object attribute information of the edited geographic entity object in at least one dimension, wherein the object attribute information includes address information and entity association information in at least one dimension.
[0203] The initial document page may be an unedited document page or a document page with some contents edited.
[0204] Among them, template refers to the fixed and standardized structure of a thing. Here, it specifically refers to the information presentation layer, that is, the structured information is visually presented to achieve the defined display rules. The target template content provides a reference style for filling in, which can be used to prompt users for the content to be filled in. Specifically, the target template content can refer to the table structure information, and can also include the filling categories corresponding to the list items.
[0205] Each list item corresponds to a column, and the list item may specifically be a category of content that needs to be filled in the target document, for example, categories such as store name and contact information in the document.
[0206] Specifically, the document content may include object attribute information of each geographic entity object in at least one dimension, and the object attribute information may include address information and entity association information in at least one dimension, wherein the entity association information may include dimensions such as store name and contact information.
[0207] The object attribute information of each dimension of the geographic entity object can be stored in a table row and column format. The document content of the target document under the table structure is a structured text, which is a line unit. A line of data represents the information of an entity, and the attributes of each line of data are the same.
[0208] Optionally, in this embodiment, the step of “inserting a map display area into the document page in response to a map mode display operation on the document content, and displaying a map corresponding to the target area in the map display area” may include:
[0209] In response to the map mode display operation of the document content, the document content is parsed based on the table structure to identify the target list item where the address information is located from each list item in the table;
[0210] Identifying address information in a content area corresponding to the target list item;
[0211] Based on the identified address information, a map display area is inserted into the document page, and a map corresponding to the target area is displayed in the map display area.
[0212] Optionally, in this embodiment, the document page further includes a pass attribute adding control; object attribute information corresponding to different geographic entity objects is located in different list rows in the table;
[0213] The map display method may further include:
[0214] In response to a triggering operation of adding a control to the access attribute, inserting a list item corresponding to the access attribute into the table based on a position of the list item corresponding to the address information;
[0215] Determine the access attribute information between the geographic entity objects in every two adjacent list rows based on the address information of the geographic entity objects in every two adjacent list rows;
[0216] Fill the access attribute information into the list item corresponding to the access attribute.
[0217] The triggering operation of adding the access attribute control may be a click or a slide operation on the access attribute adding control, etc. Based on the triggering operation of adding the access attribute control, a column corresponding to the access attribute may be inserted on the right side of the list item corresponding to the address information.
[0218] The accessibility attributes of each row of locations are specifically relative to the geographical locations of the next row of locations. For example, the accessibility attributes of the first row are specifically the accessibility attributes between the geographical locations of the first row and the geographical locations of the second row, and the accessibility attributes of the second row are specifically the accessibility attributes between the geographical locations of the second row and the geographical locations of the third row.
[0219] Optionally, in this embodiment, after the step of “identifying the address information in the content area corresponding to the target list item”, the following may also be included:
[0220] When a geographical location corresponding to the address information is identified, displaying the address information in a preset style in the table;
[0221] When the geographical location corresponding to the address information cannot be identified, invalid address prompt information corresponding to the address information is displayed in the table.
[0222] The preset style can be set according to actual conditions, for example, the preset style can be a character style, that is, a font style, and specifically a blue font style. When a geographical location corresponding to the address information is identified, it means that the address information has a matching geographical location and the address information is valid, so the address information can be displayed in a blue font style in the table.
[0223] When the geographical location corresponding to the address information cannot be identified, it means that there is no matching geographical location for the address information, and the address information is invalid. Invalid address prompt information corresponding to the address information can be displayed in the table. The invalid address prompt information can specifically be prompt information such as "the address cannot be found". In some embodiments, another column can be inserted to the right of the column where the target list item is located to illustrate the "address validity". When the geographical location corresponding to a certain address information cannot be identified, "the address cannot be found" can be displayed in the cell corresponding to the intersection of the row where the address information is located and the newly inserted column.
[0224] Specifically, the document application can call the API (Application Programming Interface) of a third-party map application and input fields such as address information into the map application. If the correct geographic location information is returned, the address information is directly displayed in the form in blue characters. If the corresponding geographic location is not found, a prompt message "The address cannot be found" is displayed.
[0225] like Figure 1j The following is a logic flow chart of the technical implementation of the map display method of the present application, which is specifically described as follows:
[0226] The user can open the target document through the terminal and fill in the target document, which can be an online form. After filling and editing the target document, the document content of the target document can be obtained. The document content can include object attribute information of each geographic entity object in at least one dimension. The object attribute information can include address information. Specifically, the object attribute information of different dimensions is filled in different columns in the table, that is, different columns, and each geographic entity object corresponds to a row in the table. The user can select the address-related column, that is, the column where the address information is located, and define it as the "address" format. Based on the definition operation, the terminal can transmit the information in the "address" format to the background of the document application. The background can understand the document content in a structured manner based on the "address" format, identify the address information, and call the associated map application to input the identified address information into the map application in turn to determine the geographical location of the address information and the target area where it is located. The user triggers the "Display" control in the document page of the terminal, and a display mode selection area is displayed in the document page, wherein the display mode selection area includes an icon corresponding to "Display in map mode". In response to the user's triggering operation on the icon corresponding to "Display in map mode", a map mode display instruction is transmitted to the background. In response to the map mode display instruction, the background displays the information in the document in the form of a map based on the geographical location of each address information and the target area where it is located, and transmits the corresponding information to the user terminal, so that the user can view the dot information on the map after the address information in the document is converted. Specifically, a map display area can be inserted in the document page, and the map display area includes a map corresponding to the target area, and the map includes position mark information for marking the geographical location of each address information.
[0227] In addition, when the user modifies the content or order of the content in the table, the points on the map will also change in real time. For example, if the user modifies the address information of a geographic entity object in the table, the location mark information of the geographic location corresponding to the geographic entity object can be updated based on the modified address information. For another example, if the user modifies and adjusts the arrangement order of the geographic entity objects in the table, the object table position in the object attribute information of the geographic entity object displayed in the map can be updated. The object table position represents the position of the object attribute information of the geographic entity object in the table; for example, the object attribute information of a geographic entity object was originally in the first row of the table. After the order is adjusted, the object attribute information of the geographic entity object is in the tenth row of the table. Then the object table position in the information card of the geographic entity object in the map can be updated from the first row to the tenth row. For example, if the user modifies the entity association information of a geographic entity object in a table, the entity association information in the information card of the geographic entity object displayed on the map can be updated based on the modified entity association information; for example, the entity association information "roll name" of a geographic entity object was originally "xx tea shop", and the store name "xx tea shop" was displayed in the information card of the geographic entity object in the map. When it is detected that the user has modified the "xx tea shop" in the table to "xx milk tea shop", the "xx tea shop" in the information card can be updated and displayed as "xx milk tea shop".
[0228] Specifically, the user can also add a new column "travel time" to the table. Specifically, a new column can be inserted to the right of the "address" related column. The background of the document application automatically calculates the corresponding travel time between the address information of the geographic entity objects in two adjacent rows in the table, and returns the calculated travel time to the user terminal. The user terminal fills the travel time into the newly inserted column.
[0229] Among them, the user can also select the geographic entity objects in the table to be sorted by "shortest duration". Specifically, the "shortest duration" sorting means that the travel route formed by the arrangement order of the geographic entity objects in the table has the shortest travel duration, wherein the arrangement order of the geographic entity objects in the table is the corresponding travel order. In response to the "shortest duration" sorting selected by the user terminal, the background system performs calculations again, and based on the sorting strategy corresponding to the "shortest duration", determines the travel sequence corresponding to the geographical location of each geographic entity object, and the travel duration of the travel route formed by this travel sequence meets the "shortest duration"; then, based on the travel sequence of each geographic entity object in the determined travel route, adjusts the arrangement order of the geographic entity objects in the table so that the arrangement order of the geographic entity objects in the table and the travel sequence are consistent, calculates the travel time between two adjacent geographic entity objects after the order adjustment in the table, and fills the calculated new travel time into the column corresponding to the "travel time".
[0230] Specifically, the calculation of the above map can be based on the API of a third-party map application associated with the document application.
[0231] This application can convert the address information in the online document into a map for presentation. Specifically, the address information is structured so that the system can automatically identify the address and present it on the map, which improves the text reading efficiency and reading experience. In addition, it also takes advantage of the fact that online documents can be collaborated by multiple people and modified in real time, which improves communication efficiency.
[0232] As can be seen from the above, this embodiment can display a document page, the document page includes the document content of the target document, the document content includes address information corresponding to at least one geographic entity object; in response to the map mode display operation of the document content, a map display area is inserted into the document page, and a map corresponding to the target area is displayed in the map display area, the target area is the area where the address information is located, and the map includes location mark information for marking the geographical location corresponding to each geographic entity object. The present application can convert the address information in the document content in the document page from text mode to a map for presentation, which not only improves the reading experience and efficiency of the text, but also does not require the user to manually input each address information into the electronic map application for query, which is easy to operate, and multiple locations can be marked in the map through location mark information, making the presentation of each location more intuitive and clear.
[0233] According to the method described in the previous embodiment, the map display device will be integrated into a terminal as an example for further detailed description.
[0234] The present application embodiment provides a map display method, such as Figure 2 As shown, the specific process of the map display method can be as follows:
[0235] 201. A terminal displays a document page, where the document page includes document content of a target document, and the document content includes address information corresponding to at least one geographic entity object.
[0236] In this embodiment, the document content of the target document can be displayed through the document application, and the document content can record the address information of multiple locations, and the address information can include geographic related information including specific address, postal code, administrative number, longitude and latitude, etc.
[0237] Specifically, the document content may include object attribute information of each geographic entity object in at least one dimension, and the object attribute information may include address information and entity association information in at least one dimension, wherein the entity association information may include dimensions such as store name and contact information.
[0238] Optionally, in this embodiment, the target document is a shared document that supports simultaneous or non-simultaneous operations by at least two authorized objects.
[0239] 202. In response to a format setting operation on the address information, the terminal converts the address information from a plain text format into an address format.
[0240] Specifically, the target document can be a table-type document, and the address information of each geographic entity object can be in a column in the table. The format setting operation of the address information can be to select the column where the address information is located, and then click the address format setting control to set the address information to the address format, so as to facilitate the system to extract the address information from the document content.
[0241] 203. In response to the map mode display operation on the document content, the terminal identifies address information from the document content based on the address format.
[0242] Optionally, in this embodiment, the target document is a shared document that supports simultaneous or non-simultaneous operations by at least two authorized objects, and the map mode display operation is an operation performed on the document content by any authorized object.
[0243] 204. The terminal inserts a map display area in the document page according to the address information, and displays a map corresponding to the target area where the address information is located in the map display area, wherein the map includes location marking information for marking the geographical location corresponding to each geographical entity object.
[0244] Among them, the location marking information can be used to mark the geographical location of the geographical entity object in the map. The location marking information can be presented in the form of an arrow, and the arrow points to the geographical location of the geographical entity object; the location marking information can also be displayed in the form of a dotted star, specifically, a "star" pattern is marked on the geographical location of the geographical entity object. Through the location marking information of each geographical location, the location distribution information of the geographical location corresponding to each geographical entity object can be clearly presented. In some embodiments, the location marking information can also be used to plan the travel order for each geographical entity object.
[0245] Optionally, in this embodiment, the document content also includes entity association information of each geographic entity object;
[0246] The map display method may further include:
[0247] In response to an information viewing trigger operation on the location mark information corresponding to the target geographic entity object on the map, entity association information and address information of the target geographic entity object are displayed in a target information format around the geographic location corresponding to the target geographic entity object, and the target geographic entity object is any geographic entity object.
[0248] The information viewing trigger operation can be specifically set according to actual conditions, and this embodiment does not limit this. Specifically, the information viewing trigger operation can be an operation of hovering the mouse on the location mark information corresponding to the target geographic entity object.
[0249] The target information format may be an information card or other format.
[0250] Optionally, in this embodiment, the target information format is an information card; the map display method may further include:
[0251] When a modification operation on the entity association information of the target geographic entity object in the document content is received, the entity association information in the information card corresponding to the target geographic entity object is updated and displayed.
[0252] Optionally, in this embodiment, the document page further includes a pass attribute adding control; the document content includes object attribute information of each geographic entity object arranged in a preset order, and the object attribute information includes address information;
[0253] The map display method may further include:
[0254] In response to the triggering operation of the traffic attribute adding control, every two adjacent geographic entity objects are determined according to the preset order;
[0255] Based on the address information of every two adjacent geographic entity objects, the access attribute information between the every two adjacent geographic entity objects is displayed in the document page.
[0256] The triggering operation for adding a control to a traffic attribute may be a click operation or a sliding operation on the control to add a traffic attribute.
[0257] The traffic attribute information may be the traffic time, traffic speed, traffic distance, traffic fee, traffic congestion, etc. This embodiment does not limit this and can be set according to actual conditions. Specifically, the traffic attribute information is the communication attribute information between the geographical locations corresponding to the geographical entity objects in two adjacent rows in the table document. For example, the traffic attribute information may be the traffic time between two locations.
[0258] Specifically, the target document may be a table-type document, and the preset order may refer to the order of rows in which the object attribute information of each geographic entity object is located in the table. Geographic entity objects in upper and lower rows may be determined as adjacent geographic entity objects.
[0259] Optionally, in this embodiment, the document page further includes a sorting mode selection control under a target sorting strategy; the target sorting strategy is used to make the travel attribute information of the travel route corresponding to the re-sorted geographic entity object meet a preset condition;
[0260] The map display method may further include:
[0261] In response to a triggering operation on the sorting mode selection control, based on the target sorting strategy, a target travel route formed by connecting the geographical locations of the geographical entity objects is determined, and the traffic attribute information of the target travel route meets a preset condition;
[0262] Determine the target arrangement order of each geographic entity object according to the travel order corresponding to each geographic entity object in the target travel route;
[0263] Based on the target sorting order, the sorting of the object attribute information corresponding to each geographic entity object in the document page is updated and displayed, and the access attribute information between every two adjacent geographic entity objects is updated and displayed.
[0264] Among them, the target sorting strategy is a strategy to make the travel attribute information of the travel route corresponding to the re-sorted geographic entity objects meet the preset conditions; specifically, the target sorting strategy is a strategy to make the travel time of the travel route composed of the sorted geographic entity objects meet the preset time conditions; the preset time condition can be that the travel time corresponding to the travel route is the shortest duration, that is, the target sorting strategy is a strategy to select the geographic entity objects in the target document to sort by "shortest duration", and the "shortest duration" sorting means that the travel route composed of the arrangement order of the geographic entity objects in the target document has the shortest travel time, wherein the arrangement order of the geographic entity objects in the target document is the corresponding travel order. In response to the "shortest duration" sorting selected by the user terminal, the travel order corresponding to the geographical location of each geographic entity object can be determined based on the sorting strategy corresponding to the "shortest duration", and the travel duration of the travel route constituted by the travel order satisfies the "shortest duration", that is, compared with other travel orders, the travel duration of the travel route constituted by the travel order is the shortest; then, based on the travel order of each geographic entity object in the determined travel route, the arrangement order of the geographic entity objects in the table document is adjusted so that the arrangement order of the geographic entity objects in the table document is consistent with the travel order, the travel time between two adjacent geographic entity objects after the order adjustment in the table document is calculated, and the calculated new travel time is filled in the column corresponding to the "travel time".
[0265] Among them, the travel order corresponding to each geographic entity object in the target travel route is the target arrangement order of the object attribute information of each geographic entity object in the target document. Based on the target arrangement order, the arrangement order of the object attribute information corresponding to each geographic entity object in the document page is updated, so that the arrangement order of the object attribute information of each geographic entity object after the update is consistent with the travel order, and based on the geographic entity objects after the order is adjusted, the access attribute information between adjacent geographic entity objects is recalculated, so as to update the access attribute information between every two adjacent geographic entity objects.
[0266] Optionally, in this embodiment, the step of “determining a target travel route formed by connecting the geographical locations of the geographical entity objects based on the target sorting strategy” may include:
[0267] Based on the target sorting strategy, selecting a starting geographic entity object from each geographic entity object;
[0268] According to the distribution information of the geographical location of each geographical entity object on the map, at least two candidate adjacent geographical entity objects of the starting geographical entity object are selected from the reference geographical entity objects, wherein the reference geographical entity objects are geographical entity objects other than the starting geographical entity object;
[0269] According to the travel distance between each candidate adjacent geographic entity object and the starting geographic entity object, determine a target adjacent geographic entity object having a spatial adjacent relationship with the starting geographic entity object from each candidate adjacent geographic entity object;
[0270] Performing position relationship analysis on the target adjacent geographic entity objects and other reference geographic entity objects to obtain spatial adjacent relationships between the geographic entity objects;
[0271] Based on the spatial adjacency relationship between the geographic entity objects, the travel order of the geographic entity objects is determined, and a target travel route formed by connecting the geographical locations of the geographic entity objects is obtained.
[0272] In a specific embodiment, in order to improve operating efficiency, the background of the document application can first determine the starting geographic entity object from various geographic entity objects, and then select three points closest to the geographic entity object according to the proximity distance on the map to calculate the travel distance, thereby obtaining the target adjacent geographic entity object of the starting geographic entity object, and then use this method to obtain the target adjacent geographic entity object of each geographic entity object one by one, and finally determine the travel order to each location, which can be regarded as the travel order under the shortest time. Based on the travel order, the order of the table is automatically adjusted, and finally the order of each location displayed in the table is the final overall travel plan.
[0273] This application can provide a method for dotting and presenting a map based on document content. Specifically, it can automatically identify and understand geographically relevant information including specific addresses, postal codes, administrative numbers, and longitude and latitude based on the information in the target document, and finally present it in the form of a map. The map dotting here specifically refers to location marking. This application can also convert the address information in the document into points marked on the map, and mark the geographical location of each geographical entity object through location marking information, which improves the reading experience and efficiency of the text, and can present each location intuitively and clearly, making it convenient for users to plan routes and helping to improve the accuracy of route planning.
[0274] As can be seen from the above, this embodiment can display a document page through a terminal, the document page includes the document content of the target document, the document content includes address information corresponding to at least one geographic entity object; in response to the format setting operation of the address information, the address information is converted from a plain text format to an address format; in response to the map mode display operation of the document content, the address information is identified from the document content based on the address format; according to the address information, a display map display area is inserted into the document page, and a map corresponding to the target area where the address information is located is displayed in the map display area, and the map includes location mark information for marking the geographical location corresponding to each geographic entity object. The present application can convert the address information in the document content in the document page from a text mode to a map for presentation, which not only improves the reading experience and efficiency of the text, but also does not require the user to manually input each address information into the electronic map application for query, which is easy to operate, and can also mark multiple locations in the map through the location mark information, so that the presentation of each location is more intuitive and clear.
[0275] In order to better implement the above method, the present application embodiment also provides a map display device, such as Figure 3 As shown, the map display device may include a page display unit 301 and a map display unit 302, as follows:
[0276] (1) page display unit 301;
[0277] The page display unit is used to display a document page, wherein the document page includes the document content of the target document, and the document content includes address information corresponding to at least one geographic entity object.
[0278] Optionally, in some embodiments of the present application, the page display unit may include a first display subunit, an editing subunit and a second display subunit, as follows:
[0279] The first display subunit is used to display an initial document page under a target content template, wherein the target content template is a template having a table structure;
[0280] An editing subunit, for editing information of geographic entity objects on the initial document page based on the target content template, so that object attribute information of each geographic entity object under the same dimension is located in the content area of the same list item in the table, and object attribute information under different dimensions is located in the content area of different list items;
[0281] The second display subunit is used to display the edited document page, the document content of the document page includes object attribute information of the edited geographic entity object in at least one dimension, and the object attribute information includes address information and entity association information in at least one dimension.
[0282] (2) map display unit 302;
[0283] A map display unit is used to respond to a map mode display operation on the document content, insert a map display area into the document page, and display a map corresponding to a target area in the map display area, wherein the target area is the area where the address information is located, and the map includes location mark information for marking the geographical location corresponding to each geographic entity object.
[0284] Optionally, in some embodiments of the present application, the map display unit may include a parsing subunit, an address recognition subunit, and a third display subunit, as follows:
[0285] The parsing subunit is used to parse the document content based on the table structure in response to the map mode display operation on the document content, so as to identify the target list item where the address information is located from each list item in the table;
[0286] An address identification subunit, used to identify address information in a content area corresponding to the target list item;
[0287] The third display subunit is used to insert a map display area into the document page based on the identified address information, and display a map corresponding to the target area in the map display area.
[0288] Optionally, in some embodiments of the present application, the document page further includes a pass attribute adding control; object attribute information corresponding to different geographic entity objects is located in different list rows in the table;
[0289] The map display device may further include a list item inserting unit, a determining unit and a filling unit, as follows:
[0290] The list item inserting unit is used to insert a list item corresponding to the pass attribute into the table based on the position of the list item corresponding to the address information in response to a triggering operation on the pass attribute adding control;
[0291] A determination unit, configured to determine the access attribute information between the geographic entity objects in every two adjacent list rows based on the address information of the geographic entity objects in every two adjacent list rows;
[0292] A filling unit is used to fill the access attribute information into the list item corresponding to the access attribute.
[0293] Optionally, in some embodiments of the present application, the map display device may further include a modification unit, as follows:
[0294] The modification unit is used to update the location mark information of the geographical location corresponding to the target geographical entity object in the map display area in real time based on the modified address information when a modification operation is detected on the address information of the target geographical entity object in the document content.
[0295] Optionally, in some embodiments of the present application, the document content also includes entity association information of each geographic entity object;
[0296] The map display device may further include an information viewing unit, as follows:
[0297] The information viewing unit is used to respond to an information viewing trigger operation on the location mark information corresponding to the target geographic entity object on the map, and display the entity association information and address information of the target geographic entity object in a target information format around the geographical location corresponding to the target geographic entity object. The target geographic entity object is any geographic entity object.
[0298] Optionally, in some embodiments of the present application, the map display device may further include a format conversion unit as follows:
[0299] The format conversion unit is used to convert the address information from a plain text format to an address format in response to a format setting operation on the address information;
[0300] The map display unit may include an identification subunit and an insertion display subunit, as follows:
[0301] The identification subunit is used to identify address information from the document content based on the address format in response to the map mode display operation on the document content;
[0302] The inserting display subunit is used to insert a display map display area into the document page according to the address information.
[0303] Optionally, in some embodiments of the present application, the document page further includes a pass attribute adding control; the document content includes object attribute information of each geographic entity object arranged in a preset order, and the object attribute information includes address information;
[0304] The map display device may further include a traffic attribute adding unit and a traffic attribute display unit, as follows:
[0305] The traffic attribute adding unit is used to determine every two adjacent geographic entity objects according to the preset order in response to the triggering operation of the traffic attribute adding control;
[0306] The access attribute display unit is used to display the access attribute information between every two adjacent geographic entity objects in the document page based on the address information of every two adjacent geographic entity objects.
[0307] Optionally, in some embodiments of the present application, the document page further includes a passage selection area, and the passage selection area includes a selection control corresponding to at least one candidate passage;
[0308] The map display device may further include an update display unit, as follows:
[0309] The update display unit is used to respond to the triggering operation of the selection control corresponding to the target passage mode, and update and display the passage attribute information between every two adjacent geographic entity objects in the document page based on the target passage mode, and the target passage mode is any candidate passage mode.
[0310] Optionally, in some embodiments of the present application, the document page further includes a transit mode selection control for each geographic entity object;
[0311] The map display device may also include a traffic mode selection unit, a traffic attribute determination unit, and a traffic attribute update unit, as follows:
[0312] The transit mode selection unit is configured to display a target transit mode selection area for the target geographic entity object in response to a triggering operation of a transit mode selection control for the target geographic entity object, wherein the target transit mode selection area includes a selection control corresponding to at least one candidate transit mode;
[0313] a traffic attribute determination unit, configured to determine, in response to a triggering operation of a selection control corresponding to a target traffic mode, target traffic attribute information of the target geographic entity object and the adjacent geographic entity object under the target traffic mode based on address information of the target geographic entity object and the adjacent geographic entity object, wherein the adjacent geographic entity object is a geographic entity object adjacent to the target geographic entity object;
[0314] The access attribute updating unit is used to update the access attribute information between the target geographic entity object and the adjacent geographic entity object in the document page based on the target access attribute information.
[0315] Optionally, in some embodiments of the present application, the document page further includes a sorting mode selection control under a target sorting strategy; the target sorting strategy is used to make the travel attribute information of the travel route corresponding to the re-sorted geographic entity object meet a preset condition;
[0316] The map display device may further include a sorting mode triggering unit, an arrangement order determining unit and a sorting updating unit, as follows:
[0317] The sorting mode triggering unit is used to respond to the triggering operation of the sorting mode selection control and determine, based on the target sorting strategy, a target travel route formed by connecting the geographical locations of the geographical entity objects, wherein the traffic attribute information of the target travel route meets a preset condition;
[0318] An arrangement order determination unit, used to determine a target arrangement order of each geographic entity object according to the travel order corresponding to each geographic entity object in the target travel route;
[0319] The sorting updating unit is used to update the sorting of the object attribute information corresponding to each geographic entity object in the document page based on the target sorting order, and update the access attribute information between every two adjacent geographic entity objects.
[0320] Optionally, in some embodiments of the present application, the target document is a shared document that supports simultaneous or non-simultaneous operations by at least two authorized objects, and the map mode display operation is an operation performed on the document content by any authorized object.
[0321] Optionally, in some embodiments of the present application, the map display device may further include a valid address display unit and an invalid address display unit, as follows:
[0322] The effective address display unit is used to display the address information in a preset format in the table when a geographical location corresponding to the address information is identified;
[0323] The invalid address display unit is used to display the invalid address prompt information corresponding to the address information in the table when the geographical location corresponding to the address information cannot be identified.
[0324] Optionally, in some embodiments of the present application, the sorting mode triggering unit may include a first selection subunit, a second selection subunit, a first determination subunit, an analysis subunit, and a second determination subunit, as follows:
[0325] The first selection subunit is used to select a starting geographic entity object from each geographic entity object based on the target sorting strategy;
[0326] A second selection subunit is used to select at least two candidate adjacent geographic entity objects of the starting geographic entity object from reference geographic entity objects according to the distribution information of the geographic location of each geographic entity object on the map, wherein the reference geographic entity object is a geographic entity object other than the starting geographic entity object;
[0327] A first determining subunit is used to determine, from each candidate adjacent geographic entity object, a target adjacent geographic entity object having a spatial adjacent relationship with the starting geographic entity object according to the travel distance between each candidate adjacent geographic entity object and the starting geographic entity object;
[0328] An analysis subunit, used for analyzing the position relationship between the target adjacent geographic entity object and other reference geographic entity objects, so as to obtain the spatial adjacent relationship between the geographic entity objects;
[0329] The second determination subunit is used to determine the travel order of each geographic entity object based on the spatial adjacent relationship between each geographic entity object, and obtain a target travel route formed by connecting the geographical locations of each geographic entity object.
[0330] Optionally, in some embodiments of the present application, the analysis subunit can be specifically used to take the target adjacent geographic entity object as a new starting geographic entity object; return to execute the step of selecting at least two candidate adjacent geographic entity objects of the starting geographic entity object from reference geographic entity objects according to the distribution information of the geographic location of each geographic entity object on the map, until the number of reference geographic entity objects is less than a preset number, thereby obtaining the spatial adjacent relationship between the geographic entity objects.
[0331] As can be seen from the above, in this embodiment, the page display unit 301 can display a document page, the document page includes the document content of the target document, and the document content includes address information corresponding to at least one geographic entity object; the map display unit 302 responds to the map mode display operation of the document content, inserts a display map display area into the document page, and displays a map corresponding to the target area in the map display area, the target area is the area where the address information is located, and the map includes location mark information for marking the geographical location corresponding to each geographic entity object. The present application can convert the address information in the document content in the document page from text mode to map form for presentation, which not only improves the reading experience and efficiency of the text, but also does not require the user to manually input each address information into the electronic map application for query, which is easy to operate, and can also mark multiple locations in the map through location mark information, so that the presentation of each location is more intuitive and clear.
[0332] The present application also provides an electronic device, such as Figure 4 As shown, it shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present application, and the electronic device may be a terminal or a server, etc. Specifically:
[0333] The electronic device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that Figure 4 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0334] The processor 401 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, the processor 401 performs various functions of the electronic device and processes data. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.
[0335] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0336] The electronic device also includes a power supply 403 for supplying power to each component. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 403 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
[0337] The electronic device may further include an input unit 404, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0338] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 401 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application programs stored in the memory 402, thereby realizing various functions, as follows:
[0339] A document page is displayed, wherein the document page includes document content of a target document, wherein the document content includes address information corresponding to at least one geographic entity object; in response to a map mode display operation on the document content, a map display area is inserted into the document page, and a map corresponding to a target area is displayed in the map display area, wherein the target area is the area where the address information is located, and the map includes location mark information for marking the geographic location corresponding to each geographic entity object.
[0340] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0341] As can be seen from the above, this embodiment can display a document page, the document page includes the document content of the target document, the document content includes address information corresponding to at least one geographic entity object; in response to the map mode display operation of the document content, a map display area is inserted into the document page, and a map corresponding to the target area is displayed in the map display area, the target area is the area where the address information is located, and the map includes location mark information for marking the geographical location corresponding to each geographic entity object. The present application can convert the address information in the document content in the document page from text mode to a map for presentation, which not only improves the reading experience and efficiency of the text, but also does not require the user to manually input each address information into the electronic map application for query, which is easy to operate, and multiple locations can be marked in the map through location mark information, making the presentation of each location more intuitive and clear.
[0342] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0343] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the map display methods provided in the embodiment of the present application. For example, the instructions can execute the following steps:
[0344] A document page is displayed, wherein the document page includes document content of a target document, wherein the document content includes address information corresponding to at least one geographic entity object; in response to a map mode display operation on the document content, a map display area is inserted into the document page, and a map corresponding to a target area is displayed in the map display area, wherein the target area is the area where the address information is located, and the map includes location mark information for marking the geographic location corresponding to each geographic entity object.
[0345] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0346] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0347] Since the instructions stored in the computer-readable storage medium can execute the steps in any map display method provided in the embodiments of the present application, the beneficial effects that can be achieved by any map display method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0348] According to one aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in various optional implementations of the above-mentioned map display aspects.
[0349] The above is a detailed introduction to a map display method and related equipment provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A map display method, characterized in that: include: Displaying a document page, wherein the document page includes document content of a target document, wherein the document content includes address information corresponding to at least one geographic entity object; In response to the map mode display operation of the document content, a map display area is inserted into the document page, and a map corresponding to the target area is displayed in the map display area. The target area is the area where the address information is located, and the map includes location mark information for marking the geographical location corresponding to each geographic entity object.
2. The method according to claim 1, characterized in that The method further comprises: When a modification operation on the address information of the target geographic entity object in the document content is detected, the location mark information of the geographic location corresponding to the target geographic entity object in the map display area is updated in real time based on the modified address information.
3. The method according to claim 1, characterized in that The document content also includes entity association information of each geographic entity object; The method further comprises: In response to an information viewing trigger operation on the location mark information corresponding to the target geographic entity object on the map, entity association information and address information of the target geographic entity object are displayed in a target information format around the geographic location corresponding to the target geographic entity object, and the target geographic entity object is any geographic entity object.
4. The method according to claim 1, characterized in that In response to the map mode display operation of the document content, before inserting the map display area into the document page, the method further includes: In response to a formatting operation on the address information, converting the address information from a plain text format to an address format; In response to the map mode display operation on the document content, inserting a map display area into the document page includes: In response to a map mode display operation on the document content, identifying address information from the document content based on the address format; According to the address information, a map display area is inserted into the document page.
5. The method according to claim 1, characterized in that The document page also includes a pass attribute adding control; the document content includes object attribute information of each geographic entity object arranged in a preset order, and the object attribute information includes address information; The method further comprises: In response to the triggering operation of the traffic attribute adding control, every two adjacent geographic entity objects are determined according to the preset order; Based on the address information of every two adjacent geographic entity objects, the access attribute information between the every two adjacent geographic entity objects is displayed in the document page.
6. The method according to claim 5, characterized in that The document page further includes a passage mode selection area, wherein the passage mode selection area includes a selection control corresponding to at least one candidate passage mode; The method further comprises: In response to a triggering operation on a selection control corresponding to a target transit mode, the transit attribute information between every two adjacent geographic entity objects in the document page is updated and displayed based on the target transit mode, where the target transit mode is any candidate transit mode.
7. The method according to claim 5, characterized in that The document page also includes a travel mode selection control for each geographic entity object; The method further comprises: In response to a triggering operation of a transit mode selection control for a target geographic entity object, displaying a target transit mode selection area for the target geographic entity object, the target transit mode selection area including a selection control corresponding to at least one candidate transit mode; In response to a triggering operation on a selection control corresponding to a target transit mode, target transit attribute information of the target geographic entity object and the adjacent geographic entity object under the target transit mode is determined based on address information of the target geographic entity object and the adjacent geographic entity object, wherein the adjacent geographic entity object is a geographic entity object adjacent to the target geographic entity object; Based on the target traffic attribute information, the traffic attribute information between the target geographic entity object and the adjacent geographic entity object in the document page is updated and displayed.
8. The method according to claim 5, characterized in that The document page also includes a sorting mode selection control under a target sorting strategy; the target sorting strategy is used to make the travel attribute information of the travel route corresponding to the re-sorted geographic entity object meet the preset conditions; The method further comprises: In response to a triggering operation on the sorting mode selection control, based on the target sorting strategy, a target travel route formed by connecting the geographical locations of the geographical entity objects is determined, and the traffic attribute information of the target travel route meets a preset condition; Determine the target arrangement order of each geographic entity object according to the travel order corresponding to each geographic entity object in the target travel route; Based on the target sorting order, the sorting of the object attribute information corresponding to each geographic entity object in the document page is updated and displayed, and the access attribute information between every two adjacent geographic entity objects is updated and displayed.
9. The method according to claim 1, characterized in that: The target document is a shared document that supports simultaneous or non-simultaneous operations by at least two authorized objects, and the map mode display operation is an operation performed by any authorized object on the document content.
10. The method according to claim 1, characterized in that The document display page includes: Displaying an initial document page under a target content template, wherein the target content template is a template having a table structure; Based on the target content template, editing the information of the geographic entity objects on the initial document page so that the object attribute information of each geographic entity object under the same dimension is located in the content area of the same list item in the table, and the object attribute information under different dimensions is located in the content area of different list items; The edited document page is displayed, wherein the document content of the document page includes object attribute information of the edited geographic entity object in at least one dimension, wherein the object attribute information includes address information and entity association information in at least one dimension.
11. The method according to claim 10, characterized in that In response to the map mode display operation on the document content, inserting a map display area into the document page, and displaying a map corresponding to the target area in the map display area, comprises: In response to the map mode display operation of the document content, the document content is parsed based on the table structure to identify the target list item where the address information is located from each list item in the table; Identifying address information in a content area corresponding to the target list item; Based on the identified address information, a map display area is inserted into the document page, and a map corresponding to the target area is displayed in the map display area.
12. The method according to claim 10, characterized in that The document page also includes a pass attribute adding control; object attribute information corresponding to different geographic entity objects is located in different list rows in the table; The method further comprises: In response to a triggering operation of adding a control to the access attribute, inserting a list item corresponding to the access attribute into the table based on a position of the list item corresponding to the address information; Determine the access attribute information between the geographic entity objects in every two adjacent list rows based on the address information of the geographic entity objects in every two adjacent list rows; Fill the access attribute information into the list item corresponding to the access attribute.
13. The method according to claim 11, characterized in that After identifying the address information in the content area corresponding to the target list item, the method further includes: When a geographical location corresponding to the address information is identified, displaying the address information in a preset style in the table; When the geographical location corresponding to the address information cannot be identified, invalid address prompt information corresponding to the address information is displayed in the table.
14. The method according to claim 8, characterized in that The step of determining a target travel route formed by connecting the geographical locations of the geographical entity objects based on the target sorting strategy includes: Based on the target sorting strategy, selecting a starting geographic entity object from each geographic entity object; According to the distribution information of the geographical location of each geographical entity object on the map, at least two candidate adjacent geographical entity objects of the starting geographical entity object are selected from the reference geographical entity objects, wherein the reference geographical entity objects are geographical entity objects other than the starting geographical entity object; According to the travel distance between each candidate adjacent geographic entity object and the starting geographic entity object, determine a target adjacent geographic entity object having a spatial adjacent relationship with the starting geographic entity object from each candidate adjacent geographic entity object; Performing position relationship analysis on the target adjacent geographic entity objects and other reference geographic entity objects to obtain spatial adjacent relationships between the geographic entity objects; Based on the spatial adjacency relationship between the geographic entity objects, the travel order of the geographic entity objects is determined, and a target travel route formed by connecting the geographical locations of the geographic entity objects is obtained.
15. The method according to claim 14, characterized in that The performing of position relationship analysis on the target adjacent geographic entity object and other reference geographic entity objects to obtain the spatial adjacent relationship between the geographic entity objects includes: Taking the target adjacent geographic entity object as a new starting geographic entity object; Return to the step of selecting at least two candidate adjacent geographic entity objects of the starting geographic entity object from the reference geographic entity objects according to the distribution information of the geographic location of each geographic entity object on the map, until the number of reference geographic entity objects is less than a preset number, thereby obtaining the spatial adjacent relationship between the geographic entity objects.
16. A map display device, characterized in that: include: A page display unit, used to display a document page, wherein the document page includes document content of a target document, and the document content includes address information corresponding to at least one geographic entity object; A map display unit is used to respond to a map mode display operation on the document content, insert a map display area into the document page, and display a map corresponding to a target area in the map display area, wherein the target area is the area where the address information is located, and the map includes location mark information for marking the geographical location corresponding to each geographic entity object.
17. An electronic device, characterized in that: It comprises a memory and a processor; the memory stores an application, and the processor is used to run the application in the memory to execute the operations in the map display method described in any one of claims 1 to 15.
18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, which are suitable for loading by a processor to execute the steps in the map display method described in any one of claims 1 to 15.
19. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps in the map display method described in any one of claims 1 to 15 are implemented.
