CN101557268A - Method for intelligently providing weather forecast data - Google Patents
Method for intelligently providing weather forecast data Download PDFInfo
- Publication number
- CN101557268A CN101557268A CNA2008101038551A CN200810103855A CN101557268A CN 101557268 A CN101557268 A CN 101557268A CN A2008101038551 A CNA2008101038551 A CN A2008101038551A CN 200810103855 A CN200810103855 A CN 200810103855A CN 101557268 A CN101557268 A CN 101557268A
- Authority
- CN
- China
- Prior art keywords
- weather forecast
- information
- city
- data
- user
- 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
Links
Images
Abstract
The invention relates to a method for intelligently providing weather forecast data, comprising the following steps: obtaining a GPRS request by using a service terminal after a user surfs the internet and accesses an application providing the weather forecast; inquiring a city IP database by using an Http header and original IP address information which are both obtained automatically, and obtaining information of a city where a user access point is located; judging whether the obtained city information is valid or not; formatting the city information and getting ready for obtaining the information of the weather forecast; and finally obtaining the weather forecast through a weather forecast web serice, and returning the weather forecast to the user. The method can intelligently provide local weather forecast data according to different mobile phone surfing sites of users.
Description
Technical field
The present invention relates to a kind of intelligence the method for data of weather forecast is provided, particularly a kind of employing provides the locality that the method for data of weather forecast is provided according to user mobile phone online place different intelligent.
Background technology
SOA refers to service-oriented architecture (Service-Oriented Architecture), and it is a component model, and it connects the different function units (being called service) of application program by definition excellent interface and contract between these services.Interface is to adopt neutral mode to define, and it should be independent of hardware platform, operating system and the programming language of the service of realization.This make the service in various such systems of being structured in can a kind of unification and universal mode carry out alternately.
Web service is a kind of concrete interfacing that realizes SOA, and web service has been arranged, and the software of different operating system and development language can be easy to call mutually.
The service of some weather forecasts at present provides in the mode of web service.
Summary of the invention
Technical problem to be solved by this invention provides a kind of employing provides the locality that the method for data of weather forecast is provided according to user mobile phone online place different intelligent.
A kind of intelligence of the present invention provides the method for data of weather forecast, and this method comprises following step at least:
Step 1: after user online and visit provided the application of weather forecast, the application service end obtained the GPRS request, and mainly the information that need obtain comprises: Http head, source IP addresses.
Step 2: use the Http head, the source IP addresses information inquiry " city IP data storehouse " that obtain according to automatically, obtain user access point place urban information.
Step 3: whether the urban information that judge to obtain is effective, is meant that effectively the city title can not be for empty and can get access to the weather forecast information in this city.
Step 4:, carry out the preparation of obtaining weather forecast information with the urban information format.
Step 5: obtain weather forecast by weather forecast web serice, return to the user.
A kind of intelligence of the present invention provides the method for data of weather forecast, judges whether the urban information that obtains is effective.Be meant that effectively the city title can not the steps include: for empty and can get access to the weather forecast information in this city
Step 31: if effectively, then carry out step 4.
Step 32: if invalid, then return information: can't obtain weather forecast information.
A kind of intelligence of the present invention provides the method for data of weather forecast, with the urban information format, carries out the preparation of obtaining weather forecast information, the steps include:
Step 41: the purpose of formatted message is that parameters such as city title are changed into the call format that weather forecast service needs.If the city title that gets access to does not have " city " word, then need its back is added " city " word.
Of the present invention a kind of intelligence provides the method for data of weather forecast, obtains weather forecast by weather forecast web serice, returns to the user, the steps include:
Step 51:web serice can obtain each city weather forecast information of the whole nation through checking by it.
A kind of intelligence that the present invention relates to provides the method for data of weather forecast, and making provides the locality that data of weather forecast is provided according to user mobile phone online place different intelligent.
Description of drawings
Fig. 1 is a flow chart of the present invention.
Embodiment
Referring to Fig. 1, key step of the present invention is as follows:
Step 1: after user online and visit provided the application of weather forecast, the application service end obtained the GPRS request, and mainly the information that need obtain comprises: Http head, source IP addresses.
Step 2: use the Http head, the source IP addresses information inquiry " city IP data storehouse " that obtain according to automatically, obtain user access point place urban information.
Step 3: whether the urban information that judge to obtain is effective, is meant that effectively the city title can not be for empty and can get access to the weather forecast information in this city.
Step 4:, carry out the preparation of obtaining weather forecast information with the urban information format.
Step 5: obtain weather forecast by weather forecast web serice, return to the user.
Above-mentioned steps 3 judges whether the urban information that obtains is effective.Be meant that effectively the city title can not be for empty and can to get access to the concrete steps of weather forecast information in this city as follows:
Step 31: if effectively, then carry out step 4.
Step 32: if invalid, then return information: can't obtain weather forecast information.
Above-mentioned steps 4 is with the urban information format, and the concrete steps of carrying out the preparation of obtaining weather forecast information are as follows:
Step 41: the purpose of formatted message is that parameters such as city title are changed into the call format that weather forecast service needs.If the city title that gets access to does not have " city " word, then need its back is added " city " word.
Above-mentioned steps 5 is obtained weather forecast by weather forecast web serice, and the concrete steps that return to the user are as follows:
Step 51:web serice can obtain each city weather forecast information of the whole nation through checking by it.
When implementing, above-mentioned technical scheme provide the locality that data of weather forecast is provided according to user mobile phone online place different intelligent.
It should be noted last that above embodiment is only in order to explanation and unrestricted technical scheme described in the invention; Therefore, although this specification has been described in detail the present invention with reference to the above embodiments,, those of ordinary skill in the art should be appreciated that still and can make amendment or replacement to the present invention with being equal to; And all do not break away from the technical scheme and the improvement thereof of the spirit and scope of the present invention, and it all should be encompassed in the middle of the claim scope of the present invention.
Claims (4)
1, a kind of intelligence provides the method for data of weather forecast, it is characterized in that: this method comprises following step at least:
Step 1: after user online and visit provided the application of weather forecast, the application service end obtained the GPRS request, and mainly the information that need obtain comprises: Http head, source IP addresses.
Step 2: use the Http head, the source IP addresses information inquiry " city IP data storehouse " that obtain according to automatically, obtain user access point place urban information.
Step 3: whether the urban information that judge to obtain is effective, is meant that effectively the city title can not be for empty and can get access to the weather forecast information in this city.
Step 4:, carry out the preparation of obtaining weather forecast information with the urban information format.
Step 5: obtain weather forecast by weather forecast web serice, return to the user.
2, a kind of intelligence according to claim 1 provides the method for data of weather forecast, it is characterized in that judging whether the urban information of acquisition is effective, is meant that effectively the city title can not the steps include: for empty and can get access to the weather forecast information in this city
Step 31: if effectively, then carry out step 4.
Step 32: if invalid, then return information: can't obtain weather forecast information.
3, a kind of intelligence according to claim 1 provides the method for data of weather forecast, it is characterized in that the preparation of obtaining weather forecast information is carried out in the urban information format, the steps include:
Step 41: the purpose of formatted message is that parameters such as city title are changed into the call format that weather forecast service needs.If the city title that gets access to does not have " city " word, then need its back is added " city " word.
4, a kind of intelligence according to claim 1 provides the method for data of weather forecast, it is characterized in that obtaining weather forecast by weather forecast web serice, returns to the user, the steps include:
Step 51:web serice can obtain each city weather forecast information of the whole nation through checking by it.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008101038551A CN101557268A (en) | 2008-04-11 | 2008-04-11 | Method for intelligently providing weather forecast data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008101038551A CN101557268A (en) | 2008-04-11 | 2008-04-11 | Method for intelligently providing weather forecast data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101557268A true CN101557268A (en) | 2009-10-14 |
Family
ID=41175225
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2008101038551A Pending CN101557268A (en) | 2008-04-11 | 2008-04-11 | Method for intelligently providing weather forecast data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101557268A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595462A (en) * | 2018-01-04 | 2018-09-28 | 深圳天珑无线科技有限公司 | Method, mobile terminal and the device of urban information where knowing in the application |
WO2019153599A1 (en) * | 2018-02-07 | 2019-08-15 | 平安科技(深圳)有限公司 | Weather data processing method, server and computer-readable storage medium |
-
2008
- 2008-04-11 CN CNA2008101038551A patent/CN101557268A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595462A (en) * | 2018-01-04 | 2018-09-28 | 深圳天珑无线科技有限公司 | Method, mobile terminal and the device of urban information where knowing in the application |
WO2019153599A1 (en) * | 2018-02-07 | 2019-08-15 | 平安科技(深圳)有限公司 | Weather data processing method, server and computer-readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101136938B (en) | Centralized management method and platform system for mobile internet application | |
CN100454949C (en) | Method for obtaining mobile terminal professional ability information | |
CN101127758B (en) | IP address acquisition method and acquisition system for mobile nodes | |
CN101605141A (en) | Web service relational network system based on semanteme | |
CN101505284A (en) | Intelligent information dynamic pushing method and system | |
RU2004136284A (en) | METHOD AND SYSTEM OF PERSONALIZATION OF SERVICES AND APPLICATIONS IN NETWORKS CONNECTING USING A WEB PORTAL OF USER SETTINGS | |
CN102164154A (en) | Method and system for transmitting network information | |
CN1980166A (en) | Method and system for a call center | |
CN105741141A (en) | Internet-based advertisement promotion method and device | |
CN105338030A (en) | Method for intelligently providing weather forecast data | |
CN101557268A (en) | Method for intelligently providing weather forecast data | |
CN101626310B (en) | Method, device and system for transmitting service information in trunking environment | |
CN101466066B (en) | Position service management system and position service providing method | |
CN101686156B (en) | Terminal and method for realizing local caching of network service data | |
CN102571690A (en) | Multilingual multimedia advertisement system with automatic identification function | |
CN101335914B (en) | System and method for solving GPRS terminal Internet access setting obstacle | |
JP3852731B2 (en) | Map display method, map display system, and map information location management server | |
CN101741889B (en) | Method, system and service for centralized management of network services | |
Frà et al. | High level context query processing: an experience report | |
JP2003203188A (en) | Crm data control method, crm server and recording medium | |
JP2003534600A (en) | Addressing remote data objects via a computer | |
JP2007079980A (en) | Linkage server, service provision method, service provision system and program | |
KR100775679B1 (en) | System for servicing wireless contents | |
KR20030041546A (en) | Method for working ordinary web browser by using wireless internet service | |
CN109257450A (en) | Domain name analytic method, the network terminal and domain name analysis system and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20091014 |