CN107515794A - A kind of meteorological data acquisition methods - Google Patents

A kind of meteorological data acquisition methods Download PDF

Info

Publication number
CN107515794A
CN107515794A CN201710773794.9A CN201710773794A CN107515794A CN 107515794 A CN107515794 A CN 107515794A CN 201710773794 A CN201710773794 A CN 201710773794A CN 107515794 A CN107515794 A CN 107515794A
Authority
CN
China
Prior art keywords
information
meteorological data
data
server
meteorological
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
CN201710773794.9A
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.)
Jiangxi Borui Tongyun Technology Co Ltd
Original Assignee
Jiangxi Borui Tongyun 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 Jiangxi Borui Tongyun Technology Co Ltd filed Critical Jiangxi Borui Tongyun Technology Co Ltd
Priority to CN201710773794.9A priority Critical patent/CN107515794A/en
Publication of CN107515794A publication Critical patent/CN107515794A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/541Client-server

Abstract

The present embodiments relate to a kind of meteorological data acquisition methods, including:The meteorological data solicited message that weather information server receiving terminal apparatus is sent;Solicited message includes Termination ID, positional information and the request type information of terminal device;Request type information is identified weather information server;When the request type of request type information instruction is the first kind, weather information server obtains the interface message of meteorological data server whole in stored service provider's list;Meteorological data is sent to each meteorological data server according to each interface message and obtains request;Receive the meteorological data that each meteorological data server returns;Meteorological data includes:Data item information and data parameter field information;Collect statistics are carried out to each meteorological data, obtain the optimal data parameter field information under each data item information;According to the optimal data parameter field information of each data item information, meteorological data return information is generated, is sent to terminal device.

Description

