Does anyone know how I could add a block onto my site, where a user can input their zip code and see current weather conditions in their area?
Does anyone know how I could add a block onto my site, where a user can input their zip code and see current weather conditions in their area?
You can try Weather On Your Website - add weather.com weather to your website
Or Yahoo! Weather
OR The Weather Network - Weather Centre - WeatherButton - Overview
I tried searching for a weather widget based on geolocation but wasn't able to find one right away. That would be the ticket as users wouldn't have to enter any information.
I know there are some great minds here on this site... Anyone think they might be able to create a geolocation widget?? I'd be willing to pay for it![]()
Weather Forecasts - UK Weather News - Netweather.tv does weather by latitude and longitude.
all you need is a service that returns a lat/lon for a visitors IP, they are around, or ou could make your own, by downlaoding a database of IPs/ locations...
Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )
Just as a further to, I've been checking out ip2location databases.
If you're going to install your own, they aren't small and they aren't cheap. I just got a hold of one sample which lists IP COUNTRY REGION CITY LATITUDE LONGITUDE ISP DOMAIN. This is the type of IP2Location database you want as it breaks down IP's by city, rather than just by country. This database costs $799US per year.
This database is 466MB. Not for the shared account let me tell you.
So looking at it, the best way would be to use an external service to pull your lat/long from. I haven't looked at any yet but I'm sure they're not free. You would probably pay some type of subscription fee monthly based on the number of requests.
Of course to lower the number of requests, you could code the users lat/long in a cookie, rather than requesting it on each page. But that's a different part of the story.
I was looking over at fraudlabs.com and they offer an XML based IP2location service, but their pricing isn't available without creating an account. I don't want to make an account just to find out their prices so if you're interested take a look over there.
you could try this MaxMind - GeoLite City | Free IP Address to City Database its free.
Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )
I didn't even consider them due to their admittedly low accuracy for their free service. 55% accuracy just isn't that great. Their paid service is 80% which is a lot better.
I know IP2location databases are never perfect, but that's a pretty low rate.
Perhaps there is a better way?
Maybe make the weather block visible for only registered users. And upon registration require the user to enter their city name. From this you can use one of the tools from theweathernetwork.com and place their city as a variable.
FSGDAG
Replied to your question on other thread that was relevant to this one.
http://www.nicecoder.com/community/s...?t=4553&page=2