CN109062968A - Weather information acquisition methods and terminal - Google Patents

Weather information acquisition methods and terminal Download PDF

Info

Publication number
CN109062968A
CN109062968A CN201810684924.6A CN201810684924A CN109062968A CN 109062968 A CN109062968 A CN 109062968A CN 201810684924 A CN201810684924 A CN 201810684924A CN 109062968 A CN109062968 A CN 109062968A
Authority
CN
China
Prior art keywords
user
information
weather
association
currently
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810684924.6A
Other languages
Chinese (zh)
Inventor
杨惠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201810684924.6A priority Critical patent/CN109062968A/en
Publication of CN109062968A publication Critical patent/CN109062968A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses Weather information acquisition methods, terminal and computer readable storage mediums, by the user information for receiving the location information current including association user that server is sent, determine that association user is currently located area further according to the location information in user information, and then the association user is currently located area and is added in weather application, to obtain the Weather information that the association user is currently located area automatically after weather application unlatching.Or parsed by the information text in text application in reading terminals, trip destination is then extracted from the information text and is added in weather application, and after weather application unlatching, the automatic Weather information for obtaining trip purpose ground.In this way, by realizing automated analysis to the parsing of text information automatically, to realize do not need user in user's trip and carry out the addition of position manually that the Weather information on trip purpose ground can be obtained automatically, very convenient, the user experience is improved.

Description