A kind of meteorological data acquisition methods
Technical field
The present invention relates to communication technical field, more particularly to a kind of meteorological data acquisition methods.
Background technology
With the continuous progress of society, the continuous development of computer technology, people are to Meteorological Services (such as weather forecast) Awareness, degree of recognition improve constantly, the channel for obtaining Meteorological Services is also more and more.The acute variation of global climate in recent years Extreme weather is caused to continuously emerge, requirement of the people to Meteorological Services also more and more higher.
User inquires about weather mainly for once some demand:1) prepared within one day for new;2) weather at that time is checked Situation;3) prepared for follow-up event;Therefore meteorological data accuracy it is most important, data inaccuracy can influence trip and Follow-up outgoing plan arranges.But the meteorological data accuracy rate that presently, there are weather server interface provider is different, returns The data returned are suggested also different, and for personal habits, everyone has again oneself thinks asking for more accurately Meteorological Services business Topic.
The content of the invention
It is an object of the invention to provide a kind of meteorological data acquisition methods, disclosure satisfy that user individual selects oneself to like Meteorological Services business provide meteorological data or selection to each Meteorological Services business provide meteorological data carry out Macro or mass analysis after The meteorological data drawn.
To achieve the above object, the invention provides a kind of meteorological data acquisition methods, including:
The meteorological data solicited message that weather information server receiving terminal apparatus is sent;The solicited message includes described Termination ID, positional information and the request type information of terminal device;
The request type information is identified the weather information server;
When the request type of request type information instruction is the first kind, the weather information server obtains institute The interface message of whole meteorological data servers in service provider's list of storage;
Meteorological data is sent to each meteorological data server according to each interface message and obtains request;The meteorology Data acquisition request includes the positional information;
Receive the meteorological data that each meteorological data server returns;The meteorological data includes:Data item information With data parameter field information;
Collect statistics are carried out to each meteorological data, obtain the optimal data parameter field letter under each data item information Breath;
According to the optimal data parameter field information of each data item information, meteorological data return information is generated, according to institute Termination ID is stated, is sent to the terminal device.
Preferably, the request type information also includes service provider ID;In the weather information server to the request After type information is identified, methods described also includes:
When the request type of request type information instruction is Second Type, the weather information server is according to institute Service provider ID is stated, connecing for the first meteorological data server corresponding with the service provider ID is obtained in service provider's list Message ceases;
Meteorological data is sent to the first meteorological data server according to the interface message of the first meteorological data server Obtain request;
Receive the meteorological data that the first meteorological data server returns;
According to the meteorological data, meteorological data return information is generated, and according to the Termination ID, be sent to the terminal Equipment.
Preferably, it is described that collect statistics are carried out to each meteorological data, obtain the optimal data under each data item information Parameter field information is specially:
The weather information server is weighted statistics to the data parameters field information under each data item information, obtains To weighted data parameter field information;
Using the weighted data parameter field information as the optimal data parameter field information.
Preferably, it is described that collect statistics are carried out to each meteorological data, obtain the optimal data under each data item information Parameter field information is specially:
The weather information server is united to the repetitive rate of the data parameters field information under each data item information Meter, using the repetitive rate highest data parameters field information as the optimal data parameter field information.
Preferably, methods described also includes:
Weather information server obtains the positional information of relative position in preset range according to the positional information;
According to the positional information of the relative position and the meteorological data return information, generation refers to prompt message, root According to Termination ID, terminal device is sent to.
Preferably, described according to the Termination ID, being sent to the terminal device is specially:
The weather information server obtains default interaction protocol parameter, according to the default interaction protocol parameter, by institute State meteorological data return information and be sent to the terminal device.
Meteorological data acquisition methods provided in an embodiment of the present invention, it disclosure satisfy that the gas that user individual selects oneself to like As being drawn after the meteorological data that service provider provides or the meteorological data progress Macro or mass analysis that selection is provided each Meteorological Services business Meteorological data.
Brief description of the drawings
Fig. 1 is meteorological data acquisition methods flow chart provided in an embodiment of the present invention.
Embodiment
Below by drawings and examples, technical scheme is described in further detail.
The present invention provides a kind of meteorological data acquisition methods, disclosure satisfy that user individual selects the meteorological clothes oneself liked The gas that the meteorological data or selection that business business provides to the meteorological data that each Meteorological Services business provides draw after Macro or mass analysis Image data.
Fig. 1 is meteorological data acquisition methods flow chart provided in an embodiment of the present invention, below in conjunction with shown in Fig. 1, to this hair The meteorological data acquisition methods that bright embodiment provides illustrate.
Meteorological data acquisition methods provided in an embodiment of the present invention comprise the following steps:
Step 101, the meteorological data solicited message that weather information server receiving terminal apparatus is sent.
Specifically, solicited message includes Termination ID, positional information and the request type information of terminal device.
Terminal device can be that smart mobile phone, tablet personal computer etc. are loaded with the equipment being served by.
Technical scheme for a better understanding of the present invention, in this specific embodiment, to obtain the meteorological data in first city Exemplified by, carry out concrete example explanation.
Positional information instruction will obtain the geographical position ownership of meteorological data, such as obtain the meteorological data in first city. The source for the meteorological data that request type information instruction obtains, such as can indicate that the meteorological data in first city need to be by service provider A There is provided, or the post analysis that need to be collected by the meteorological data that each service provider provides of meteorological data in instruction first city are drawn.Wherein Service provider provides meteorological data by meteorological data server.
Step 102, request type information is identified weather information server.
Specifically, request type information is identified weather information server, to determine that request type is the first kind Or Second Type.In the present embodiment, the first kind refers to that the meteorological data to be obtained is the gas provided by each service provider What the post analysis that image data collects were drawn, Second Type refers to that the meteorological data to be obtained is provided by some specific service provider 's.
It is when it is the first kind that weather information server, which determines the request type of request type information instruction, i.e., foregoing described Meteorological data when being that post analysis that the meteorological data provided by each service provider collects are drawn, perform following step 103- steps 107, when it is determined that the request type of request type information instruction is Second Type, i.e., foregoing described meteorological data is by some Specific service provider provides, then performs following step 108- steps 112.
Step 103, when the request type of request type information instruction is the first kind, weather information server obtains institute The interface message of whole meteorological data servers in service provider's list of storage.
Specifically, the interface message of meteorological data server is stored in advance in weather information server.It is specific at one Example in, service provider A, multiple Meteorological Services business such as service provider B, service provider C can be included in service provider's list.
When weather information server determines that the meteorological data to be obtained is carried by each service provider according to request type information The post analysis that the meteorological data of confession collects are drawn, then obtain the interface letter of meteorological data server whole in service provider's list Breath.
Step 104, sent according to the interface message of each meteorological data server to each meteorological data server meteorological Data acquisition request.
Specifically, meteorological data, which obtains request, includes positional information.
In a specific example, the meteorological data in first city is obtained, obtaining request includes the position in first city Information.The interface message of whole weather servers of the weather information server in service provider's list, to each meteorological number Meteorological data is sent according to server and obtains request, to obtain the meteorological data in first city from each meteorological data server.
Step 105, the meteorological data that each meteorological data server returns is received.
Specifically, meteorological data includes:Data item information and data parameter field information;
Data item information indicates the specific as mesh classification, such as temperature, humidity, wind scale etc. of meteorological data.Data parameters word Segment information is used to refer to the specific meteorological data under each data item, such as the data parameters field information instruction of temperature data item Temperature is specially 28 DEG C.
Step 106, collect statistics are carried out to each meteorological data, obtains the optimal data parameter under each data item information Field information.
Specifically, it can be weather information server to each data item information to carry out collect statistics to each meteorological data Under data parameters field information be weighted statistics, weighted data parameter field information is obtained, by weighted data parameter field Information is as optimal data parameter field information.
It can also be meteorological data server under each data item information to carry out collect statistics to each meteorological data The repetitive rate of data parameters field information is counted, and is joined repetitive rate highest data parameters field information as optimal data Digital segment information.For example, the temperature number in the first city that each meteorological data server that weather information server receives returns It is respectively 27 DEG C, 28 DEG C, 28 DEG C, 29 DEG C, 28 DEG C, 28 DEG C, 29 DEG C, 28 DEG C, 28 DEG C according to the data parameters field information under item, it is right The repetitive rate of these data parameters field informations, which is counted, and is calculated ' 28 DEG C ' repetitive rate highest, then will be ' 28 DEG C ' makees For optimal data parameter field information.
Step 107, letter is returned to according to the optimal data parameter field information under each data item information, generation meteorological data Breath, according to Termination ID, is sent to terminal device.
In a specific embodiment, weather information server statistics draws the optimal data under each data item information It is not temperature that parameter field information, which is,:28 DEG C, wind scale:Three-level, humidity:56%, then according to optimal under these data item information Data parameters field information, generate meteorological data return information.
Weather information server according to default interaction protocol parameter and Termination ID, by meteorological data return information with client The interaction protocol form of the terminal device agreement at end is sent to terminal device.
In a preferred embodiment, weather information server can also be obtained in preset range according to positional information The positional information of relative position, according to the positional information of relative position and meteorological data return information, generation refers to prompt message, It is sent to terminal device.
For example, weather information server can be obtained in the range of first peri-urban 100km according to the positional information in first city Associated location positional information, according to the positional information of this relative position and meteorological data return information, generation is with reference to carrying Show information, according to Termination ID, be sent to terminal device and shown, to provide advisory opinion to the trip of user.
After step 102, when weather information server determines that the request type of request type information instruction is the second class During type, i.e., meteorological data is that request type information also includes service provider ID, performs following when being provided by some specific service provider Step 108- steps 111.
Step 108, when the request type of request type information instruction is Second Type, weather information server is according to clothes Business business ID obtains the interface message of the first meteorological data server corresponding with service provider ID.
Specifically, request type information includes service provider ID, weather information server obtains service provider according to service provider ID The interface message of the first meteorological data server corresponding with service provider ID, wherein interface message are stored in advance in gas in list In image information server.For example, weather information server determines that meteorological data need to be by specifically servicing according to request type information Business A is provided, then the interface message of the service provider A prestored meteorological data server is obtained according to service provider ID, i.e., foregoing The first meteorological data server corresponding with service provider ID interface message.
Step 109, sent according to the interface message of the first meteorological data server to the first meteorological data server meteorological Data acquisition request.
Specifically, interface message of the weather information server according to the first meteorological data server, generation meteorological data obtains Request is taken, is sent to the first meteorological data server, to obtain meteorological data from the first meteorological data server.
Step 110, the meteorological data that the first meteorological data server returns is received.
In a specific example, weather information server receives service provider A meteorological data server return The meteorological data in first city is temperature:20 DEG C, wind scale:Level Four, humidity:65%.
Step 111, the meteorological data returned according to the first meteorological data server, meteorological data return information is generated, and According to Termination ID, terminal device is sent to.
Specifically, the meteorological data that weather information server returns according to the first meteorological data server received, raw Into meteorological data return information, according to the Termination ID of terminal device, weather information server by meteorological data return information with The interaction protocol form of the terminal device agreement of client is sent to terminal device.
In a preferred embodiment, weather information server can also be obtained in preset range according to positional information The positional information of relative position, according to the positional information of relative position and meteorological data return information, generation refers to prompt message, It is sent to terminal device.
For example, weather information server can be obtained in the range of second peri-urban 50km according to the positional information in second city Associated location positional information, according to the positional information of this relative position and meteorological data return information, generation is with reference to carrying Show information, according to Termination ID, be sent to terminal device and shown, to provide advisory opinion to the trip of user.
Meteorological data acquisition methods provided in an embodiment of the present invention, it disclosure satisfy that the gas that user individual selects oneself to like As being drawn after the meteorological data that service provider provides or the meteorological data progress Macro or mass analysis that selection is provided each Meteorological Services business Meteorological data.
Professional should further appreciate that, each example described with reference to the embodiments described herein Unit and algorithm steps, it can be realized with electronic hardware, computer software or the combination of the two, it is hard in order to clearly demonstrate The interchangeability of part and software, the composition and step of each example are generally described according to function in the above description. These functions are performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme. Professional and technical personnel can realize described function using distinct methods to each specific application, but this realization It is it is not considered that beyond the scope of this invention.
The method that is described with reference to the embodiments described herein can use hardware, computing device the step of algorithm Software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only storage (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field In any other form of storage medium well known to interior.
Above-described embodiment, the purpose of the present invention, technical scheme and beneficial effect are carried out further Describe in detail, should be understood that the embodiment that the foregoing is only the present invention, be not intended to limit the present invention Protection domain, within the spirit and principles of the invention, any modification, equivalent substitution and improvements done etc., all should include Within protection scope of the present invention.

Claims (6)

1. a kind of meteorological data acquisition methods, it is characterised in that the meteorological data acquisition methods include:
The meteorological data solicited message that weather information server receiving terminal apparatus is sent;The solicited message includes the terminal Termination ID, positional information and the request type information of equipment;
The request type information is identified the weather information server;
When the request type of request type information instruction is the first kind, the weather information server is obtained and stored Service provider's list in whole meteorological data server interface message;
Meteorological data is sent to each meteorological data server according to each interface message and obtains request;The meteorological data Obtaining request includes the positional information;
Receive the meteorological data that each meteorological data server returns;The meteorological data includes:Data item information sum According to parameter field information;
Collect statistics are carried out to each meteorological data, obtain the optimal data parameter field information under each data item information;
According to the optimal data parameter field information of each data item information, meteorological data return information is generated, according to the end ID is held, is sent to the terminal device.
2. meteorological data acquisition methods according to claim 1, it is characterised in that the request type information also includes clothes Be engaged in business ID;After the request type information is identified the weather information server, methods described also includes:
When the request type of request type information instruction is Second Type, the weather information server is according to the clothes Be engaged in business ID, and the interface letter of the first meteorological data server corresponding with the service provider ID is obtained in service provider's list Breath;
Meteorological data is sent according to the interface message of the first meteorological data server to the first meteorological data server to obtain Request;
Receive the meteorological data that the first meteorological data server returns;
According to the meteorological data, meteorological data return information is generated, and according to the Termination ID, be sent to the terminal and set It is standby.
3. meteorological data acquisition methods according to claim 1, it is characterised in that described to be converged to each meteorological data Total statistics, the optimal data parameter field information obtained under each data item information are specially:
The weather information server is weighted statistics to the data parameters field information under each data item information, is added Flexible strategy are according to parameter field information;
Using the weighted data parameter field information as the optimal data parameter field information.
4. meteorological data acquisition methods according to claim 1, it is characterised in that described to be converged to each meteorological data Total statistics, the optimal data parameter field information obtained under each data item information are specially:
The weather information server counts to the repetitive rate of the data parameters field information under each data item information, will The repetitive rate highest data parameters field information is as the optimal data parameter field information.
5. meteorological data acquisition methods according to claim 1, it is characterised in that methods described also includes:
Weather information server obtains the positional information of relative position in preset range according to the positional information;
According to the positional information of the relative position and the meteorological data return information, generation refers to prompt message, according to end ID is held, is sent to terminal device.
6. meteorological data acquisition methods according to claim 1, it is characterised in that it is described according to the Termination ID, send It is specially to the terminal device:
The weather information server obtains default interaction protocol parameter, according to the default interaction protocol parameter, by the gas Image data return information is sent to the terminal device.
CN201710773794.9A 2017-08-31 2017-08-31 A kind of meteorological data acquisition methods Pending CN107515794A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710773794.9A CN107515794A (en) 2017-08-31 2017-08-31 A kind of meteorological data acquisition methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710773794.9A CN107515794A (en) 2017-08-31 2017-08-31 A kind of meteorological data acquisition methods

Publications (1)

Publication Number Publication Date
CN107515794A true CN107515794A (en) 2017-12-26

Family

ID=60724874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710773794.9A Pending CN107515794A (en) 2017-08-31 2017-08-31 A kind of meteorological data acquisition methods

Country Status (1)

Country Link
CN (1) CN107515794A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109639880A (en) * 2018-11-08 2019-04-16 维沃移动通信有限公司 A kind of display method of weather information and terminal device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340461A (en) * 2008-08-08 2009-01-07 凯立德欣技术(深圳)有限公司 Method for obtaining weather forecast information of designated region
US20160033678A1 (en) * 2014-08-01 2016-02-04 Htc Corporation Mobile device with weather forecast
CN106295861A (en) * 2016-08-01 2017-01-04 北京小米移动软件有限公司 The acquisition methods of weather forecast information, device and equipment
CN106776756A (en) * 2016-11-22 2017-05-31 杭州联络互动信息科技股份有限公司 The method and apparatus of server end, client process weather resource data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340461A (en) * 2008-08-08 2009-01-07 凯立德欣技术(深圳)有限公司 Method for obtaining weather forecast information of designated region
US20160033678A1 (en) * 2014-08-01 2016-02-04 Htc Corporation Mobile device with weather forecast
CN106295861A (en) * 2016-08-01 2017-01-04 北京小米移动软件有限公司 The acquisition methods of weather forecast information, device and equipment
CN106776756A (en) * 2016-11-22 2017-05-31 杭州联络互动信息科技股份有限公司 The method and apparatus of server end, client process weather resource data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109639880A (en) * 2018-11-08 2019-04-16 维沃移动通信有限公司 A kind of display method of weather information and terminal device
CN109639880B (en) * 2018-11-08 2021-02-02 维沃移动通信有限公司 Weather information display method and terminal equipment

Similar Documents

Publication Publication Date Title
JP6442000B2 (en) System and method for determining empirical experts and routing questions
CN103617547B (en) A kind of business recommended method and system
KR102121361B1 (en) Method and device for identifying the type of geographic location where the user is located
CN107798557A (en) Electronic installation, the service location based on LBS data recommend method and storage medium
CN104537000B (en) A kind of method and apparatus for pushed information
CN106886918A (en) A kind of determination method of targeted customer, apparatus and system
TW201633241A (en) Target address determining method and device
CN109376313A (en) Information recommendation method, device, terminal and storage medium
CN109614556B (en) Access path prediction and information push method and device
CN107943896A (en) Information processing method and device
CN113412608B (en) Content pushing method and device, server and storage medium
CN111212383A (en) Method, device, server and medium for determining number of regional permanent population
CN109672980A (en) Determine the method, apparatus and storage medium of the corresponding WLAN hot spot of point of interest
CN109949063A (en) A kind of address determines method, apparatus, electronic equipment and readable storage medium storing program for executing
CN109286902A (en) The flow of the people acquisition methods and device of scenic spot tourist
CN110502702B (en) User behavior prediction method and device
CN109299367A (en) Information-pushing method, device, computer equipment and storage medium
CN109729376A (en) A kind of processing method of life cycle, device, equipment and storage medium
CN103700004A (en) Method and device for pushing microblog advertising service information
CN108205770A (en) The acquisition methods and device of a kind of target medium
CN112465565B (en) User portrait prediction method and device based on machine learning
CN107547626B (en) User portrait sharing method and device
CN107515794A (en) A kind of meteorological data acquisition methods
US20110173559A1 (en) Method and system for publishing an online post from a device
CN107395377A (en) A kind of broadcast lists method for pushing

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171226