CN112348450B - Method and device for generating schedule information - Google Patents

Method and device for generating schedule information Download PDF

Info

Publication number
CN112348450B
CN112348450B CN201910722527.8A CN201910722527A CN112348450B CN 112348450 B CN112348450 B CN 112348450B CN 201910722527 A CN201910722527 A CN 201910722527A CN 112348450 B CN112348450 B CN 112348450B
Authority
CN
China
Prior art keywords
information
page
generating
schedule
map
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910722527.8A
Other languages
Chinese (zh)
Other versions
CN112348450A (en
Inventor
范青轩
任静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Guimao Network Technology Co ltd
Original Assignee
Shanghai Guimao Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Guimao Network Technology Co ltd filed Critical Shanghai Guimao Network Technology Co ltd
Priority to CN201910722527.8A priority Critical patent/CN112348450B/en
Publication of CN112348450A publication Critical patent/CN112348450A/en
Application granted granted Critical
Publication of CN112348450B publication Critical patent/CN112348450B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/109Time management, e.g. calendars, reminders, meetings or time accounting
    • G06Q10/1093Calendar-based scheduling for persons or groups
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries

Abstract

Embodiments of the present disclosure provide a method, apparatus, and computer-readable storage medium for generating schedule information. The method comprises the following steps: at the control device, obtaining user input from the terminal device to determine a point of interest associated with the user input, the point of interest being associated with the association information; determining geographic coordinate information associated with the point of interest based on the association information, the geographic coordinate information being associated with at least the first address and the second address; generating a first map indicating a traffic path between the first address and the second address based on the geographic coordinate information; and generating schedule information with a first file type based on the association information and the first map, wherein the schedule information comprises characters and pictures, and the pictures comprise the first map. The embodiment of the disclosure can accurately and efficiently generate the schedule information with accurate traffic information without consuming a large amount of time and labor.

Description

Method and device for generating schedule information
Technical Field
The present disclosure relates to schedule management, and more particularly, to a method, apparatus, computer-readable storage medium for generating schedule information.
Background
In order to facilitate the management of travel or trip schedules of users, schedule information related to trips needs to be edited into a book so that the users can browse, print or carry the schedule information. Conventional solutions for generating schedule information are, for example: schedule data (such as scenic spot introduction, traffic information, time schedules and the like related to a travel schedule) is manually collected or input, and is manually typeset and edited to be made into a file of a Pdf type or a Word type for storage or printing.
In the conventional scheme for generating schedule information, a lot of time and labor are consumed for collection, entry, composition, and editing of schedule data required for generating schedule information. For example, in order to obtain traffic information related to a travel schedule, it is necessary to manually search and acquire corresponding traffic information for each of a scenic spot, a hotel, a departure point, and a destination, and then manually typeset and edit the traffic information to make a schedule information file for browsing or printing, which causes inefficiency and is difficult to adapt to the requirement of generating a large amount of schedule information for multiple users.
Disclosure of Invention
The present disclosure provides a method and apparatus for generating schedule information, which can efficiently generate schedule information with accurate traffic information without consuming a lot of time and manpower.
According to a first aspect of the present disclosure, a method for generating schedule information is provided. The method comprises the following steps: at the control device, obtaining user input from the terminal device to determine a point of interest associated with the user input, the point of interest being associated with the association information; determining geographic coordinate information associated with the point of interest based on the association information, the geographic coordinate information being associated with at least the first address and the second address; generating a first map indicating a traffic path between the first address and the second address based on the geographic coordinate information; and generating schedule information with a first file type based on the association information and the first map, wherein the schedule information comprises characters and pictures, and the pictures comprise the first map.
According to the second aspect of the present invention, there is also provided an apparatus for generating schedule information. The device includes: a memory configured to store one or more programs; a processing unit coupled to the memory and configured to execute the one or more programs to cause the apparatus to perform the method according to the first aspect of the disclosure.
According to a third aspect of the disclosure, a non-transitory computer-readable storage medium is provided. The non-transitory computer readable storage medium has stored thereon machine executable instructions that, when executed, cause a machine to perform a method according to the first aspect of the disclosure.
In some embodiments, the method further comprises: in response to confirming that the user input includes a print instruction, generating a schedule document having a second file type based on schedule information having a first file type for printing the schedule document, the first file type being a web page type and the second file type being a Pdf type.
In some embodiments, the method further comprises: determining a plurality of time identifications associated with a predetermined time interval based on a travel start time and a travel end time indicated by a user input; and associating each of the plurality of time identifications with one or more of the points of interest.
In some embodiments, the association information includes geographic coordinate information associated with the point of interest, and at least one of a name of the point of interest, a category of interest including one of a sight, a shop, a station, a hotel, a restaurant, an airport, a port, an associated picture, an associated phone, and an associated web address.
In some embodiments, generating the first map comprises: sending, via a browser, a query request for an application program interface for providing a map service to generate a web page indicating a traffic path between a first address and a second address, the query request including geographic coordinate information; and screenshot the generated webpage based on a preset webpage screenshot size to generate a first map.
In some embodiments, generating the first map further comprises: storing the first map to a cloud server; and at the control device, obtaining a link to the first map.
In some embodiments, generating calendar information of the first file type comprises: caching a current picture to be rendered to determine the size of the current picture; determining whether a size of the current picture is less than or equal to a remaining size of the current page, the remaining size being determined based on a size of an object of which the current page has been rendered; rendering the current picture on the current page in response to determining that the size of the current picture is less than or equal to the remaining size; and rendering the current picture on a page next to the current page in response to determining that the size of the picture is greater than the remaining size.
In some embodiments, generating calendar information of the first file type comprises: determining whether a paragraph to be rendered of a current page exceeds a predetermined height threshold, the paragraph including a text; in response to determining that the paragraph to be rendered exceeds a predetermined height threshold, determining a portion of the paragraph to be rendered that exceeds the predetermined height threshold; and rendering a portion exceeding a predetermined height threshold on a next page of the current page.
In some embodiments, the method further comprises: determining a corresponding identifier corresponding to each directory entry of a plurality of directory entries included in a directory page, schedule information including the directory page and a content page; sequentially allocating page numbers for the rendered content pages; in response to confirming that the rendered current page is a catalog index page of the content pages, such that the corresponding identifier of the catalog entry associated with the rendered current page indicates a maximum page number of the page numbers that have been allocated.
In some embodiments, generating a calendar document having a second file type includes: generating a plurality of Pdf-type sub-schedule documents respectively, the plurality of sub-schedule documents being associated with the plurality of time tags; and merging the plurality of sub-schedule documents so as to generate the schedule document.
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the disclosure, nor is it intended to be used to limit the scope of the disclosure.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be apparent from the following more particular descriptions of exemplary embodiments of the disclosure as illustrated in the accompanying drawings wherein like reference numbers generally represent like parts throughout the exemplary embodiments of the disclosure.
FIG. 1 shows an architecture diagram of a system 100 for generating calendar information, in accordance with an embodiment of the present disclosure;
FIG. 2 shows a flow diagram of a method 200 for generating schedule information in accordance with an embodiment of the present disclosure;
FIG. 3 shows a flow diagram of a method 300 for rendering picture information in accordance with an embodiment of the present disclosure;
FIG. 4 illustrates a flow diagram of a method 400 for rendering paragraph information, in accordance with an embodiment of the present disclosure;
FIG. 5 illustrates a flow diagram of a method 500 for determining a corresponding page number for each directory entry according to an embodiment of the present disclosure; and
FIG. 6 schematically illustrates a block diagram of an electronic device 600 suitable for use in implementing embodiments of the present disclosure.
Like or corresponding reference characters designate like or corresponding parts throughout the several views.
Detailed Description
Preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more complete and thorough understanding of the present disclosure. It should be understood that the drawings and the embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
In describing embodiments of the present disclosure, the terms "include" and its derivatives should be interpreted as being inclusive, i.e., "including but not limited to. The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first," "second," and the like may refer to different or the same object. Other explicit and implicit definitions are also possible below.
As described above, in the conventional scheme for generating schedule information, since collection, entry, composition, and editing of schedule data for generating a schedule information file need to be performed manually, on one hand, the efficiency of generating schedule information is low, and it is difficult to adapt to the requirements of multiple users and large-batch schedule information generation; on the other hand, the manual collection and entry process easily causes inaccuracy of partial information, for example, when inquiring traffic information, the manual input of address information is wrong or irregular, and further the traffic information included in the schedule information file is inaccurate.
To address, at least in part, one or more of the above problems and other potential problems, example embodiments of the present disclosure propose a scheme for generating schedule information. In the scheme, at a control device, user input from a terminal device is acquired to determine a point of interest associated with the user input, wherein the point of interest is associated with associated information; determining geographic coordinate information associated with the point of interest based on the association information, the geographic coordinate information being associated with at least the first address and the second address; generating a first map indicating a traffic path between the first address and the second address based on the geographic coordinate information; and generating schedule information with a first file type based on the association information and the first map, wherein the schedule information comprises characters and pictures, and the pictures comprise the first map.
In the above scheme, by acquiring geographic coordinate information associated with a point of interest, and acquiring a first map indicating a traffic path between a first address and a second address based on the geographic coordinate information; and generating schedule information of the first file type based on the travel information and the first map associated with the point of interest, and efficiently generating schedule information with accurate traffic information without consuming a large amount of time and manpower.
Fig. 1 shows an architecture diagram of a system 100 for generating calendar information according to an embodiment of the present disclosure. As shown in fig. 1, the system 100 includes a control device 110, a terminal device 130, a map server 140 for providing a map service, and a cloud server 150. The control device 110, the terminal device 130, the server 140 for providing a map service, and the cloud server 150 perform data interaction through the network 160.
The control device 110 is configured to determine one or more points of interest based on the acquired user input from the terminal device 130 from the terminal device, and generate schedule information of a first file type based on association information associated with the points of interest and a first map indicating a traffic path. The control device 110 is, for example, without limitation, a computer or a server. The control device 110 may have one or more processing units, including special purpose processing units such as GPUs, FPGAs, and ASICs, and general purpose processing units such as CPUs. In addition, one or more virtual machines may also be running on the control device 110.
In some embodiments, the control device 110 may generate a schedule document in Pdf format based on schedule information of a first file type (for example, without limitation, HTML format) upon detecting a print instruction included in a user input from the terminal device 130, so as to print the schedule document. In some embodiments, the control device 110 may customize a travel plan based on user input of the user 120 and provide schedule information of a first file type related to the travel plan. In some embodiments, a plurality of points of interest (e.g., travel attractions, etc.) for selection by the user may be preset at the control device 110. In some embodiments, at the control device 110, associations between multiple points of interest may also be established. For example, a first point of interest representing a country/city is associated with a plurality of second points of interest respectively representing a plurality of attractions within the country/city, and a third point of interest representing a hotel within the country/city. By adopting the above-described means, the control device 110 can obtain the associated second and third points of interest, etc., based on the determined first point of interest, so as to generate a schedule information file covering information on sights, accommodation, diet, traffic, etc. In some embodiments, the control device 110 may establish an association between each point of interest and the association information. The associated information includes, for example: geographic coordinate information associated with the point of interest (e.g., longitude and latitude coordinate information), the name of the point of interest, the category to which the point of interest belongs, an associated picture, an associated phone call, an associated website, and the like. The categories include, for example, attractions, shops, stations, hotels, restaurants, airports, ports, etc. In some embodiments, the control device 110 may associate the point of interest with a time identification.
Regarding the interaction of the control device 110 with the map server 140, in some embodiments, the control device 110 may generate a query request based on address information related to a travel plan and transmit the query request to an Application Program Interface (API) of the server 140 for providing a map service via a browser to obtain a web page generated by the server 140 for the query request (e.g., include a map indicating a traffic path between a first address and a second address in the web page).
The user terminal 150 is used for data interaction with the control device 110 via the network 160. The user terminal 150 is, for example and without limitation, a cell phone, computer, server, PDA, etc. In some embodiments, user terminal 150 may send user input triggered by user 120 to control device 110 via an Application (APP) configured at user terminal 150. The user input includes, for example: user input regarding the selected point of interest, print instructions regarding printing travel information, and the like. In some embodiments, the user input is triggered, for example, by a drafting user who customizes a travel plan, or by a person who assists the drafting user in formulating a travel plan.
The server 140 is used to provide a map service. The server 140 performs data interaction with the control device 110 via the network 160. The server 140 is, for example and without limitation, a computer, a server. The server 140 may also have one or more processing units, including special purpose processing units such as GPUs, FPGAs, ASICs, and the like, as well as general purpose processing units such as CPUs. In some embodiments, via the API for providing the map service, the server 140 may allow the user to provide the map data to the user or to be embedded into a website developed by the user without having to establish an own map server, thereby providing the user with a location service by means of the map data. In some embodiments, the server 140 may obtain a query request (for example, the query request includes "latitude and longitude coordinate information of a start address" as a first address and "latitude and longitude coordinate information of a destination address" as a second address), and generate a web page including a map indicating a traffic path between the start address and the destination address based on the query request.
The cloud server 150 interacts with the control device 110 via the network 160 for providing computing, storage, online backup, hosting, bandwidth, etc. internet infrastructure services for the control device 110. For example, the cloud server 150 is configured to store data from the control device 110 or a third party in response to an instruction of the control device 110. This data is, for example, a first map generated by the control device 110 for indicating a traffic path between the first address and the second address, and may be other data for calculation, storage, online backup, and the like. In some embodiments, the control device 110 may store a link to the first map by storing data such as the first map in the cloud server 150. By adopting the above means, the control apparatus 110 can utilize the storage capacity of the cloud server 150 of a large capacity and the high-performance throughput computing capacity.
Fig. 2 shows a flowchart of a method 200 for generating schedule information according to an embodiment of the present disclosure. In fig. 2, the respective actions are performed by the control device 110, for example. Method 200 may also include additional acts not shown and/or may omit acts shown, as the scope of the disclosure is not limited in this respect.
At block 202, the control device 110 obtains user input from the terminal device to determine a point of interest associated with the user input, the point of interest being associated with the association information. In some embodiments, the points of interest may be, for example, one or more specific countries/cities, or one or more specific attractions, entered or selected by the user. The points of interest have a category to which they belong, including for example one of a sight, a shop, a station, a hotel, a restaurant, an airport, a port. In some embodiments, the control device 110 may pre-configure a plurality of point of interest options having different belonging categories for selection by the user. In some embodiments, the point of interest is entered by the user at his or her discretion. In some embodiments, the control device 110 determines one or more points of interest associated with the user input based on a semantic analysis of the user input.
Regarding the association information, in some embodiments, it includes, for example: geographic coordinate information associated with the point of interest, and at least one of a name of the point of interest, a category to which the point of interest belongs, an associated picture, an associated phone, and an associated web address. The category may be one of a city, a sight spot, a shop, a station, a hotel, a restaurant, an airport, a port, as described above. In the above scheme, by determining the associated belonging category for each point of interest, the control device 110 is enabled to retrieve, determine or associate the point of interest based on the belonging category. In some embodiments, the association information further comprises: associated text information (e.g., text information about travel features) and/or pre-trip reminder information, etc. The travel pre-prompting information includes, for example: and prompting information about consumption, weather, communication, internal traffic, external traffic, visa handling and the like. By associating the points of interest with the associated information, the control device 110, upon determining one or more points of interest based on the obtained user input, may efficiently generate trip information based on the associated information related to the determined points of interest.
In some embodiments, the user input further comprises: travel start time and travel end time. The control device 110 may determine a plurality of time identifications associated with the predetermined time interval based on the travel start time and the travel end time indicated by the user input; and associating each of the plurality of time identifications with one or more of the points of interest. The predetermined time interval may be preset, for example, as "one day" or "half day". In some embodiments, the control device 110 may associate each day from the trip start time to the trip end time with one or more points of interest; and then acquiring association information of the points of interest associated with each day so as to generate sub-schedule information included in the travel information based on the association information. For example, the sub-schedule information of the first day of the trip, 8230, and the sub-schedule information of the last day of the trip.
At block 204, the control device 110 determines, based on the association information, geographic coordinate information associated with the point of interest, the geographic coordinate information being associated with at least the first address and the second address. In some embodiments, the geographic coordinate information is, for example, latitude and longitude coordinate information. The first address and the second address are, for example, a departure address and a destination address. For example, the first address is a hotel address and the second address is an airport address.
At block 206, the control device 110 generates a first map indicating a traffic path between the first address and the second address based on the geographic coordinate information.
In some embodiments, the manner in which the control device 110 generates the first map may be multiple. In some embodiments, the control device 110 may send a query request (the query request including geographic coordinate information) for an Application Program Interface (API) for providing a map service to the map server 140 via the browser for the map server 140 to generate a web page indicating a traffic path including between the first address and the second address; and screenshot the web page generated by map server 140 to generate a first map based on control device 110 can predetermine the web page screenshot size. In the above-described aspect, by generating the first map indicating the traffic path based on the geographical coordinate information of the point of interest, instead of general name or address information, it is possible to avoid providing wrong illustration information due to a factor such as a name or address information input error.
In some embodiments, control device 110 may process, via a browser, a web page generated by map server 140 to indicate a traffic path including between a first address and a second address to generate a screenshot of the web page (first map) without actually browsing a graphical interface of the web page generated by server 140. For example, control device 110 may interact with the PhantomJS tool through a command line. For example, the following table one schematically shows a command line that interacts partially with PhantomJS.
Watch 1
Figure BDA0002157723140000101
In table one above, the object for which "page" in the first command line is indicated indicates a web page instance; "open" in the second command line is used to open the target website (the target website in table one is used for example only), where the first parameter is the target website, and the second parameter is a callback function that is run after the webpage is successfully loaded; "clipRect" in the third command line is used to determine the predetermined screenshot size at which the web page is to be screenshot, e.g., a web page 600 pixels wide and 600 pixels high, starting at the (0.0) coordinates of the web page based on the top left corner of the screenshot. And if the preset screenshot size is not set, screenshot is carried out on the whole webpage. The "render" in the fourth command line is used to render the page, i.e. to generate a picture format screenshot with "map1" as file name, i.e. to generate the first image, under the current directory according to the predetermined webpage screenshot size set by "clipRect".
In some embodiments, the manner of generating the first map further comprises: storing the first map at the cloud server 150; and obtaining a link to the first map at the control device 110. In the above scheme, by storing the data such as the first map in the cloud server 150, the control device 110 is facilitated to better utilize the storage capacity of the cloud server 150 with a larger capacity and the high-performance throughput computing capacity.
At block 208, the control device 110 generates schedule information having a first file type based on the association information and the first map, the schedule information including words and pictures, the pictures including the first map. In some embodiments, the first file type may be a web page (e.g., HTML) type. By making the schedule information a web file type, the schedule information is made easy to browse and easy to convert into a Pdf type schedule document easy to print. In some embodiments, the first file type may also be a Word type.
In some embodiments, the manner in which the control device 110 generates the schedule information of the first file type further includes, for example: and dynamically rendering and typesetting the characters and pictures included in the schedule information.
Regarding the way of rendering the picture, the following description will be made with reference to fig. 3. Fig. 3 shows a flow diagram of a method 300 for rendering picture information according to an embodiment of the present disclosure. In fig. 3, the respective actions are performed by the control device 110, for example. Method 300 may also include additional acts not shown and/or may omit acts shown, as the scope of the disclosure is not limited in this respect.
At block 302, caching a current picture to be rendered to determine a size of the current picture; at block 304, it is determined whether the size of the current picture is less than or equal to a remaining size of the current page, the remaining size being determined based on a size of an object that the current page has been rendered (e.g., at the current page, the sizes of the rendered objects are accumulated to determine the remaining size of the current page). When it is determined that the size of the picture is less than or equal to the remaining size of the current page, rendering the current picture at the current page at block 306; and, when the size of the picture is determined to be greater than the remaining size of the current page, rendering the current picture on a page next to the current page at block 308. By adopting the means, the pictures can be typeset at the proper positions of the page without cross-page typesetting.
The manner of rendering text will be described below with reference to fig. 4. Fig. 4 illustrates a flow diagram of a method 400 for rendering paragraph information, in accordance with an embodiment of the present disclosure. In fig. 4, the respective actions are performed by the control device 110, for example. Method 400 may also include additional acts not shown and/or may omit acts shown, as the scope of the disclosure is not limited in this respect.
At block 402, the control device 110 determines whether a paragraph to be rendered of the current page exceeds a predetermined height threshold, the paragraph including text; at block 404, upon determining that the paragraph to be rendered exceeds the predetermined height threshold, the control device 110 determines the portion of the paragraph to be rendered that exceeds the predetermined height threshold; at block 406, portions exceeding a predetermined height threshold are rendered on a next page of the current page. By adopting the means, the position of the page can be fully utilized when the characters in the paragraph are displayed.
In some embodiments, the control device 110 may render pictures and text from the entire unit. For example, if it is determined that the picture of the current page and the context thereof are related to traffic, the control device 110 regards it as a whole traffic unit to confirm whether the size of the whole traffic unit is less than or equal to the remaining size of the current page. When it is confirmed that the size of the entire traffic unit is greater than the remaining height of the current page, the entire traffic unit is rendered on a page next to the current page. By adopting the means, the characters and pictures which are closely related in content can be typeset in the same page, so that the browsing and reading of a user are facilitated.
In some embodiments, the calendar information includes, for example, a directory page including, for example, a plurality of directory entries and corresponding page numbers for the directory entries, and a content page. In some embodiments, the content page includes, for example: a front cover page, a line front item page, a schedule page and a back cover page. The directory entries include, for example, a plurality of primary directory entries, and a plurality of secondary directory entries. Primary catalog items such as front cover, line front, schedule, back cover. The secondary directory entries are, for example, a plurality of secondary directory entries such as a first day sub-schedule (8230); \8230for a nth day sub-schedule (Nth day) under the primary directory entry. In some embodiments, the process of controlling the device 110 to generate calendar information of the first file type further comprises the process of determining a corresponding page number for each directory entry in a directory page comprised by the calendar information.
In some embodiments, the schedule information is sequentially generated from top to bottom by the control device 110, i.e., the directory pages are rendered first and the content pages corresponding to the directory entries are rendered later. When the directory page is rendered, the corresponding page number of the content page corresponding to each directory entry has uncertainty in the subsequent dynamic rendering and typesetting process to be performed. The control device 110 needs to accurately and efficiently determine the corresponding page number for each directory entry in the directory page included in the schedule information without affecting the rendering process of the previous directory page.
A method for determining the corresponding page number of each directory entry will be described below in conjunction with fig. 5. FIG. 5 illustrates a flow chart of a method 500 for determining a corresponding page number for each directory entry according to an embodiment of the present disclosure. In fig. 5, the respective actions are performed by the control device 110, for example. Method 500 may also include additional acts not shown and/or may omit acts shown, as the scope of the disclosure is not limited in this respect.
At block 502, the control device 110 determines a corresponding identifier for each of a plurality of directory entries included in a directory page, with the calendar information including the directory page and the content page. At block 504, page numbers are sequentially assigned for the rendered content pages. At block 506, the control device 110, in response to confirming that the rendered current page is a catalog index page of the content pages, causes the corresponding identifier of the catalog item associated with the rendered current page to indicate a largest page number of the page numbers that have been allocated. By adopting the means, the method can accurately and efficiently determine each directory entry to determine the corresponding page number without influencing the process of rendering the directory page in advance.
In some embodiments, the method 200 further comprises: in response to confirming that the user input includes a print instruction, generating a schedule document having a second file type based on schedule information having a first file type for printing the schedule document, the first file type being a web page type and the second file type being a Pdf type. By adopting the above means, the generation of the Pdf type schedule document file convenient for printing can be realized for the printing instruction of the user. The manner in which the schedule document having the second file type is generated can be implemented in various ways. In some embodiments, the manner in which the calendar document is generated includes, for example: generating a plurality of Pdf-type sub-schedule documents respectively, the plurality of sub-schedule documents being associated with a plurality of time tags; merging the plurality of sub-schedule documents so as to generate a schedule document; and merging the plurality of sub-calendar documents to generate a calendar document. By means of firstly generating a plurality of Pdf type sub-schedule documents in a distributed and parallel mode and then combining the Pdf type sub-schedule documents, the speed of generating the schedule documents can be increased, and the speed of generating large-batch schedule documents is favorably and remarkably increased.
In some embodiments, before generating the plurality of sub-schedule documents, a front cover sub-document and a back cover sub-document of the Pdf type are first generated; and generating a directory subdocument of the Pdf type. After the plurality of sub-schedule documents are generated, the front-cover sub-document and the back-cover sub-document, the directory PDF sub-document, and the plurality of sub-schedule documents are merged to generate a schedule document.
The manner in which the individual sub-documents of the Pdf type are generated with respect to the contents of the portions of the web page type based calendar information file may be implemented in a variety of ways. For example, this may be accomplished in a number of ways, such as a jsPdf tool, a wkhtmltopdf tool, etc.
In some embodiments, the control device 110 may convert the web page type calendar information file into a pdf type calendar document using the command line of the wkhtmltopdf tool. For example, regarding the processing of headers and footers, headers and footers may be added to a file by using the parameters "- -header-" and "- -footer-". Regarding the processing of pictures, it is possible to allow the pictures in the schedule information file to be loaded and output to the PDF-type schedule document by using the command line parameter "- -images". For example, when there is an embedded picture in a page of a web page type schedule information file by using a parameter "- - -image-dpi < integer >", a picture of a size (e.g., 600 pixels, which is a default value) specified by this command line parameter is downloaded. Regarding the processing of hyperlinks, the generation of hyperlinks in pages is allowed by using the parameter "- - -/enable-internal-links". Also for example, regarding the processing of the margin, the bottom margin, the left margin, the right margin, the top margin, and the like of the page may be set by using the command line parameter "- -margin- - < unity >". For example, table two below schematically shows a command line as follows. A "header" may be added to the left side of the page, with the name of the page displayed in the header of the page. The page number is displayed on the right side of the page.
Watch two
Figure BDA0002157723140000141
FIG. 6 schematically illustrates a block diagram of an electronic device 600 suitable for use to implement embodiments of the present disclosure. The device 600 may be used to implement the control device 110 of fig. 1. As shown, device 600 includes a Central Processing Unit (CPU) 601 that can perform various appropriate actions and processes in accordance with computer program instructions stored in a Read Only Memory (ROM) 602 or loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the device 600 can also be stored. The CPU 601, ROM 602, and RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
A number of components in the device 600 are connected to the I/O interface 605, including: an input unit 606 such as a keyboard, a mouse, and the like; an output unit 607 such as various types of displays, speakers, and the like; a storage unit 608, such as a magnetic disk, optical disk, or the like; and a communication unit 609 such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processing unit 601 performs the various methods and processes described above, such as performing the methods 200 to 500. For example, in some embodiments, methods 200-500 may be implemented as a computer software program stored on a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 600 via the ROM 602 and/or the communication unit 609. When the computer program is loaded into RAM603 and executed by CPU 601, one or more of the operations of methods 200-500 described above may be performed. Alternatively, in other embodiments, CPU 601 may be configured by any other suitable means (e.g., by way of firmware) to perform one or more acts of methods 200-500.
The present disclosure may be methods, apparatus, systems, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for carrying out various aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present disclosure may be assembler instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the present disclosure by utilizing the state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.
The above are merely alternative embodiments of the present disclosure and are not intended to limit the present disclosure, which may be modified and varied by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure should be included in the protection scope of the present disclosure.

Claims (11)

1. A method for generating calendar information, comprising:
at a control device, obtaining user input from a terminal device to determine a point of interest associated with the user input, the point of interest being associated with association information;
determining geographic coordinate information associated with the point of interest based on the association information, the geographic coordinate information being associated with at least a first address and a second address;
generating a first map indicating a traffic path between the first address and the second address based on the geographic coordinate information;
generating schedule information with a first file type based on the associated information and the first map, wherein the schedule information comprises characters and pictures, and the pictures comprise the first map;
determining a corresponding identifier for each of a plurality of directory entries included in a directory page, the calendar information including the directory page and a content page;
sequentially assigning page numbers to the content pages being rendered; and
in response to confirming that the rendered current page is a catalog index page of the content pages, causing a corresponding identifier of a catalog entry associated with the rendered current page to indicate a largest page number of the page numbers that have been allocated.
2. The method of claim 1, further comprising:
and in response to the fact that the user input comprises a printing instruction, generating a schedule document with a second file type based on the schedule information with the first file type so as to print the schedule document, wherein the first file type is a webpage type, and the second file type is a Pdf type.
3. The method of claim 2, further comprising:
determining a plurality of time identifications associated with a predetermined time interval based on a travel start time and a travel end time indicated by the user input; and
such that each of the plurality of time identifications is associated with one or more of the points of interest.
4. The method of claim 1, wherein the association information comprises geographic coordinate information associated with the point of interest, and at least one of a name of the point of interest, a belonging category comprising one of a sight, a store, a station, a hotel, a restaurant, an airport, a port, an associated picture, an associated phone, and an associated web address.
5. The method of claim 1, wherein generating the first map comprises:
sending, via a browser, a query request for an application program interface for providing a map service to generate a web page indicating a traffic path including between the first address and the second address, the query request including the geographic coordinate information; and
screenshot the generated webpage based on a predetermined webpage screenshot size to generate the first map.
6. The method of claim 5, wherein generating the first map further comprises:
storing the first map to a cloud server; and
at a control device, a link to the first map is obtained.
7. The method of claim 1, wherein generating calendar information for a first file type comprises:
caching a current picture to be rendered to determine the size of the current picture;
determining whether a size of the current picture is less than or equal to a remaining size of a current page, the remaining size being determined based on a size of an object that the current page has been rendered;
in response to determining that the size of the current picture is less than or equal to the remaining size, rendering the current picture at the current page; and
rendering the current picture on a page next to the current page in response to determining that the size of the picture is greater than the remaining size.
8. The method of claim 1, wherein generating calendar information of a first file type comprises:
determining whether a paragraph to be rendered of a current page exceeds a predetermined height threshold, the paragraph including text;
in response to determining that the passage to be rendered exceeds the predetermined height threshold, determining a portion of the passage to be rendered that exceeds the predetermined height threshold; and
rendering the portion that exceeds a predetermined height threshold on a next page of the current page.
9. The method of claim 3, wherein generating a calendar document having a second file type comprises:
generating a plurality of Pdf-type sub-schedule documents respectively, the plurality of sub-schedule documents being associated with the plurality of time tags;
and merging the plurality of sub-schedule documents so as to generate the schedule document.
10. An apparatus for generating schedule information, the apparatus comprising:
a memory configured to store one or more programs;
a processing unit coupled to the memory and configured to execute the one or more programs to cause the apparatus to perform the steps of the method of any of claims 1-9.
11. A non-transitory computer readable storage medium having stored thereon machine executable instructions which, when executed, cause a machine to perform the steps of the method of any of claims 1-9.
CN201910722527.8A 2019-08-06 2019-08-06 Method and device for generating schedule information Active CN112348450B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910722527.8A CN112348450B (en) 2019-08-06 2019-08-06 Method and device for generating schedule information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910722527.8A CN112348450B (en) 2019-08-06 2019-08-06 Method and device for generating schedule information

Publications (2)

Publication Number Publication Date
CN112348450A CN112348450A (en) 2021-02-09
CN112348450B true CN112348450B (en) 2023-02-17

Family

ID=74367134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910722527.8A Active CN112348450B (en) 2019-08-06 2019-08-06 Method and device for generating schedule information

Country Status (1)

Country Link
CN (1) CN112348450B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007080296A (en) * 2006-12-13 2007-03-29 Honda Motor Co Ltd Visiting spot extraction program and interest level evaluation program
TW201040498A (en) * 2009-05-15 2010-11-16 Kitravel Travel planning system and the method thereof
CN101998236A (en) * 2009-08-20 2011-03-30 美国博通公司 Method and system for generating a personalized map
CN102934112A (en) * 2010-06-04 2013-02-13 诺基亚公司 Method and apparatus for generating map-based snippets
CN104050238A (en) * 2014-05-23 2014-09-17 北京中交兴路信息科技有限公司 Map labeling method and map labeling device
CN104169961A (en) * 2012-03-29 2014-11-26 雅虎公司 Systems and methods to suggest travel itineraries based on users' current location
CN106997567A (en) * 2016-01-26 2017-08-01 宇龙计算机通信科技(深圳)有限公司 A kind of user's travel information generation method and device
CN107885872A (en) * 2017-11-27 2018-04-06 百度在线网络技术(北京)有限公司 Method and apparatus for generating information
CN108875033A (en) * 2018-06-25 2018-11-23 上海小驴帮网络科技有限公司 Travel excursion information methods of exhibiting, device, server and storage medium
CN109740049A (en) * 2018-12-13 2019-05-10 北京百度网讯科技有限公司 The generation method and device of article

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070106468A1 (en) * 2005-11-07 2007-05-10 France Telecom Product, service and activity based interactive trip mapping system, method, and computer program product
US20080243906A1 (en) * 2007-03-31 2008-10-02 Keith Peters Online system and method for providing geographic presentations of localities that are pertinent to a text item

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007080296A (en) * 2006-12-13 2007-03-29 Honda Motor Co Ltd Visiting spot extraction program and interest level evaluation program
TW201040498A (en) * 2009-05-15 2010-11-16 Kitravel Travel planning system and the method thereof
CN101998236A (en) * 2009-08-20 2011-03-30 美国博通公司 Method and system for generating a personalized map
CN102934112A (en) * 2010-06-04 2013-02-13 诺基亚公司 Method and apparatus for generating map-based snippets
CN104169961A (en) * 2012-03-29 2014-11-26 雅虎公司 Systems and methods to suggest travel itineraries based on users' current location
CN104050238A (en) * 2014-05-23 2014-09-17 北京中交兴路信息科技有限公司 Map labeling method and map labeling device
CN106997567A (en) * 2016-01-26 2017-08-01 宇龙计算机通信科技(深圳)有限公司 A kind of user's travel information generation method and device
CN107885872A (en) * 2017-11-27 2018-04-06 百度在线网络技术(北京)有限公司 Method and apparatus for generating information
CN108875033A (en) * 2018-06-25 2018-11-23 上海小驴帮网络科技有限公司 Travel excursion information methods of exhibiting, device, server and storage medium
CN109740049A (en) * 2018-12-13 2019-05-10 北京百度网讯科技有限公司 The generation method and device of article

Also Published As

Publication number Publication date
CN112348450A (en) 2021-02-09

Similar Documents

Publication Publication Date Title
US10769217B2 (en) Harvesting addresses
US10885084B2 (en) Text message processing
CN110084553B (en) Express cabinet recommendation method, device, equipment and storage medium
US8682880B2 (en) Location and keyword based information providing apparatus, method, and memory medium
US8612147B2 (en) System and method for simplified representation of geographic addresses
EP2896162B1 (en) Determining additional information associated with geographic location information
CN105338492A (en) Intelligent electronic tourist guide system based on geographic fencing technology
CN110388935B (en) Acquiring addresses
CN110362372A (en) Page translation method, device, medium and electronic equipment
TWI679862B (en) Method and device for processing text information
CN105893391A (en) Intelligent answering method, apparatus and system, and electronic device
CN109783589B (en) Method, device and storage medium for resolving address of electronic map
JP5529092B2 (en) Note data translation apparatus, note data translation method, and note data translation program
JP2017199225A (en) Device and method for selecting disaster information
JP5587281B2 (en) Note notation conversion device, note notation conversion method, and note notation conversion program
CN110019617B (en) Method and device for determining address identifier, storage medium and electronic device
CN112348450B (en) Method and device for generating schedule information
CN111724098B (en) Information display method and system, electronic equipment and storage medium
US20170132535A1 (en) Method, electronic device, and computer-readable medium for travel planning
JP2017073115A (en) Route map display system, route map display method, and computer program
JP6185384B2 (en) Display control apparatus and display control method
TW201133338A (en) Method and mobile device for processing web information
AU2018100463A4 (en) A computer implemented method and a computer system for presenting information on a user device in a presentation language
KR101718957B1 (en) System for personal travel publication
JP2014157040A (en) Taxi driver support application, terminal device, data tabulation server, application server, and taxi driver support system including the aforementioned

Legal Events

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