Click here to Skip to main content
15,900,511 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to show on my website weather of region of world depending on user .(ip address).how it is possible?like this website
http://www.weather2travel.com/holidayweather/india/[^]
Posted
Updated 9-Feb-12 22:07pm

There are two approaches for such things. You may use some Web service. For example, take a look here: http://www.webservicex.net/globalweather.asmx?op=GetWeather[^].

Please see:
http://en.wikipedia.org/wiki/Web_service[^],
http://en.wikipedia.org/wiki/SOAP[^].

Also, you could use some regular Web site (not a Web service) and use the techniques of Web scraping.

Please see my past answers:
get specific data from web page[^],
How to get the data from another site[^].

—SA
 
Share this answer
 
Comments
Espen Harlinn 11-Feb-12 5:15am    
5'ed!
Sergey Alexandrovich Kryukov 11-Feb-12 5:28am    
Thank you, Espen.
--SA
Use third party webservice.
Try Webservicex.net, there are several free web services available.
 
Share this answer
 
In addition to SAKryukov's solution, this is a link to a WS to find information about users location depending on IP address:

GetGeoIP[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900