Meaning of zmw city code?

  • 3
  • Question
  • Updated 6 years ago
I would like to base my caching system on the zmw as a unique identifier. So my question is what exactly is zmw code ?
Examples:
http://www.wunderground.com/q/zmw:900...
http://www.wunderground.com/q/zmw:000...

I've done some testing and it seems the first number is zip code, the second may be meteo station number (if there are more at the same city) and the last seems to be WMO identifier.

z - zip code
m - meteo station No.
w - wmo identifier

Did I get that right ?

The other question is do you have a compiled list of all zmw codes and corresponding information, which I could store and then get city name, coordinates, country, etc by simply finding the zmw code in the file ?
Photo of IvanKovacevic

IvanKovacevic

  • 3 Posts
  • 0 Reply Likes
  • undecided

Posted 6 years ago

  • 3
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 123 Reply Likes
You're almost right. The M is actually "magic" and its our way of organizing multiple zip codes, such as San Francisco having 10 zipcodes. We don't have a public list because the locations do change and update. The best thing is to do /geolookup/ to get the zmw and use the "l" field, which is Link, to get to the corresponding location page.
Photo of IvanKovacevic

IvanKovacevic

  • 3 Posts
  • 0 Reply Likes
Thanks for the answer! So I'm still a bit wondering should I for example from this...

"l":"/q/zmw:94107.1.99999",

....store the whole url subpath /q/zmw:94107.1.99999 in my DB or can I make the assumption the the /q/zmw: part is common to all places that you have and that I can safely store only the actual zmw code 94107.1.99999 and then at the moment I need to make the query I construct the full URL by just appending the zmw code at the end?