How is 'display_location' populated in a 'conditions' query for a PWS?

  • 1
  • Question
  • Updated 5 years ago
I have just added my PWS to Wunderground and it is successfully reporting weather conditions. The observation_location that comes back in my 'conditions' query has the details I entered when I setup the PWS on Wunderground - i.e. my neighbourhood and city etc. However the display_location is reporting a completely different suburb in my city - many many kms away.

How are the display_location fields populated in the 'conditions' response?

Kind regards,
Ben
Photo of SumnerBoy

SumnerBoy

  • 5 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 1
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 122 Reply Likes
display_location is the city match, and observed_location is where the ob comes from, like your PWS, or an NWS location. What URL are you hitting?
Photo of SumnerBoy

SumnerBoy

  • 5 Posts
  • 0 Reply Likes
I am querying my PWS (ICANTERB127). It is returning the correct information for observed (which I entered when setting up the PWS on Wunderground) but it is returning the following for display;

<display_location>
<full>Wigram, New Zealand</full>
<city>Wigram</city>
<state/>
<state_name>New Zealand</state_name>
<country>NZ</country>
<country_iso3166>NZ</country_iso3166>
<zip>00000</zip>
<latitude>-43.572163</latitude>
<longitude>172.761993</longitude>
<elevation>22.00000000</elevation>
</display_location>


The city should be Christchurch, NZ. Wigram is an area of ChCh on the other side of the city from where I am.