WO2021082608A1 - Method and electronic device for prompting travel plan - Google Patents

Method and electronic device for prompting travel plan Download PDF

Info

Publication number
WO2021082608A1
WO2021082608A1 PCT/CN2020/108165 CN2020108165W WO2021082608A1 WO 2021082608 A1 WO2021082608 A1 WO 2021082608A1 CN 2020108165 W CN2020108165 W CN 2020108165W WO 2021082608 A1 WO2021082608 A1 WO 2021082608A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
travel
user
time
travel plan
Prior art date
Application number
PCT/CN2020/108165
Other languages
French (fr)
Chinese (zh)
Inventor
吴金娴
许翔
朱智超
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021082608A1 publication Critical patent/WO2021082608A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/36Input/output arrangements for on-board computers
    • G01C21/3626Details of the output of route guidance instructions
    • G01C21/3632Guidance using simplified or iconic instructions, e.g. using arrows
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/3407Route searching; Route guidance specially adapted for specific applications
    • G01C21/3423Multimodal routing, i.e. combining two or more modes of transportation, where the modes can be any of, e.g. driving, walking, cycling, public transport
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/3453Special cost functions, i.e. other than distance or default speed limit of road segments
    • G01C21/3484Personalized, e.g. from learned user behaviour or user-defined profiles
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/36Input/output arrangements for on-board computers

