[georss] "When" information in georss
Noyori Tatsuya
nojorin at gmail.com
Sun Aug 12 09:56:18 EDT 2007
I have converted Yahoo Weather RSS
XML(http://xml.weather.yahoo.com/forecastrss?p=USAL0001&u=f) into the
following georss xml that I have suggested.
In this sample, I have added FeatureSet element to Schema attribute.
Also, I have added Xhtml element to geo:term attribute.
I think we need these abstract elements.
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://www.w3.org/2005/Atom">
<content>
<fs xmlns="http://www.georss.org/georss"
schema="http://xml.weather.yahoo.com/ns/atom/atmosphere/CurrentConditions">
<div xmlns="http://www.w3.org/1999/xhtml">Current Conditions for
Abbeville</div>
<ds>
<dateTime>2007-08-12T05:53:00+05:00</dateTime>
<point>31.57 -85.25</point>
<div xmlns="http://www.w3.org/1999/xhtml"
xmlns:geo="http://www.georss.org/georss">
<div>Feels Like : <span geo:term="feels like">84</span>°</div>
<div>Temperature : <span geo:term="temperature">79</span>°</div>
<div>Barometer : <span geo:term="pressure">29.99</span> in
and <span geo:term="rising">rising</span></div>
<div>Humidity : <span geo:term="humidity">90</span>%</div>
<div>Visibility : <span geo:term="visibility">7</span>mi</div>
<div>Dewpoint : <span geo:term="dewpoint">76</span>°</div>
<div>Wind : <span geo:term="direction">SSW</span>
<span geo:term="seed">5</span> mph</div>
</div>
</ds>
</fs>
<fs xmlns="http://www.georss.org/georss"
schema="http://xml.weather.yahoo.com/ns/atom/astronomy">
<div xmlns="http://www.w3.org/1999/xhtml">Sunrise and Sunset for
Abbeville</div>
<ds>
<dateTime>2007-08-12T05:53:00+05:00</dateTime>
<point>31.57 -85.25</point>
<div xmlns="http://www.w3.org/1999/xhtml"
xmlns:geo="http://www.georss.org/georss">
<div>Sunrise : <span geo:term="next
sunrise">2007-08-12T06:04:00+05:00</span></div>
<div>Sunset : <span geo:term="next
sunset">2007-08-12T19:27:00+05:00</span></div>
</div>
</ds>
</fs>
<fs xmlns="http://www.georss.org/georss"
schema="http://xml.weather.yahoo.com/ns/atom/atmosphere/Forecast">
<div xmlns="http://www.w3.org/1999/xhtml">Forecast for Abbeville</div>
<ts>
<point>31.57 -85.25</point>
<ds>
<dateTime>2007-08-12T00:00:00+05:00
2007-08-12T12:00:00+05:00</dateTime>
<div xmlns="http://www.w3.org/1999/xhtml"
xmlns:geo="http://www.georss.org/georss">
<div>Weather : <span geo:term="weather">Fair</span></div>
<div>High : <span geo:term="high
temperature">99</span>°</div>
<div>Low : <span geo:term="low temperature">75</span>°</div>
</div>
</ds>
<ds>
<dateTime>2007-08-12T12:00:00+05:00
2007-08-13T00:00:00+05:00</dateTime>
<div xmlns="http://www.w3.org/1999/xhtml"
xmlns:geo="http://www.georss.org/georss">
<div>Weather : <span
geo:term="weather">Thunderstorms</span></div>
<div>High : <span geo:term="high
temperature">99</span>°</div>
<div>Low : <span geo:term="low temperature">75</span>°</div>
</div>
</ds>
<ds>
<dateTime>2007-08-13T00:00:00+05:00
2007-08-14T00:00:00+05:00</dateTime>
<div xmlns="http://www.w3.org/1999/xhtml"
xmlns:geo="http://www.georss.org/georss">
<div>Weather : <span geo:term="weather">Mostly
Sunny</span></div>
<div>High : <span geo:term="high
temperature">98</span>°</div>
<div>Low : <span geo:term="low temperature">75</span>°</div>
</div>
</ds>
</ts>
</fs>
</content>
</entry>
--
Tatsuya (^o^)/
More information about the georss
mailing list