Weather information acquisition methods and terminal
Technical field
The present invention relates to field of terminal technology, more specifically to a kind of Weather information acquisition methods and terminal.
Background technique
With the popularization of intelligent terminals, the function of intelligent terminal is also stronger and stronger.People check that weather also no longer needs It waits to see the weather predicting program on TV, but various regions can be found by the weather application in terminal whenever and wherever possible What kind of weather conditions are.
Although currently, being often designed with weather application in terminal, and the weather of various regions can also be consulted by weather application Situation, but weather application often can only all obtain the Weather information that ground is currently located using user of weather application automatically.If User wants to obtain the Weather information in other areas or wants to obtain the Weather information in other people locations, then needs first in weather Other areas or other people locations are added in weather application manually in, then weather application can just get other ground The Weather information in area or other people locations, process are very complicated and not intelligent.
Summary of the invention
The technical problem to be solved in the present invention is that: weather application can only obtain the use user of weather application automatically at present It is currently located the Weather information on ground, the Weather informations in other areas cannot be got automatically or wants to obtain other people locations The problem of Weather information, poor user experience.For the technical problem, the present invention provides a kind of Weather information acquisition methods and end End.
In order to solve the above technical problems, the present invention provides a kind of Weather information acquisition methods, the Weather information acquisition side Method includes:
Receive the user information for the association user that server is sent;The user information includes that the association user is current Location information;
The association user area is currently located according to the positional information to be added in weather application;
After weather application unlatching, the Weather information that the association user is currently located area is obtained automatically.
Optionally, the weather application includes groups of users function;The association user are as follows: with working as the weather application Preceding user is in the other users in addition to the active user in same groups of users.
Optionally, permission of the active user of the weather application in the groups of users is higher than default access threshold value.
Optionally, the user information further includes the identification information of the association user;
It is described when the association user being currently located area being added in weather application, further includes: to use the association The identification information at family is currently located area with the association user and is associated in the weather application.
Optionally, before the user information for the association user that the reception server is sent, further includes:
User information acquisition request is sent to the server;The user information acquisition request includes for request The user information of association user current location information;
It include the identification information of the association user in the user information acquisition request.
Optionally, the association user is currently located described after area is added in weather application, further includes:
When receiving the user information of the association user of server transmission again for a certain association user, according to institute It states the location information in user information and redefines the association user and be currently located area;
The association user redefined is currently located area and was added to the association user in weather application with last time The area that is currently located be compared;
In the association user when being currently located area and changing, by the current institute of the association user redefined It is added in weather application in area, and that deletes the association user that last time is added in the weather application is currently located ground Area.
Further, the present invention also provides a kind of Weather information acquisition methods, the Weather information acquisition methods include:
Information text in reading terminals in text application, and the information text is parsed;
When including trip information in determining the information text, trip destination is extracted from the information text;
The trip purpose is added in weather application;
After weather application unlatching, the Weather information on the trip purpose ground is obtained automatically.
Optionally, when in determining the information text comprising trip information, further includes:
With the trip purpose the corresponding travel time is extracted from the information text;
The travel time is compared with current time, and determines that the travel time is later than current time.
Optionally, the described trip purpose is added in weather application includes:
When time difference between current time and the travel time is less than or equal to preset time difference, by the trip mesh Ground be added in weather application.
Further, the present invention also provides a kind of terminal, the terminal includes that processor, memory and communication are total Line;
The communication bus is for realizing the connection communication between the processor and memory;
The processor is for executing one or more first program stored in the memory, to realize above-mentioned the The step of a kind of Weather information acquisition methods;
And/or the processor is used to execute one or more second program stored in the memory, to realize The step of above-mentioned second of Weather information acquisition methods.
Further, the present invention also provides a kind of computer readable storage medium, the computer readable storage mediums It is stored with one or more third program, one or more of third programs can be held by one or more processor Row, the step of to realize the first above-mentioned Weather information acquisition methods;
And/or the computer-readable recording medium storage has one or more the 4th program, it is one or more A 4th program can be executed by one or more processor, to realize the step of above-mentioned second of Weather information acquisition methods Suddenly.
Beneficial effect
Weather information acquisition methods, terminal and computer readable storage medium provided by the invention, are answered for current weather With the Weather information for being currently located ground using user that can only obtain weather application automatically, other areas cannot be got automatically The problem of Weather information or Weather information for wanting to obtain other people locations, poor user experience, a kind of day provided by the invention In gas information acquisition method, it can be believed by receiving the user for the location information current including association user that server is sent Breath, determines that association user is currently located area further according to the location information in user information, and then the association user is current Location is added in weather application, to obtain the association user automatically after weather application unlatching and be currently located area Weather information.In this way, getting the position that association user is currently located by server, then the day of the position is obtained automatically The acquisition of the Weather information to association user location automatically can be realized in gas information, does not need user and carries out position manually Addition, very convenient, the user experience is improved.
In addition, text application in reading terminals can be passed through in another kind Weather information acquisition methods provided by the invention In information text, and information text is parsed, when including then trip information in determining information text, from the information Trip destination is extracted in text, finally by trip purpose is added in weather application, and after weather application unlatching, automatically Obtain the Weather information on trip purpose ground.In this way, by realizing automated analysis to the parsing of text information automatically, thus real When present user's trip, do not need user and carry out the addition of position manually that the Weather information on trip purpose ground can be obtained automatically, Very convenient, the user experience is improved.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
The hardware structural diagram of Fig. 1 optional terminal of each embodiment to realize the present invention;
Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention;
The structural schematic diagram of Fig. 3 optional server of each embodiment to realize the present invention;
Fig. 4 is a kind of basic flow chart for Weather information acquisition methods that first embodiment of the invention provides;
Fig. 5 is a kind of display schematic diagram for weather application that first embodiment of the invention provides;
Fig. 6 is the display schematic diagram for another weather application that first embodiment of the invention provides;
Fig. 7 is another Weather information acquisition methods basic flow chart that first embodiment of the invention provides;
Fig. 8 is a kind of chat interface figure that first embodiment of the invention provides;
Fig. 9 is that the first more specific Weather information that second embodiment of the invention provides obtains flow for displaying schematic diagram;
Figure 10 is that second of more specific Weather information that second embodiment of the invention provides obtains flow for displaying schematic diagram;
Figure 11 is a kind of terminal structure schematic diagram that third embodiment of the invention provides.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as with bending Mobile phone, tablet computer, laptop, palm PC, personal digital assistant (the Personal Digital of function Assistant, PDA), portable media player (Portable Media Player, PMP), navigation device, wearable set The fixed terminals such as the mobile terminals such as standby, Intelligent bracelet, pedometer, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
As shown in figure 3, the structural schematic diagram of each embodiment one optional server to realize the present invention, the server It includes at least: input and output (IO) bus 31, processor 32, memory 33, memory 34 and communication device 35.Wherein,
Input and output (IO) bus 31 respectively with itself belonging to server other components (processor 32, memory 33, Memory 34 and communication device 35) connection, and transmission lines are provided for other components.
Processor 32 usually controls the overall operation of the server belonging to itself.For example, processor 32 execute calculate and really The operation such as recognize.Wherein, processor 32 can be central processing unit (CPU).
Communication device 35, generally includes one or more components, allows server and wireless communication system belonging to itself Radio communication between system or network.
The software code that 33 storage processor of memory is readable, processor is executable, it includes be used for control processor 32 Execute the instruction (i.e. software execution function) of functions described herein.
Based on above-mentioned mobile terminal hardware configuration, communications network system and server architecture, propose that the method for the present invention is each A embodiment.
First embodiment
The Weather information that ground is currently located using user of weather application can only be obtained automatically to solve current weather application, The Weather information in other areas cannot be got automatically or wants to obtain the Weather information in other people locations, poor user experience Problem present embodiments provides corresponding Weather information acquisition methods.
Specifically, shown in Figure 4, Fig. 4 is a kind of Weather information acquisition methods basic flow chart provided in this embodiment, Include:
S401: the user information for the association user that server is sent is received;
It in the present embodiment, should include the current location information of association user in user information.The location information can be with GPS (Global Positioning System, global positioning system) by the currently used terminal of association user etc. positions function It can realize.
In the present embodiment, the user information of association user can be by association user active reporting to server.Tool Body, the server that weather application can be set reports its user information according to prefixed time interval requirement association user timing, The information of reporting of user is transmitted to active user again;Or the terminal of association user can be set according to prefixed time interval master Trend server reports its user information, and server is after receiving the user information that association user reports again by reporting of user Information is transmitted to active user.
It should be understood that server forwarding when, can first detect reporting of user user information whether on last time Whether the user information of report is consistent, does not forward if consistent, inconsistent to forward.It should be understood that in user information Location information for, can be whether aforementioned consistent according to whether being areal corresponding to location information and determine, if Corresponding areal then thinks unanimously, on the contrary then think inconsistent.
Specifically, weather application, which can also be arranged, has request sending function, so that being currently used in can send out to server Send user information acquisition request, and then the user information acquisition request that server is sent in the active user for receiving weather application And then corresponding association user is required to report its user information, and be transmitted to active user.It should be noted that user believes Breath acquisition request is the user information for request comprising association user current location information, therefore user information acquisition is asked It may include the identification information of the association user of required request in asking, so that server knows specifically to need to obtain which or which The user information of several association users.
Specifically, the terminal of association user can also be arranged when detecting that itself location changes, just to clothes Business device active reporting includes the user information of location information.Such as the terminal of association user finds oneself when passing through GPS positioning From Shenzhen to Chongqing, then the terminal then reports the user information comprising location information from trend server.
It should be noted that area described in the present embodiment can be the Weather information casting divided in weather application Area.For example, weather application be with the weather of administrative division casting region (such as the Futian District and Nanshan District in Shenzhen, Weather application can show the weather of Futian District and the weather of Nanshan District, then Futian District and Nanshan District are exactly two independences Weather broadcast region), then area described in the present embodiment can also be each administrative region.
S402: the association user is currently located by area according to the location information in user information and is added to weather application In;
In the present embodiment, the location information that server is sent to the association user of active user includes two kinds of situations:
First, the location information of association user directly has been forwarded directly to work as by server without the confirmation of corresponding region Preceding user.
So, the position for the association user that active user receives at this time is often that a very specific position (such as sets and is The location information obtained by GPS, then the position got has often been accurate on some street), and weather is answered Any casting region be all often it is very big, usually all corresponded to the ranks such as county, city.Therefore, active user at this time Terminal needs to determine that the association user is currently located area according to the location information, and then could be currently located the association user Area is added in weather application.
Second, server is after receiving the user information that association user reports, by the very specific position in user information After confidence breath is converted into the location information for meeting the larger area of weather application casting rule, then by the location information after conversion Original location information in replacement user information is sent to active user.
At this point, since the corresponding position of location information is the big area for meeting weather application adding conditional, The position that location information characterizes can be directly directly appended in weather application by the terminal of active user, without carrying out again Primary confirmation process.
S403: after weather application unlatching, the Weather information that the association user is currently located area is obtained automatically.
In the present embodiment, after being added to association user and being currently located area, if user opens weather application, Terminal can obtain the Weather information of this area from server automatically at this time.
It should be understood that the area that is currently located of active user is often all added in weather application automatically, therefore Association user is added to be currently located after area, can be existed simultaneously in weather application there are two or more than two areas.This When, terminal can be set when the area currently shown is switched to association user and is currently located area by user, terminal is automatic again The Weather information of this area is obtained from server, if this opens weather application, user does not cut the area currently shown It changes to association user and is currently located area, then terminal does not need the Weather information for obtaining this area from server, has saved end The resource at end and server.
But it is to be understood that in the present embodiment, can be set being added to association user is currently located area automatically Later, when user opens weather application for the first time, it can be set and the area currently shown is switched to association user automatically at this time It is currently located area, to show that association user is currently located the weather in area, such as shown in Fig. 5, if association user is currently located Area is Beijing, then shows the current weather in Beijing automatically.Alternatively, prompting pop-up can be set, to inform user to add automatically Which area added, such as shown in Fig. 6, if the area currently shown is Chongqing Yubei District, association user is currently located area and is Beijing, then in the display interface of Yubei District current weather pop-up notification bullet frame with inform user be added to automatically Beijing this Area.
In the present embodiment, groups of users function can be set in weather application, at this point, so-called association user is as and current User is in the other users of same groups of users.It should be noted that holding of each meaning of the active user in the present embodiment The active user of the terminal of row Weather information acquisition methods provided in this embodiment.
In the present embodiment, each user in groups of users all can serve as active user, and then use this reality It applies Weather information acquisition methods provided by example and to get the weather letter that remaining user in groups of users is currently located ground automatically Breath.
Only have certain customers to can be used as active user to obtain but it is to be understood that also can be set in groups of users The Weather information on ground is currently located to remaining user.For example, different permissions different user can be arranged, only exist in user It includes obtaining remaining user in group that permission in groups of users, which is higher than permission possessed by default access threshold value or user, Location information in the case where, which can just have the right to get the location information of remaining user, and then obtain remaining user It is currently located the Weather information on ground.For example, the location information of member in the available group of only group master can be set.
When association user is the user in groups of users, before the process for executing Fig. 4, then user group must be first carried out The establishment process of group.In the present embodiment, user group can be realized by modes such as good friend's account, telephone numbers between user The foundation of group.
It in the present embodiment, can also include the identification information of association user in user information.And then by association user When being currently located area and being added in weather application, the identification information of association user can also be just currently located with association user Area is associated in weather application, so that can be associated with display when being shown later, allows user very specific Know which people at present in which area, present weather what kind of.Such as shown in Fig. 5 and Fig. 6, i.e., by association user " Xiao Ming " and location " Beijing " is associated with.
But it is to be understood that the identification information of association user can also get along well, association user is currently located area in weather Display is associated in.
It should be understood that the identification information of association user refers to the spy that can identify association user in the present embodiment Reference breath, such as IMEI (the International Mobile of user account, user's phone number, user institute using terminal Equipment Identity, international mobile equipment identification number) number etc., when being provided with groups of users, the mark of association user Information can also be user name etc. of the association user in groups of users.
In the present embodiment, after a certain association user to be currently located to area and is added in weather application, if being directed to It, can be according to the position in user information when the association user receives the user information of the association user of server transmission again Confidence breath redefines the association user and is currently located area, so by the association user redefined be currently located area with The area that is currently located that last time is added to the association user in weather application is compared, in being currently located for the association user When area changes, the area that is currently located of the association user redefined is added in weather application.At this point, terminal The association user that last time is added in weather application can also be deleted is currently located area.
For example, setting the location of the user A currently added in weather application as Beijing, but have received use again now The user information of family A, and user A is obtained currently in Wuhan, then weather application then needs to add in Wuhan according to the user information It is added in weather application.It, can also be by the area added originally in weather application " Beijing " in more specific example a kind of at this time To deleting.
It should be appreciated that a kind of this Weather information acquisition methods can effectively get the day in association user location automatically Gas information allows active user to recognize the locating weather environment of association user at any time.
It should be understood that each step in above-mentioned Weather information acquisition methods can be by terminal 100 as shown in Figure 1 Independently to realize.Specifically, one or more programs of above-mentioned each step can be realized by storing in memory 109, The program is executed by processor 110, to realize each step of above-mentioned Weather information acquisition methods.
The terminal of active user and the end of association user are to be further understood that in above-mentioned Weather information acquisition methods simultaneously End can all be connect with server communication.The structure of server may refer to shown in Fig. 3 in the present embodiment, and each equipment can To realize communication connection by communications network system framework shown in Fig. 2.
In addition, shown in Figure 7, Fig. 7 is another Weather information acquisition methods basic flow chart provided in this embodiment, Include:
S701: the information text in reading terminals in text application, and information text is parsed;
In the present embodiment, text application includes that short message, wechat, mailbox, QQ, calendar, memorandum, travelling application etc. can produce Raw or input information text application.It should be noted that information text refers to carrying the file of the textual form of information, Such as short message text, QQ chat text etc..
In the present embodiment, weather application can play a thread on backstage, for parsing to text.Parsing includes Keyword identification, semantics recognition, the identification of context relation degree etc..
S702: when in determining information text comprising trip information, trip destination is extracted from the information text;
In the present embodiment, terminal can confirm a text by the semanteme of information text and context relation etc. It whether include trip information.For example, the case where going on a journey for user's ticket booking, ticketing information often all can be anti-by channels such as short messages Feed user, if being to be fed back by short message, then the semanteme that terminal can parse this ticket booking short message can determine that this is short Letter includes trip information, can therefrom extract trip destination.
Above be for a single text you can get it includes trip informations the case where.For needing to combine context The case where, chat interface shown in Figure 8, terminal, can by semantics recognition and context relation the degree identification of each text To determine that this part text is that user is chatting trip dependencies, then can be with extracting trip purpose from these texts " Hangzhou ".
S703: by trip purpose it is added in weather application;
In the present embodiment, it should also be as to trip purpose meeting weather casting rule in weather application, such as destination is The West Lake, then weather application can obtain flame-out location Hangzhou automatically, and Hangzhou is added in weather application.
S704: after weather application unlatching, the automatic Weather information for obtaining trip purpose ground.
In the present embodiment, after being added to association user and being currently located area, if user opens weather application, Terminal can obtain the Weather information of this area from server automatically at this time.
In the present embodiment, when in information text has been determined comprising trip information, in addition to trip destination can be extracted Except, if can also be mentioned from information text if in information text also including with trip purpose the corresponding travel time Take out with trip purpose the corresponding travel time.
For example, it is this for ticket booking short message, time and destination would generally be contained simultaneously in a ticket booking short message, therefore Can simultaneously from ticket booking short message with extracting trip purpose and the corresponding travel time.And for chat circle shown in Fig. 8 Face, terminal can then be identified by the semantics recognition and context relation degree of each text, determine that this part text is that user exists It merely goes on a journey dependencies, and then can for " Hangzhou " and travel time be this month with extracting trip purpose from these texts No. 26.
It should be understood that the travel time can be compared with current time in the present embodiment, if when trip Between earlier than current time, that is, show that the trip information is invalid, it is no longer necessary to which corresponding trip purpose is added to weather application In.If the travel time is later than current time, that is, show that the trip information is effective, corresponding trip purpose can be added to In weather application.
It should be understood that user is initially opened in the present embodiment after by trip purpose being added to weather application Terminal, which can directly display the weather on trip purpose ground or show in current display interface, when weather application is added to trip The notice bullet frame of destination.
It is to be further understood that with having extracted trip purpose and after the corresponding travel time, it can be according to trip The time by trip purpose being added in weather application is arranged in time.Specifically, can be in current time and travel time Between time difference when being less than or equal to preset time difference, then by trip purpose be added in weather application.Such as it can work as Time difference between preceding time and travel time is less than or equal to by trip purpose add when preset time difference is less than or equal to 24 hours It is added in weather application, to guarantee to could be aware that the weather condition on trip purpose ground when going on a journey and preparing in user, and then does Good targetedly preparation.
In the present embodiment, it can be set after the travel time goes over n (n is the natural number more than or equal to 0) day, weather Using the travel time corresponding trip purpose for being automatically deleted addition, to discharge the space of weather application, reduce to end Hold the occupancy of resource.
It should be understood that each step in above-mentioned second of Weather information acquisition methods can also be by as shown in Figure 1 Terminal 100 independently realize.Specifically, can by stored in memory 109 realize one of above-mentioned each step or Multiple programs execute the program by processor 110, to realize each step of above-mentioned Weather information acquisition methods.
Simultaneously it is to be further understood that Fig. 2 can be passed through between terminal and server in above-mentioned Weather information acquisition methods Shown in communications network system framework realize communication connection.
Furthermore it should be noted that above two Weather information acquisition methods can be used simultaneously by a terminal, i.e., on Stating two kinds of Weather information acquisition methods can carry out simultaneously.
It can include closing by receive server transmission in the first Weather information acquisition methods provided in this embodiment It is combined the user information of the current location information in family, determines the current institute of association user further according to the location information in user information In area, and then the association user is currently located area and is added in weather application, thus after weather application unlatching, automatically Obtain the Weather information that the association user is currently located area.In this way, being currently located by server to get association user Position, then obtain the Weather information of the position automatically, obtaining for the Weather information to association user location automatically can be realized It takes, does not need the addition that user carries out position manually, very convenient, the user experience is improved.
It, can be by text application in reading terminals in second of Weather information acquisition methods provided in this embodiment Information text, and information text is parsed, when including then trip information in determining information text, from the information text Middle extraction trip destination, finally by trip purpose is added in weather application, and after weather application unlatching, automatic to obtain The Weather information on trip purpose ground.In this way, being existed by realizing automated analysis to the parsing of text information automatically to realize It when user goes on a journey, does not need user and carries out the addition of position manually that the Weather information on trip purpose ground can be obtained automatically, very Convenient, the user experience is improved.
Second embodiment
The present embodiment is to obtain on the basis of first embodiment with two kinds of Weather information acquisition methods are corresponding more specific For taking display process, present invention work is further illustrated.
Shown in Figure 9, Fig. 9 is that the Weather information that the first is more specific provided by the present embodiment obtains flow for displaying, Include:
S901: groups of users is established;
In the present embodiment, if association user of all common group persons as group master in groups of users;Common group person is not Has association user.Common group person refers to remaining user in groups of users in addition to group master in the present embodiment.
S902: when the position of a certain common group person changes, the terminal of the common group person reports position from trend server User name in confidence breath and group;
In the present embodiment, the terminal of common group person can determine whether terminal location is changed by GPS.This The position of common group person in embodiment changes the common group person referred to from an area to another area.
S903: the location information that the common group person reports and user name are transmitted to group master by server;
S904: the corresponding area of the location information is associated with preservation to weather with corresponding user name automatically by the terminal of group master In;
S905: when weather application is opened in the terminal of group master, the user name of the common group person is shown automatically and is somebody's turn to do Common group person is currently located the weather in area.
Display process is obtained by Weather information shown in Fig. 9, group master can easily know the day in group person location Gas situation.For between parent and child, the feelings of lovers, can by establish such a group it can be learnt that be concerned about people work as The weather in preceding location, it is very convenient.
Shown in Figure 10, Figure 10 is that second of more specific Weather information provided by the present embodiment obtains display stream Journey, comprising:
S1001: reading and parses the schedule text set by user in short message text and calendar;
Typically, it may book tickets when user goes on a journey, and ticketing information can feed back to user, ticket booking letter by short message Trip purpose is often had in breath and the travel time.In addition, correlation may also can be set in calendar before user's trip Routing, i.e. schedule text, therefore may be available divided by destination and travel time in schedule text.
S1002: in short message text or schedule text there are travel time and trip purpose information when, extract trip when Between and corresponding trip purpose;
In the present embodiment, can be realized by text analysis technique, such as keyword extraction, semantic analysis technology from Travel time and corresponding trip purpose are extracted in text.
S1003: by trip purpose it is added in weather application on the day before the travel time;
S1004: when weather application is opened, the weather of automatic display trip destination.
Display process is obtained by Weather information shown in Fig. 10, to trip purpose weather can be realized automatically in terminal It shows, prepares so that user can carry out relevant trip in advance in advance.Furthermore the addition on trip purpose ground does not need user Intervention manually, it is very convenient, it is very friendly to user.
3rd embodiment
A kind of terminal is present embodiments provided, it is shown in Figure 11 comprising processor 1101, memory 1102 and logical Believe bus 1103.Wherein:
Communication bus 1103 is for realizing the connection communication between processor 1101 and memory 1102.
Processor 1101 is for executing the first program of one or more stored in memory 1102, to realize above-mentioned first Each step of the first Weather information acquisition methods described in embodiment and/or second embodiment.
Processor 1101 is also used to execute the second program of one or more stored in memory 1102, to realize above-mentioned Each step of second of Weather information acquisition methods described in one embodiment and/or second embodiment.
Meanwhile the present embodiment also provides a kind of computer readable storage medium, as floppy disk, CD, hard disk, flash memory, USB flash disk, CF card, SD card, mmc card etc. are stored with one for realizing above-mentioned each step or more in the computer readable storage medium A third program, this one or more third program can be executed by one or more processor, to realize that above-mentioned first is real Apply each step of the first Weather information acquisition methods described in example and/or second embodiment.Details are not described herein.
One or more the 4th program for realizing above-mentioned each step is stored in the computer readable storage medium, This one or more the 4th program can be executed by one or more processor, to realize above-mentioned first embodiment and/or Each step of second of Weather information acquisition methods described in two embodiments.It also repeats no more herein.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of Weather information acquisition methods, which is characterized in that the Weather information acquisition methods include:
Receive the user information for the association user that server is sent;The user information includes the current position of the association user Information;
The association user area is currently located according to the positional information to be added in weather application;
After weather application unlatching, the Weather information that the association user is currently located area is obtained automatically.
2. Weather information acquisition methods as described in claim 1, which is characterized in that the weather application includes groups of users function Energy;The association user are as follows: and the active user of the weather application is in same groups of users and removes the active user Outer other users.
3. Weather information acquisition methods as claimed in claim 2, which is characterized in that the active user of the weather application is in institute The permission stated in groups of users is higher than default access threshold value.
4. Weather information acquisition methods as described in claim 1, which is characterized in that the user information further includes the association The identification information of user;
It is described when the association user being currently located area being added in weather application, further includes: by the association user Identification information is currently located area with the association user and is associated in the weather application.
5. Weather information acquisition methods as described in claim 1, which is characterized in that in the association that the reception server is sent Before the user information of user, further includes:
User information acquisition request is sent to the server;The user information acquisition request includes association for request The user information of user current location information;
It include the identification information of the association user in the user information acquisition request.
6. Weather information acquisition methods as described in any one in claim 1-5, which is characterized in that use the association described Family is currently located after area is added in weather application, further includes:
When receiving the user information of the association user of server transmission again for a certain association user, according to the use Location information in the information of family redefines the association user and is currently located area;
The association user redefined is currently located working as the association user that area was added in weather application with last time Preceding location is compared;
When being currently located area and changing, the association user redefined is currently located ground in the association user Area is added in weather application, and that deletes the association user that last time is added in the weather application is currently located area.
7. a kind of Weather information acquisition methods, which is characterized in that the Weather information acquisition methods include:
Information text in reading terminals in text application, and the information text is parsed;
When including trip information in determining the information text, trip destination is extracted from the information text;
The trip purpose is added in weather application;
After weather application unlatching, the Weather information on the trip purpose ground is obtained automatically.
8. Weather information acquisition methods as claimed in claim 7, which is characterized in that comprising going out in determining the information text When row information, further includes:
With the trip purpose the corresponding travel time is extracted from the information text;
The travel time is compared with current time, and determines that the travel time is later than current time.
9. Weather information acquisition methods as claimed in claim 8, which is characterized in that described to be added to the trip purpose Include: in weather application
When time difference between current time and the travel time is less than or equal to preset time difference, by the trip purpose It is added in weather application.
10. a kind of terminal, which is characterized in that the terminal includes processor, memory and communication bus;
The communication bus is for realizing the connection communication between the processor and memory;
The processor is for executing one or more first program stored in the memory, to realize such as claim The step of 1-6 described in any item Weather information acquisition methods;
And/or the processor is such as weighed for executing one or more second program stored in the memory with realizing Benefit requires the step of 7-9 described in any item Weather information acquisition methods.
CN201810684924.6A 2018-06-28 2018-06-28 Weather information acquisition methods and terminal Pending CN109062968A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810684924.6A CN109062968A (en) 2018-06-28 2018-06-28 Weather information acquisition methods and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810684924.6A CN109062968A (en) 2018-06-28 2018-06-28 Weather information acquisition methods and terminal

Publications (1)

Publication Number Publication Date
CN109062968A true CN109062968A (en) 2018-12-21

Family

ID=64818172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810684924.6A Pending CN109062968A (en) 2018-06-28 2018-06-28 Weather information acquisition methods and terminal

Country Status (1)

Country Link
CN (1) CN109062968A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102625261A (en) * 2011-06-14 2012-08-01 北京小米科技有限责任公司 Weather information prompting method and system
US20150379152A1 (en) * 2014-06-30 2015-12-31 Yahoo! Inc. Method and system for automatic generation of personalized applications
CN106375577A (en) * 2016-08-31 2017-02-01 珠海市魅族科技有限公司 Calendar reminding method and apparatus
CN107454261A (en) * 2017-08-07 2017-12-08 珠海格力电器股份有限公司 A kind of weather icon display methods, device and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102625261A (en) * 2011-06-14 2012-08-01 北京小米科技有限责任公司 Weather information prompting method and system
US20150379152A1 (en) * 2014-06-30 2015-12-31 Yahoo! Inc. Method and system for automatic generation of personalized applications
CN106375577A (en) * 2016-08-31 2017-02-01 珠海市魅族科技有限公司 Calendar reminding method and apparatus
CN107454261A (en) * 2017-08-07 2017-12-08 珠海格力电器股份有限公司 A kind of weather icon display methods, device and mobile terminal

Similar Documents

Publication Publication Date Title
CN109085990A (en) A kind of gestural control method, mobile terminal and computer readable storage medium
CN108920235A (en) Non- read flag control method, mobile terminal and computer readable storage medium
CN109428923A (en) Information push method, server, terminal and computer readable storage medium
CN108829476A (en) A kind of message display method, terminal and storage medium
CN110177177A (en) Message back method, mobile terminal and computer readable storage medium
CN109819096A (en) Push display control method, terminal and the computer storage medium of notification message
CN109462700A (en) A kind of call method, mobile terminal and computer readable storage medium
CN110401806A (en) A kind of video call method of mobile terminal, mobile terminal and storage medium
CN109933253A (en) Method for controlling application starting, terminal and computer readable storage medium
CN110314375A (en) A kind of method for recording of scene of game, terminal and computer readable storage medium
CN109828844A (en) Processing method, mobile terminal and the storage medium of application program
CN109547637A (en) A kind of message treatment method of mobile terminal, mobile terminal and storage medium
CN109219004A (en) Short message unsubscription method, device, mobile terminal and readable storage medium storing program for executing
CN109005290A (en) A kind of alarm clock setting method, terminal and computer readable storage medium
CN109451438A (en) A kind of finding method of intelligent terminal, intelligent terminal and storage medium
CN110213717A (en) A kind of localization method, localization message remind terminal and localization message system for prompting
CN110180181A (en) Screenshot method, device and the computer readable storage medium of Wonderful time video
CN109062968A (en) Weather information acquisition methods and terminal
CN110083294A (en) Screen interception method, terminal and computer readable storage medium
CN109684020A (en) A kind of method for switching theme, equipment and computer readable storage medium
CN109669618A (en) Interface control method, mobile terminal and computer readable storage medium
CN109275112A (en) SMS processing method, server and computer readable storage medium
CN109634629A (en) A kind of method for upgrading system, terminal and computer readable storage medium
CN109508274A (en) Using operation total duration statistical method, terminal and computer readable storage medium
CN109117200A (en) A kind of application open method, terminal and computer readable storage medium

Legal Events

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