Re: Package proposal Science_Weather
| From: | Stefan Neufeind | Date: | Fri, 22 Aug 2003 08:01:46 +0000 |
| Subject: | Re: Package proposal Science_Weather | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-20375@lists.php.net to get a copy of this message | ||
On 22 Aug 2003 at 3:33, Marshall Roch wrote:
> Alexander Wirtz wrote:
> > I wrote a small class which retreives XML data from weather.com.
>
> Is the weather.com data free, or would you only be able to use this
> class if you subscribe to it? METAR data is public domain from the
> National Weather Service (www.weather.gov). Is there a more specific
> name for this package that would allow for another weather package
> that processes METAR? Science_Weather and Science_METAR could work,
> but maybe someone else has another suggestion before it's too late to
> change the name?
Hmm, "data for free" sounds nice :-) Didn't hear about METAR up to
now. Maybe could Science_Weather be a class that supports multiple
sources and is comprised of multiple classes?
How about a class Science_Weather as a wrapped / interface for all
weather-services - defining a common data structure etc. And then we
might have classes Science_Weather_METAR as well as
Science_Weather_WheaterDotCom as interfaces to the actual services.
I've seen another free service on the web, but can't remember it's
name at the moment. They offer weather-data for free via XML-feeds.
And maybe there are also regional weather-sites that are of interest
to some people. So I think a general Science_Weather as an interface
would be another solution. And all Weather-classes should be bundled
in a common package.
Stefan