Skip to content
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

[Azure Maps] Traffic Incident 2025-01-01 #31578

Open
wants to merge 37 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
ea122d9
Copy files from preview/1.0
miaxzhitong Nov 15, 2024
7b3d0d5
Update version to stable/2025-04-01
miaxzhitong Nov 15, 2024
cc062ca
Added tag for 2025-04-01 in readme file
miaxzhitong Nov 15, 2024
a8a1779
add traffic incident
miaxzhitong Nov 16, 2024
b2403c9
prettier check
miaxzhitong Nov 18, 2024
72e6869
move 2025-04-01 to preview folder
miaxzhitong Nov 18, 2024
eae4ee0
fix readme
miaxzhitong Nov 18, 2024
a398720
update readme
miaxzhitong Nov 18, 2024
8ca35dc
fix lintdiff error
miaxzhitong Nov 18, 2024
e89d9bd
add suppression
miaxzhitong Nov 18, 2024
9012a20
fix errors
miaxzhitong Nov 18, 2024
8949b53
spell check
miaxzhitong Nov 18, 2024
ad4e15d
fix ApiView
miaxzhitong Nov 19, 2024
9e9b9ca
remove GeoJSONMultiPoint definition from traffic
miaxzhitong Nov 21, 2024
ae7e151
change api ver to 2025-03-01
miaxzhitong Nov 27, 2024
92283fc
Merge branch 'main' into release-traffic-azuremaps-stable/2025-04-01
miaxzhitong Nov 27, 2024
918a9d1
add description to parameters
miaxzhitong Nov 27, 2024
253e674
add traffic incident example
miaxzhitong Nov 27, 2024
3f63573
add parameter description
miaxzhitong Dec 4, 2024
3769793
fix lintdiff and example error
miaxzhitong Dec 4, 2024
0e9a9a3
add list bullet
miaxzhitong Dec 4, 2024
b6df4a7
update datetime
miaxzhitong Dec 7, 2024
1c7c37f
prettier check and lintDiff fix
miaxzhitong Dec 7, 2024
18f83ad
response schema change
miaxzhitong Dec 9, 2024
9157526
add more details to description
miaxzhitong Dec 10, 2024
2a126c8
delay as double
miaxzhitong Dec 10, 2024
bd30691
change api ver to 2025-01-01
miaxzhitong Dec 17, 2024
2e0f370
add pagination
miaxzhitong Dec 18, 2024
b7a1ac0
fix datetime format
miaxzhitong Dec 18, 2024
443903d
remove pagination and resolve comments
miaxzhitong Jan 13, 2025
4b7762c
incident type parameter
miaxzhitong Jan 14, 2025
2d922c8
Merge branch 'main' into release-traffic-azuremaps-stable/2025-04-01
miaxzhitong Jan 14, 2025
075513e
Merge branch 'main' into release-traffic-azuremaps-stable/2025-04-01
miaxzhitong Jan 27, 2025
2816973
move id under feature
Jan 27, 2025
07440d5
debug example json
Jan 28, 2025
331be64
refine description text
Mar 8, 2025
f90cfda
Merge branch 'main' into release-traffic-azuremaps-stable/2025-04-01
miaxzhitong Mar 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion specification/maps/data-plane/Traffic/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ These are the global settings for Traffic Client.
``` yaml
title: TrafficClient
openapi-type: data-plane
tag: 1.0-preview
tag: package-2025-01-01
# at some point those credentials will move away to Swagger according to [this](https://github.com/Azure/autorest/issues/3718)
add-credentials: true
credential-default-policy-type: BearerTokenCredentialPolicy
Expand All @@ -44,6 +44,19 @@ input-file:
- preview/1.0/traffic.json
```

### Tag: package-2025-01-01

These settings apply only when `--tag=package-2025-01-01` is specified on the command line.

``` yaml $(tag) == 'package-2025-01-01'
input-file:
- stable/2025-01-01/traffic.json

suppressions:
- code: OperationIdNounVerb
reason: False alarm. Per the Noun_Verb convention for Operation Ids, the noun 'Traffic' should not appear after the underscore.
```

# Code Generation

## Python
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"parameters": {
"api-version": "2025-01-01",
"bbox": [
-105,
37,
-94,
45
]
},
"responses": {
"200": {
"body": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-104.939053,
39.682642
]
},
"properties": {
"id": 18558549332008001,
"startTime": "2025-09-12T09:31:37Z",
"endTime": "2025-09-12T10:21:47Z",
"description": "At CO 2/Colorado Boulevard (Denver) at Mile Point 204. Two right lanes are closed due to a crash.",
"title": "I-25 N / US-87 N",
"type": "Accident",
"severity": 4,
"delay": null,
"lastModified": "2025-09-12T10:21:47Z",
"endPoint": {
"type": "Point",
"coordinates": [
-104.940412,
39.68307
]
},
"isTrafficJam": false,
"isRoadClosed": false
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-94.38411355,
39.04460549
]
},
"properties": {
"id": 21366103288104000,
"startTime": "2025-09-12T09:42:32Z",
"endTime": "2025-09-12T10:21:47Z",
"description": "Accident on I-70 E from S Lees Summit Rd/Exit 14 (I-70) to I-470/MO-291/Exit 15 (I-70).",
"title": "I-70 E",
"type": "Accident",
"severity": 4,
"delay": 10,
"lastModified": "2025-09-12T10:21:47Z",
"endPoint": {
"type": "Point",
"coordinates": [
-94.35559355,
39.04075549
]
},
"isTrafficJam": true,
"isRoadClosed": false
}
}
]
}
}
}
}
Loading
Loading