GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Bug: METAR decoding error  XML
Forum Index -> General
Author Message
alpenrouten.de



Joined: 07/01/2010 23:49:16
Messages: 5
Location: Germany
Offline

The findNearByWeatherXML service translates the METAR code

EDTL 141420Z 05001KT 0200 R21/M0350V0450N FZFG VV/// M01/M01 Q1006

into the XML string:

<geonames>
<observation>
<observation>
EDTL 141420Z 05001KT 0200 R21/M0350V0450N FZFG VV/// M01/M01 Q1006
</observation>
<observationTime>2010-01-14 14:20:00</observationTime>
<stationName>Lahr, CAN-AFB</stationName>
<ICAO>EDTL</ICAO>
<countryCode>DE</countryCode>
<elevation>156</elevation>
<lat>48.3666666666667</lat>
<lng>7.83333333333333</lng>
<temperature>21</temperature>
<dewPoint>-3</dewPoint>
<humidity>19</humidity>
<clouds>n/a</clouds>
<weatherCondition>n/a</weatherCondition>
<hectoPascAltimeter>1006.0</hectoPascAltimeter>
<windDirection>50.0</windDirection>
<windSpeed>01</windSpeed>
</observation>
</geonames>

but the values for <temperature> and <dewPoint> should be both "-1" and not "21" and "-3".
There seems to be a confusion between temperature data and the report data for runway 21.
[WWW]
marc



Joined: 08/12/2005 07:39:47
Messages: 4501
Offline

The parser is not perfect and there is an old open issue to find a better parser: http://forum.geonames.org/gforum/posts/list/25.page

Marc

[WWW]
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team