API returning multiple Paris, France with different numeric states

  • 1
  • Problem
  • Updated 2 years ago
When I make an api request for Paris, France with the following:
http://api.wunderground.com/api/{key}/conditions/q/France/Paris.json
I get the following response:
{
  "response": {
  "version":"0.1",
  "termsofService":"http://www.wunderground.com/weather/api/d/terms.html",
  "features": {
  "conditions": 1
  }
		, "results": [
		{
		"name": "Paris",
		"city": "Paris",
		"state": "75",
		"country": "FR",
		"country_iso3166":"FR",
		"country_name":"France",
		"zmw": "00000.46.07156",
		"l": "/q/zmw:00000.46.07156"
		}
		,
		{
		"name": "Paris",
		"city": "Paris",
		"state": "94",
		"country": "FR",
		"country_iso3166":"FR",
		"country_name":"France",
		"zmw": "00000.1.07149",
		"l": "/q/zmw:00000.1.07149"
		}
		]
	}
}
As you can see, there are multiple Paris, France results with different state numbers, and I'm not sure how to interpret and move forward with these results. 
Photo of David

David

  • 1 Post
  • 0 Reply Likes
  • confused

Posted 2 years ago

  • 1
Photo of Brandon

Brandon

  • 29 Posts
  • 7 Reply Likes
I don't know if that's an error or not but it looks a lot like the results from a location query, you can access one of the specific places directly by using the text in the "l" field like:
http://api.wunderground.com/api/API-KEY/conditions/q/zmw:00000.46.07156.json

May be related to this: 
https://apicommunity.wunderground.com/weatherapi/topics/location-issues
(Edited)