Definitions

  • the embodiments of the present application relate to the field of electronic technology and intelligent recommendation technology, and in particular to a method and electronic device for prompting a travel plan.
  • the electronic device can make statistics or receive user settings, and obtain the frequent locations and travel time of the user in the daily life, work, and study process of the user.
  • the electronic device can obtain statistics about the location of the user's home and company, the travel time of the user from home to the company, and the travel time of the user from the company to the home.
  • the electronic device can recommend the optimal travel route using the default travel mode (such as driving) to the user before the user's commuting time.
  • the optimal travel route may be a travel route determined by the electronic device according to real-time traffic conditions. For example, suppose that the mobile phone 100 counts that the user's travel time to work is 7:20. The mobile phone 100 can recommend a travel plan to the user before 7:20 through a notification message or the negative one screen shown in Figure 1A (a), such as taking a bus as shown in Figure 1A (b) Go to work via route a.
  • the above-mentioned optimal travel route (such as route a) is a travel route determined by the electronic device according to real-time traffic conditions; however, the optimal travel route or the default travel mode may not conform to the user's travel habits and does not meet the actual needs of the user .
  • the user may need to drive the children to the kindergarten, and then drive to the company to work; instead of taking the bus to go to work via route a.
  • the travel plan recommended by the above electronic device to the user does not meet the actual needs of the user, and the possibility of being adopted by the user is low.
  • the electronic device needs to re-recommend the travel plan for the user. Therefore, the efficiency of the electronic device for travel recommendation is low. .
  • the embodiment of the present application provides a method and an electronic device for prompting a travel plan.
  • the electronic device can intelligently recommend a travel plan that is highly compatible with the user's travel habits. In this way, it is possible to recommend a travel plan that is more suitable for the user's needs for the user, improve the practicability and efficiency of the intelligent recommendation of electronic equipment, and better provide convenience for the user's daily life.
  • an embodiment of the present application provides a method for prompting a travel plan, and the method can be applied to an electronic device.
  • the method may include: when the electronic device satisfies preset conditions, obtaining the first travel plan from the user portrait stored in the electronic device according to the current time and the current location of the electronic device; and displaying prompt information related to the first travel plan .
  • the above-mentioned first travel plan includes a first travel route.
  • the first travel route includes a starting position, an ending position, and an intermediate position between the starting position and the ending position.
  • the electronic device can intelligently obtain the first travel plan from the user portrait according to the current time and current location when the preset condition is satisfied. Because the user portrait can reflect the user's possible behaviors or preferences in different scenarios (such as time and location). Therefore, the first travel plan that the electronic device obtains from the user's portrait according to the current time and current location is more compatible with the user's travel habits and better meets the user's needs.
  • the electronic device can intelligently recommend a travel plan that is highly compatible with the user's travel habits to the user.
  • a travel plan that is more suitable for the user's needs for the user, improve the practicability and efficiency of the intelligent recommendation of electronic equipment, and better provide convenience for the user's daily life.
  • the above-mentioned intermediate position between the start position and the end position may be: a position set by the user received by the electronic device.
  • the above starting location is the user's home
  • the ending location is the user's company.
  • users go to work from home to the company, they must first send their children from home to the kindergarten, and then go to the company from the kindergarten.
  • the user can set the kindergarten in the electronic device as an intermediate position between the starting position and the ending position, and the electronic device can receive the intermediate position set by the user.
  • the above-mentioned intermediate position between the start position and the end position may be a position automatically recorded by the electronic device.
  • the position automatically recorded by the above electronic device may include: the position between the start position and the end position, the stay time and/or the number of elapsed times of the electronic device meets the preset stay condition .
  • the locations that meet the preset stay conditions include: locations where the stay time and/or the number of passes are greater than a preset threshold, or the locations where the stay time and/or the number of passes are the longest.
  • the electronic device can count the staying time or the number of elapsed times at each position when the electronic device stays or passes through multiple positions during the movement from the above-mentioned starting position to the ending position. Then, the electronic device may determine that the position between the start position and the end position, where the stay time and/or the number of passes of the electronic device meet the preset stay condition, is the intermediate position.
  • the above-mentioned first travel plan may also include the first travel mode.
  • the first travel mode can be any travel mode such as bus, driving, subway, cycling, walking, train, airplane or bus. That is to say, the electronic device can also obtain the first travel mode that is more suitable for the user's needs when the user passes the above-mentioned first travel route from the user portrait.
  • satisfying the preset condition may include: arriving at the first time.
  • the first time is preset according to the travel time of the first travel plan, or the first time is periodically acquired by the electronic device.
  • the electronic device can set the above-mentioned first time according to the daily travel time of the user in the user portrait. Then, when the electronic device arrives at the first time, it can recommend the above-mentioned first travel plan for the user according to the current time and current location.
  • satisfying the preset condition may include: arriving at the first time, and the current position of the electronic device matches the first position.
  • the first time is preset according to the travel time of the first travel plan, or the first time is periodically acquired by the electronic device, and the first position is preset according to the starting position of the first travel plan of.
  • the matching of the current position of the electronic device with the first position specifically refers to: the distance between the current position of the electronic device and the first position is less than a preset distance threshold.
  • the electronic device when the electronic device can arrive at the first time, and the current location of the electronic device matches the first location, the above-mentioned first travel plan is recommended for the user according to the current time and the current location.
  • the degree of fit between the first travel plan and the user's needs can be further improved, the practicability and efficiency of the intelligent recommendation of electronic devices can be improved, and the convenience of the user's daily life can be better provided.
  • the period for the electronic device to periodically obtain the current time may be pre-configured.
  • the period may also be set by the user received by the electronic device.
  • the aforementioned period can be any time length such as 5 minutes, 10 minutes, 15 minutes, 30 minutes, 5 seconds, 10 seconds, 20 seconds, or 1 second. It can be understood that when the foregoing period is relatively small (for example, the period is 5 seconds or 1 second), it is equivalent to the electronic device acquiring the current time in real time.
  • the above-mentioned obtaining the first travel plan from the user portrait of the electronic device according to the current time and current location may include: the electronic device searches the user portrait for the current time and current time. The first travel plan that matches the location.
  • the first travel time of the first travel plan is the same as the current time, or the range of the first travel time includes the current time, and the starting position of the first travel plan is the same as the current position, or the starting position of the first travel plan
  • the range of includes the current position.
  • the range of the first travel time includes the current time, and may specifically be: the time difference between the current time and the first travel time is less than a preset duration threshold.
  • the current time may be before the first travel time, or the current time may be after the first travel time.
  • the range of the starting position of the first travel plan includes the current position, and may specifically be: the distance between the starting position of the first travel plan and the current position is less than a preset distance threshold.
  • the electronic device may arrive at the travel time of the first travel plan (ie, the first travel time) Before, or the electronic device may provide the user with the first travel plan within a certain time (that is, the preset time threshold) after the first travel time.
  • the electronic device may display the above-mentioned prompt information through at least one of a notification message, a notification bar, a negative screen, or a map application. That is to say, in the embodiment of the present application, the electronic device can recommend travel plans to the user through multiple channels.
  • the electronic device after the electronic device displays the prompt information through at least one of a notification message, a notification bar, a negative screen, or a map application, the electronic device can receive a notification to the prompt information.
  • the electronic device may display the first interface.
  • the first interface indicates a first travel route including a start position, an end position, and an intermediate position.
  • the electronic device does not directly display the first interface including the travel plan; instead, it first displays the prompt information through at least one of a notification message, a notification bar, a negative screen, or a map application. If the electronic device receives a user operation on the prompt information, it means that the user has a need to view the travel plan. The electronic device responds to the user's user operation on the prompt information, and displays the first interface for indicating the travel plan only when the user has a need to view the travel plan.
  • the method of the embodiment of the present application may further include: the electronic device counts the movement trajectory of the electronic device and the movement pattern of the electronic device; and generates a user portrait according to the movement trajectory and the movement pattern; Save the user portrait.
  • the method of the embodiment of the present application may further include: counting user operations received by the electronic device in a preset application; generating a user portrait according to at least one of the user operations; and saving the user portrait.
  • the electronic device counts the movement trajectory, movement mode of the electronic device, and user operations received by the electronic device in a preset application; generates a user portrait according to the movement trajectory, movement mode, and user operation; saves the user portrait.
  • the aforementioned motion trajectory is used to determine the starting position, ending position and intermediate position, as well as the travel time of the first travel plan.
  • This operating mode is used to determine the first mode of travel.
  • the aforementioned user operations are used to determine the starting position, the ending position, and the intermediate position, the travel time of the first travel plan, and the first travel mode.
  • the above-mentioned preset application includes one or more of the following applications: an application that provides users with a scan code service of public transportation, and an application that provides users with a ride-hailing service , To provide users with applications for positioning, route search and navigation services.
  • the above-mentioned public transportation means include one or more of the following transportation means: buses, subways, and shared transportation means.
  • the above-mentioned sports mode includes one or more of the following modes: static mode, walking mode, running mode, cycling mode, bus mode, subway mode, and driving mode .
  • an embodiment of the present application provides an electronic device, which may include a display screen, a memory, and one or more processors.
  • the display screen, the memory and the processor are coupled.
  • the display screen may include a touch screen.
  • the memory is used to store computer program code, and the computer program code includes computer instructions.
  • the electronic device is caused to perform the following steps: when the preset conditions are met, obtain the first travel plan from the user portrait stored in the electronic device according to the current time and the current location of the electronic device
  • the first travel plan includes a first travel route, the first travel route includes at least a starting position, an ending position, and an intermediate position between the starting position and the ending position; displayed on the display screen Reminder information related to the first travel plan.
  • the above-mentioned obtaining the first travel plan from the user portrait stored in the electronic device according to the current time and the current location of the electronic device includes: searching from the user portrait The first travel plan that matches the current time and current location.
  • the first travel time of the first travel plan is the same as the current time, or the range of the first travel time includes the current time
  • the starting position of the first travel plan is the same as the current position, or the first travel plan The range of the starting position includes the current position.
  • the above-mentioned displaying the prompt information on the display screen includes: displaying the prompt information through at least one of a notification message, a notification bar, a negative screen, or a map application .
  • the electronic device after displaying the prompt information, the electronic device further performs the following steps: receiving a user operation on the prompt information; in response to the user operation, displaying the first Interface; wherein, the first interface indicates the first travel route including the starting position, the ending position and the intermediate position.
  • the electronic device when the computer instruction is executed by the processor, the electronic device is caused to perform the following steps: Count the movement trajectory of the electronic device and the movement mode of the electronic device; The motion trajectory and the motion mode generate the user portrait; save the user portrait; or, count the user operations received by the electronic device in a preset application; according to at least one of the user operations, Generate the user portrait; save the user portrait; or, calculate the movement trajectory, movement mode of the electronic device, and user operations received by the electronic device in a preset application; according to the movement trajectory and the movement mode Operate with the user to generate the user portrait; save the user portrait.
  • the embodiments of the present application provide a chip system, which is applied to the electronic device described in the second aspect and any of its design methods.
  • the chip system includes one or more interface circuits and one or more above-mentioned processors.
  • the interface circuit and the processor are interconnected by wires.
  • the processor is used to receive and execute the above-mentioned computer instructions from the memory of the electronic device through the interface circuit.
  • an embodiment of the present application provides a computer-readable storage medium for storing the computer instructions for the operation of the electronic device described in the second aspect and any of its possible design methods .
  • an embodiment of the present application provides a computer program product, including the computer instructions for the operation of the electronic device as described in the second aspect and any of its possible design methods.
  • the electronic device described in the second aspect and any one of its possible design methods provided above the chip system described in the third aspect, the computer-readable storage medium described in the fourth aspect, and the electronic device described in the fifth aspect
  • the beneficial effects that can be achieved by the computer program product described above please refer to the beneficial effects in the first aspect and any of its possible design methods, which will not be repeated here.
  • FIG. 1A is a schematic diagram of an example of a recommended interface of a travel plan provided by an embodiment of this application;
  • FIG. 1B is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the application.
  • Figure 2 is a flow chart of a method for prompting a travel plan provided by an embodiment of the application
  • FIG. 3 is a schematic diagram of a principle of obtaining a user portrait provided by an embodiment of the application.
  • FIG. 4 is a flowchart of another method for prompting a travel plan provided by an embodiment of the application.
  • FIG. 5 is a schematic diagram of an example of a recommendation interface of another travel plan provided by an embodiment of the application.
  • FIG. 6 is a schematic diagram of an example of a recommendation interface of another travel plan provided by an embodiment of the application.
  • FIG. 7 is a schematic diagram of an example of a recommendation interface of another travel plan provided by an embodiment of the application.
  • FIG. 8 is a schematic diagram of an example of a recommendation interface of another travel plan provided by an embodiment of the application.
  • FIG. 9 is a schematic diagram of an example of a recommendation interface of another travel plan provided by an embodiment of the application.
  • FIG. 10 is a schematic diagram of an example of a recommendation interface of another travel plan provided by an embodiment of the application.
  • FIG. 11 is a schematic diagram of an example of a recommendation interface of another travel plan provided by an embodiment of the application.
  • FIG. 12 is a schematic diagram of an example of a recommendation interface of another travel plan provided by an embodiment of the application.
  • FIG. 13 is a schematic structural diagram of a chip system provided by an embodiment of the application.
  • first and second are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with “first” and “second” may explicitly or implicitly include one or more of these features. In the description of this embodiment, unless otherwise specified, “plurality” means two or more.
  • the embodiment of the present application provides a method for prompting a travel plan, and the method can be applied to a process in which an electronic device intelligently provides a travel recommendation service for a user.
  • the electronic device may determine the daily preferred travel route of the user from the user portrait, and/or the common travel mode of the user.
  • the electronic device can recommend to the user a travel plan that is more compatible with the user's travel habits and better meets the needs of the user according to the travel route, or travel route and travel mode determined in the user portrait, and improves the intelligent recommendation of the electronic device. Practicality and efficiency can better provide convenience for users' daily life.
  • the electronic device in the embodiments of the present application may be a mobile phone, a tablet computer, a desktop computer, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, and a cellular phone.
  • PDA personal digital assistant
  • AR augmented reality
  • VR virtual reality
  • vehicle-mounted equipment such as car navigator
  • other equipment with positioning function this application is implemented
  • the example does not impose special restrictions on the specific form of the electronic equipment.
  • FIG. 1B is a schematic structural diagram of an electronic device 100 provided by an embodiment of this application.
  • the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, and a battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the aforementioned sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, and a touch sensor 180K, Ambient light sensor 180L and bone conduction sensor 180M and other sensors.
  • the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • AP application processor
  • GPU graphics processing unit
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that the processor 110 has just used or used cyclically. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the processor 1110 can interact with other devices of the electronic device 100 through the one or more interfaces.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites.
  • WLAN wireless local area networks
  • Wi-Fi wireless fidelity
  • BT bluetooth
  • global navigation satellites System (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the electronic device 100 can realize a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back by the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the electronic device 100 may include one or N cameras 193, and N is a positive integer greater than one.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, and so on.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121.
  • the processor 110 may execute instructions stored in the internal memory 121, and the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the earphone interface 170D is used to connect wired earphones.
  • the button 190 includes a power-on button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations that act on different applications can correspond to different vibration feedback effects.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
  • the electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the methods in the following embodiments can all be implemented in the electronic device 100 having the above-mentioned hardware structure.
  • the above-mentioned electronic device 100 is a mobile phone as an example to describe the method of the embodiment of the present application.
  • the embodiment of the present application provides a method for prompting a travel plan.
  • the method for prompting a travel plan may include steps S201-S203.
  • step S201 can also be referred to as a "user portrait” process
  • steps S202-203 can be referred to as a "travel recommendation” process.
  • the steps S201-S203 will be described in detail below.
  • the mobile phone generates and saves a user portrait.
  • User portraits also known as user roles, are virtual representatives of real users. User portraits can analyze the user's historical behavior through related algorithms based on the acquired user data. At the same time, the user portrait can be used to predict the user's possible behavior or preferences in different scenarios based on the user's historical behavior.
  • the user portrait may include: one or more user travel routes, and each travel route includes a starting position and an ending position of the trip.
  • the travel route may also include: an intermediate position between the start position and the end position. Different intermediate positions can be used to determine different travel routes between the same pair of starting and ending positions.
  • the user portrait may not be saved in the mobile phone.
  • the mobile phone After the mobile phone leaves the factory, starting from the first startup of the mobile phone, as long as the relevant functions of the mobile phone (such as positioning function, mobile network, etc.) are turned on, the mobile phone can generate a user portrait according to the method described in this embodiment.
  • the mobile phone can count the travel information of the user and generate the user portrait.
  • the mobile phone may collect travel information of users within a preset time range to generate user portraits, where the preset time range may be any length of time such as 1 week, 10 days, 15 days, or 1 month.
  • the travel time for work is 7:40-7:50
  • the travel time for off-get off work is 18:00-18:20.
  • the user drives to work he sends the children to the kindergarten first, and then he goes to work in his company.
  • the user drives off from get off work he first picks up the children from the company to the kindergarten and then goes home.
  • the travel time is 9:10-9:30; and on Saturday, 12:10-12: 20. From the hobby class, take the bus to position 1, and then take the subway from position 1 to go home.
  • the mobile phone can count the travel information of the mobile phone and generate the user portrait shown in Table 1.
  • the mobile phone can store multiple travel plans in the user portrait.
  • each travel plan includes three elements: travel route, travel mode and travel time.
  • at least one element is different.
  • the difference in travel routes means that any one or more of the starting position, the middle position and the ending position are different.
  • the user profile shown in Table 1 includes travel plan (1), travel plan (2), travel plan (3), travel plan (4), travel plan (5), and travel plan (6).
  • the start of the scheme (1) and the scheme (2) are different, and the end position is also different.
  • every travel route in the user portrait includes an intermediate position. As long as there is one travel route including the middle position.
  • the user portrait in the embodiment of the present invention may also be the user portrait shown in Table 2.
  • the following describes the content and acquisition method of each element such as travel route, travel mode, and travel time in the user portrait one by one.
  • the travel route can include: a starting position, an ending position, and an intermediate position.
  • the mobile phone can obtain the location information of multiple locations, and determine the starting location, the middle location, and the ending location required to generate the user portrait based on the location information.
  • the mobile phone may use the following methods to count the multiple location information.
  • Manner (1) The mobile phone can determine the location range of the mobile phone through the identification of the base station to which the mobile phone is connected, so as to obtain the aforementioned multiple location information.
  • Manner (2) The mobile phone can obtain the specific location of the mobile phone through a user operation triggered when the user uses a preset application with a location service.
  • Method (3) The mobile phone can periodically/non-periodically automatically (that is, no user operation is required) to trigger the mobile phone's location service (such as GPS) to perform positioning, and obtain and record the specific location of the mobile phone.
  • the above method (1) usually judges the location range of the mobile phone.
  • the mobile phone can record the corresponding relationship between the base station's identity and the specific location.
  • certain conditions for example, the connection duration exceeds the preset duration
  • the mobile phone can be considered to be in a specific location within the coverage area of the base station. For example, if the user is at home for a long time at night, the mobile phone has previously obtained the specific location of the home through method (2). If the user’s mobile phone has been connected to the base station at home at night, it can be considered that the user has been at home during the night Or near home). Other locations on the travel route can also be judged in this way.
  • the preset applications in the above method (2) include but are not limited to: instant messaging applications that can share real-time location, such as WeChat applications; applications that can provide location services, route search services, navigation services, and/or ride-hailing services, such as Baidu Map applications and AutoNavi map applications, etc.; applications that can provide ride-hailing services, such as Didi travel applications, uber applications, Alipay applications, and WeChat applications; applications that can provide takeaway services, such as Meituan applications and Dianping applications; Applications that provide code scanning services for shared bicycles, such as the Mobike bicycle application and ofo shared bicycle applications; applications that provide code scanning services for buses or subways, such as Alipay and WeChat applications.
  • the preset application can be any application that can be used to obtain the current real-time location information of the mobile phone.
  • the location service can also be called the location service.
  • the location service of the mobile phone can provide specific location information to the mobile phone.
  • the positioning service of the mobile phone may use the Global Positioning System (Global Positioning System, GPS) or BeiDou Navigation System (BeiDou Navigation Satellite System, BDS) to achieve positioning, which is not specifically limited in the embodiment of the present invention.
  • the user operation in the above method (2) may include: the user's operation of sharing real-time location with other devices in WeChat; the user's operation of using services such as positioning, navigation or route search in the map application; the user's operation of providing car-hailing services The operation of using the ride-hailing service in the application; the operation of the user using the take-out service in an application that provides the take-out service; and the operation of the scanning code service of the user using public transportation.
  • the user operation here can be any operation that can trigger a preset application location service, so that the mobile phone can obtain the current real-time location information of the mobile phone.
  • the mobile phone can be set to periodically automatically trigger GPS or other positioning services to obtain the user's location and record it.
  • the mobile phone can also set non-periodical, such as certain specific time, to automatically trigger the location service to obtain the user's location and record it. It is understandable that when the set period is small enough, the location service is triggered periodically, that is, to obtain the location service in real time.
  • the mobile phone can obtain multiple location information in the above-mentioned manner, and combine the above-mentioned location information and the stay time of the mobile phone at each location to determine the starting position and the ending position of the user's travel route.
  • each of the above-mentioned location information can correspond to a location.
  • the start position and the end position may be positions that satisfy a preset time condition among the positions corresponding to the plurality of position information.
  • the aforementioned preset time condition may include: the length of time that the mobile phone continuously stays is greater than the first preset time period; and/or the time that the mobile phone continuously stays is within a preset time period.
  • the aforementioned first preset time length may be any time length such as 2 hours, 4 hours, 6 hours, or 8 hours.
  • the foregoing preset time period may include: 8:00 to 22:00 or 23:00 to 7:00 the next day. It can be understood that according to the daily routine of the general user, the location of the mobile phone during the time period from 8:00 to 22:00 can be the user's company (or work place); the mobile phone continuously stays at 23: The location in the time period from 00 to 7:00 of the next day may be the user's home.
  • the user portrait can only record the initial position and the ending position, and it is not necessary to judge whether the initial position or the ending position is a home or a company.
  • the name of the location (for example, home or company) can be set by the user in the mobile phone.
  • the above-mentioned intermediate position is located between the start position and the end position. In other words, from the start position to the end position, it is necessary to pass the above-mentioned intermediate position.
  • the mobile phone can use any one or any combination of the following three methods to determine the middle position.
  • the intermediate location (for example, the intermediate destination) may be a location set by the user received by the mobile phone.
  • the kindergarten here is an intermediate location (intermediate destination) between the user's home and the company.
  • the intermediate position may be a position automatically recorded by the electronic device.
  • the location is set as an intermediate location.
  • the above-mentioned time condition includes that the stay time exceeds a preset duration threshold and/or the stay time is the longest
  • the number condition includes that the number of stays exceeds the preset number threshold and/or the number of stays is the largest.
  • the duration threshold can be 10 minutes or 15 minutes, etc.
  • the mobile phone can also be automatically recorded by an electronic device.
  • the position obtained by detecting the user's operation is determined as the above-mentioned intermediate position.
  • the mobile phone may receive operations that trigger location services, such as a bus scan code operation triggered by the user when using the WeChat application or a navigation operation triggered when using a map application.
  • trigger location services such as a bus scan code operation triggered by the user when using the WeChat application or a navigation operation triggered when using a map application.
  • the mobile phone can determine the position acquired according to the user's operation as an intermediate position between the start position and the end position.
  • the intermediate position that the user has passed the most times can be prioritized as the intermediate position in the user portrait.
  • the mobile phone can also determine the movement trajectory according to multiple position information, and correct or delete the deviated positions on the travel route according to the movement trajectory, so as to improve the accuracy of the travel route.
  • the travel time is the departure time recorded by the mobile phone for the user to move from the starting position to the ending position. It can be understood that multiple actual departure times for the user to move from the same starting position to the same ending position are not necessarily the same. These different actual departure times can be distributed in a time period. Therefore, the travel time in the user portrait can be a period of time.
  • Ways of travel may include one or more ways such as buses, subways, biking, walking, driving, trains, or airplanes.
  • the mobile phone can use the following methods to determine the user's travel mode.
  • the mobile phone can analyze the movement mode according to the movement acceleration from one position (such as the starting position) to another position (such as the ending position), and learn and generate travel modes according to the movement mode.
  • the sports mode may include a stationary mode, a walking mode, a running mode, a cycling mode, a bus mode, a subway mode, a driving mode, and so on. Since the mobile phone has different motion accelerations when the mobile phone is in the above-mentioned different modes, the mobile phone can determine the motion mode of the mobile phone according to the motion acceleration collected by the acceleration sensor, and then determine the corresponding travel mode.
  • the mobile phone can determine the travel mode through the user's user operation in the preset application/service.
  • the mobile phone can be determined by the user's operation of scanning the subway ride code, the unlocking operation triggered in the shared bicycle application, and other interactions.
  • the travel mode of the mobile phone from the start position to the end position is the travel mode of the travel route including the start position and the end position.
  • a travel route may include multiple travel modes, for example, travel mode 1 (for example, subway) is used from the start position to the middle position, and travel mode 2 (for example, bus or shared bicycle) is used from the middle position to the end position.
  • the mobile phone can count the mobile phone's motion trajectory (301) and motion mode (302), and generate a user portrait according to the corresponding position information and motion mode in the motion trajectory , And save the user portrait.
  • the mobile phone can count the user operations received by the mobile phone in the preset application (303), generate a user portrait according to the user operation, and save the user portrait.
  • the mobile phone can count the mobile phone's motion trajectory, motion mode, and user operations received by the mobile phone in a preset application; generate and save the user portrait according to the corresponding position information, motion mode, and user operation in the motion trajectory.
  • the mobile phone can update the above-mentioned user portrait in real time or periodically. In this way, it is possible to intelligently recommend a travel plan that is more in line with the actual needs of the user, improve the practicability and efficiency of the intelligent recommendation of electronic equipment, and better provide convenience for the user's daily life.
  • the update cycle of the user portrait may be the same as or different from the aforementioned statistical cycle for generating the user portrait.
  • the first travel plan includes a first travel route, and the first travel route includes at least a start position, an end position, and at least one intermediate position between the start position and the end position.
  • the mobile phone can obtain the first travel plan from the user portrait of the mobile phone according to the current time and current location when the preset condition is satisfied.
  • the first travel plan in the user portrait may be generated and stored before the preset condition is satisfied, or may be generated in real time when the preset condition is satisfied.
  • the mobile phone may pre-store the user's travel information for each trip within a preset time range in the user portrait, such as the start position, the end position, the middle position, the travel time, and the travel mode.
  • the mobile phone analyzes the travel information in real time and generates a travel plan.
  • the foregoing meeting the preset condition may specifically be any one of the following two situations.
  • the foregoing meeting preset conditions may include: arriving at the first time.
  • the first time is preset according to the travel time of the first travel plan, or is periodically acquired by the electronic device.
  • the aforementioned first-time preset can be executed automatically by the mobile phone, or manually executed by the user.
  • the above-mentioned current location may be acquired when the first time arrives.
  • the user portrait saved in the mobile phone may include one or more travel plans.
  • the mobile phone or the user can set the above-mentioned first time according to the travel time of each travel plan or only according to the travel time of some travel plans.
  • the above-mentioned first time may be earlier than the travel time of the first travel plan. It can be understood that in the statistical period, the actual travel time of the user moving from the starting position to the ending position may not be exactly the same, but these actual travel times may be within a period of time. In other words, the travel time in the user portrait can be a time period. For example, as shown in Table 1, the travel time of travel plan (1) is 7:40-7:50 from Monday to Friday.
  • the travel time of the first travel plan is a time period determined by the start time b and the end time c.
  • the above-mentioned first time is earlier than the travel time of the first travel plan, specifically: the first time is time a, time c, or any time between time a and time c.
  • the time a is before the time b, and the time a is different from the time b by a preset duration threshold.
  • the preset duration threshold is 10 minutes.
  • the travel time of the travel plan (1) shown in Table 1 is 7:40-7:50 from Monday to Friday; then, the first time can be 7:30-7:50 from Monday to Friday Any time, such as 7:35 from Monday to Friday.
  • the foregoing first time may be the earliest time in the travel time of the first travel plan.
  • the travel time of the travel plan (1) shown in Table 1 is 7:30-7:50 from Monday to Friday, and the first time can be 7:30 from Monday to Friday.
  • the mobile phone can obtain the travel plan (1) from the user portrait shown in Table 1 according to the current time "7:30 on Monday” and the current location "home”.
  • the value of the period may be the default value of the mobile phone or set by the user.
  • the value of the period can be any length of 5 minutes, 10 minutes, 15 minutes, 30 minutes, 5 seconds, 10 seconds, or 20 seconds. It can be understood that when the foregoing period is relatively small (for example, the period is 5 seconds or 1 second), it is equivalent to the electronic device acquiring the current time in real time. If the value of the period is less than half of the duration of the travel time, the first time can arrive multiple times before the earliest time of the travel time and within the duration of the travel time, so that the mobile phone displays the prompt information multiple times in the subsequent step 203.
  • the first time may arrive at 7:28, 7:33, 7:38, 7:43, 7:48, so the phone will Respectively display prompt information at these moments.
  • the specific arrival time of the first time depends on the value of the period and the start time. To ensure that the first time can arrive within the travel time and/or before the start of the travel time, the value of the period should be small, for example, less than the duration of the travel time.
  • Case (2) The foregoing meeting the preset condition may include: arriving at the first time, and the current position of the electronic device matches the first position.
  • the above-mentioned first position may be preset by the mobile phone or the user according to the starting position of the first travel plan.
  • the above-mentioned current position may be acquired when the first time arrives.
  • the user portrait saved in the mobile phone may include one or more travel plans.
  • the mobile phone or the user can set the above-mentioned first position according to the starting position of each travel plan.
  • Matching the current position of the mobile phone with the first position specifically means that the distance between the current position of the mobile phone and the first position is less than a preset distance threshold.
  • the preset distance threshold may be any distance threshold such as 100 meters, 500 meters, 600 meters, or 1000 meters.
  • the first travel plan is recommended for the user according to the current time and current location. In this way, it is possible to further reduce the possibility that the travel plan recommended by the mobile phone is not adopted by the user, and the travel plan needs to be recommended for the user again, thereby improving the efficiency of the travel recommendation by the mobile phone.
  • the method for the mobile phone to obtain the first travel plan from the user portrait of the mobile phone according to the current time and current location may include: the mobile phone searches the user portrait for the first travel plan that matches the current time and current location.
  • the first travel time of the first travel plan is the same as the current time, or the range of the first travel time includes the current time, or the time difference between the current time and the first travel time is within the duration threshold.
  • the starting position of the first travel plan is the same as the current position, or the range of the starting position of the first travel plan includes the current position.
  • the time difference between the current time and the first travel time is within the duration threshold, which may specifically include: the current time is before the first travel time, the first travel time (for example, the start time of the first travel time period) and the current time The time difference is less than the preset duration threshold; or, the current time is after the first travel time, and the time difference between the first travel time (for example, the end time of the first travel time period) and the current time is less than the preset duration threshold.
  • the range of the starting position of the first travel plan includes the current position, and specifically means that the distance between the first starting position and the current position is less than a preset distance threshold.
  • the mobile phone can search for the travel plan (1) that matches the first travel time "7:40-7:50 on Monday” and the current location from the user portrait shown in Table 1 according to the current time, that is, the first travel plan.
  • the mobile phone can plan a travel route for the user using the first travel mode described above, starting from the starting position and passing through the intermediate position to the ending position, based on the starting position, intermediate position, and ending position.
  • the mobile phone does not need to consider the real-time traffic conditions, and can directly get the travel route from the start position through the middle position to the end position.
  • the mobile phone displays prompt information related to the first travel plan.
  • the mobile phone may display the above-mentioned prompt information through at least one of a notification message, a notification bar, a negative screen, or a map application, so as to recommend a travel plan to the user.
  • the mobile phone can display the above prompt information on the negative screen.
  • the mobile phone can display a card including prompt information 502 on the negative screen 501.
  • the prompt message 502 may be "driving to the kindergarten in 20 minutes, and driving to the company from the kindergarten in 15 minutes".
  • the travel mode indicated by the prompt message 502 is "driving", and indicates the initial position (such as home), the middle position (such as a kindergarten), and the end position (such as a company).
  • the negative one screen 601 shown in FIG. 6 is different from the negative one screen shown in (a) of FIG. 5.
  • the mobile phone can display a card including prompt information 602 on the negative screen 601.
  • the mobile phone can send a prompt message through a notification message 701.
  • the mobile phone may display the notification interface 801 shown in FIG. 8 in response to the operation of opening the notification bar input by the user on the touch screen.
  • the notification interface 801 includes a notification bar 802 and a travel recommendation message 803.
  • the travel recommendation message 803 includes the aforementioned prompt information.
  • the mobile phone may display prompt information 902 on the home page 901 of the map application.
  • the map application can be Baidu Maps, Gaode Maps, a map application installed when the mobile phone leaves the factory, or any other map application.
  • the content of the prompt information in Figures 7, 8 and 9 may be the same as the prompt information in Figure 5 (a).
  • the mobile phone or the user can set the display duration for the prompt information. For example, within the second preset time period from the display of the above-mentioned prompt information, the mobile phone may always display the above-mentioned prompt information. After the display time, the phone can automatically clear the prompt information.
  • the second preset duration may be a fixed duration.
  • the second preset time length can be any time length such as 1 hour, 2 hours, or 3 hours.
  • the second preset duration may be determined according to the time required from the start position to the end position in the first travel plan. For example, when the first travel plan is the travel plan (1) shown in Table 1, the mobile phone can count the time required from the start location "home” to pass the middle location "kindergarten" to the end location "company” to determine the second travel plan. Set the duration.
  • the second preset duration may be the average value or the maximum value of the foregoing time counted by the mobile phone.
  • the mobile phone starts to display the card including the prompt information 502 on the negative screen 501 at 7:30, and the above-mentioned second preset duration is 2 hours. Then, the mobile phone can display the card including the prompt information 502 on the negative screen 501 during the period of 7:30-9:30.
  • the mobile phone may exit the display of the prompt information related to the first travel plan when the second preset time period from the display of the above prompt information expires.
  • the mobile phone starts to display the card including the prompt information 502 on the negative screen 501 at 7:30, and the above-mentioned second preset duration is 2 hours. Then, starting at 9:30, the mobile phone can stop displaying the card including the prompt information 502 on the negative screen 501.
  • the negative one screen 503 does not include the prompt information 502.
  • the mobile phone can also determine whether to display the prompt information according to the detected relationship between the current position and the position in the travel route. For example, the mobile phone can no longer display the prompt information when it detects that the user has left the starting position, or the mobile phone detects When the user has reached the end position, the display of the prompt message ends.
  • the above-mentioned prompt information cannot completely display all the contents of the above-mentioned first travel plan.
  • the above prompt information cannot completely display the travel route of the first travel plan.
  • the method of the embodiment of the present application may further include S204-S205.
  • the mobile phone receives a user operation on the above-mentioned prompt information.
  • the aforementioned user operation may be a click operation, such as any operation such as a single click operation, a double click operation, or a long press operation.
  • the mobile phone can receive a user's click operation (such as a click operation) on the card shown in FIG. 5 (a) including the prompt information 502 or the card including the prompt information 602 shown in FIG. 6.
  • the mobile phone can receive a user's click operation on the notification message 701 including prompt information shown in FIG. 7.
  • the mobile phone displays a first interface.
  • the first interface indicates a first travel route including a start position, an end position, and at least one intermediate position.
  • the first interface may also indicate a first travel mode, and the first travel mode is a travel mode of the first travel plan.
  • the mobile phone may display the first interface 1001 shown in FIG. 10 in response to a user's click operation on the prompt information shown in any of the drawings in (a) to FIG. 9 in FIG. 5.
  • the first interface 1001 includes multiple travel mode options, such as a "bus” option, a "driving” option 1004, a "walking” option, and a "cycling” option.
  • the "driving” option 1004 indicates that the above-mentioned first travel mode is "driving”.
  • the first interface 1001 also includes an input box 1002.
  • the input box 1002 includes the above-mentioned setting boxes for the start position (such as position I), the middle position (such as position II), and the end position (such as position III).
  • the first interface 1001 also includes a travel route 1005 passing through location I, location II, and location III.
  • the input box 1002 shown in FIG. 10 also includes a "middle position" adding button 1003.
  • the mobile phone can plan a travel plan passing the middle position input by the user according to the middle position input by the user.
  • the location II (kindergarten) included in the travel route 1005 planned by the mobile phone is not planned by the mobile phone according to the passing position input by the user, but by the mobile phone according to the transit location input by the user. User portraits are automatically planned.
  • the mobile phone can intelligently obtain the first travel plan from the user portrait according to the current time and location when the preset conditions are met. Because the user portrait can reflect the user's possible behaviors or preferences in different scenarios (such as time or location). Therefore, the mobile phone's first travel plan obtained from the user's portrait according to the current time is highly compatible with the user's travel habits.
  • the mobile phone can recommend a travel plan that is more suitable for the user's needs, improve the practicability and efficiency of the intelligent recommendation of electronic equipment, and better provide convenience for the user's daily life.
  • the first travel plan recommended by the mobile phone may not meet the user's actual travel requirements.
  • the mobile phone can receive the user's adjustment operation on the above-mentioned first travel route.
  • the second interface is displayed.
  • the user wants to drive to the west gate of the kindergarten, and the first travel route 1005 described in (a) of FIG. 11 is to enter and leave the kindergarten from the north gate of the kindergarten. In this way, if the user travels by car according to the travel route indicated by the first travel plan, the user may need to make a detour and cannot directly reach the destination.
  • the mobile phone can also receive the user's adjustment operation on the first travel route 1005, and move the middle position from the north gate of the kindergarten to the west gate of the kindergarten.
  • the above adjustment operation can be a user's drag operation on the positioning icon corresponding to position II (that is, kindergarten).
  • the starting point of the drag operation is the north gate of the kindergarten, and the end point is the kindergarten's Simon.
  • the mobile phone can display the second interface shown in (b) of FIG. 11.
  • the second interface includes a "driving" option, a second travel route 1006 passing through location I, location II (specifically the west gate of the kindergarten), and location III.
  • the orientation of the drawings in the embodiments of the present application follows the direction indication of “up to north, down to south, left to west, right to east”.
  • the mobile phone can also update the user portrait when receiving user operations in this step.
  • the adjustment operation may also include the adding operation of adding the intermediate position mentioned in FIG. 10 and the adding operation of the intermediate position shown in (a) of FIG. 12 (including multiple intermediate positions after adding), and the like.
  • the mobile phone can receive the user's click operation on the "middle position" addition button 1003 shown in (a) in FIG. 12. In response to the click operation, the mobile phone can display the "input box" 1201 shown in (b) in FIG. 12.
  • the mobile phone can receive the middle position entered by the user in the "input box” 1201, such as the "passenger station” as shown in (c) in FIG. 12.
  • the mobile phone can re-plan the travel plan passing the middle position input by the user according to the user's input.
  • the mobile phone may display the second interface 1202 shown in (d) in FIG. 12.
  • the second interface 1202 includes the option of "driving", passing position I (that is, the starting position), the passenger terminal (that is, the middle position input by the user), position II (that is, the middle position obtained from the user portrait), and the position III (that is, the end position).
  • Location travel route 1203.
  • multiple travel plans can be saved for the same travel time, start location, and end location.
  • the travel routes of the multiple travel plans have the same starting position and the same end position; and the travel time of the multiple travel plans may also be the same.
  • the middle positions of the travel routes of the multiple travel plans may be different, and the travel modes may be different.
  • the mobile phone may obtain multiple first travel plans by executing S202.
  • the number of usage statistics of these multiple travel plans may be different. For example, within the preset time range (such as one week, 10 days, or one month, etc.), the user has selected multiple first travel plans, but multiple first travel plans The number of times varies.
  • the mobile phone can select a first travel plan based on the number of uses of multiple first travel plans, such as the most times, or select a first travel plan based on time, such as the last time the user selected (the latest time). Or, the mobile phone can obtain multiple first travel plans at the same time and recommend them to the user. When multiple first travel plans are recommended at the same time, the number of travel plans used or the selection time can be sorted, and interface options for user selection can also be provided.
  • an electronic device which may include: a display screen, a memory, and one or more processors.
  • the display screen, the memory and the processor are coupled.
  • the display screen may include a touch screen.
  • the memory is used to store computer program code, and the computer program code includes computer instructions.
  • the processor executes the computer instructions, the electronic device can execute various functions or steps executed by the mobile phone in the foregoing method embodiments.
  • the electronic device includes but is not limited to the above-mentioned display screen, memory, and one or more processors.
  • the structure of the electronic device may refer to the structure of the electronic device 100 shown in FIG. 1B.
  • the embodiment of the present application also provides a chip system, which can be applied to the electronic device in the foregoing embodiment.
  • the chip system includes at least one processor 1301 and at least one interface circuit 1302.
  • the processor 1301 may be the processor in the aforementioned electronic device.
  • the processor 1301 and the interface circuit 1302 may be interconnected by wires.
  • the processor 1301 may receive and execute computer instructions from the memory of the above electronic device through the interface circuit 1302. When the computer instructions are executed by the processor 1301, the electronic device can execute the steps in the foregoing embodiments.
  • the chip system may also include other discrete devices, which are not specifically limited in the embodiment of the present application.
  • the embodiment of the present application also provides a computer-readable storage medium, which is used to store the computer instructions run by the above-mentioned electronic device (such as a mobile phone).
  • the embodiments of the present application also provide a computer program product, which includes computer instructions for running the above-mentioned electronic device (such as a mobile phone).
  • the disclosed device and method can be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be divided. It can be combined or integrated into another device, or some features can be omitted or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate parts may or may not be physically separate.
  • the parts displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed to multiple different places. . Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • the technical solutions of the embodiments of the present application are essentially or the part that contributes to the prior art, or all or part of the technical solutions can be embodied in the form of a software product, and the software product is stored in a storage medium. It includes several instructions to make a device (may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the foregoing storage media include: U disk, mobile hard disk, read only memory (read only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Automation & Control Theory (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Navigation (AREA)

Abstract

Provided are a method and electronic device (100) for prompting a travel plan; the electronic device (100) can intelligently recommend to a user a travel plan which fits the travel habits of the user, improving the efficiency of the electronic device (100) in making travel recommendations. The method for prompting the travel plan comprises: if the electronic device (100) meets a preset condition, then obtaining a first travel plan from a user portrait of the electronic device (100) according to the current time and current location, the first travel plan comprising a first travel route, the first travel route comprising a starting position, an ending position, and an intermediate position between the starting position and the ending position (S202); the electronic device (100) displaying prompt information related to the first travel plan (S203).

Description

一种提示出行方案的方法及电子设备Method and electronic equipment for prompting travel plan
本申请要求于2019年10月31日提交国家知识产权局、申请号为201911053172.4、发明名称为“一种提示出行方案的方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the State Intellectual Property Office on October 31, 2019, the application number is 201911053172.4, and the invention title is "a method and electronic device for prompting travel plans", the entire content of which is incorporated by reference In this application.
技术领域Technical field
本申请实施例涉及电子技术领域及智能推荐技术领域,尤其涉及一种提示出行方案的方法及电子设备。The embodiments of the present application relate to the field of electronic technology and intelligent recommendation technology, and in particular to a method and electronic device for prompting a travel plan.
背景技术Background technique
随着智能电子设备(如手机、平板电脑等)的普及、电子设备的性能的提高,电子设备的功能越来越多,可以为用户提供越来越多的服务。其中,用户出行推荐是电子设备的一项重要功能。With the popularization of smart electronic devices (such as mobile phones, tablet computers, etc.) and the improvement of the performance of electronic devices, electronic devices have more and more functions and can provide users with more and more services. Among them, user travel recommendation is an important function of electronic equipment.
具体的,电子设备可以统计或者接收用户设置,得到用户日常生活、工作和学习过程中,经常出没的地点,以及出行时间。示例性的,电子设备可以统计得到用户的家和公司的位置,用户从家到公司的出行时间,以及用户从公司到家的出行时间。然后,电子设备可以在用户上下班出行时间之前,向用户推荐采用默认出行方式(如驾车)的最优出行路线。其中,该最优出行路线可以是电子设备根据实时交通路况确定的出行路线。例如,假设手机100统计到用户的上班出行时间为7:20。手机100可以在7:20之前,通过通知消息或者图1A中的(a)所示的负一屏等方式向用户推荐一种出行方案,如图1A中的(b)所示的乘坐公交车经由路线a去上班。Specifically, the electronic device can make statistics or receive user settings, and obtain the frequent locations and travel time of the user in the daily life, work, and study process of the user. Exemplarily, the electronic device can obtain statistics about the location of the user's home and company, the travel time of the user from home to the company, and the travel time of the user from the company to the home. Then, the electronic device can recommend the optimal travel route using the default travel mode (such as driving) to the user before the user's commuting time. Wherein, the optimal travel route may be a travel route determined by the electronic device according to real-time traffic conditions. For example, suppose that the mobile phone 100 counts that the user's travel time to work is 7:20. The mobile phone 100 can recommend a travel plan to the user before 7:20 through a notification message or the negative one screen shown in Figure 1A (a), such as taking a bus as shown in Figure 1A (b) Go to work via route a.
虽然上述最优出行路线(如路线a)是电子设备根据实时交通路况确定的出行路线;但是,该最优出行路线或者默认出行方式可能并不符合用户的出行习惯,并不满足用户的实际需求。例如,用户可能需要驾车送小朋友去幼儿园,然后再驾车去公司上班;而不是乘坐公交车经由路线a去上班。由此可见,上述电子设备向用户推荐的出行方案不符合用户的实际需要,被用户采纳的可能性较低,导致电子设备需要重新为用户推荐出行方案,因此电子设备进行出行推荐的效率较低。Although the above-mentioned optimal travel route (such as route a) is a travel route determined by the electronic device according to real-time traffic conditions; however, the optimal travel route or the default travel mode may not conform to the user's travel habits and does not meet the actual needs of the user . For example, the user may need to drive the children to the kindergarten, and then drive to the company to work; instead of taking the bus to go to work via route a. It can be seen that the travel plan recommended by the above electronic device to the user does not meet the actual needs of the user, and the possibility of being adopted by the user is low. As a result, the electronic device needs to re-recommend the travel plan for the user. Therefore, the efficiency of the electronic device for travel recommendation is low. .
发明内容Summary of the invention
本申请实施例提供一种提示出行方案的方法及电子设备,电子设备可以智能地向用户推荐与用户出行习惯的契合度较高的出行方案。这样,可以为用户推荐更贴合用户需求的出行方案,提高电子设备智能推荐的实用性和效率,更好地为用户日常生活提供便捷性。The embodiment of the present application provides a method and an electronic device for prompting a travel plan. The electronic device can intelligently recommend a travel plan that is highly compatible with the user's travel habits. In this way, it is possible to recommend a travel plan that is more suitable for the user's needs for the user, improve the practicability and efficiency of the intelligent recommendation of electronic equipment, and better provide convenience for the user's daily life.
为达到上述目的,本申请实施例采用如下技术方案:To achieve the foregoing objectives, the following technical solutions are adopted in the embodiments of the present application:
第一方面,本申请实施例提供一种提示出行方案的方法,该方法可以应用于电子设备。该方法可以包括:电子设备在满足预设条件时,根据当前时间和该电子设备的当前位置,从电子设备中存储的用户画像中获取第一出行方案;显示与第一出行方案 相关的提示信息。其中,上述第一出行方案包括第一出行路线。该第一出行路线包括起始位置、结束位置和位于上述起始位置和结束位置之间的中间位置。In the first aspect, an embodiment of the present application provides a method for prompting a travel plan, and the method can be applied to an electronic device. The method may include: when the electronic device satisfies preset conditions, obtaining the first travel plan from the user portrait stored in the electronic device according to the current time and the current location of the electronic device; and displaying prompt information related to the first travel plan . Wherein, the above-mentioned first travel plan includes a first travel route. The first travel route includes a starting position, an ending position, and an intermediate position between the starting position and the ending position.
本申请实施例中,电子设备可以在满足预设条件时,根据当前时间和当前位置,智能地从用户画像中获取第一出行方案。由于用户画像可以反映出用户在不同场景(如时间和位置)下可能的行为或喜好。因此,电子设备根据当前时间和当前位置,从用户画像中获取的第一出行方案,与用户出行习惯契合度较高,更加贴合用户需求。In the embodiment of the present application, the electronic device can intelligently obtain the first travel plan from the user portrait according to the current time and current location when the preset condition is satisfied. Because the user portrait can reflect the user's possible behaviors or preferences in different scenarios (such as time and location). Therefore, the first travel plan that the electronic device obtains from the user's portrait according to the current time and current location is more compatible with the user's travel habits and better meets the user's needs.
由此可见,通过本申请实施例的方法,电子设备可以智能地向用户推荐与用户出行习惯的契合度较高的出行方案。这样,可以为用户推荐更贴合用户需求的出行方案,提高电子设备智能推荐的实用性和效率,更好地为用户日常生活提供便捷性。It can be seen that, through the method of the embodiment of the present application, the electronic device can intelligently recommend a travel plan that is highly compatible with the user's travel habits to the user. In this way, it is possible to recommend a travel plan that is more suitable for the user's needs for the user, improve the practicability and efficiency of the intelligent recommendation of electronic equipment, and better provide convenience for the user's daily life.
结合第一方面,在一种可能的设计方式中,上述位于起始位置和结束位置之间的中间位置可以为:电子设备接收的用户设置的位置。例如,假设上述起始位置是用户的家,结束位置是用户的公司。用户从家去公司上班的过程中,要先从家出发送小朋友去幼儿园,然后再从幼儿园出发去公司。用户可以在电子设备中设置幼儿园为位于起始位置和结束位置之间的中间位置,电子设备可以接收用户设置的该中间位置。或者,上述位于起始位置和结束位置之间的中间位置可以为:电子设备自动记录的位置。With reference to the first aspect, in a possible design manner, the above-mentioned intermediate position between the start position and the end position may be: a position set by the user received by the electronic device. For example, suppose that the above starting location is the user's home, and the ending location is the user's company. When users go to work from home to the company, they must first send their children from home to the kindergarten, and then go to the company from the kindergarten. The user can set the kindergarten in the electronic device as an intermediate position between the starting position and the ending position, and the electronic device can receive the intermediate position set by the user. Alternatively, the above-mentioned intermediate position between the start position and the end position may be a position automatically recorded by the electronic device.
结合第一方面,在一种可能的设计方式中,上述电子设备自动记录的位置可以包括:起始位置和结束位置之间、电子设备的停留时间和/或经过次数满足预设停留条件的位置。其中,上述满足预设停留条件的位置包括:停留时间和/或经过次数大于预设阈值的位置,或者,停留时间最长和/或经过次数最多的位置。电子设备可以统计该电子设备从上述起始位置向结束位置运动的过程中,停留或经过的多个位置时,在每个位置的停留时间或者经过次数。然后,电子设备可以确定起始位置和结束位置之间、电子设备的停留时间和/或经过次数满足预设停留条件的位置为上述中间位置。With reference to the first aspect, in a possible design manner, the position automatically recorded by the above electronic device may include: the position between the start position and the end position, the stay time and/or the number of elapsed times of the electronic device meets the preset stay condition . Wherein, the locations that meet the preset stay conditions include: locations where the stay time and/or the number of passes are greater than a preset threshold, or the locations where the stay time and/or the number of passes are the longest. The electronic device can count the staying time or the number of elapsed times at each position when the electronic device stays or passes through multiple positions during the movement from the above-mentioned starting position to the ending position. Then, the electronic device may determine that the position between the start position and the end position, where the stay time and/or the number of passes of the electronic device meet the preset stay condition, is the intermediate position.
结合第一方面,在一种可能的设计方式中,上述第一出行方案还可以包括第一出行方式。该第一出行方式可以是公交车,驾车,地铁,骑行,步行,火车,飞机或客车等任一种出行方式。也就是说,电子设备还可以从用户画像中,获取用户经过上述第一出行路线时,更贴合用户需求的第一出行方式。With reference to the first aspect, in a possible design manner, the above-mentioned first travel plan may also include the first travel mode. The first travel mode can be any travel mode such as bus, driving, subway, cycling, walking, train, airplane or bus. That is to say, the electronic device can also obtain the first travel mode that is more suitable for the user's needs when the user passes the above-mentioned first travel route from the user portrait.
结合第一方面,在一种可能的设计方式中,上述满足预设条件,可以包括:第一时间到达。其中,该第一时间是根据第一出行方案的出行时间预设的,或所述第一时间是所述电子设备周期性获取的。With reference to the first aspect, in a possible design manner, satisfying the preset condition may include: arriving at the first time. Wherein, the first time is preset according to the travel time of the first travel plan, or the first time is periodically acquired by the electronic device.
也就是说,电子设备可以根据用户画像中用户的日常出行时间,设置上述第一时间。然后,电子设备便可以在第一时间到达时,根据当前时间和当前位置为用户推荐上述第一出行方案。In other words, the electronic device can set the above-mentioned first time according to the daily travel time of the user in the user portrait. Then, when the electronic device arrives at the first time, it can recommend the above-mentioned first travel plan for the user according to the current time and current location.
结合第一方面,在另一种可能的设计方式中,上述满足预设条件,可以包括:第一时间到达,且电子设备的当前位置与第一位置匹配。其中,第一时间是根据第一出行方案的出行时间预设的,或,所述第一时间是所述电子设备周期性获取的,第一位置是根据第一出行方案的起始位置预先设置的。With reference to the first aspect, in another possible design manner, satisfying the preset condition may include: arriving at the first time, and the current position of the electronic device matches the first position. The first time is preset according to the travel time of the first travel plan, or the first time is periodically acquired by the electronic device, and the first position is preset according to the starting position of the first travel plan of.
其中,电子设备的当前位置与第一位置匹配,具体是指:电子设备的当前位置与第一位置之间的距离小于预设的距离阈值。The matching of the current position of the electronic device with the first position specifically refers to: the distance between the current position of the electronic device and the first position is less than a preset distance threshold.
也就是说,电子设备可以在第一时间到达,且电子设备的当前位置与第一位置匹 配时,根据当前时间和当前位置为用户推荐上述第一出行方案。这样,可以进一步提高第一出行方案与用户需求的贴合度,可以提高电子设备智能推荐的实用性和效率,更好地为用户日常生活提供便捷性。In other words, when the electronic device can arrive at the first time, and the current location of the electronic device matches the first location, the above-mentioned first travel plan is recommended for the user according to the current time and the current location. In this way, the degree of fit between the first travel plan and the user's needs can be further improved, the practicability and efficiency of the intelligent recommendation of electronic devices can be improved, and the convenience of the user's daily life can be better provided.
本申请实施例中,电子设备周期性获取当前时间的周期可以是预先配置的。或者,该周期还可以是电子设备接收的用户设置的。例如,上述周期可以是5分钟,10分钟,15分钟,30分钟,5秒,10秒,20秒或1秒等任一时长。可以理解,当上述周期较小(如周期为5秒或1秒)时,相当于电子设备在实时获取当前时间。In the embodiment of the present application, the period for the electronic device to periodically obtain the current time may be pre-configured. Alternatively, the period may also be set by the user received by the electronic device. For example, the aforementioned period can be any time length such as 5 minutes, 10 minutes, 15 minutes, 30 minutes, 5 seconds, 10 seconds, 20 seconds, or 1 second. It can be understood that when the foregoing period is relatively small (for example, the period is 5 seconds or 1 second), it is equivalent to the electronic device acquiring the current time in real time.
结合第一方面,在另一种可能的设计方式中,上述根据当前时间和当前位置从电子设备的用户画像中获取第一出行方案,可以包括:电子设备从用户画像中查找与当前时间和当前位置匹配的第一出行方案。In combination with the first aspect, in another possible design manner, the above-mentioned obtaining the first travel plan from the user portrait of the electronic device according to the current time and current location may include: the electronic device searches the user portrait for the current time and current time. The first travel plan that matches the location.
其中,第一出行方案的第一出行时间与当前时间相同,或者第一出行时间的范围包括当前时间,以及第一出行方案的起始位置与当前位置相同,或者第一出行方案的起始位置的范围包含当前位置。Among them, the first travel time of the first travel plan is the same as the current time, or the range of the first travel time includes the current time, and the starting position of the first travel plan is the same as the current position, or the starting position of the first travel plan The range of includes the current position.
示例性的,第一出行时间的范围包括当前时间,具体可以为:当前时间与第一出行时间的时间差小于预设的时长阈值。其中,当前时间可以在第一出行时间之前,或者当前时间可以在第一出行时间之后。第一出行方案的起始位置的范围包含当前位置,具体可以为:第一出行方案的起始位置与当前位置之间的距离小于预设的距离阈值。Exemplarily, the range of the first travel time includes the current time, and may specifically be: the time difference between the current time and the first travel time is less than a preset duration threshold. Wherein, the current time may be before the first travel time, or the current time may be after the first travel time. The range of the starting position of the first travel plan includes the current position, and may specifically be: the distance between the starting position of the first travel plan and the current position is less than a preset distance threshold.
也就是说,如果电子设备的当前位置与第一出行方案的起始位置之间的距离小于预设的距离阈值,电子设备可以在第一出行方案的出行时间(即第一出行时间)即将到达之前,或者电子设备可以在第一出行时间之后的一定时间(即预设的时间阈值)内,为用户提供该第一出行方案。In other words, if the distance between the current position of the electronic device and the starting position of the first travel plan is less than the preset distance threshold, the electronic device may arrive at the travel time of the first travel plan (ie, the first travel time) Before, or the electronic device may provide the user with the first travel plan within a certain time (that is, the preset time threshold) after the first travel time.
结合第一方面,在另一种可能的设计方式中,电子设备可以通过通知消息、通知栏、负一屏或地图应用中的至少一项,显示上述提示信息。也就是说,本申请实施例中,电子设备可以通过多种途径向用户推荐出行方案。With reference to the first aspect, in another possible design manner, the electronic device may display the above-mentioned prompt information through at least one of a notification message, a notification bar, a negative screen, or a map application. That is to say, in the embodiment of the present application, the electronic device can recommend travel plans to the user through multiple channels.
结合第一方面,在另一种可能的设计方式中,在电子设备通过通知消息、通知栏、负一屏或地图应用中的至少一项,显示提示信息之后,电子设备可以接收对提示信息的用户操作。响应于该用户操作,电子设备可以显示第一界面。该第一界面指示包括起始位置、结束位置和中间位置的第一出行路线。In combination with the first aspect, in another possible design method, after the electronic device displays the prompt information through at least one of a notification message, a notification bar, a negative screen, or a map application, the electronic device can receive a notification to the prompt information. User operation. In response to the user operation, the electronic device may display the first interface. The first interface indicates a first travel route including a start position, an end position, and an intermediate position.
本申请实施例中,电子设备不会直接显示包括出行方案的第一界面;而是先通过通知消息、通知栏、负一屏或地图应用中的至少一项,显示提示信息。如果电子设备接收到对提示信息的用户操作,则表示用户有查看该出行方案的需求。电子设备响应于用户对提示信息的用户操作,在用户有查看该出行方案的需求的情况下,才会显示用于指示出行方案的第一界面。In the embodiment of the present application, the electronic device does not directly display the first interface including the travel plan; instead, it first displays the prompt information through at least one of a notification message, a notification bar, a negative screen, or a map application. If the electronic device receives a user operation on the prompt information, it means that the user has a need to view the travel plan. The electronic device responds to the user's user operation on the prompt information, and displays the first interface for indicating the travel plan only when the user has a need to view the travel plan.
结合第一方面,在另一种可能的设计方式中,上述第一界面还用于指示第一出行方式。With reference to the first aspect, in another possible design manner, the above-mentioned first interface is also used to indicate the first travel mode.
结合第一方面,在另一种可能的设计方式中,本申请实施例的方法还可以包括:电子设备统计电子设备的运动轨迹、电子设备的运动模式;根据运动轨迹和运动模式生成用户画像;保存用户画像。或者,本申请实施例的方法还可以包括:统计电子设备在预设应用中接收的用户操作;根据用户操作中的至少一项,生成用户画像;保存 用户画像。或者,电子设备统计电子设备的运动轨迹、运动模式和电子设备在预设应用中接收的用户操作;根据运动轨迹、运动模式和用户操作,生成用户画像;保存用户画像。With reference to the first aspect, in another possible design manner, the method of the embodiment of the present application may further include: the electronic device counts the movement trajectory of the electronic device and the movement pattern of the electronic device; and generates a user portrait according to the movement trajectory and the movement pattern; Save the user portrait. Alternatively, the method of the embodiment of the present application may further include: counting user operations received by the electronic device in a preset application; generating a user portrait according to at least one of the user operations; and saving the user portrait. Or, the electronic device counts the movement trajectory, movement mode of the electronic device, and user operations received by the electronic device in a preset application; generates a user portrait according to the movement trajectory, movement mode, and user operation; saves the user portrait.
其中,上述运动轨迹用于确定起始位置、结束位置和中间位置,以及第一出行方案的出行时间。该运行模式用于确定第一出行方式。上述用户操作用于确定起始位置、结束位置和中间位置,该第一出行方案的出行时间,以及第一出行方式。Wherein, the aforementioned motion trajectory is used to determine the starting position, ending position and intermediate position, as well as the travel time of the first travel plan. This operating mode is used to determine the first mode of travel. The aforementioned user operations are used to determine the starting position, the ending position, and the intermediate position, the travel time of the first travel plan, and the first travel mode.
结合第一方面,在另一种可能的设计方式中,上述预设应用包括以下应用中的一个或者多个:为用户提供公共交通工具的扫码服务的应用,为用户提供叫车服务的应用,为用户提供定位、路径搜索和导航服务的应用。上述公共交通工具包括以下交通工具中的一个或者多个:公交车、地铁和共享型交通工具。With reference to the first aspect, in another possible design manner, the above-mentioned preset application includes one or more of the following applications: an application that provides users with a scan code service of public transportation, and an application that provides users with a ride-hailing service , To provide users with applications for positioning, route search and navigation services. The above-mentioned public transportation means include one or more of the following transportation means: buses, subways, and shared transportation means.
结合第一方面,在另一种可能的设计方式中,上述运动模式包括以下模式中的一个或者多个:静止模式、步行模式、跑步模式、骑车模式、公交车模式、地铁模式和驾车模式。In combination with the first aspect, in another possible design method, the above-mentioned sports mode includes one or more of the following modes: static mode, walking mode, running mode, cycling mode, bus mode, subway mode, and driving mode .
第二方面,本申请实施例提供一种电子设备,该电子设备可以包括显示屏、存储器和一个或多个处理器。该显示屏、存储器和处理器耦合。该显示屏可以包括触摸屏。该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令。当计算机指令被处理器执行时,使得电子设备执行以下步骤:在满足预设条件时,根据当前时间和所述电子设备的当前位置从所述电子设备中存储的用户画像中获取第一出行方案;所述第一出行方案包括第一出行路线,所述第一出行路线至少包括起始位置、结束位置和位于所述起始位置和所述结束位置之间的中间位置;在显示屏上显示与第一出行方案相关的提示信息。In a second aspect, an embodiment of the present application provides an electronic device, which may include a display screen, a memory, and one or more processors. The display screen, the memory and the processor are coupled. The display screen may include a touch screen. The memory is used to store computer program code, and the computer program code includes computer instructions. When the computer instructions are executed by the processor, the electronic device is caused to perform the following steps: when the preset conditions are met, obtain the first travel plan from the user portrait stored in the electronic device according to the current time and the current location of the electronic device The first travel plan includes a first travel route, the first travel route includes at least a starting position, an ending position, and an intermediate position between the starting position and the ending position; displayed on the display screen Reminder information related to the first travel plan.
需要说明的是,第二方面的中间位置、第一出行方案、以及上述满足预设条件的详细描述,可以参考第一方面及其可能的设计方式中的描述,本申请实施例这里不予赘述。It should be noted that the intermediate position of the second aspect, the first travel plan, and the detailed description of the above-mentioned meeting the preset conditions, can refer to the description of the first aspect and its possible design methods, and the embodiments of this application will not repeat them here. .
结合第二方面,在另一种可能的设计方式中,上述根据当前时间和电子设备的当前位置从所述电子设备中存储的用户画像中获取所述第一出行方案包括:从用户画像中查找与当前时间和当前位置匹配的第一出行方案。其中,第一出行方案的第一出行时间与所述当前时间相同,或者第一出行时间的范围包括当前时间,以及所述第一出行方案的起始位置与当前位置相同,或者第一出行方案的起始位置的范围包含当前位置。With reference to the second aspect, in another possible design manner, the above-mentioned obtaining the first travel plan from the user portrait stored in the electronic device according to the current time and the current location of the electronic device includes: searching from the user portrait The first travel plan that matches the current time and current location. Wherein, the first travel time of the first travel plan is the same as the current time, or the range of the first travel time includes the current time, and the starting position of the first travel plan is the same as the current position, or the first travel plan The range of the starting position includes the current position.
结合第二方面,在另一种可能的设计方式中,上述在显示屏上显示所述提示信息,包括:通过通知消息、通知栏、负一屏或地图应用中的至少一项,显示提示信息。With reference to the second aspect, in another possible design manner, the above-mentioned displaying the prompt information on the display screen includes: displaying the prompt information through at least one of a notification message, a notification bar, a negative screen, or a map application .
结合第二方面,在另一种可能的设计方式中,电子设备在显示所述提示信息之后,还执行以下步骤:接收对所述提示信息的用户操作;响应于所述用户操作,显示第一界面;其中,所述第一界面指示包括所述起始位置、所述结束位置和所述中间位置的所述第一出行路线。With reference to the second aspect, in another possible design manner, after displaying the prompt information, the electronic device further performs the following steps: receiving a user operation on the prompt information; in response to the user operation, displaying the first Interface; wherein, the first interface indicates the first travel route including the starting position, the ending position and the intermediate position.
结合第二方面,在另一种可能的设计方式中,当计算机指令被处理器执行时,使得电子设备还执行以下步骤:统计所述电子设备的运动轨迹和所述电子设备的运动模式;根据所述运动轨迹和所述运动模式,生成所述用户画像;保存所述用户画像;或 者,统计所述电子设备在预设应用中接收的用户操作;根据所述用户操作中的至少一项,生成所述用户画像;保存所述用户画像;或者,统计所述电子设备的运动轨迹、运动模式和所述电子设备在预设应用中接收的用户操作;根据所述运动轨迹、所述运动模式和所述用户操作,生成所述用户画像;保存所述用户画像。With reference to the second aspect, in another possible design manner, when the computer instruction is executed by the processor, the electronic device is caused to perform the following steps: Count the movement trajectory of the electronic device and the movement mode of the electronic device; The motion trajectory and the motion mode generate the user portrait; save the user portrait; or, count the user operations received by the electronic device in a preset application; according to at least one of the user operations, Generate the user portrait; save the user portrait; or, calculate the movement trajectory, movement mode of the electronic device, and user operations received by the electronic device in a preset application; according to the movement trajectory and the movement mode Operate with the user to generate the user portrait; save the user portrait.
其中,上述运动轨迹、用户操作、预设应用和运动模式可以参考第一方面及其可能的设计方式中的描述,本申请实施例这里不予赘述。For the above-mentioned motion trajectory, user operation, preset application and motion mode, reference may be made to the description in the first aspect and its possible design manners, which are not repeated in the embodiment of the present application.
第三方面,本申请实施例提供一种芯片系统,该芯片系统应用于如第二方面及其任一种设计方式所述的电子设备。该芯片系统包括一个或多个接口电路和一个或多个上述处理器。该接口电路和处理器通过线路互联。该处理器通过接口电路用于从电子设备的存储器接收并执行上述计算机指令。In the third aspect, the embodiments of the present application provide a chip system, which is applied to the electronic device described in the second aspect and any of its design methods. The chip system includes one or more interface circuits and one or more above-mentioned processors. The interface circuit and the processor are interconnected by wires. The processor is used to receive and execute the above-mentioned computer instructions from the memory of the electronic device through the interface circuit.
第四方面,本申请实施例提供一种计算机可读存储介质,该计算机可读存储介质用于存储如第二方面及其任一种可能的设计方式所述的电子设备运行的所述计算机指令。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium for storing the computer instructions for the operation of the electronic device described in the second aspect and any of its possible design methods .
第五方面,本申请实施例提供一种计算机程序产品,包括如第二方面及其任一种可能的设计方式所述的电子设备运行的所述计算机指令。In the fifth aspect, an embodiment of the present application provides a computer program product, including the computer instructions for the operation of the electronic device as described in the second aspect and any of its possible design methods.
可以理解地,上述提供的第二方面及其任一种可能的设计方式所述的电子设备,第三方面所述的芯片系统,第四方面所述的计算机可读存储介质,第五方面所述的计算机程序产品所能达到的有益效果,可参考如第一方面及其任一种可能的设计方式中的有益效果,此处不再赘述。Understandably, the electronic device described in the second aspect and any one of its possible design methods provided above, the chip system described in the third aspect, the computer-readable storage medium described in the fourth aspect, and the electronic device described in the fifth aspect For the beneficial effects that can be achieved by the computer program product described above, please refer to the beneficial effects in the first aspect and any of its possible design methods, which will not be repeated here.
附图说明Description of the drawings
图1A为本申请实施例提供的一种出行方案的推荐界面的实例示意图;FIG. 1A is a schematic diagram of an example of a recommended interface of a travel plan provided by an embodiment of this application;
图1B为本申请实施例提供的一种电子设备的硬件结构示意图;FIG. 1B is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the application;
图2为本申请实施例提供的一种提示出行方案的方法流程图;Figure 2 is a flow chart of a method for prompting a travel plan provided by an embodiment of the application;
图3为本申请实施例提供的一种获取用户画像的原理示意图;FIG. 3 is a schematic diagram of a principle of obtaining a user portrait provided by an embodiment of the application;
图4为本申请实施例提供的另一种提示出行方案的方法流程图;FIG. 4 is a flowchart of another method for prompting a travel plan provided by an embodiment of the application;
图5为本申请实施例提供的另一种出行方案的推荐界面的实例示意图;FIG. 5 is a schematic diagram of an example of a recommendation interface of another travel plan provided by an embodiment of the application;
图6为本申请实施例提供的另一种出行方案的推荐界面的实例示意图;6 is a schematic diagram of an example of a recommendation interface of another travel plan provided by an embodiment of the application;
图7为本申请实施例提供的另一种出行方案的推荐界面的实例示意图;FIG. 7 is a schematic diagram of an example of a recommendation interface of another travel plan provided by an embodiment of the application;
图8为本申请实施例提供的另一种出行方案的推荐界面的实例示意图;FIG. 8 is a schematic diagram of an example of a recommendation interface of another travel plan provided by an embodiment of the application;
图9为本申请实施例提供的另一种出行方案的推荐界面的实例示意图;FIG. 9 is a schematic diagram of an example of a recommendation interface of another travel plan provided by an embodiment of the application;
图10为本申请实施例提供的另一种出行方案的推荐界面的实例示意图;FIG. 10 is a schematic diagram of an example of a recommendation interface of another travel plan provided by an embodiment of the application; FIG.
图11为本申请实施例提供的另一种出行方案的推荐界面的实例示意图;FIG. 11 is a schematic diagram of an example of a recommendation interface of another travel plan provided by an embodiment of the application;
图12为本申请实施例提供的另一种出行方案的推荐界面的实例示意图;FIG. 12 is a schematic diagram of an example of a recommendation interface of another travel plan provided by an embodiment of the application;
图13为本申请实施例提供的一种芯片系统的结构示意图。FIG. 13 is a schematic structural diagram of a chip system provided by an embodiment of the application.
具体实施方式Detailed ways
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另 有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms “first” and “second” are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first" and "second" may explicitly or implicitly include one or more of these features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
实施例一Example one
本申请实施例提供一种提示出行方案的方法,该方法可以应用于电子设备智能地为用户提供出行推荐服务的过程中。具体的,电子设备可以从用户画像中确定该用户日常偏好的出行路线,和/或,该用户出行常用的出行方式。这样,电子设备可以根据用户画像中确定的出行路线,或者出行路线和出行方式,为用户推荐与用户出行习惯的契合度较高、更好地满足用户需求的出行方案,提高电子设备智能推荐的实用性和效率,更好地为用户日常生活提供便捷性。The embodiment of the present application provides a method for prompting a travel plan, and the method can be applied to a process in which an electronic device intelligently provides a travel recommendation service for a user. Specifically, the electronic device may determine the daily preferred travel route of the user from the user portrait, and/or the common travel mode of the user. In this way, the electronic device can recommend to the user a travel plan that is more compatible with the user's travel habits and better meets the needs of the user according to the travel route, or travel route and travel mode determined in the user portrait, and improves the intelligent recommendation of the electronic device. Practicality and efficiency can better provide convenience for users' daily life.
示例性的,本申请实施例中的电子设备可以是手机、平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备,车载设备(如车载导航仪)等具备定位功能的设备,本申请实施例对该电子设备的具体形态不作特殊限制。Exemplarily, the electronic device in the embodiments of the present application may be a mobile phone, a tablet computer, a desktop computer, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, and a cellular phone. Telephone, personal digital assistant (PDA), augmented reality (AR)\virtual reality (VR) equipment, vehicle-mounted equipment (such as car navigator) and other equipment with positioning function, this application is implemented The example does not impose special restrictions on the specific form of the electronic equipment.
下面将结合附图对本申请实施例的实施方式进行详细描述。请参考图1B,为本申请实施例提供的一种电子设备100的结构示意图。如图1B所示,电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。The implementation of the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings. Please refer to FIG. 1B, which is a schematic structural diagram of an electronic device 100 provided by an embodiment of this application. As shown in FIG. 1B, the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, and a battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
其中,上述传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L和骨传导传感器180M等传感器。Among them, the aforementioned sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, and a touch sensor 180K, Ambient light sensor 180L and bone conduction sensor 180M and other sensors.
可以理解的是,本实施例示意的结构并不构成对电子设备100的具体限定。在另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100. In other embodiments, the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Among them, the different processing units may be independent devices or integrated in one or more processors. The controller may be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理 器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can store instructions or data that the processor 110 has just used or used cyclically. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
在一些实施例中,处理器110可以包括一个或多个接口。处理器1110可以通过该一个或多个接口与电子设备100的其他器件交互。In some embodiments, the processor 110 may include one or more interfaces. The processor 1110 can interact with other devices of the electronic device 100 through the one or more interfaces.
可以理解的是,图1B示出的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。It can be understood that the interface connection relationship between the modules shown in FIG. 1B is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。The mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic waves to radiate through the antenna 2.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。In some embodiments, the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。显示屏194用于显示图像,视频等。该显示屏194包括显示面板。电子设备 100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。ISP用于处理摄像头193反馈的数据。摄像头193用于捕获静态图像或视频。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。The electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like. The GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information. The display screen 194 is used to display images, videos, and the like. The display screen 194 includes a display panel. The electronic device 100 can realize a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor. The ISP is used to process the data fed back by the camera 193. The camera 193 is used to capture still images or videos. In some embodiments, the electronic device 100 may include one or N cameras 193, and N is a positive integer greater than one.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, for example, the transfer mode between human brain neurons, it can quickly process input information, and it can also continuously self-learn. Through the NPU, applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。例如,在本申请实施例中,处理器110可以通过执行存储在内部存储器121中的指令,内部存储器121可以包括存储程序区和存储数据区。The internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121. For example, in the embodiment of the present application, the processor 110 may execute instructions stored in the internal memory 121, and the internal memory 121 may include a storage program area and a storage data area.
其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。Among them, the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function. The data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。耳机接口170D用于连接有线耳机。按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc. The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The earphone interface 170D is used to connect wired earphones. The button 190 includes a power-on button, a volume button, and so on. The button 190 may be a mechanical button. It can also be a touch button. The motor 191 can generate vibration prompts. The motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback. For example, touch operations that act on different applications (such as photographing, audio playback, etc.) can correspond to different vibration feedback effects. Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects. The indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on. The SIM card interface 195 is used to connect to the SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
以下实施例中的方法均可以在具有上述硬件结构的电子设备100中实现。以下实施例中以上述电子设备100是手机为例,对本申请实施例的方法进行说明。The methods in the following embodiments can all be implemented in the electronic device 100 having the above-mentioned hardware structure. In the following embodiments, the above-mentioned electronic device 100 is a mobile phone as an example to describe the method of the embodiment of the present application.
本申请实施例提供一种提示出行方案的方法。如图2所示,该提示出行方案的方法可以包括步骤S201-S203。其中,步骤S201也可以称为“用户画像”流程,步骤S202-203可以称为“出行推荐”流程。以下对步骤S201-S203进行详细说明。The embodiment of the present application provides a method for prompting a travel plan. As shown in FIG. 2, the method for prompting a travel plan may include steps S201-S203. Among them, step S201 can also be referred to as a "user portrait" process, and steps S202-203 can be referred to as a "travel recommendation" process. The steps S201-S203 will be described in detail below.
S201、手机生成并保存用户画像。S201. The mobile phone generates and saves a user portrait.
用户画像又称用户角色,是真实用户的虚拟代表。用户画像可以根据获取的用户数据,通过相关算法来分析出用户的历史行为。同时,用户画像可以用于根据用户的历史行为预测用户在不同场景下可能的行为或喜好。User portraits, also known as user roles, are virtual representatives of real users. User portraits can analyze the user's historical behavior through related algorithms based on the acquired user data. At the same time, the user portrait can be used to predict the user's possible behavior or preferences in different scenarios based on the user's historical behavior.
在本申请相关的实施例中,用户画像可以包括:一条或多条用户出行路线,每条出行路线都包括出行的起始位置和结束位置。该出行路线还可以包括:位于起始位置和结束位置之间的中间位置。不同的中间位置可用于确定同一对起始位置和结束位置之间的不同的出行路线。In related embodiments of the present application, the user portrait may include: one or more user travel routes, and each travel route includes a starting position and an ending position of the trip. The travel route may also include: an intermediate position between the start position and the end position. Different intermediate positions can be used to determine different travel routes between the same pair of starting and ending positions.
手机在出厂时,手机中可能并未保存用户画像。手机出厂后,从手机第一次开机启动开始,只要手机的相关功能(如定位功能、移动网络等)开启,手机便可以根据本实施例中所述的方式生成用户画像。When the mobile phone leaves the factory, the user portrait may not be saved in the mobile phone. After the mobile phone leaves the factory, starting from the first startup of the mobile phone, as long as the relevant functions of the mobile phone (such as positioning function, mobile network, etc.) are turned on, the mobile phone can generate a user portrait according to the method described in this embodiment.
本申请实施例中,手机可以统计用户的出行信息,生成用户画像。示例性的,手机可以统计预设时间范围内的用户的出行信息来生成用户画像,其中,预设时间范围可以为1周、10天、15天或1个月等任一时间长度。In the embodiment of the present application, the mobile phone can count the travel information of the user and generate the user portrait. Exemplarily, the mobile phone may collect travel information of users within a preset time range to generate user portraits, where the preset time range may be any length of time such as 1 week, 10 days, 15 days, or 1 month.
例如,假设用户经常于星期一至星期五驾车上下班,上班出行时间为7:40-7:50,下班出行时间为18:00-18:20。其中,用户驾车上班的过程中,先送小朋友去幼儿园,然后再去自己的公司上班。用户驾车下班的过程中,先从公司去幼儿园接小朋友,然后再回家。且该用户经常于星期六乘坐地铁从家到位置1,然后再从位置1坐公交车送小朋友去兴趣班学习,出行时间为9:10-9:30;并于星期六的12:10-12:20从兴趣班坐公交到位置1,然后再从位置1坐地铁回家。而星期天该用户经常驾车从家到位置2,再从位置2去父母家看望老人,往返出行时间分别为10:10-10:30和19:10-19:20。基于上述出行习惯,手机可以统计手机的出行信息,生成表1所示的用户画像。For example, suppose that a user often drives to and from get off work from Monday to Friday, the travel time for work is 7:40-7:50, and the travel time for off-get off work is 18:00-18:20. Among them, when the user drives to work, he sends the children to the kindergarten first, and then he goes to work in his company. When the user drives off from get off work, he first picks up the children from the company to the kindergarten and then goes home. And the user often takes the subway from home to location 1 on Saturday, and then takes the bus from location 1 to send the children to the hobby class to study. The travel time is 9:10-9:30; and on Saturday, 12:10-12: 20. From the hobby class, take the bus to position 1, and then take the subway from position 1 to go home. On Sundays, the user often drives from home to location 2, and then from location 2 to his parents' house to visit the elderly. The round trip time is 10:10-10:30 and 19:10-19:20, respectively. Based on the above travel habits, the mobile phone can count the travel information of the mobile phone and generate the user portrait shown in Table 1.
表1Table 1
Figure PCTCN2020108165-appb-000001
Figure PCTCN2020108165-appb-000001
Figure PCTCN2020108165-appb-000002
Figure PCTCN2020108165-appb-000002
本申请实施例中,手机可以在用户画像中保存多个出行方案。其中,每个出行方案包括:出行路线、出行方式和出行时间三个要素。不同的出行方案中,至少一个要素不同。出行路线不同是指起始位置,中间位置和结束位置中的任意一个或者多个不同。例如,如表1所示的用户画像中包括出行方案(1)、出行方案(2)、出行方案(3)、出行方案(4)、出行方案(5)和出行方案(6)。其中,方案(1)和方案(2)的起始不同,结束位置也不同。In this embodiment of the application, the mobile phone can store multiple travel plans in the user portrait. Among them, each travel plan includes three elements: travel route, travel mode and travel time. In different travel plans, at least one element is different. The difference in travel routes means that any one or more of the starting position, the middle position and the ending position are different. For example, the user profile shown in Table 1 includes travel plan (1), travel plan (2), travel plan (3), travel plan (4), travel plan (5), and travel plan (6). Among them, the start of the scheme (1) and the scheme (2) are different, and the end position is also different.
需要说明的是,本发明实施例并不要求用户画像中的每条出行路线都包括中间位置。只要有一条出行路线包括中间位置即可。例如,本发明实施例中的用户画像也可以是表2中所示的用户画像。It should be noted that the embodiment of the present invention does not require that every travel route in the user portrait includes an intermediate position. As long as there is one travel route including the middle position. For example, the user portrait in the embodiment of the present invention may also be the user portrait shown in Table 2.
表2Table 2
Figure PCTCN2020108165-appb-000003
Figure PCTCN2020108165-appb-000003
以下对用户画像中的出行路线、出行方式和出行时间等各个要素的内容和获取方式逐一进行说明。The following describes the content and acquisition method of each element such as travel route, travel mode, and travel time in the user portrait one by one.
1、出行路线1. Travel route
出行路线可以包括:起始位置、结束位置和中间位置。手机可以获取多个位置的位置信息,并且根据这些位置信息确定生成用户画像所需的起始位置、中间位置和结束位置。The travel route can include: a starting position, an ending position, and an intermediate position. The mobile phone can obtain the location information of multiple locations, and determine the starting location, the middle location, and the ending location required to generate the user portrait based on the location information.
示例性的,手机可以采用以下方式统计上述多个位置信息。方式(1):手机可通过手机连接的基站的标识来判断手机所处的位置范围,以获取上述多个位置信息。方式(2):手机可以通过用户在使用具有定位服务的预设应用时触发的用户操作,来获取手机的具体位置。方式(3):手机可以周期性/非周期性地自动(即不需要用户操作)触发手机的定位服务(例如GPS)进行定位,获取并记录手机的具体位置。Exemplarily, the mobile phone may use the following methods to count the multiple location information. Manner (1): The mobile phone can determine the location range of the mobile phone through the identification of the base station to which the mobile phone is connected, so as to obtain the aforementioned multiple location information. Manner (2): The mobile phone can obtain the specific location of the mobile phone through a user operation triggered when the user uses a preset application with a location service. Method (3): The mobile phone can periodically/non-periodically automatically (that is, no user operation is required) to trigger the mobile phone's location service (such as GPS) to perform positioning, and obtain and record the specific location of the mobile phone.
上述方式(1)通常判断的是手机所处的位置范围。在一些情况下,若手机经常连接某基站,手机可记录该基站的标识与具体位置的对应关系。在手机再次连接该基站,且满足一定的条件时(如连接时长超过预设时长),可认为手机就处于该基站的覆盖范围内的某个具体位置。例如,用户晚上长时间在家,手机之前已通过方式(2)获取了家的具体位置,若晚上用户的手机一直接入的是家位置的基站,可认为该用户晚上这段时间内一直在家(或家附近)。出行路线的其他位置也可以根据该方式判断。The above method (1) usually judges the location range of the mobile phone. In some cases, if the mobile phone is often connected to a certain base station, the mobile phone can record the corresponding relationship between the base station's identity and the specific location. When the mobile phone connects to the base station again, and certain conditions are met (for example, the connection duration exceeds the preset duration), the mobile phone can be considered to be in a specific location within the coverage area of the base station. For example, if the user is at home for a long time at night, the mobile phone has previously obtained the specific location of the home through method (2). If the user’s mobile phone has been connected to the base station at home at night, it can be considered that the user has been at home during the night Or near home). Other locations on the travel route can also be judged in this way.
上述方式(2)中的预设应用包括但不限于:可分享实时位置的即时通讯应用,如微信应用;可提供定位服务、路径搜索服务、导航服务和/或叫车服务的应用,如百度地图应用和高德地图应用等;可提供叫车服务的应用,如滴滴出行应用、uber应用、支付宝应用和微信应用等;可提供外卖服务的应用,如美团应用和大众点评应用;可提供共享单车扫码服务的应用,如摩拜单车应用和ofo共享单车应用;可提供公交车或地铁的扫码服务的应用,如支付宝和微信应用。预设应用可以是任何能够被用于获取手机当前的实时位置信息的应用。定位服务,又可以称为位置服务,手机的定位服务可以给手机提供具体的位置信息。示例性的,手机的定位服务可以采用全球定位系统(Global Positioning System,GPS)或北斗导航系统(BeiDou Navigation Satellite System,BDS)等实现定位,本发明实施例不做具体限定。The preset applications in the above method (2) include but are not limited to: instant messaging applications that can share real-time location, such as WeChat applications; applications that can provide location services, route search services, navigation services, and/or ride-hailing services, such as Baidu Map applications and AutoNavi map applications, etc.; applications that can provide ride-hailing services, such as Didi travel applications, uber applications, Alipay applications, and WeChat applications; applications that can provide takeaway services, such as Meituan applications and Dianping applications; Applications that provide code scanning services for shared bicycles, such as the Mobike bicycle application and ofo shared bicycle applications; applications that provide code scanning services for buses or subways, such as Alipay and WeChat applications. The preset application can be any application that can be used to obtain the current real-time location information of the mobile phone. The location service can also be called the location service. The location service of the mobile phone can provide specific location information to the mobile phone. Exemplarily, the positioning service of the mobile phone may use the Global Positioning System (Global Positioning System, GPS) or BeiDou Navigation System (BeiDou Navigation Satellite System, BDS) to achieve positioning, which is not specifically limited in the embodiment of the present invention.
上述方式(2)中的用户操作可以包括:用户在微信中向其他设备分享实时位置的操作;用户在地图应用中使用定位、导航或者路线搜索等服务的操作;用户在提供叫车服务的应用中使用叫车服务的操作;用户在提供外卖服务的应用中使用外卖服务的操作;以及用户使用公共交通工具的扫码服务的操作等任一操作。可以理解,这里的用户操作可以是任何能够触发预设应用的定位服务,从而使该手机可获取手机当前的实时位置信息的操作。The user operation in the above method (2) may include: the user's operation of sharing real-time location with other devices in WeChat; the user's operation of using services such as positioning, navigation or route search in the map application; the user's operation of providing car-hailing services The operation of using the ride-hailing service in the application; the operation of the user using the take-out service in an application that provides the take-out service; and the operation of the scanning code service of the user using public transportation. It is understandable that the user operation here can be any operation that can trigger a preset application location service, so that the mobile phone can obtain the current real-time location information of the mobile phone.
上述方式(3)中,手机可以设置周期性地自动触发GPS或者其他定位服务来获取用户的位置,并记录。手机也可以设置非周期性,例如某些特定的时间,来自动触发定位服务获取用户的位置,并记录。可以理解的是,当设定的周期足够小时,周期性触发定位服务,即为实时获取定位服务。In the above method (3), the mobile phone can be set to periodically automatically trigger GPS or other positioning services to obtain the user's location and record it. The mobile phone can also set non-periodical, such as certain specific time, to automatically trigger the location service to obtain the user's location and record it. It is understandable that when the set period is small enough, the location service is triggered periodically, that is, to obtain the location service in real time.
手机可以通过上述方式获取到多个位置信息,并且结合上述位置信息和手机在每个位置的停留时间,来确定用户的出行路线的起始位置和结束位置。具体的,上述每 个位置信息可以对应一个位置。上述起始位置和结束位置可以是上述多个位置信息对应的位置中、满足预设的时间条件的位置。The mobile phone can obtain multiple location information in the above-mentioned manner, and combine the above-mentioned location information and the stay time of the mobile phone at each location to determine the starting position and the ending position of the user's travel route. Specifically, each of the above-mentioned location information can correspond to a location. The start position and the end position may be positions that satisfy a preset time condition among the positions corresponding to the plurality of position information.
示例性的,上述预设的时间条件可以包括:手机连续停留的时间长度大于第一预设时长;和/或,手机连续停留的时间在预设时间段内。例如,上述第一预设时长可以为2小时、4小时、6小时或8小时等任一时间长度。例如,上述预设时间段可以包括:8:00至22:00或者23:00至第二天7:00。可以理解,按照一般用户的日常作息规律,手机连续停留的时间在8:00至22:00这一时间段内的位置可以为用户的公司(或者工作地);手机连续停留的时间在23:00至第二天7:00这一时间段内的位置可以为用户的家。当然,用户画像可以只记录初始位置和结束位置即可,不对该初始位置或结束位置是否是家和公司进行判断。位置的名称(例如家或者公司)可以由用户在手机中设置。Exemplarily, the aforementioned preset time condition may include: the length of time that the mobile phone continuously stays is greater than the first preset time period; and/or the time that the mobile phone continuously stays is within a preset time period. For example, the aforementioned first preset time length may be any time length such as 2 hours, 4 hours, 6 hours, or 8 hours. For example, the foregoing preset time period may include: 8:00 to 22:00 or 23:00 to 7:00 the next day. It can be understood that according to the daily routine of the general user, the location of the mobile phone during the time period from 8:00 to 22:00 can be the user's company (or work place); the mobile phone continuously stays at 23: The location in the time period from 00 to 7:00 of the next day may be the user's home. Of course, the user portrait can only record the initial position and the ending position, and it is not necessary to judge whether the initial position or the ending position is a home or a company. The name of the location (for example, home or company) can be set by the user in the mobile phone.
上述中间位置位于起始位置和结束位置之间。也就是说,从起始位置到结束位置,需要经过上述中间位置。手机可以用以下三个方式中的任一个或者任意组合来确定中间位置。The above-mentioned intermediate position is located between the start position and the end position. In other words, from the start position to the end position, it is necessary to pass the above-mentioned intermediate position. The mobile phone can use any one or any combination of the following three methods to determine the middle position.
在方式1中,中间位置(例如中间目的地)可以是手机接收的用户设置的位置。In method 1, the intermediate location (for example, the intermediate destination) may be a location set by the user received by the mobile phone.
示例性的,用户从家去公司上班的过程中,要先从家出发送小朋友去幼儿园,然后再从幼儿园出发去公司。这里的幼儿园是用户的家到公司之间的中间位置(中间目的地)。Exemplarily, when a user goes from home to work in a company, he must first send children from home to kindergarten, and then go to the company from the kindergarten. The kindergarten here is an intermediate location (intermediate destination) between the user's home and the company.
手机接收用户设置中间位置的方法,可以参考以下对图12中的相关描述,这里不予赘述。For the method for the mobile phone to receive the user to set the intermediate position, please refer to the relevant description in Figure 12 below, which will not be repeated here.
在方式2中,中间位置可以是电子设备自动记录的位置。示例性的,如果手机判断用户在某个位置的停留时间满足预设的时间条件和/或经过次数满足预设的次数条件,则将该位置设置为中间位置。上述时间条件包括停留时间超过预设的时长阈值和/或停留时间最长,次数条件包括停留次数超过预设的次数阈值和/或停留次数最多。例如,时长阈值可以为10分钟或15分钟等。方式1中提到的中间目的地幼儿园,手机也可以通过电子设备自动记录得到。In method 2, the intermediate position may be a position automatically recorded by the electronic device. Exemplarily, if the mobile phone determines that the user's stay time at a certain location meets the preset time condition and/or the number of elapsed times meets the preset number condition, then the location is set as an intermediate location. The above-mentioned time condition includes that the stay time exceeds a preset duration threshold and/or the stay time is the longest, and the number condition includes that the number of stays exceeds the preset number threshold and/or the number of stays is the largest. For example, the duration threshold can be 10 minutes or 15 minutes, etc. For the intermediate destination kindergarten mentioned in Method 1, the mobile phone can also be automatically recorded by an electronic device.
在方式3中,手机将从起始位置出发向结束位置运动的过程中,通过检测用户操作获取的位置,确定为上述中间位置。例如,手机从起始位置出发后并且在到达结束位置之前,可能会接收到用户使用微信应用时触发的公交车扫码操作或使用地图应用时触发的导航操作等触发定位服务的操作。如此,手机则可以将根据用户操作获取的位置,确定为起始位置和结束位置之间的中间位置。In mode 3, during the process of moving the mobile phone from the starting position to the ending position, the position obtained by detecting the user's operation is determined as the above-mentioned intermediate position. For example, after the mobile phone departs from the starting position and before reaching the ending position, it may receive operations that trigger location services, such as a bus scan code operation triggered by the user when using the WeChat application or a navigation operation triggered when using a map application. In this way, the mobile phone can determine the position acquired according to the user's operation as an intermediate position between the start position and the end position.
如果手机用以上方式确定出在起始位置和结束位置之间有多个并行的中间位置,可以优先将用户经过次数最多的一个中间位置确定为用户画像中的中间位置。If the mobile phone uses the above method to determine that there are multiple parallel intermediate positions between the starting position and the ending position, the intermediate position that the user has passed the most times can be prioritized as the intermediate position in the user portrait.
手机还可以根据多个位置信息确定出运动轨迹,并根据运动轨迹修正或删除出行路线上的具有偏差的位置,以提高出行路线的准确率。The mobile phone can also determine the movement trajectory according to multiple position information, and correct or delete the deviated positions on the travel route according to the movement trajectory, so as to improve the accuracy of the travel route.
2、出行时间2. Travel time
出行时间是手机记录的用户由起始位置出发向结束位置运动的出发时间。可以理解,用户在同一个起始位置向同一个结束位置运动的多个实际出发时间不一定完全相同。这些不同的实际出发时间可以分布在一个时间段内。因此,用户画像中的出行时 间可以是一个时间段。The travel time is the departure time recorded by the mobile phone for the user to move from the starting position to the ending position. It can be understood that multiple actual departure times for the user to move from the same starting position to the same ending position are not necessarily the same. These different actual departure times can be distributed in a time period. Therefore, the travel time in the user portrait can be a period of time.
3、出行方式3. Ways of travel
出行方式可以包括:公交车、地铁、骑单车、步行、驾车、火车或飞机等一种或多种方式。手机可以用以下方式确定用户的出行方式。Ways of travel may include one or more ways such as buses, subways, biking, walking, driving, trains, or airplanes. The mobile phone can use the following methods to determine the user's travel mode.
方式a中,手机可以根据一个位置(如起始位置)运动至另一个位置(如结束位置)的运动加速度,来分析运动模式,并根据运动模式来学习和生成出行方式。In mode a, the mobile phone can analyze the movement mode according to the movement acceleration from one position (such as the starting position) to another position (such as the ending position), and learn and generate travel modes according to the movement mode.
例如,运动模式可以包括静止模式、步行模式、跑步模式、骑车模式、公交车模式、地铁模式和驾车模式等。由于手机处于上述不同模式时,手机的运动加速度不同,因此,手机可以根据加速度传感器采集的运动加速度来确定手机的运动模式,进而确定相应的出行方式。For example, the sports mode may include a stationary mode, a walking mode, a running mode, a cycling mode, a bus mode, a subway mode, a driving mode, and so on. Since the mobile phone has different motion accelerations when the mobile phone is in the above-mentioned different modes, the mobile phone can determine the motion mode of the mobile phone according to the motion acceleration collected by the acceleration sensor, and then determine the corresponding travel mode.
方式b中,手机可以通过用户在预设应用/服务中的用户操作来确定出行方式。例如手机可以通过用户使用地铁乘车码进行扫描的操作、共享单车应用中触发的解锁操作等交互来确定。其中,手机由起始位置到结束位置的出行方式,即为包括起始位置和结束位置的出行路线的出行方式。一条出行线路可以包括多个出行方式,例如,从起始位置到中间位置采用出行方式1(例如地铁),从中间位置到结束位置采用出行方式2(例如公共汽车或者共享单车)。In mode b, the mobile phone can determine the travel mode through the user's user operation in the preset application/service. For example, the mobile phone can be determined by the user's operation of scanning the subway ride code, the unlocking operation triggered in the shared bicycle application, and other interactions. Among them, the travel mode of the mobile phone from the start position to the end position is the travel mode of the travel route including the start position and the end position. A travel route may include multiple travel modes, for example, travel mode 1 (for example, subway) is used from the start position to the middle position, and travel mode 2 (for example, bus or shared bicycle) is used from the middle position to the end position.
综上,如图3所示,本申请的一种可实现方式中,手机可以统计手机的运动轨迹(301)和运动模式(302),根据运动轨迹中对应的位置信息和运动模式生成用户画像,并保存用户画像。或者,手机可以统计手机在预设应用中接收的用户操作(303),根据该用户操作生成用户画像,并保存用户画像。或者,手机可以统计手机的运动轨迹、运动模式和手机在预设应用中接收的用户操作;根据运动轨迹中对应的位置信息、运动模式和用户操作,生成用户画像,并保存用户画像。In summary, as shown in Figure 3, in an implementation manner of this application, the mobile phone can count the mobile phone's motion trajectory (301) and motion mode (302), and generate a user portrait according to the corresponding position information and motion mode in the motion trajectory , And save the user portrait. Alternatively, the mobile phone can count the user operations received by the mobile phone in the preset application (303), generate a user portrait according to the user operation, and save the user portrait. Alternatively, the mobile phone can count the mobile phone's motion trajectory, motion mode, and user operations received by the mobile phone in a preset application; generate and save the user portrait according to the corresponding position information, motion mode, and user operation in the motion trajectory.
需要注意的是,由于用户的出行习惯可能会发生改变,因此手机可以实时更新或者周期性更新上述用户画像。这样,便可以智能地向用户推荐更加符合用户实际需求的出行方案,提高电子设备智能推荐的实用性和效率,更好地为用户日常生活提供便捷。用户画像的更新周期可以跟前述生成用户画像的统计周期相同或者不同。It should be noted that since the user's travel habits may change, the mobile phone can update the above-mentioned user portrait in real time or periodically. In this way, it is possible to intelligently recommend a travel plan that is more in line with the actual needs of the user, improve the practicability and efficiency of the intelligent recommendation of electronic equipment, and better provide convenience for the user's daily life. The update cycle of the user portrait may be the same as or different from the aforementioned statistical cycle for generating the user portrait.
S202、手机在满足预设条件时,根据当前时间和当前位置从手机的用户画像中获取第一出行方案。S202. When the mobile phone satisfies the preset condition, obtain the first travel plan from the user portrait of the mobile phone according to the current time and current location.
该第一出行方案包括第一出行路线,该第一出行路线至少包括起始位置、结束位置和至少一个位于起始位置和结束位置之间的中间位置。The first travel plan includes a first travel route, and the first travel route includes at least a start position, an end position, and at least one intermediate position between the start position and the end position.
在本发明实施例中,手机可以在满足预设条件时,根据当前时间和当前位置从手机的用户画像中获取第一出行方案。其中,所述用户画像中的第一出行方案可以是所述预设条件满足之前就已经生成和存储的,也可以是在预设条件满足时实时生成的。例如,手机可以在用户画像中预先存储用户在预设的时间范围内的每次出行的出行信息,例如起始位置、结束位置,中间位置、出行时间和出行方式等。当预设条件满足时,手机实时分析这些出行信息并生成出行方案。In the embodiment of the present invention, the mobile phone can obtain the first travel plan from the user portrait of the mobile phone according to the current time and current location when the preset condition is satisfied. Wherein, the first travel plan in the user portrait may be generated and stored before the preset condition is satisfied, or may be generated in real time when the preset condition is satisfied. For example, the mobile phone may pre-store the user's travel information for each trip within a preset time range in the user portrait, such as the start position, the end position, the middle position, the travel time, and the travel mode. When the preset conditions are met, the mobile phone analyzes the travel information in real time and generates a travel plan.
示例性的,上述满足预设条件具体可以为以下两种情况中的任一种。Exemplarily, the foregoing meeting the preset condition may specifically be any one of the following two situations.
情况(1):上述满足预设条件,可以包括:第一时间到达。其中,该第一时间是根据第一出行方案的出行时间预设的,或者是所述电子设备周期性获取的。Situation (1): The foregoing meeting preset conditions may include: arriving at the first time. Wherein, the first time is preset according to the travel time of the first travel plan, or is periodically acquired by the electronic device.
前述第一时间的预设可以是手机自动执行,也可以是用户手动执行。在这种情况下,上述当前位置可以是第一时间到达时获取的。The aforementioned first-time preset can be executed automatically by the mobile phone, or manually executed by the user. In this case, the above-mentioned current location may be acquired when the first time arrives.
其中,手机保存的用户画像中可以包括一个或多个出行方案。手机或者用户可以根据每个出行方案的出行时间或者只根据部分出行方案的出行时间设置上述第一时间。Among them, the user portrait saved in the mobile phone may include one or more travel plans. The mobile phone or the user can set the above-mentioned first time according to the travel time of each travel plan or only according to the travel time of some travel plans.
为了能够在用户出行前向用户提示第一出行方案,上述第一时间可以早于第一出行方案的出行时间。可以理解,在统计周期内,用户从起始位置出发向结束位置运动的实际出行时间不一定完全相同,但这些实际出行时间可能会在一个时间段内。也就是说,用户画像中的出行时间可以是一个时间段。例如,如表1所示,出行方案(1)的出行时间是星期一至星期五的7:40-7:50。In order to be able to prompt the user for the first travel plan before the user travels, the above-mentioned first time may be earlier than the travel time of the first travel plan. It can be understood that in the statistical period, the actual travel time of the user moving from the starting position to the ending position may not be exactly the same, but these actual travel times may be within a period of time. In other words, the travel time in the user portrait can be a time period. For example, as shown in Table 1, the travel time of travel plan (1) is 7:40-7:50 from Monday to Friday.
本申请实施例中,假设第一出行方案的出行时间是由起始时间b和结束时间c决定的一个时间段。上述第一时间早于第一出行方案的出行时间,具体可以为:第一时间是时间a、时间c,或者时间a至时间c之间的任一时间。其中,时间a在时间b之前,且时间a与时间b相差预设的时长阈值。In the embodiment of the present application, it is assumed that the travel time of the first travel plan is a time period determined by the start time b and the end time c. The above-mentioned first time is earlier than the travel time of the first travel plan, specifically: the first time is time a, time c, or any time between time a and time c. Wherein, the time a is before the time b, and the time a is different from the time b by a preset duration threshold.
例如,以表1所示的出行方案(1)为例,假设预设的时长阈值为10分钟。表1所示的出行方案(1)的出行时间是星期一至星期五的7:40-7:50;那么,第一时间可以是星期一至星期五的7:30-7:50这段时间内的任一时间,如星期一至星期五的7:35。For example, taking the travel plan (1) shown in Table 1 as an example, it is assumed that the preset duration threshold is 10 minutes. The travel time of the travel plan (1) shown in Table 1 is 7:40-7:50 from Monday to Friday; then, the first time can be 7:30-7:50 from Monday to Friday Any time, such as 7:35 from Monday to Friday.
可选的,上述第一时间可以是第一出行方案的出行时间中的最早时间。例如,表1所示的出行方案(1)的出行时间是星期一至星期五的7:30-7:50,第一时间可以是星期一至星期五的7:30。Optionally, the foregoing first time may be the earliest time in the travel time of the first travel plan. For example, the travel time of the travel plan (1) shown in Table 1 is 7:30-7:50 from Monday to Friday, and the first time can be 7:30 from Monday to Friday.
举例来说,假设第一时间是星期一至星期五的7:30,手机的当前位置是表1所示的“家”。当第一时间“星期一的7:30”到达时,手机可以根据当前时间“星期一的7:30”和当前位置“家”,从表1所示的用户画像获取出行方案(1)。For example, suppose the first time is 7:30 from Monday to Friday, and the current location of the mobile phone is "home" as shown in Table 1. When the first time "7:30 on Monday" arrives, the mobile phone can obtain the travel plan (1) from the user portrait shown in Table 1 according to the current time "7:30 on Monday" and the current location "home".
如果第一时间是所述电子设备周期性获取的,该周期的值可以是手机默认的或者是用户设置的。周期的值可以是5分钟,10分钟,15分钟,30分钟,5秒,10秒,或者20秒等任一时长。可以理解,当上述周期较小(如周期为5秒或1秒)时,相当于电子设备在实时获取当前时间。如果周期的值小于出行时间的时长的一半,则在出行时间的最早时间之前以及出行时间的时长内,第一时间可以多次到达,从而手机在后续的步骤203中多次显示提示信息。例如,出行是7:30-7:50,并且周期的值是5分钟,则第一时间可能在7:28,7:33,7:38,7:43,7:48到达,因此手机会分别在这些时刻显示提示信息。第一时间的具体到达时刻,取决于周期的值以及起始时间。为保证第一时间能在出行时间内和/或出行时间的起点之前到达,周期的值应当较小,例如小于出行时间的时长。If the first time is obtained periodically by the electronic device, the value of the period may be the default value of the mobile phone or set by the user. The value of the period can be any length of 5 minutes, 10 minutes, 15 minutes, 30 minutes, 5 seconds, 10 seconds, or 20 seconds. It can be understood that when the foregoing period is relatively small (for example, the period is 5 seconds or 1 second), it is equivalent to the electronic device acquiring the current time in real time. If the value of the period is less than half of the duration of the travel time, the first time can arrive multiple times before the earliest time of the travel time and within the duration of the travel time, so that the mobile phone displays the prompt information multiple times in the subsequent step 203. For example, if the trip is 7:30-7:50, and the cycle value is 5 minutes, the first time may arrive at 7:28, 7:33, 7:38, 7:43, 7:48, so the phone will Respectively display prompt information at these moments. The specific arrival time of the first time depends on the value of the period and the start time. To ensure that the first time can arrive within the travel time and/or before the start of the travel time, the value of the period should be small, for example, less than the duration of the travel time.
情况(2):上述满足预设条件,可以包括:第一时间到达,且电子设备的当前位置与第一位置匹配。Case (2): The foregoing meeting the preset condition may include: arriving at the first time, and the current position of the electronic device matches the first position.
其中,第一时间的设置方式可以参考上述情况(1)中的详细描述,这里不予赘述。上述第一位置可以是手机或者用户根据第一出行方案的起始位置预设的。其中,上述当前位置可以是第一时间到达时获取的。For the setting method of the first time, please refer to the detailed description in the above case (1), which will not be repeated here. The above-mentioned first position may be preset by the mobile phone or the user according to the starting position of the first travel plan. Wherein, the above-mentioned current position may be acquired when the first time arrives.
其中,手机保存的用户画像中可以包括一个或多个出行方案。手机或者用户可以根据每个出行方案的起始位置设置上述第一位置。手机的当前位置与第一位置匹配, 具体是指:手机的当前位置与第一位置之间的距离小于预设的距离阈值。例如,该预设的距离阈值可以为100米、500米、600米或者1000米等任一距离阈值。Among them, the user portrait saved in the mobile phone may include one or more travel plans. The mobile phone or the user can set the above-mentioned first position according to the starting position of each travel plan. Matching the current position of the mobile phone with the first position specifically means that the distance between the current position of the mobile phone and the first position is less than a preset distance threshold. For example, the preset distance threshold may be any distance threshold such as 100 meters, 500 meters, 600 meters, or 1000 meters.
也就是说,手机可以在第一时间到达,且手机的当前位置与第一位置匹配时,根据当前时间和当前位置为用户推荐上述第一出行方案。这样,可以进一步减少由于手机推荐的出行方案不被用户采纳,而需要重新为用户推荐出行方案的可能性,从而可以提高手机进行出行推荐的效率。In other words, when the mobile phone can arrive at the first time and the current location of the mobile phone matches the first location, the first travel plan is recommended for the user according to the current time and current location. In this way, it is possible to further reduce the possibility that the travel plan recommended by the mobile phone is not adopted by the user, and the travel plan needs to be recommended for the user again, thereby improving the efficiency of the travel recommendation by the mobile phone.
例如,结合表1所示的用户画像,假设第一时间是星期六的9:10,上述第一位置是家,手机的当前位置是家。手机可以在第一时间“星期六的9:10”到达,且手机的当前位置是家时,根据当前时间“星期六的9:10”和当前位置“家”,从表1所示的用户画像获取出行方案(3)。For example, in conjunction with the user portrait shown in Table 1, suppose that the first time is 9:10 on Saturday, the above-mentioned first location is home, and the current location of the mobile phone is home. When the mobile phone can arrive at the first time "9:10 on Saturday" and the current location of the mobile phone is home, according to the current time "9:10 on Saturday" and the current location "home", obtain the user portrait shown in Table 1 Travel plan (3).
当前述预设条件满足时,手机根据当前时间和当前位置从手机的用户画像中获取第一出行方案的方法可以包括:手机从用户画像中查找与当前时间和当前位置匹配的第一出行方案。其中,第一出行方案的第一出行时间与当前时间相同,或者第一出行时间的范围包括当前时间,或者当前时间与第一出行时间的时间差在时长阈值范围内。第一出行方案的起始位置与当前位置相同,或者第一出行方案的起始位置的范围包含当前位置。When the foregoing preset conditions are met, the method for the mobile phone to obtain the first travel plan from the user portrait of the mobile phone according to the current time and current location may include: the mobile phone searches the user portrait for the first travel plan that matches the current time and current location. Wherein, the first travel time of the first travel plan is the same as the current time, or the range of the first travel time includes the current time, or the time difference between the current time and the first travel time is within the duration threshold. The starting position of the first travel plan is the same as the current position, or the range of the starting position of the first travel plan includes the current position.
其中,当前时间与第一出行时间的时间差在时长阈值范围内,具体可以包括:当前时间在第一出行时间之前,第一出行时间(例如第一出行时间段的起始时间)与当前时间的时间差小于预设的时长阈值;或者,当前时间在第一出行时间之后,第一出行时间(例如第一出行时间段的结束时间)与当前时间的时间差小于预设的时长阈值。第一出行方案的起始位置的范围包含当前位置,具体是指:第一起始位置与当前位置之间的距离小于预设的距离阈值。Wherein, the time difference between the current time and the first travel time is within the duration threshold, which may specifically include: the current time is before the first travel time, the first travel time (for example, the start time of the first travel time period) and the current time The time difference is less than the preset duration threshold; or, the current time is after the first travel time, and the time difference between the first travel time (for example, the end time of the first travel time period) and the current time is less than the preset duration threshold. The range of the starting position of the first travel plan includes the current position, and specifically means that the distance between the first starting position and the current position is less than a preset distance threshold.
例如,假设手机满足预设条件,当前时间是2019年8月12日的7:30,手机的当前位置是“家”。手机可以根据当前时间从表1所示的用户画像中查找与第一出行时间“星期一的7:40-7:50”和当前位置匹配的出行方案(1),即第一出行方案。For example, suppose that the mobile phone meets the preset conditions, the current time is 7:30 on August 12, 2019, and the current location of the mobile phone is "home". The mobile phone can search for the travel plan (1) that matches the first travel time "7:40-7:50 on Monday" and the current location from the user portrait shown in Table 1 according to the current time, that is, the first travel plan.
假设上述第一出行方案是表1所示的出行方案(1)。那么,该第一出行方案的第一出行方式为驾车,起始位置为“家”,中间位置为“幼儿园”,结束位置为“公司”。如此,手机便可以根据上述起始位置、中间位置和结束位置,为用户规划出采用上述第一出行方式,从起始位置开始途经中间位置到结束位置的出行路线。当然,如果起始位置和中间位置,或者中间位置和结束位置之间只有一条路;手机则不需要考虑实时交通路况,便可以直接得到从起始位置开始途经中间位置到结束位置的出行路线。Assume that the first travel plan mentioned above is the travel plan (1) shown in Table 1. Then, the first travel mode of the first travel plan is driving, the starting position is "home", the middle position is "kindergarten", and the ending position is "company". In this way, the mobile phone can plan a travel route for the user using the first travel mode described above, starting from the starting position and passing through the intermediate position to the ending position, based on the starting position, intermediate position, and ending position. Of course, if there is only one road between the start position and the middle position, or the middle position and the end position; the mobile phone does not need to consider the real-time traffic conditions, and can directly get the travel route from the start position through the middle position to the end position.
S203、手机显示与第一出行方案相关的提示信息。S203. The mobile phone displays prompt information related to the first travel plan.
示例性的,手机可以通过通知消息、通知栏、负一屏或地图应用中的至少一项,显示上述提示信息,以向用户推荐出行方案。Exemplarily, the mobile phone may display the above-mentioned prompt information through at least one of a notification message, a notification bar, a negative screen, or a map application, so as to recommend a travel plan to the user.
以第一出行方案是表1所示的出行方案(1)为例。手机可以在负一屏显示上述提示信息。例如,如图5中的(a)所示,手机可以在负一屏501显示包括提示信息502的卡片。该提示信息502可以为“20分钟驾车到幼儿园,15分钟从幼儿园驾车到公司”。该提示信息502所指示的出行方式为“驾车”,并指示上述初始位置(如家)、中间位置(如幼儿园)和结束位置(如公司)。Take the first travel plan as the travel plan (1) shown in Table 1 as an example. The mobile phone can display the above prompt information on the negative screen. For example, as shown in (a) of FIG. 5, the mobile phone can display a card including prompt information 502 on the negative screen 501. The prompt message 502 may be "driving to the kindergarten in 20 minutes, and driving to the company from the kindergarten in 15 minutes". The travel mode indicated by the prompt message 502 is "driving", and indicates the initial position (such as home), the middle position (such as a kindergarten), and the end position (such as a company).
应理解,不同品牌或型号的手机,其负一屏的设计不同。例如,图6所示的负一屏601与图5中的(a)所示的负一屏不同。如图6所示,手机可以在负一屏601显示包括提示信息602的卡片。It should be understood that mobile phones of different brands or models have different designs for the negative screen. For example, the negative one screen 601 shown in FIG. 6 is different from the negative one screen shown in (a) of FIG. 5. As shown in FIG. 6, the mobile phone can display a card including prompt information 602 on the negative screen 601.
又例如,如图7所示,手机可以通过通知消息701发出提示信息。又例如,手机可以响应于用户在触摸屏输入的打开通知栏的操作,显示图8所示的通知界面801。该通知界面801中包括通知栏802和出行推荐消息803。该出行推荐消息803包括上述提示信息。再例如,如图9所示,手机可以在地图应用的首页901显示提示信息902。其中,该地图应用可以为百度地图、高德地图、手机出厂时便安装的地图应用或者其他任一地图应用。图7,图8和图9中的提示信息的内容可以与图5中的(a)中提示信息相同。For another example, as shown in FIG. 7, the mobile phone can send a prompt message through a notification message 701. For another example, the mobile phone may display the notification interface 801 shown in FIG. 8 in response to the operation of opening the notification bar input by the user on the touch screen. The notification interface 801 includes a notification bar 802 and a travel recommendation message 803. The travel recommendation message 803 includes the aforementioned prompt information. For another example, as shown in FIG. 9, the mobile phone may display prompt information 902 on the home page 901 of the map application. Among them, the map application can be Baidu Maps, Gaode Maps, a map application installed when the mobile phone leaves the factory, or any other map application. The content of the prompt information in Figures 7, 8 and 9 may be the same as the prompt information in Figure 5 (a).
可选地,手机或者用户可以为提示信息设置显示时长。例如,从显示上述提示信息开始的第二预设时长内,可以手机可以一直显示上述提示信息。在显示时长之后,手机可以将提示信息自动清除。Optionally, the mobile phone or the user can set the display duration for the prompt information. For example, within the second preset time period from the display of the above-mentioned prompt information, the mobile phone may always display the above-mentioned prompt information. After the display time, the phone can automatically clear the prompt information.
其中,该第二预设时长可以为固定的时间长度。例如,该第二预设时长可以为1小时、2小时或3小时等任一时间长度。或者,第二预设时长可以是根据第一出行方案中从起始位置到结束位置所需的时间确定的。例如,第一出行方案是表1所示的出行方案(1)时,手机可以统计从起始位置“家”经过中间位置“幼儿园”到结束位置“公司”所需的时间,确定第二预设时长。上述第二预设时长可以是手机统计的上述时间的平均值或者最大值。Wherein, the second preset duration may be a fixed duration. For example, the second preset time length can be any time length such as 1 hour, 2 hours, or 3 hours. Alternatively, the second preset duration may be determined according to the time required from the start position to the end position in the first travel plan. For example, when the first travel plan is the travel plan (1) shown in Table 1, the mobile phone can count the time required from the start location "home" to pass the middle location "kindergarten" to the end location "company" to determine the second travel plan. Set the duration. The second preset duration may be the average value or the maximum value of the foregoing time counted by the mobile phone.
例如,如图5中的(a)所示,假设手机于7:30在负一屏501开始显示包括提示信息502的卡片,上述第二预设时长是2小时。那么,手机在7:30-9:30这段时间,都可以在负一屏501显示包括提示信息502的卡片。For example, as shown in (a) of FIG. 5, suppose that the mobile phone starts to display the card including the prompt information 502 on the negative screen 501 at 7:30, and the above-mentioned second preset duration is 2 hours. Then, the mobile phone can display the card including the prompt information 502 on the negative screen 501 during the period of 7:30-9:30.
可选的,手机可以在显示上述提示信息开始的第二预设时长截至时,退出显示与第一出行方案相关的提示信息。例如,如图5中的(a)所示,假设手机于7:30在负一屏501开始显示包括提示信息502的卡片,上述第二预设时长是2小时。那么,手机从9:30开始,便可以停止在负一屏501显示包括提示信息502的卡片。例如,如图5中的(b)所示,负一屏503不包括提示信息502。Optionally, the mobile phone may exit the display of the prompt information related to the first travel plan when the second preset time period from the display of the above prompt information expires. For example, as shown in (a) of FIG. 5, suppose that the mobile phone starts to display the card including the prompt information 502 on the negative screen 501 at 7:30, and the above-mentioned second preset duration is 2 hours. Then, starting at 9:30, the mobile phone can stop displaying the card including the prompt information 502 on the negative screen 501. For example, as shown in (b) of FIG. 5, the negative one screen 503 does not include the prompt information 502.
可选的,手机还可以根据检测到当前位置与出行路线中位置的关系来确定是否显示提示信息,例如手机可以在检测到用户已离开起始位置时不再显示提示信息,或者手机在检测到用户已到达结束位置时结束显示提示信息。Optionally, the mobile phone can also determine whether to display the prompt information according to the detected relationship between the current position and the position in the travel route. For example, the mobile phone can no longer display the prompt information when it detects that the user has left the starting position, or the mobile phone detects When the user has reached the end position, the display of the prompt message ends.
可以理解,上述提示信息并不能完整的显示上述第一出行方案的全部内容。例如,上述提示信息不能完整的显示第一出行方案的出行路线。基于这种情况,如图4所示,在图2所示的S203之后,本申请实施例的方法还可以包括S204-S205。It is understandable that the above-mentioned prompt information cannot completely display all the contents of the above-mentioned first travel plan. For example, the above prompt information cannot completely display the travel route of the first travel plan. Based on this situation, as shown in FIG. 4, after S203 shown in FIG. 2, the method of the embodiment of the present application may further include S204-S205.
S204、手机接收对上述提示信息的用户操作。S204. The mobile phone receives a user operation on the above-mentioned prompt information.
示例性的,上述用户操作可以是点击操作,例如单击操作、双击操作或者长按操作等任一操作。例如,手机可接收用户对图5中的(a)所示包括提示信息502的卡片或者图6所示包括提示信息602的卡片的点击操作(如单击操作)。又例如,手机可接收用户对图7所示的包括提示信息的通知消息701的点击操作。Exemplarily, the aforementioned user operation may be a click operation, such as any operation such as a single click operation, a double click operation, or a long press operation. For example, the mobile phone can receive a user's click operation (such as a click operation) on the card shown in FIG. 5 (a) including the prompt information 502 or the card including the prompt information 602 shown in FIG. 6. For another example, the mobile phone can receive a user's click operation on the notification message 701 including prompt information shown in FIG. 7.
S205、响应于上述用户操作,手机显示第一界面。该第一界面指示包括起始位置、 结束位置和至少一个中间位置的第一出行路线。S205. In response to the foregoing user operation, the mobile phone displays a first interface. The first interface indicates a first travel route including a start position, an end position, and at least one intermediate position.
可选的,第一界面还可以指示第一出行方式,该第一出行方式是第一出行方案的出行方式。Optionally, the first interface may also indicate a first travel mode, and the first travel mode is a travel mode of the first travel plan.
示例性的,手机响应于用户对图5中的(a)-图9中任一附图所示的提示信息的点击操作,可以显示图10所示的第一界面1001。该第一界面1001包括多个出行方式选项,如“公交”选项、“驾车”选项1004、“步行”选项和“骑车”选项等。“驾车”选项1004指示上述第一出行方式为“驾车”。该第一界面1001还包括输入框1002。该输入框1002包括上述起始位置(如位置I)、中间位置(如位置II)和结束位置(如位置III)的设置框。该第一界面1001还包括经过位置I、位置II和位置III的出行路线1005。Exemplarily, the mobile phone may display the first interface 1001 shown in FIG. 10 in response to a user's click operation on the prompt information shown in any of the drawings in (a) to FIG. 9 in FIG. 5. The first interface 1001 includes multiple travel mode options, such as a "bus" option, a "driving" option 1004, a "walking" option, and a "cycling" option. The "driving" option 1004 indicates that the above-mentioned first travel mode is "driving". The first interface 1001 also includes an input box 1002. The input box 1002 includes the above-mentioned setting boxes for the start position (such as position I), the middle position (such as position II), and the end position (such as position III). The first interface 1001 also includes a travel route 1005 passing through location I, location II, and location III.
其中,图10所示的输入框1002中还包括“中间位置”添加按钮1003。响应于用户对“中间位置”添加按钮1003的点击操作,手机可以根据用户输入的中间位置规划途经用户输入的中间位置的出行方案。但是,需要注意的是,本申请实施例中,如图10所示,手机所规划的出行路线1005中包括的位置II(幼儿园)并不是手机根据用户输入的途经位置规划的,而是手机根据用户画像自动规划的。Wherein, the input box 1002 shown in FIG. 10 also includes a "middle position" adding button 1003. In response to the user's clicking operation on the "middle position" adding button 1003, the mobile phone can plan a travel plan passing the middle position input by the user according to the middle position input by the user. However, it should be noted that in this embodiment of the application, as shown in FIG. 10, the location II (kindergarten) included in the travel route 1005 planned by the mobile phone is not planned by the mobile phone according to the passing position input by the user, but by the mobile phone according to the transit location input by the user. User portraits are automatically planned.
本申请实施例中,手机可以在满足预设条件时,根据当前时间和位置,智能地从用户画像中获取第一出行方案。由于用户画像可以反映出用户在不同场景(如时间或位置)下可能的行为或喜好。因此,手机根据当前时间,从用户画像中获取的第一出行方案,与用户出行习惯契合度较高。In the embodiment of the present application, the mobile phone can intelligently obtain the first travel plan from the user portrait according to the current time and location when the preset conditions are met. Because the user portrait can reflect the user's possible behaviors or preferences in different scenarios (such as time or location). Therefore, the mobile phone's first travel plan obtained from the user's portrait according to the current time is highly compatible with the user's travel habits.
由此可见,通过本申请实施例的方法,手机可以为用户推荐更贴合用户需求的出行方案,提高电子设备智能推荐的实用性和效率,更好地为用户日常生活提供便捷性。It can be seen that through the method of the embodiment of the present application, the mobile phone can recommend a travel plan that is more suitable for the user's needs, improve the practicability and efficiency of the intelligent recommendation of electronic equipment, and better provide convenience for the user's daily life.
在一些情况下,手机推荐的第一出行方案可能并不符合用户的实际出行要求。这种情况下,手机可以接收用户对上述第一出行路线的调整操作。响应于该调整操作,显示第二界面。例如,用户想要驾车去幼儿园的西门,而图11中的(a)所述的第一出行路线1005则是由幼儿园的北门出入幼儿园。如此,如果用户按照第一出行方案所指示的出行路线驾车出行,则可能需要绕路,无法直接到达目的地。因此,手机在第一界面中显示第一出行路线1005后,手机还可以接收用户对第一出行路线1005的调整操作,将中间位置由幼儿园的北门移动至幼儿园的西门。如图11中的(a)所示,上述调整操作可以是用户对位置II(即幼儿园)对应的定位图标的拖动操作,该拖动操作的起始点是幼儿园的北门,终点为幼儿园的西门。响应于上述调整操作,手机可以显示图11中的(b)所示的第二界面。第二界面包括“驾车”选项、经过位置I、位置II(具体为幼儿园的西门)和位置III的第二出行路线1006。其中,本申请实施例的附图的方位遵循“上北下南,左西右东”的方向指示。In some cases, the first travel plan recommended by the mobile phone may not meet the user's actual travel requirements. In this case, the mobile phone can receive the user's adjustment operation on the above-mentioned first travel route. In response to the adjustment operation, the second interface is displayed. For example, the user wants to drive to the west gate of the kindergarten, and the first travel route 1005 described in (a) of FIG. 11 is to enter and leave the kindergarten from the north gate of the kindergarten. In this way, if the user travels by car according to the travel route indicated by the first travel plan, the user may need to make a detour and cannot directly reach the destination. Therefore, after the mobile phone displays the first travel route 1005 on the first interface, the mobile phone can also receive the user's adjustment operation on the first travel route 1005, and move the middle position from the north gate of the kindergarten to the west gate of the kindergarten. As shown in (a) in Figure 11, the above adjustment operation can be a user's drag operation on the positioning icon corresponding to position II (that is, kindergarten). The starting point of the drag operation is the north gate of the kindergarten, and the end point is the kindergarten's Simon. In response to the above adjustment operation, the mobile phone can display the second interface shown in (b) of FIG. 11. The second interface includes a "driving" option, a second travel route 1006 passing through location I, location II (specifically the west gate of the kindergarten), and location III. Wherein, the orientation of the drawings in the embodiments of the present application follows the direction indication of “up to north, down to south, left to west, right to east”.
需要注意的是,除了步骤S201中提到的用户画像的更新方式之外,手机也可以在本步骤中接收用户操作时更新用户画像。例如,用户在上述第一界面中的调整操作。因此,手机可以根据上述调整操作,更新用户画像中的出行路线。该调整操作还可以包括上述图10提到的添加中间位置的添加操作以及图12中的(a)所示的中间位置的添加操作(添加后包含多个中间位置)等。例如,手机可以接收用户对图12中的(a)所示的“中间位置”添加按钮1003的点击操作。响应于该点击操作,手机可以显示图 12中的(b)所示的“输入框”1201。手机可以接收用户在“输入框”1201输入的中间位置,如图12中的(c)所示的“客运站”。响应于用户对图12中的(c)所示的“完成”按钮的点击操作,手机可以根据用户的输入,重新规划途经用户输入的中间位置的出行方案。例如,手机可以显示图12中的(d)所示的第二界面1202。该第二界面1202包括“驾车”选项、途经位置I(即起始位置)、客运站(即用户输入的中间位置)、位置II(即从用户画像获取的中间位置)和位置III(即结束位置)的出行路线1203。It should be noted that, in addition to the way of updating the user portrait mentioned in step S201, the mobile phone can also update the user portrait when receiving user operations in this step. For example, the user's adjustment operation in the above-mentioned first interface. Therefore, the mobile phone can update the travel route in the user portrait according to the above adjustment operations. The adjustment operation may also include the adding operation of adding the intermediate position mentioned in FIG. 10 and the adding operation of the intermediate position shown in (a) of FIG. 12 (including multiple intermediate positions after adding), and the like. For example, the mobile phone can receive the user's click operation on the "middle position" addition button 1003 shown in (a) in FIG. 12. In response to the click operation, the mobile phone can display the "input box" 1201 shown in (b) in FIG. 12. The mobile phone can receive the middle position entered by the user in the "input box" 1201, such as the "passenger station" as shown in (c) in FIG. 12. In response to the user's click operation on the "Finish" button shown in (c) in FIG. 12, the mobile phone can re-plan the travel plan passing the middle position input by the user according to the user's input. For example, the mobile phone may display the second interface 1202 shown in (d) in FIG. 12. The second interface 1202 includes the option of "driving", passing position I (that is, the starting position), the passenger terminal (that is, the middle position input by the user), position II (that is, the middle position obtained from the user portrait), and the position III (that is, the end position). Location) travel route 1203.
可选的,手机的用户画像中针对同一个出行时间、起始位置和结束位置,可以保存多个出行方案。这多个出行方案的出行路线的起始位置相同,结束位置相同;并且,这多个出行方案的出行时间也可以相同。但是,该多个出行方案的出行路线的中间位置可以不同,出行方式可以不同。手机执行S202可能获取到多个第一出行方案。但是,这多个出行方案统计的使用次数可能不同,例如预设时间范围内(如一周、10天或一个月等),用户虽选择了多个第一出行方案,但多个第一出行方案的次数不等。手机可以根据多个第一出行方案的使用次数,例如最多次,选择一个第一出行方案,或,根据时间,例如上一次用户选择的(时间最新),选择一个第一出行方案。或者,手机可以同时获取多个第一出行方案并推荐给用户。同时推荐多个第一出行方案时,可以出行方案的使用次数或选择时间等进行排序,也可以提供给用户选择的界面选项等。Optionally, in the user portrait of the mobile phone, multiple travel plans can be saved for the same travel time, start location, and end location. The travel routes of the multiple travel plans have the same starting position and the same end position; and the travel time of the multiple travel plans may also be the same. However, the middle positions of the travel routes of the multiple travel plans may be different, and the travel modes may be different. The mobile phone may obtain multiple first travel plans by executing S202. However, the number of usage statistics of these multiple travel plans may be different. For example, within the preset time range (such as one week, 10 days, or one month, etc.), the user has selected multiple first travel plans, but multiple first travel plans The number of times varies. The mobile phone can select a first travel plan based on the number of uses of multiple first travel plans, such as the most times, or select a first travel plan based on time, such as the last time the user selected (the latest time). Or, the mobile phone can obtain multiple first travel plans at the same time and recommend them to the user. When multiple first travel plans are recommended at the same time, the number of travel plans used or the selection time can be sorted, and interface options for user selection can also be provided.
其中,上述用于指示其他出行方案的界面的详细描述可以参考上述实施例对第一界面的描述,本申请实施例这里不予赘述。For the detailed description of the foregoing interface for indicating other travel plans, reference may be made to the description of the first interface in the foregoing embodiment, which is not repeated here in the embodiment of the present application.
实施例二Example two
本申请另一些实施例提供了一种电子设备,该电子设备可以包括:显示屏、存储器和一个或多个处理器。该显示屏、存储器和处理器耦合。该显示屏可以包括触摸屏。该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令。当处理器执行计算机指令时,电子设备可执行上述方法实施例中手机执行的各个功能或者步骤。当然,该电子设备包括但不限于上述显示屏、存储器和一个或多个处理器。例如,该电子设备的结构可以参考图1B所示的电子设备100的结构。Other embodiments of the present application provide an electronic device, which may include: a display screen, a memory, and one or more processors. The display screen, the memory and the processor are coupled. The display screen may include a touch screen. The memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device can execute various functions or steps executed by the mobile phone in the foregoing method embodiments. Of course, the electronic device includes but is not limited to the above-mentioned display screen, memory, and one or more processors. For example, the structure of the electronic device may refer to the structure of the electronic device 100 shown in FIG. 1B.
实施例三Example three
本申请实施例还提供一种芯片系统,该芯片系统可以应用于前述实施例中的电子设备。如图13所示,该芯片系统包括至少一个处理器1301和至少一个接口电路1302。该处理器1301可以是上述电子设备中的处理器。处理器1301和接口电路1302可通过线路互联。该处理器1301可以通过接口电路1302从上述电子设备的存储器接收并执行计算机指令。当所述计算机指令被处理器1301执行时,可使得电子设备执行上述实施例中的各个步骤。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。The embodiment of the present application also provides a chip system, which can be applied to the electronic device in the foregoing embodiment. As shown in FIG. 13, the chip system includes at least one processor 1301 and at least one interface circuit 1302. The processor 1301 may be the processor in the aforementioned electronic device. The processor 1301 and the interface circuit 1302 may be interconnected by wires. The processor 1301 may receive and execute computer instructions from the memory of the above electronic device through the interface circuit 1302. When the computer instructions are executed by the processor 1301, the electronic device can execute the steps in the foregoing embodiments. Of course, the chip system may also include other discrete devices, which are not specifically limited in the embodiment of the present application.
实施例四Example four
本申请实施例还提供一种计算机可读存储介质,用于存储上述电子设备(如手机)运行的计算机指令。The embodiment of the present application also provides a computer-readable storage medium, which is used to store the computer instructions run by the above-mentioned electronic device (such as a mobile phone).
实施例五Example five
本申请实施例还提供一种计算机程序产品,包括上述电子设备(如手机)运行的 计算机指令。The embodiments of the present application also provide a computer program product, which includes computer instructions for running the above-mentioned electronic device (such as a mobile phone).
通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and conciseness of the description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated by Different functional modules are completed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device and method can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be divided. It can be combined or integrated into another device, or some features can be omitted or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate parts may or may not be physically separate. The parts displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed to multiple different places. . Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application are essentially or the part that contributes to the prior art, or all or part of the technical solutions can be embodied in the form of a software product, and the software product is stored in a storage medium. It includes several instructions to make a device (may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application. The foregoing storage media include: U disk, mobile hard disk, read only memory (read only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above content is only the specific implementation of this application, but the protection scope of this application is not limited to this. Any change or replacement within the technical scope disclosed in this application should be covered within the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (19)

  1. 一种电子设备,其特征在于,所述电子设备包括显示屏、存储器和一个或多个处理器;所述显示屏、所述存储器和所述处理器耦合;所述显示屏包括触摸屏;所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述计算机指令被所述处理器执行时,使得所述电子设备执行以下步骤:An electronic device, wherein the electronic device includes a display screen, a memory, and one or more processors; the display screen, the memory, and the processor are coupled; the display screen includes a touch screen; the The memory is used to store computer program codes, the computer program codes including computer instructions, when the computer instructions are executed by the processor, cause the electronic device to perform the following steps:
    在满足预设条件时,根据当前时间和所述电子设备的当前位置从所述电子设备中存储的用户画像中获取第一出行方案;所述第一出行方案包括第一出行路线,所述第一出行路线包括起始位置、结束位置和位于所述起始位置和所述结束位置之间的中间位置;When the preset conditions are met, the first travel plan is obtained from the user portrait stored in the electronic device according to the current time and the current location of the electronic device; the first travel plan includes a first travel route, and the first travel plan includes a first travel route. A travel route includes a starting position, an ending position, and an intermediate position between the starting position and the ending position;
    在所述显示屏上显示与所述第一出行方案相关的提示信息。The prompt information related to the first travel plan is displayed on the display screen.
  2. 根据权利要求1所述的电子设备,其特征在于,所述中间位置为:The electronic device according to claim 1, wherein the intermediate position is:
    所述电子设备接收的用户设置的位置;或者,The location set by the user received by the electronic device; or,
    所述电子设备自动记录的位置。The position automatically recorded by the electronic device.
  3. 根据权利要求2所述的电子设备,其特征在于,所述电子设备自动记录的位置,包括:The electronic device according to claim 2, wherein the position automatically recorded by the electronic device comprises:
    停留时间和/或经过次数大于预设阈值的位置;或者,The location where the stay time and/or the number of passes are greater than the preset threshold; or,
    停留时间最长和/或经过次数最多的位置。The location with the longest stay and/or the most passes.
  4. 根据权利要求1-3任一项所述的电子设备,其特征在于,所述第一出行方案还包括第一出行方式,所述出行方式包括:驾车、自行车、公交车、出租车、地铁、火车、轮船、或者飞机。The electronic device according to any one of claims 1-3, wherein the first travel plan further comprises a first travel mode, and the travel mode includes: driving, bicycle, bus, taxi, subway, Train, ship, or plane.
  5. 根据权利要求1-4中任一项所述的电子设备,其特征在于,所述满足预设条件,包括:The electronic device according to any one of claims 1-4, wherein the meeting a preset condition comprises:
    第一时间到达,其中,所述第一时间是根据所述第一出行方案的出行时间预设的,或所述第一时间是所述电子设备周期性获取的;或者,Arrival at the first time, wherein the first time is preset according to the travel time of the first travel plan, or the first time is periodically acquired by the electronic device; or,
    第一时间到达,且所述当前位置与第一位置匹配,其中,所述第一位置是根据所述第一出行方案的起始位置设置的,所述第一时间是根据所述第一出行方案的出行时间预设的,或所述第一时间是所述电子设备周期性获取的。Arrive at the first time, and the current location matches the first location, where the first location is set according to the starting position of the first travel plan, and the first time is based on the first travel The travel time of the plan is preset, or the first time is periodically acquired by the electronic device.
  6. 根据权利要求1-5中任一项所述的电子设备,其特征在于,所述根据当前时间和所述电子设备的当前位置从所述电子设备中存储的用户画像中获取所述第一出行方案包括:The electronic device according to any one of claims 1-5, wherein the first trip is obtained from a user portrait stored in the electronic device according to the current time and the current location of the electronic device The plan includes:
    从所述用户画像中查找与所述当前时间和所述当前位置匹配的所述第一出行方案,其中,Find the first travel plan that matches the current time and the current location from the user portrait, where:
    所述第一出行方案的第一出行时间与所述当前时间相同,或者所述第一出行时间的范围包括所述当前时间,以及The first travel time of the first travel plan is the same as the current time, or the range of the first travel time includes the current time, and
    所述第一出行方案的所述起始位置与所述当前位置相同,或者所述第一出行方案的所述起始位置的范围包含所述当前位置。The starting position of the first travel plan is the same as the current position, or the range of the starting position of the first travel plan includes the current position.
  7. 根据权利要求1-6中任一项所述的电子设备,其特征在于,所述在所述显示屏上显示所述提示信息包括:The electronic device according to any one of claims 1-6, wherein the displaying the prompt information on the display screen comprises:
    通过通知消息、通知栏、负一屏或地图应用中显示所述提示信息。The prompt information is displayed through a notification message, a notification bar, a negative screen, or a map application.
  8. 根据权利要求7所述的电子设备,其特征在于,当所述计算机指令被所述处理器执行时,所述电子设备在显示所述提示信息之后,还执行以下步骤:8. The electronic device according to claim 7, wherein when the computer instruction is executed by the processor, the electronic device further executes the following steps after displaying the prompt information:
    接收对所述提示信息的用户操作;Receiving user operations on the prompt information;
    响应于所述用户操作,显示第一界面;其中,所述第一界面指示包括所述起始位置、所述结束位置和所述中间位置的所述第一出行路线。In response to the user operation, a first interface is displayed; wherein the first interface indicates the first travel route including the start position, the end position, and the intermediate position.
  9. 根据权利要求4-8中任一项所述的电子设备,其特征在于,当所述计算机指令被所述处理器执行时,使得所述电子设备还执行以下步骤:8. The electronic device according to any one of claims 4-8, wherein when the computer instruction is executed by the processor, the electronic device further executes the following steps:
    统计所述电子设备的运动轨迹和所述电子设备的运动模式;根据所述运动轨迹中的位置信息和所述运动模式生成所述用户画像;保存所述用户画像;或者,Count the movement trajectory of the electronic device and the movement pattern of the electronic device; generate the user portrait according to the position information in the movement trajectory and the movement pattern; save the user portrait; or,
    统计所述电子设备在预设应用中接收的用户操作;根据所述用户操作生成所述用户画像;保存所述用户画像;或者,Count the user operations received by the electronic device in a preset application; generate the user portrait according to the user operation; save the user portrait; or,
    统计所述电子设备的运动轨迹、运动模式和所述电子设备在预设应用中接收的用户操作;根据所述运动轨迹中的位置信息、所述运动模式和所述用户操作,生成所述用户画像;保存所述用户画像。Count the movement trajectory, movement mode, and user operation of the electronic device in the preset application of the electronic device; generate the user according to the position information in the movement trajectory, the movement mode, and the user operation Portrait; save the user portrait.
  10. 根据权利要求9所述的电子设备,其特征在于,所述预设应用包括以下应用中的一个或者多个:为用户提供公共交通工具的扫码服务的应用,为用户提供叫车服务的应用,为用户提供定位、路径搜索和导航服务的应用;所述公共交通工具包括以下交通工具中的一个或者多个:公交车、地铁和共享型交通工具。The electronic device according to claim 9, wherein the preset application includes one or more of the following applications: an application that provides users with a scan code service of public transportation, and an application that provides users with a ride-hailing service , To provide users with applications for positioning, route search and navigation services; the public transportation means include one or more of the following transportation means: buses, subways and shared transportation means.
  11. 根据权利要求9或10所述的电子设备,其特征在于,所述运动模式包括以下模式中的一个或者多个:静止模式、步行模式、跑步模式、骑车模式、公交车模式、地铁模式和驾车模式。The electronic device according to claim 9 or 10, wherein the exercise mode includes one or more of the following modes: a stationary mode, a walking mode, a running mode, a cycling mode, a bus mode, a subway mode, and Driving mode.
  12. 一种提示出行方案的方法,其特征在于,应用于电子设备,所述方法包括:A method for prompting a travel plan, characterized in that it is applied to an electronic device, and the method includes:
    所述电子设备在满足预设条件时,根据当前时间和所述电子设备的当前位置从所述电子设备中存储的用户画像中获取第一出行方案;所述第一出行方案包括第一出行路线,所述第一出行路线包括起始位置、结束位置和位于所述起始位置和所述结束位置之间的中间位置;When the electronic device satisfies a preset condition, obtain a first travel plan from the user portrait stored in the electronic device according to the current time and the current location of the electronic device; the first travel plan includes a first travel route , The first travel route includes a starting position, an ending position, and an intermediate position between the starting position and the ending position;
    所述电子设备显示与所述第一出行方案相关的提示信息。The electronic device displays prompt information related to the first travel plan.
  13. 根据权利要求12所述的方法,其特征在于,所述中间位置为:The method according to claim 12, wherein the intermediate position is:
    所述电子设备接收的用户设置的位置;或者,The location set by the user received by the electronic device; or,
    所述电子设备自动记录的位置。The position automatically recorded by the electronic device.
  14. 根据权利要求12所述的方法,其特征在于,所述电子设备自动记录的位置,包括:The method according to claim 12, wherein the position automatically recorded by the electronic device comprises:
    停留时间和/或经过次数大于预设阈值的位置,或者,Locations where the residence time and/or the number of passes are greater than a preset threshold, or,
    停留时间最长和/或经过次数最多的位置。The location with the longest stay and/or the most passes.
  15. 根据权利要求12-14任一项所述的方法,其特征在于,所述第一出行方案还包括第一出行方式,所述出行方式包括:驾车、自行车、公交车、出租车、地铁、火车、轮船、或者飞机。The method according to any one of claims 12-14, wherein the first travel plan further includes a first travel mode, and the travel mode includes: driving, bicycle, bus, taxi, subway, train , Ship, or airplane.
  16. 根据权利要求12-15任一项所述的方法,其特征在于,所述根据当前时间和所述电子设备的当前位置从所述电子设备中存储的用户画像中获取第一出行方案,包 括:The method according to any one of claims 12-15, wherein the obtaining a first travel plan from a user portrait stored in the electronic device according to the current time and the current location of the electronic device comprises:
    所述电子设备从所述用户画像中查找与所述当前时间和所述当前位置匹配的所述第一出行方案,其中,The electronic device searches the user portrait for the first travel plan that matches the current time and the current location, wherein:
    所述第一出行方案的第一出行时间与所述当前时间相同,或者所述第一出行时间的范围包括所述当前时间,以及The first travel time of the first travel plan is the same as the current time, or the range of the first travel time includes the current time, and
    所述第一出行方案的所述起始位置与所述当前位置相同,或者所述第一出行方案的所述起始位置的范围包含所述当前位置。The starting position of the first travel plan is the same as the current position, or the range of the starting position of the first travel plan includes the current position.
  17. 一种芯片系统,其特征在于,所述芯片系统应用于如权利要求1-11中任一项所述的电子设备;所述芯片系统包括一个或多个接口电路和一个或多个所述处理器;所述接口电路和所述处理器通过线路互联;所述处理器通过所述接口电路从所述电子设备的所述存储器接收并执行所述计算机指令。A chip system, wherein the chip system is applied to the electronic device according to any one of claims 1-11; the chip system includes one or more interface circuits and one or more processing The interface circuit and the processor are interconnected by wires; the processor receives and executes the computer instructions from the memory of the electronic device through the interface circuit.
  18. 一种计算机可读存储介质,其特征在于,用于存储如权利要求1-11任一项所述的电子设备运行的所述计算机指令。A computer-readable storage medium, characterized in that it is used to store the computer instructions for the operation of the electronic device according to any one of claims 1-11.
  19. 一种计算机程序产品,其特征在于,包括如权利要求1-11任一项所述的电子设备运行的所述计算机指令。A computer program product, characterized by comprising the computer instructions run by the electronic device according to any one of claims 1-11.
PCT/CN2020/108165 2019-10-31 2020-08-10 Method and electronic device for prompting travel plan WO2021082608A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911053172.4A CN112815955A (en) 2019-10-31 2019-10-31 Method for prompting trip scheme and electronic equipment
CN201911053172.4 2019-10-31

Publications (1)

Publication Number Publication Date
WO2021082608A1 true WO2021082608A1 (en) 2021-05-06

Family

ID=75715600

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/108165 WO2021082608A1 (en) 2019-10-31 2020-08-10 Method and electronic device for prompting travel plan

Country Status (2)

Country Link
CN (1) CN112815955A (en)
WO (1) WO2021082608A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116450259A (en) * 2022-01-10 2023-07-18 荣耀终端有限公司 Service abnormality reminding method, electronic equipment and storage medium
CN117667273A (en) * 2022-08-29 2024-03-08 Oppo广东移动通信有限公司 Method, device, electronic equipment and storage medium for displaying ubiquitous service portal
CN117666993A (en) * 2023-10-20 2024-03-08 南京荣耀软件技术有限公司 Method, equipment, server and system for displaying map based on quick application card

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103278168A (en) * 2013-04-28 2013-09-04 北京航空航天大学 Path planning method for avoiding of traffic hotspots
US20150051829A1 (en) * 2013-08-13 2015-02-19 Aol Inc. Systems and methods for providing mapping services including route break point recommendations
CN106767872A (en) * 2016-12-29 2017-05-31 Tcl集团股份有限公司 A kind of intelligent travel reminding method and its client
CN107525513A (en) * 2017-08-15 2017-12-29 国网天津节能服务有限公司 The optimal transit point system of selection of finite constraint condition based on existing navigation system
CN108286980A (en) * 2017-12-29 2018-07-17 广州通易科技有限公司 A method of prediction destination and recommendation drive route
US10024675B2 (en) * 2016-05-10 2018-07-17 Microsoft Technology Licensing, Llc Enhanced user efficiency in route planning using route preferences
CN109425355A (en) * 2017-09-05 2019-03-05 上海博泰悦臻网络技术服务有限公司 Recommended method of navigating and system, car-mounted terminal and vehicle
CN109459050A (en) * 2018-12-17 2019-03-12 北京百度网讯科技有限公司 The recommended method and its device of navigation routine
CN109830118A (en) * 2019-03-28 2019-05-31 北京小米移动软件有限公司 Trip strategy display methods, device and storage medium based on public transport
CN110118567A (en) * 2018-02-06 2019-08-13 北京嘀嘀无限科技发展有限公司 Trip mode recommended method and device

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011252844A (en) * 2010-06-03 2011-12-15 Sony Corp Data processing device, data processing method and program
CN102840867B (en) * 2011-06-21 2015-06-17 歌乐株式会社 Route searching system and method based on commonly used route
US8855901B2 (en) * 2012-06-25 2014-10-07 Google Inc. Providing route recommendations
EP2930469A1 (en) * 2014-04-09 2015-10-14 Volkswagen Aktiengesellschaft Method for providing predictive destinations and/or predictive routing for reaching a destination and navigation system
CN104270714B (en) * 2014-09-11 2018-04-10 华为技术有限公司 The method and apparatus for determining user movement track
CN106878934B (en) * 2015-12-10 2020-07-31 阿里巴巴集团控股有限公司 Electronic map display method and device
CN105628048B (en) * 2016-03-02 2019-11-12 腾讯科技(深圳)有限公司 A kind of map information processing method and terminal
CN108871355A (en) * 2017-05-12 2018-11-23 北京搜狗科技发展有限公司 A kind of air navigation aid and device, a kind of device for navigation
CN107389078B (en) * 2017-06-23 2019-07-02 咪咕互动娱乐有限公司 A kind of route recommendation method, apparatus and computer readable storage medium
CN108955693B (en) * 2018-08-02 2020-06-16 吉林大学 Road network matching method and system
CN109005515B (en) * 2018-09-05 2020-07-24 武汉大学 User behavior mode portrait drawing method based on movement track information
CN109990799B (en) * 2019-03-28 2021-06-04 北京小米移动软件有限公司 Travel strategy display method and device and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103278168A (en) * 2013-04-28 2013-09-04 北京航空航天大学 Path planning method for avoiding of traffic hotspots
US20150051829A1 (en) * 2013-08-13 2015-02-19 Aol Inc. Systems and methods for providing mapping services including route break point recommendations
US10024675B2 (en) * 2016-05-10 2018-07-17 Microsoft Technology Licensing, Llc Enhanced user efficiency in route planning using route preferences
CN106767872A (en) * 2016-12-29 2017-05-31 Tcl集团股份有限公司 A kind of intelligent travel reminding method and its client
CN107525513A (en) * 2017-08-15 2017-12-29 国网天津节能服务有限公司 The optimal transit point system of selection of finite constraint condition based on existing navigation system
CN109425355A (en) * 2017-09-05 2019-03-05 上海博泰悦臻网络技术服务有限公司 Recommended method of navigating and system, car-mounted terminal and vehicle
CN108286980A (en) * 2017-12-29 2018-07-17 广州通易科技有限公司 A method of prediction destination and recommendation drive route
CN110118567A (en) * 2018-02-06 2019-08-13 北京嘀嘀无限科技发展有限公司 Trip mode recommended method and device
CN109459050A (en) * 2018-12-17 2019-03-12 北京百度网讯科技有限公司 The recommended method and its device of navigation routine
CN109830118A (en) * 2019-03-28 2019-05-31 北京小米移动软件有限公司 Trip strategy display methods, device and storage medium based on public transport

Also Published As

Publication number Publication date
CN112815955A (en) 2021-05-18

Similar Documents

Publication Publication Date Title
WO2021082608A1 (en) Method and electronic device for prompting travel plan
WO2020168929A1 (en) Method for identifying specific position on specific route and electronic device
WO2020177619A1 (en) Method, device and apparatus for providing reminder to charge terminal, and storage medium
CN111182145A (en) Display method and related product
WO2021115007A1 (en) Network switching method and electronic device
CN114513847B (en) Positioning method, device, system, electronic equipment and storage medium
CN110401767B (en) Information processing method and apparatus
KR20160020825A (en) Electronic apparatus and positiong method thereof
CN105359560A (en) Service provisioning through a smart personal gateway device
CN111030719B (en) Vehicle-mounted device and data processing method
CN113722028B (en) Dynamic card display method and device
CN112923943A (en) Auxiliary navigation method and electronic equipment
CN111835904A (en) Method for starting application based on context awareness and user portrait and electronic equipment
WO2021218837A1 (en) Reminding method and related apparatus
WO2022095712A1 (en) Data sharing method, apparatus and system, and electronic device
WO2022022335A1 (en) Method and apparatus for displaying weather information, and electronic device
CN116546132B (en) Network identification method, device, mobile terminal and computer readable storage medium
WO2022247499A1 (en) Parking space guiding method, electronic device and readable storage medium
US20230243982A1 (en) Low-Power-Consumption Positioning Method and Related Apparatus
WO2021164387A1 (en) Early warning method and apparatus for target object, and electronic device
WO2023125431A1 (en) Test method and apparatus
WO2023104075A1 (en) Navigation information sharing method, electronic device, and system
WO2024093857A1 (en) Positioning method and related apparatus
WO2024021691A9 (en) Display method and electronic device
WO2023237061A1 (en) Network searching method, electronic device and medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20880790

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20880790

Country of ref document: EP

Kind code of ref document: A1