-
Notifications
You must be signed in to change notification settings - Fork 5.7k
2021/11/18 Add AirQuality, Historical, and Tropical API #16802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
8f46eb2
2021/08/05 Add Tropical api
904f84e
2021/11/18 Add air quality api
aa0860b
2021/11/18 Add Historical api
evaou f07b54c
2021/11/22 Update enum and add x-ms-client-name
2d29717
2021/11/23 Update examples
203f8c5
2021/11/23 Update naming
62296c8
2021/11/23 Create parameter for Position
111c47e
2021/11/23 Update active storm
b3ef3a2
2021/11/30 Change reponse to result
005cbab
2021/11/30 Add x-ms-client-name
8ca5f40
2021/11/30 Update timestamp, coordinate, and radius naming in SDK
a82e1f1
2021/11/30 Use WeatherUnit for Concentration
32168f8
2021/11/30 Update Daily Air quality dominantPollutant
d718c90
2021/11/30 Unify response format
0b86081
2021/11/30 Unify CurrentAirQuality and HourlyAirQualityForecast
61c6809
2021/12/01 Update window and weatherValue SDK name
db189e5
2021/12/02 Update coordinate and left, right SDK name
68630a4
2021/12/03 Add SDK name for results
2d3bedd
2021/12/03 Improve Object name
a52726c
2021/12/03 Update ActiveStorm
8f242da
2021/12/03 Remove needless object and update name
68bbbc5
2021/12/06 Add weather 2.0 directory
46f588e
2021/12/06 Recover Weather 1.0 Swagger file
ab3d5c6
2021/12/07 Remove v2 from operationId
4078438
2021/12/08 Update readme.md
625ac56
Set default API version as 2.0
evaou d5ec760
2022/01/07 Remove default value for api-version
d731738
2022/01/07 Remove needless custom-words
12949ba
2022/01/11 Update api-version and add nextLink
b18768b
2022/01/11 Update api-version in readme.md
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2429,6 +2429,8 @@ Ctlr | |
| vcenters | ||
| Mwarev | ||
| pmem | ||
| actuals | ||
| Actuals | ||
| rawphysical | ||
| rawvirtual | ||
| sesparse | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
specification/maps/data-plane/Weather/stable/1.1/examples/GetActiveStorms.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "1.1", | ||
| "format": "json" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "results": [ | ||
| { | ||
| "year": "2021", | ||
| "basinId": "EP", | ||
| "name": "Hilda", | ||
| "isActive": true, | ||
| "isSubtropical": false, | ||
| "govId": 8 | ||
| }, | ||
| { | ||
| "year": "2021", | ||
| "basinId": "EP", | ||
| "name": "TD 9E", | ||
| "isActive": true, | ||
| "isSubtropical": false, | ||
| "govId": 9 | ||
| }, | ||
| { | ||
| "year": "2021", | ||
| "basinId": "NP", | ||
| "name": "TWELVE", | ||
| "isActive": true, | ||
| "isSubtropical": false, | ||
| "govId": 12 | ||
| }, | ||
| { | ||
| "year": "2021", | ||
| "basinId": "NP", | ||
| "name": "LUPIT", | ||
| "isActive": true, | ||
| "isSubtropical": false, | ||
| "govId": 13 | ||
| }, | ||
| { | ||
| "year": "2021", | ||
| "basinId": "NP", | ||
| "name": "FOURTEEN", | ||
| "isActive": true, | ||
| "isSubtropical": false, | ||
| "govId": 14 | ||
| }, | ||
| { | ||
| "year": "2021", | ||
| "basinId": "NP", | ||
| "name": "FIFTEEN", | ||
| "isActive": true, | ||
| "isSubtropical": false, | ||
| "govId": 15 | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
92 changes: 92 additions & 0 deletions
92
specification/maps/data-plane/Weather/stable/1.1/examples/GetCurrentAirQuality.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,92 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "1.1", | ||
| "format": "json", | ||
| "query": "47.632346,-122.13887" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "results": [ | ||
| { | ||
| "dateTime": "2021-07-19T02:00:00+00:00", | ||
| "index": 21.6, | ||
| "globalIndex": 22.1, | ||
| "dominantPollutant": "Ozone", | ||
| "category": "Fair", | ||
| "categoryColor": "#FFC300", | ||
| "description": "The air quality is generally acceptable for most individuals. However, sensitive groups may experience minor to moderate symptoms from long-term exposure.", | ||
| "pollutants": [ | ||
| { | ||
| "type": "NO2", | ||
| "name": "Nitrogen Dioxide", | ||
| "index": 6.7, | ||
| "globalIndex": 6.7, | ||
| "concentration": { | ||
| "value": 13.4, | ||
| "unit": "µg/m³", | ||
| "unitType": 31 | ||
| } | ||
| }, | ||
| { | ||
| "type": "O3", | ||
| "name": "Ozone", | ||
| "index": 21.6, | ||
| "globalIndex": 22.1, | ||
| "concentration": { | ||
| "value": 53.5, | ||
| "unit": "µg/m³", | ||
| "unitType": 31 | ||
| } | ||
| }, | ||
| { | ||
| "type": "PM10", | ||
| "name": "Particulate Matter 10", | ||
| "index": 11.3, | ||
| "globalIndex": 12.2, | ||
| "concentration": { | ||
| "value": 12.2, | ||
| "unit": "µg/m³", | ||
| "unitType": 31 | ||
| } | ||
| }, | ||
| { | ||
| "type": "PM2.5", | ||
| "name": "Particulate Matter 2.5", | ||
| "index": 13.5, | ||
| "globalIndex": 6.5, | ||
| "concentration": { | ||
| "value": 3.2, | ||
| "unit": "µg/m³", | ||
| "unitType": 31 | ||
| } | ||
| }, | ||
| { | ||
| "type": "CO", | ||
| "name": "Carbon Monoxide", | ||
| "index": 1.2, | ||
| "globalIndex": 0.6, | ||
| "concentration": { | ||
| "value": 118.4, | ||
| "unit": "µg/m³", | ||
| "unitType": 31 | ||
| } | ||
| }, | ||
| { | ||
| "type": "SO2", | ||
| "name": "Sulfur Dioxide", | ||
| "index": 0.6, | ||
| "globalIndex": 1.1, | ||
| "concentration": { | ||
| "value": 1.1, | ||
| "unit": "µg/m³", | ||
| "unitType": 31 | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
179 changes: 179 additions & 0 deletions
179
specification/maps/data-plane/Weather/stable/1.1/examples/GetCurrentConditions.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,179 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "1.1", | ||
| "format": "json", | ||
| "query": "47.641268,-122.125679" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "results": [ | ||
| { | ||
| "dateTime": "2019-11-14T15:08:00-08:00", | ||
| "phrase": "Cloudy", | ||
| "iconCode": 7, | ||
| "hasPrecipitation": false, | ||
| "isDayTime": true, | ||
| "temperature": { | ||
| "value": 13.7, | ||
| "unit": "C", | ||
| "unitType": 17 | ||
| }, | ||
| "realFeelTemperature": { | ||
| "value": 13.6, | ||
| "unit": "C", | ||
| "unitType": 17 | ||
| }, | ||
| "realFeelTemperatureShade": { | ||
| "value": 13.6, | ||
| "unit": "C", | ||
| "unitType": 17 | ||
| }, | ||
| "relativeHumidity": 75, | ||
| "dewPoint": { | ||
| "value": 9.2, | ||
| "unit": "C", | ||
| "unitType": 17 | ||
| }, | ||
| "wind": { | ||
| "direction": { | ||
| "degrees": 315, | ||
| "localizedDescription": "NW" | ||
| }, | ||
| "speed": { | ||
| "value": 3.6, | ||
| "unit": "km/h", | ||
| "unitType": 7 | ||
| } | ||
| }, | ||
| "windGust": { | ||
| "speed": { | ||
| "value": 4.9, | ||
| "unit": "km/h", | ||
| "unitType": 7 | ||
| } | ||
| }, | ||
| "uvIndex": 0, | ||
| "uvIndexPhrase": "Low", | ||
| "visibility": { | ||
| "value": 8, | ||
| "unit": "km", | ||
| "unitType": 6 | ||
| }, | ||
| "obstructionsToVisibility": "", | ||
| "cloudCover": 95, | ||
| "ceiling": { | ||
| "value": 4359, | ||
| "unit": "m", | ||
| "unitType": 5 | ||
| }, | ||
| "pressure": { | ||
| "value": 1014.9, | ||
| "unit": "mb", | ||
| "unitType": 14 | ||
| }, | ||
| "pressureTendency": { | ||
| "localizedDescription": "Steady", | ||
| "code": "S" | ||
| }, | ||
| "pastTwentyFourHourTemperatureDeparture": { | ||
| "value": 1.8, | ||
| "unit": "C", | ||
| "unitType": 17 | ||
| }, | ||
| "apparentTemperature": { | ||
| "value": 16.1, | ||
| "unit": "C", | ||
| "unitType": 17 | ||
| }, | ||
| "windChillTemperature": { | ||
| "value": 13.9, | ||
| "unit": "C", | ||
| "unitType": 17 | ||
| }, | ||
| "wetBulbTemperature": { | ||
| "value": 11.4, | ||
| "unit": "C", | ||
| "unitType": 17 | ||
| }, | ||
| "precipitationSummary": { | ||
| "pastHour": { | ||
| "value": 0.5, | ||
| "unit": "mm", | ||
| "unitType": 3 | ||
| }, | ||
| "pastThreeHours": { | ||
| "value": 0.8, | ||
| "unit": "mm", | ||
| "unitType": 3 | ||
| }, | ||
| "pastSixHours": { | ||
| "value": 0.8, | ||
| "unit": "mm", | ||
| "unitType": 3 | ||
| }, | ||
| "pastNineHours": { | ||
| "value": 0.8, | ||
| "unit": "mm", | ||
| "unitType": 3 | ||
| }, | ||
| "pastTwelveHours": { | ||
| "value": 0.8, | ||
| "unit": "mm", | ||
| "unitType": 3 | ||
| }, | ||
| "pastEighteenHours": { | ||
| "value": 0.8, | ||
| "unit": "mm", | ||
| "unitType": 3 | ||
| }, | ||
| "pastTwentyFourHours": { | ||
| "value": 0.8, | ||
| "unit": "mm", | ||
| "unitType": 3 | ||
| } | ||
| }, | ||
| "temperatureSummary": { | ||
| "pastSixHours": { | ||
| "minimum": { | ||
| "value": 8.3, | ||
| "unit": "C", | ||
| "unitType": 17 | ||
| }, | ||
| "maximum": { | ||
| "value": 13.7, | ||
| "unit": "C", | ||
| "unitType": 17 | ||
| } | ||
| }, | ||
| "pastTwelveHours": { | ||
| "minimum": { | ||
| "value": 5.9, | ||
| "unit": "C", | ||
| "unitType": 17 | ||
| }, | ||
| "maximum": { | ||
| "value": 13.7, | ||
| "unit": "C", | ||
| "unitType": 17 | ||
| } | ||
| }, | ||
| "pastTwentyFourHours": { | ||
| "minimum": { | ||
| "value": 5.9, | ||
| "unit": "C", | ||
| "unitType": 17 | ||
| }, | ||
| "maximum": { | ||
| "value": 13.7, | ||
| "unit": "C", | ||
| "unitType": 17 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought the discussion at the meeting was for date-based versions since that's what other services with an API version query parameter do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per the discussion and conclusion in the 2nd weather api review session, we would apply api version 1.1 and I've shared the related recording with Travis.