Alarm clock prompting time determination method and device, electronic equipment and storage medium
By obtaining real-time road conditions information to determine the target traffic mode and alarm clock prompt time, the problem that the alarm clock device cannot intelligently adjust the alarm clock time is solved, and more efficient travel planning and time management are achieved.
Patent Information
- Application Number
- CN202510587685.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-07
- Publication Date
- 2025-09-02
AI Technical Summary
Existing alarm clock devices cannot intelligently adjust the alarm clock time, especially when users switch their residence locations.
By obtaining real-time traffic conditions information between the current location of the device and the destination location, determining the target traffic mode, predicting the target time to reach the destination, and determining the prompt time of the alarm clock based on this.
Improve travel efficiency, avoid waste of time caused by traffic congestion, ensure that users set off on time, and provide personalized time management services.
Smart Images

Figure CN120579684A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of artificial intelligence technology, and more particularly to a method, device, electronic device, and computer-readable storage medium for determining an alarm reminder time. Background Art
[0002] Most existing alarm clocks only allow fixed alarm times and lack intelligent adjustment mechanisms. While some alarm clock apps can automatically set alarm times based on the user's schedule, these features still don't fully address the need to adjust alarm times when users move between locations. Summary of the Invention
[0003] The embodiments of the present disclosure provide a method, device, electronic device, and computer-readable storage medium for determining an alarm reminder time, aiming to solve at least one of the technical problems in the related art to a certain extent.
[0004] In a first aspect, an embodiment of the present disclosure provides a method for determining an alarm reminder time, the method comprising:
[0005] Get the current location of the device;
[0006] Obtaining real-time traffic information for one or more routes between the current location and a preset destination location;
[0007] Determining a target transportation mode to be selected based on the real-time traffic information;
[0008] Predicting a target time required to reach the destination location based on the target mode of transportation;
[0009] Based on the target time, a reminder time of the alarm clock is determined.
[0010] In a second aspect, an embodiment of the present disclosure further provides a device for determining an alarm reminder time, the device comprising:
[0011] A first acquisition module is used to obtain the current location of the device;
[0012] A second acquisition module is used to obtain real-time traffic information of one or more routes between the current location and a preset destination location;
[0013] A first determining module is used to determine a target transportation mode to be selected based on the real-time traffic information;
[0014] A prediction module, configured to predict a target time required to reach the destination location based on the target transportation mode;
[0015] The second determining module is used to determine the reminder time of the alarm clock based on the target time.
[0016] In a third aspect, an embodiment of the present disclosure further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps in the above-mentioned method for determining the alarm time are implemented.
[0017] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method for determining the alarm prompt time are implemented.
[0018] In a fifth aspect, embodiments of the present disclosure further provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various optional implementations of the embodiments of the present disclosure.
[0019] In summary, by obtaining real-time traffic information to determine the target mode of transportation, users can avoid congested roads, choose relatively unobstructed routes and appropriate modes of transportation, reduce travel time, and improve travel efficiency. For example, in times of traffic congestion, users can promptly choose public transportation such as the subway to avoid long waits on the road. Predicting the target time of arrival based on the target mode of transportation helps users more accurately plan their itineraries and schedule subsequent activities. For example, on a business trip, knowing the exact arrival time facilitates scheduling meetings or other matters in advance. Setting the alarm time based on the predicted target time ensures that users can depart on time and avoid delays due to missed departure times. This intelligent setting method can better meet users' actual needs and provide more personalized services.
[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the present disclosure, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 11 is a flow chart of a method for determining an alarm reminder time provided by the first embodiment of the present disclosure;
[0023] Figure 2 2 is a flow chart of a method for determining an alarm reminder time provided by a second embodiment of the present disclosure;
[0024] Figure 3 1 is a schematic diagram of the structure of a device for determining an alarm time provided by an embodiment of the present disclosure;
[0025] Figure 4 It is a structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] Some embodiments of the present disclosure will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. Various changes, modifications and equivalents of the methods, devices and / or systems described herein will become apparent after understanding the present disclosure. For example, the order of operations described herein is merely an example and is not limited to those orders set forth herein, but may be changed as becomes apparent after understanding the present disclosure, except for operations that must be performed in a specific order. In addition, for the sake of clarity and brevity, descriptions of features known in the art may be omitted.
[0027] The embodiments described in the following examples of the present disclosure do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0028] It should be noted that the execution entity of the method for determining the alarm prompt time of this embodiment can be a device for determining the alarm prompt time, which can be configured in any type of electronic device, such as a tablet computer, television, mobile phone, watch, computer, etc., and is not limited here.
[0029] In the embodiment of the present disclosure, the “device for determining the alarm prompt time” will be used as the execution subject to execute the “method for determining the alarm prompt time” for illustration, and no limitation is made here.
[0030] It should be noted that the order of description of the following embodiments does not limit the priority order of the embodiments.
[0031] Figure 1 It is a flowchart of a method for determining an alarm reminder time provided according to the first embodiment of the present disclosure.
[0032] like Figure 1 As shown, the method includes:
[0033] Step 101: Get the current location of the device.
[0034] The current location indicates the current geographical location of the device.
[0035] As a possible implementation, the apparatus may obtain the current location of the device when detecting that the current time reaches a first set time, where the first set time represents the earliest alarm prompt time desired by the user.
[0036] It is understandable that the first set time can be the earliest time that the alarm is set to go off by the user. For example, if the user needs to arrive at location A at 9:30 am, 8:30 am can be set in advance as the first set time. Generally, when setting the first set time, the user can consider the traffic congestion on the road and his own schedule. For example, if the user is driving to location A, if the driving road is congested, it may take 1 hour to reach location A, then the user can set the first set time as the desired earliest alarm reminder time. That is, if the alarm prompts at the first set time, the user can reach the destination (location A) in time even if the road is congested, which is not limited here.
[0037] The first set time can be arbitrarily set according to the user's experience and pre-stored in the device, and is not limited here.
[0038] Specifically, if the current time reaches the first set time, the device can obtain the current location of the device. For example, if the first set time is 8:30, then the device can call the geographic location acquisition device (such as the global satellite positioning system GPS) to obtain the current location when the current time is 8:30.
[0039] The current location may be specifically the geographical coordinates of the device, which is not limited here.
[0040] Step 102: Acquire real-time traffic information of one or more routes from the current location to a preset destination location.
[0041] The preset destination location is a place that the user expects to arrive at, such as a company, school, hospital, amusement park, etc., which is not limited here. The preset destination location can be location information set in advance by the user and stored by the device.
[0042] It should be noted that there may be one or more routes between the current location and the predetermined destination. The real-time traffic information for different routes may or may not be the same. For example, a traffic information retrieval request may be sent to a cloud server to obtain the real-time traffic information corresponding to each route from the cloud server.
[0043] It should be noted that in actual application scenarios, when travelers travel from their current location to a preset destination, the terminal can plan one or more routes through the map navigation system. This is based on a variety of factors, such as distance, road type (highway, urban road, etc.), and estimated travel time. Different routes have different real-time traffic information due to differences in geographical location, traffic flow distribution, and road construction. For example, during peak hours in the morning and evening, the main roads in the city may be severely congested, while the traffic conditions of some secondary roads or branches are relatively good.
[0044] Optionally, after determining its current location, the terminal can obtain a planned route. Based on this planned route, the terminal constructs a traffic information request. This request includes route identification information, such as the coordinate sequence of the route's starting and ending points, or a unique number generated internally for each route. The application then sends these requests to the cloud server via the network.
[0045] Cloud servers typically possess extensive databases and efficient data processing capabilities. They receive traffic information requests from numerous users and, based on the route identifiers in the requests, retrieve data from a database storing real-time traffic data. This real-time traffic data comes from a wide range of sources, including image recognition analysis results from traffic cameras, vehicle speed and density data collected by road sensors, and even anonymous traffic feedback uploaded by other users.
[0046] After the cloud server obtains the real-time traffic information of the corresponding route, it organizes and packages it and then sends it back to the terminal via the network.
[0047] Step 103: Determine the target transportation mode to be selected based on the real-time traffic information.
[0048] As a possible implementation method, the congestion level and weather impact information corresponding to each route can be determined based on real-time traffic information, and then the target transportation mode to be selected can be determined based on the congestion level and weather impact information corresponding to each route.
[0049] Optionally, a first score corresponding to the congestion level of each route and a second score corresponding to the weather impact information of each route can be determined first. Then, a reference score corresponding to each route can be determined based on the first score, the second score, the first weight corresponding to the congestion level, and the second weight corresponding to the weather impact information. When the reference score corresponding to any route is the highest, the transportation mode corresponding to any route is determined as the target transportation mode.
[0050] The first weight may be a congestion level weight, which indicates the impact of congestion level on route selection.
[0051] The second weight may represent the impact of weather on the route.
[0052] Among them, the degree of congestion can include severe congestion, mild congestion, and smooth roads. The degree of congestion can be quantified, for example, severe congestion is recorded as 3 points, mild congestion is recorded as 2 points, and smooth roads are recorded as 1 point.
[0053] Weather impact information refers to the current impact of weather on routes. For example, heavy rain or snow may cause water or snow accumulation on certain roads, impacting driving safety and speed. These affected routes are assigned a score based on the degree of impact: a significant impact is scored as 3 points, a minor impact is scored as 2 points, and virtually no impact is scored as 1 point. For example, a heavy snowstorm will significantly impact routes requiring driving, but will have a minimal impact on routes requiring subway travel.
[0054] For example, assuming a route's congestion score is F1, its weather impact score is F2, its congestion weight is W1, and its weather impact weight is W2, then the route's reference score S = F1*W1+F2*W2. For example, during the morning rush hour on a city road on a weekday, the congestion score F1, calculated based on speed and traffic volume, is 3. It's raining lightly that day, and after considering the precipitation and road characteristics, the weather impact score F2 is 2.5. Because it's a weekday morning rush hour and the trip is business, the congestion weight W1 is set to 0.7, and the weather impact weight W2 is set to 0.3. The route's reference score S = 3*0.7+2.5*0.3 = 2.85.
[0055] Furthermore, after calculating the reference scores for all available routes, the scores are compared. The route with the highest score becomes the target mode of transportation. For example, suppose there are three available routes: Route A has a reference score of 2.85 and is the subway; Route B has a reference score of 2.4 and is a car; and Route C has a reference score of 2.2 and is the bus. Route A's subway should be selected as the target mode of transportation.
[0056] In practice, other factors can be considered to fine-tune the reference score. For example, if the subway fare is high, the reference score of the subway line can be appropriately lowered; if a bus route requires multiple transfers, the reference score can also be lowered.
[0057] Step 104 : predicting a target time required to reach the destination location based on the target transportation mode.
[0058] The target time may be the predicted time required to move from the current location to the destination location.
[0059] It should be noted that both the current location and the destination location can be expressed in the form of latitude and longitude coordinates.
[0060] For example, if the destination location is a workplace, the workplace can be represented in a format recognizable by the mapping service, such as longitude and latitude coordinates. Alternatively, the workplace can be a specific location with a street name. The device can send a request to the navigation API provided by the mapping service. The mapping service can process this request, calculate the optimal driving route from the starting point (current location) to the end point (destination location), and estimate the driving time required, which is also known as the target time.
[0061] It's important to note that you can first obtain the average speed data for the target mode of transportation under current actual road conditions. For example, the subway is approximately 30-60 km / h, the bus is approximately 20-30 km / h when not congested, driving varies depending on road conditions and speed limits, and walking is approximately 4-6 km / h. Simultaneously, use mapping tools to accurately measure the length of the route from the departure point to the destination. For the same mode of transportation, the corresponding average speed data may vary under different actual road conditions. For public transportation, the stop time at each station must also be considered: approximately 30 seconds to 2 minutes per subway stop and approximately 1-3 minutes per bus stop. Additional time should be reserved for transfer stations. In combination with real-time road conditions, reduce speed appropriately in the event of congestion. Finally, using the formula "time = distance ÷ speed" and incorporating stop and transfer times, a more accurate target time can be predicted.
[0062] Step 105: Determine the alarm reminder time based on the target time.
[0063] The reminder time may be the time when the alarm clock sounds. For example, if the reminder time is 8:30 a.m., the alarm clock may sound a reminder tone at 8:30 a.m.
[0064] Optionally, when the target time is less than the first reference time, the second set time is used as the reminder time of the alarm clock.
[0065] The second set time is used to represent the latest alarm prompt time expected by the user, the target arrival time is used to represent the time when the user expects to arrive at the destination, and the first reference time is the time difference between the target arrival time and the second set time.
[0066] It should be noted that both the target arrival time and the second set time are times set in advance by the user. For example, if the company's morning clock-in time is 9:30, the user can set the target arrival time to 9:30. The target arrival time can indicate the time the user expects to arrive at the destination.
[0067] It is understandable that the second set time can be the latest time that the alarm is set to go off by the user. For example, if the user needs to arrive at location A at 9:30 am, 9 am can be set in advance as the second set time. Normally, when setting the second set time, the user can consider the traffic congestion on the road and his own schedule. For example, if the user is driving to location A, if the driving route is very smooth and there is no traffic jam, it may take half an hour to reach location A, then the user can set the second set time as the desired latest alarm reminder time. That is, if the alarm prompts at the second set time, the user can arrive at the destination (location A) in time if the road is smooth and there is no traffic jam, which is not limited here.
[0068] The second set time can be arbitrarily set according to the user's experience and pre-stored in the device, and is not limited here.
[0069] It is understandable that the first reference time can be the time difference between the target arrival time and the second set time. For example, if the target arrival time is 9:30 and the second set time is 9:00, the first reference time is half an hour.
[0070] It will be appreciated that the first reference time can be used to represent the user's ideal minimum time required to reach the destination from the current location using a specific mode of transportation. The target time represents the actual time required to reach the destination from the current location within the current time period. The device can compare the first reference time with the target time. If the first reference time is greater than the target time, it indicates that the current road is very clear, and the user can depart according to the latest alarm setting time, that is, the second set time, which will be used as the alarm reminder time.
[0071] In the disclosed embodiment, the device's current location is first acquired. Real-time traffic information for one or more routes from the current location to a preset destination is then obtained. Based on the real-time traffic information, a target transportation mode to be selected is determined. A target time to reach the destination is then predicted based on the target transportation mode. Finally, an alarm reminder time is determined based on the target time. In summary, by acquiring real-time traffic information to determine the target transportation mode, congested roads can be avoided, and relatively unobstructed routes and appropriate transportation modes can be selected, reducing travel time and improving travel efficiency. For example, in times of traffic congestion, public transportation such as the subway can be selected promptly to avoid long waits on the road. Predicting the target time to reach the destination based on the target transportation mode helps users more accurately plan their itineraries and arrange subsequent activities. For example, on a business trip, accurate arrival time is known, making it easier to schedule meetings or other matters in advance. Determining the alarm reminder time based on the predicted target time ensures that users can depart on time, avoiding delays caused by missing the departure time. This intelligent configuration method can better meet users' actual needs and provide more personalized services.
[0072] Figure 2 It is a flowchart of a method for determining an alarm reminder time provided according to the second embodiment of the present disclosure.
[0073] like Figure 2 As shown, the method includes:
[0074] Step 201: Get the current location of the device.
[0075] Step 202: Acquire real-time traffic information of one or more routes from the current location to a preset destination location.
[0076] Step 203: Determine the target transportation mode to be selected based on the real-time traffic information.
[0077] Step 204 : predicting a target time required to reach the destination location based on the target transportation mode.
[0078] It should be noted that the specific implementation of steps 201-204 can refer to the above embodiment and will not be described in detail here.
[0079] Step 205 : When the target time is less than the second reference time, the alarm prompt time is determined based on the time difference between the target arrival time and the target time.
[0080] The specific description of the target arrival time and the target time can refer to the above embodiment and will not be repeated here.
[0081] The target arrival time represents the time when the user expects to arrive at the destination, the first set time represents the earliest alarm prompt time expected by the user, and the second reference time is the time difference between the target arrival time and the first set time.
[0082] It is understandable that the second reference time can be the time difference between the target arrival time and the first set time. For example, if the target arrival time is 9:30 and the first set time is 8:30, the second reference time is 1 hour.
[0083] It will be appreciated that the second reference time can be used to represent the maximum time a user believes is required to reach the destination from the current location using a specific mode of transportation. The second reference time typically takes into account congestion caused by poor traffic. The target time represents the actual time required to reach the destination from the current location within the current time period. The device can compare the second reference time with the target time. If the second reference time is greater than the target time, it indicates that the traffic congestion from the current location to the destination has not reached the maximum congestion time the user believes is required.
[0084] Specifically, the target arrival time and the target time may be subtracted to determine the alarm prompt time.
[0085] For example, if the second reference time is 1 hour, the target time is 40 minutes, and the target arrival time is 9:30, then 8:50 can be used as the alarm reminder time. If the target time is 30 minutes, then 9:00 can be used as the alarm reminder time. If the target time is 20 minutes, then 9:10 can be used as the alarm reminder time. There is no limitation here.
[0086] Step 206: When the target time is greater than or equal to the second reference time, the first set time is used as the reminder time of the alarm clock.
[0087] It can be understood that if the target time is greater than or equal to the second reference time, if the second reference time is greater than or equal to the target time, it means that the current road is very congested. The user can set off according to the earliest alarm setting time, that is, the first set time, and use the first set time as the alarm reminder time.
[0088] In the disclosed embodiment, the device's current location is first acquired. Real-time traffic information for one or more routes between the current location and a preset destination is then obtained. A target mode of transportation to be selected is then determined based on the real-time traffic information. A target time required to reach the destination is then predicted based on the target mode of transportation. If the target time is less than a second reference time, an alarm time is determined based on the difference between the target arrival time and the target time. If the target time is greater than or equal to the second reference time, the first set time is used as the alarm time. Thus, by acquiring real-time traffic information for the routes between the device's current location and the destination, the target mode of transportation can be determined based on actual traffic conditions. This enables travel planning based on accurate data, allowing users to select the most suitable mode of transportation and route, avoid congestion, reduce travel time, and improve travel efficiency. For example, during rush hour in the morning and evening, users can promptly detect road congestion and choose a relatively stable mode of transportation, such as the subway or bus. Predicting the target time to reach the destination based on the target mode of transportation allows users to have a clear understanding of the time required for the entire trip. On this basis, the alarm reminder time is determined. Whether it is determined based on the time difference or using the set time, it can ensure that the user has enough time to prepare for departure, avoid rushing or delays caused by inaccurate time estimates, and help users better manage their time. Based on the comparison between the target time and the second reference time, different methods are used to determine the alarm reminder time to achieve personalized time scheduling. When the target time is less than the second reference time, setting the alarm based on the time difference allows the user to receive a reminder at the appropriate time, so that they will not wait too early or miss the departure opportunity; when the target time is greater than or equal to the second reference time, the first set time is used as the alarm reminder time, providing a relatively fixed and universal reminder method that adapts to different travel scenarios and user habits.
[0089] To facilitate better implementation of the disclosed method for determining the alarm time, the present disclosure also provides a device for determining the alarm time based on the aforementioned method. The meanings of the terms herein are the same as those in the aforementioned method for determining the alarm time. For specific implementation details, please refer to the description in the method embodiment.
[0090] See also Figure 3 , Figure 3 : is a schematic diagram of the structure of the device for determining the alarm reminder time provided by an embodiment of the present disclosure. The device 300 for determining the alarm reminder time includes:
[0091] A first acquisition module 310 is used to obtain the current location of the device;
[0092] A second acquisition module 320 is configured to acquire real-time traffic information of one or more routes between the current location and a preset destination location;
[0093] A first determining module 330 is configured to determine a target transportation mode to be selected based on the real-time traffic information;
[0094] A prediction module 340 is configured to predict a target time required to reach the destination location based on the target transportation mode;
[0095] The second determining module 350 is configured to determine the reminder time of the alarm clock based on the target time.
[0096] Optionally, the first determining module 330 includes:
[0097] A first determining unit is configured to determine the congestion level and weather impact information corresponding to each route based on the real-time traffic condition information;
[0098] The second determining unit is used to determine the target transportation mode to be selected according to the congestion level and weather impact information corresponding to each route.
[0099] Optionally, the second determining unit is specifically configured to:
[0100] determining a first score corresponding to a congestion level of each of the routes;
[0101] determining a second score corresponding to the weather impact information of each of the routes;
[0102] determining a reference score corresponding to each route according to the first score, the second score, a first weight corresponding to the congestion level, and a second weight corresponding to the weather impact information;
[0103] When the reference score corresponding to any route is the highest score, the transportation mode corresponding to the any route is determined as the target transportation mode.
[0104] Optionally, the second determining module 350 is specifically configured to:
[0105] When the target time is less than the first reference time, the second set time is used as the reminder time of the alarm clock.
[0106] Among them, the second set time is used to represent the latest alarm reminder time expected by the user, the target arrival time is used to represent the time when the user expects to arrive at the destination, and the first reference time is the time difference between the target arrival time and the second set time.
[0107] Optionally, the second determining module 350 is specifically configured to:
[0108] When the target time is less than the second reference time, determining the reminder time of the alarm clock based on the time difference between the target arrival time and the target time;
[0109] or,
[0110] When the target time is greater than or equal to the second reference time, the first set time is used as the reminder time of the alarm clock;
[0111] Among them, the target arrival time is used to represent the time when the user expects to arrive at the destination location, the first set time represents the earliest alarm prompt time expected by the user, and the second reference time is the time difference between the target arrival time and the first set time.
[0112] Optionally, the first acquisition module is specifically configured to:
[0113] In response to the current time reaching a first set time, the current location of the device is acquired, where the first set time represents the earliest alarm prompt time desired by the user.
[0114] In the disclosed embodiment, the device's current location is first acquired. Real-time traffic information for one or more routes from the current location to a preset destination is then obtained. Based on the real-time traffic information, a target transportation mode to be selected is determined. A target time to reach the destination is then predicted based on the target transportation mode. Finally, an alarm reminder time is determined based on the target time. In summary, by acquiring real-time traffic information to determine the target transportation mode, congested roads can be avoided, and relatively unobstructed routes and appropriate transportation modes can be selected, reducing travel time and improving travel efficiency. For example, in times of traffic congestion, public transportation such as the subway can be selected promptly to avoid long waits on the road. Predicting the target time to reach the destination based on the target transportation mode helps users more accurately plan their itineraries and arrange subsequent activities. For example, on a business trip, accurate arrival time is known, making it easier to schedule meetings or other matters in advance. Determining the alarm reminder time based on the predicted target time ensures that users can depart on time, avoiding delays caused by missing the departure time. This intelligent configuration method can better meet users' actual needs and provide more personalized services.
[0115] In addition, the present disclosure also provides an electronic device, such as Figure 4 , which shows a schematic structural diagram of the electronic device involved in the present disclosure, specifically:
[0116] The electronic device may include one or more processing core processors 401, one or more computer-readable storage media memories 402, a power supply 403, an input unit 404 and other components. Those skilled in the art will understand that Figure 4 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently.
[0117] Processor 401 is the control center of the electronic device, connecting the various parts of the entire electronic device using various interfaces and lines. By running or executing software programs and / or modules stored in memory 402 and accessing data stored in memory 402, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, processor 401 may include one or more processing cores; preferably, processor 401 may integrate an application processor and a modem processor, wherein the application processor primarily processes the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 401.
[0118] 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 device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0119] The electronic device also includes a power supply 403 for supplying power to various components. Preferably, the power supply 403 can be logically connected to the processor 401 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 403 can also include one or more DC or AC power supplies, a recharging system, a power supply device debugging circuit, a power converter or inverter, a power status indicator, and other arbitrary components.
[0120] The electronic device may further include an input unit 404, which may be configured to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0121] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 401 in the electronic device will load the executable files corresponding to one or more application processes into the memory 402 according to the following instructions, and the processor 401 will run the application stored in the memory 402, thereby implementing the steps of any of the methods for determining the alarm time provided in the embodiments of the present disclosure.
[0122] In the disclosed embodiment, the device's current location is first acquired. Real-time traffic information for one or more routes from the current location to a preset destination is then obtained. Based on the real-time traffic information, a target transportation mode to be selected is determined. A target time to reach the destination is then predicted based on the target transportation mode. Finally, an alarm reminder time is determined based on the target time. In summary, by acquiring real-time traffic information to determine the target transportation mode, congested roads can be avoided, and relatively unobstructed routes and appropriate transportation modes can be selected, reducing travel time and improving travel efficiency. For example, in times of traffic congestion, public transportation such as the subway can be selected promptly to avoid long waits on the road. Predicting the target time to reach the destination based on the target transportation mode helps users more accurately plan their itineraries and arrange subsequent activities. For example, on a business trip, accurate arrival time is known, making it easier to schedule meetings or other matters in advance. Determining the alarm reminder time based on the predicted target time ensures that users can depart on time, avoiding delays caused by missing the departure time. This intelligent configuration method can better meet users' actual needs and provide more personalized services.
[0123] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0124] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished 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.
[0125] To this end, the present disclosure provides a computer-readable storage medium having a computer program stored thereon. The computer program can be loaded by a processor to execute the steps in any one of the methods for determining the alarm time provided in the present disclosure.
[0126] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0127] 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.
[0128] Since the instructions stored in the computer-readable storage medium can execute the steps in any method for determining the alarm prompt time provided in the present disclosure, the beneficial effects that can be achieved by any method for determining the alarm prompt time provided in the present disclosure can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0129] The above is a detailed introduction to the method, device, electronic device and computer-readable storage medium for determining the alarm time provided by the present disclosure. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for determining an alarm time, characterized in that: include: Get the current location of the device; Obtaining real-time traffic information for one or more routes between the current location and a preset destination location; Determining a target transportation mode to be selected based on the real-time traffic information; Predicting a target time required to reach the destination location based on the target mode of transportation; Based on the target time, a reminder time of the alarm clock is determined.
2. The method according to claim 1, characterized in that The determining of a target transportation mode to be selected based on the real-time traffic information includes: Determining the congestion level and weather impact information corresponding to each route based on the real-time traffic condition information; Determine the target mode of transportation to be selected based on the congestion level and weather impact information corresponding to each route.
3. The method according to claim 2, characterized in that Determining the target transportation mode to be selected based on the congestion level and weather impact information corresponding to each route includes: determining a first score corresponding to a congestion level of each of the routes; determining a second score corresponding to the weather impact information of each of the routes; determining a reference score corresponding to each route according to the first score, the second score, a first weight corresponding to the congestion level, and a second weight corresponding to the weather impact information; When the reference score corresponding to any route is the highest score, the transportation mode corresponding to the any route is determined as the target transportation mode.
4. The method according to claim 1, wherein The step of determining the alarm prompt time based on the target time includes: When the target time is less than the first reference time, the second set time is used as the reminder time of the alarm clock. Among them, the second set time is used to represent the latest alarm reminder time expected by the user, the target arrival time is used to represent the time when the user expects to arrive at the destination, and the first reference time is the time difference between the target arrival time and the second set time.
5. The method according to claim 1, characterized in that The step of determining the alarm prompt time based on the target time includes: When the target time is less than the second reference time, determining the reminder time of the alarm clock based on the time difference between the target arrival time and the target time; or, When the target time is greater than or equal to the second reference time, the first set time is used as the reminder time of the alarm clock; Among them, the target arrival time is used to represent the time when the user expects to arrive at the destination location, the first set time represents the earliest alarm prompt time expected by the user, and the second reference time is the time difference between the target arrival time and the first set time.
6. The method according to claim 1, characterized in that The obtaining of the current location of the device includes: In response to the current time reaching a first set time, the current location of the device is acquired, where the first set time represents the earliest alarm prompt time desired by the user.
7. A device for determining an alarm time, characterized in that: include: A first acquisition module is used to obtain the current location of the device; A second acquisition module is used to obtain real-time traffic information of one or more routes between the current location and a preset destination location; A first determining module is used to determine a target transportation mode to be selected based on the real-time traffic information; A prediction module, configured to predict a target time required to reach the destination location based on the target transportation mode; The second determining module is used to determine the reminder time of the alarm clock based on the target time.
8. The device according to claim 7, characterized in that The first determining module is specifically configured to: Determining the congestion level and weather impact information corresponding to each route based on the real-time traffic condition information; Determine the target mode of transportation to be selected based on the congestion level and weather impact information corresponding to each route.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to execute the steps in the method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the method according to any one of claims 1 to 6.