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

WZDx v4.0 #221

Merged
merged 433 commits into from
Dec 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
433 commits
Select commit Hold shift + click to select a range
0ee2421
Fix worker presence definition location in readme
j-d-b Oct 4, 2021
91ec8c0
Fix formatting and alter wording
j-d-b Oct 4, 2021
4c2f627
Update WP last confirmed date description
mark-mockett Oct 8, 2021
29a2692
Clarify `confidence` description
mark-mockett Oct 8, 2021
fe783b0
Fix typo
j-d-b Oct 13, 2021
c1eaa08
Change wording
j-d-b Oct 13, 2021
510ffb8
Modify entrance-lane and entrance-ramp descrip
sknick-iastate Oct 14, 2021
07ea7b3
Modify entrance-lane descrip
sknick-iastate Oct 14, 2021
e974eef
Fix typos and wording
j-d-b Oct 14, 2021
f504022
Fix link
j-d-b Oct 14, 2021
bc60d77
Change vehicle count to volume vph
j-d-b Oct 14, 2021
4aa238e
Formatting table and correcting links
sknick-iastate Oct 14, 2021
85111d2
Fix link for restrictions
sknick-iastate Oct 14, 2021
ea1c0e2
Update used by objects time verification
sknick-iastate Oct 14, 2021
03b3427
update direction used by object
sknick-iastate Oct 14, 2021
1277c4a
update event status used by object
sknick-iastate Oct 14, 2021
802dda0
update event type used by object
sknick-iastate Oct 14, 2021
af89655
update location method used by object
sknick-iastate Oct 14, 2021
591d667
update road restriction used by object
sknick-iastate Oct 14, 2021
efa770c
update spatial accuracy used by object
sknick-iastate Oct 14, 2021
682e154
update vehicle impact used by object
sknick-iastate Oct 14, 2021
95f789e
update type of work used by object
sknick-iastate Oct 14, 2021
db1a1d4
update lanes used by object
sknick-iastate Oct 14, 2021
4d53c9b
update relationship used by object
sknick-iastate Oct 14, 2021
31fbbda
Update data source link
sknick-iastate Oct 14, 2021
29a8455
Remove old restriction from event 121388-WB
mark-mockett Oct 15, 2021
d5340fd
Re-added RoadEvent restriction to event 121388-WB
mark-mockett Oct 15, 2021
d5f3544
Remove RoadEvent restriction from 67890 for consistency
mark-mockett Oct 15, 2021
b0d9e6d
Add recommendation to use UUID for feature ID
j-d-b Oct 15, 2021
7a1ee9f
Merge branch 'field-devices' of https://github.com/usdot-jpo-ode/wzdx…
j-d-b Oct 15, 2021
cced824
Add link to GeoJSON Feature
j-d-b Oct 15, 2021
268e0f5
Change HybridSign dynamic_message_text to optional
j-d-b Oct 22, 2021
3e21b06
Fix link
j-d-b Oct 22, 2021
e596354
Fix typo
j-d-b Oct 22, 2021
6232bc3
Fix typo
j-d-b Oct 22, 2021
4bb9e03
Update Lane restrictions description
j-d-b Oct 22, 2021
f6a29a7
Rename WorkerPresenceSource to WorkerPresenceMethod
j-d-b Oct 28, 2021
c3a7b14
Fix file name
j-d-b Oct 28, 2021
c4eef27
Update WP confidence with examples
mark-mockett Oct 28, 2021
dddcc03
Fix method naming changes
j-d-b Oct 28, 2021
2586afb
Merge branch 'worker-presence' of https://github.com/usdot-jpo-ode/wz…
j-d-b Oct 28, 2021
6b3daf7
Make reference to date-time consistent
chuehlien Oct 29, 2021
9b0d34e
Update reference to RoadEvent in RoadEventCoreDetails page
chuehlien Oct 29, 2021
ab5fb5b
Add core_details as requried field for WorkZoneRoadEvent and DetourRo…
chuehlien Oct 29, 2021
c21c942
Deprecate road_event_id and require id field in RoadEventFeature
chuehlien Oct 29, 2021
0d02b34
Fix link typo
chuehlien Oct 29, 2021
f94f7c5
Fix minor link and formatting issues on various READMEs
chuehlien Oct 29, 2021
ea103ed
Fix minor typos in enumerated-types pages and make formatting consis…
chuehlien Oct 29, 2021
d480a7d
Fix minor typos in object pages and make formatting consistent
chuehlien Oct 29, 2021
20af984
Add HybridSign to list of possible field device
chuehlien Oct 29, 2021
0f88a74
Fix minor things in swz device feed json schema
chuehlien Oct 29, 2021
0536b38
Clarity types for traffic sensor metrics
j-d-b Oct 30, 2021
24ce928
Remove accidentally added file
j-d-b Oct 30, 2021
921fc8a
Use singular chevron consistently
j-d-b Oct 30, 2021
366ce22
Use separate row for each object
j-d-b Oct 30, 2021
7f86dc3
Update create feed readme
j-d-b Oct 30, 2021
15840fe
Merge pull request #1 from usdot-jpo-ode/refactor-road-event
mark-mockett Nov 1, 2021
183164c
Create RoadRestrictionFeed.md
DeraldDudley Nov 1, 2021
a71624b
Update and rename RestrictionEvent.md to RestrictionRoadEvent.md
mark-mockett Nov 1, 2021
78db431
Update RoadRestrictionFeed.md
DeraldDudley Nov 1, 2021
4e81e0f
Update RoadRestrictionFeed.md
DeraldDudley Nov 1, 2021
e42e1fc
Rename road_event property to core_details
mark-mockett Nov 1, 2021
81757a8
Update README.md
DeraldDudley Nov 1, 2021
35603d8
Update README.md
DeraldDudley Nov 1, 2021
6417201
Add new schema for RoadRestrictionFeed
mark-mockett Nov 1, 2021
d91c0ff
Update RestrictionRoadEvent.md
DeraldDudley Nov 1, 2021
ec39c3c
Add RestrictionRoadEvent as option for RoadEventFeature
mark-mockett Nov 1, 2021
84bd34b
Merge branch 'v4.0-release-restrictions' into RestrictionEvent
j-d-b Nov 1, 2021
3ed0e26
Remove accidentally added file
j-d-b Nov 2, 2021
2598c1f
Update schema
j-d-b Nov 2, 2021
ea82e15
Use feed_info prop naming to be consistent with SwzDeviceFeed
j-d-b Nov 2, 2021
1c44143
Fix schema RestrictionRoadEvent description
j-d-b Nov 2, 2021
543d280
Update description of new objects
j-d-b Nov 2, 2021
faf1cf0
Update description of RestrictionRoadEvent
j-d-b Nov 2, 2021
30ef6a9
Auto format JSON schema
j-d-b Nov 2, 2021
2ee78e6
Update main README
j-d-b Nov 2, 2021
5fe166b
Add clarifying text
j-d-b Nov 2, 2021
f2693d3
Remove periods from descriptions in schema
j-d-b Nov 2, 2021
3f82e15
Conditionally require either restrictions or lanes
mark-mockett Nov 2, 2021
2dee842
Add RestrictionRoadEvent to Restriction obj. used by
mark-mockett Nov 2, 2021
4c8713a
Update Restriction.md
mark-mockett Nov 2, 2021
5d8e693
Add RoadEventCoreDetails to create-feed README and fix typo
chuehlien Nov 2, 2021
ed33d63
Merge pull request #175 from usdot-jpo-ode/deprecate-lane-number
sknick-iastate Nov 18, 2021
9a33418
Merge pull request #188 from usdot-jpo-ode/v4.0-lane-types
sknick-iastate Nov 18, 2021
f2a54ed
Merge pull request #199 from sknick-iastate/location-verify-method
sknick-iastate Nov 18, 2021
b913748
Merge pull request #174 from usdot-jpo-ode/reduced-speed-limit-units
sknick-iastate Nov 18, 2021
1077f6f
Merge pull request #196 from Dunge/main
sknick-iastate Nov 18, 2021
7feb9ef
Merge branch 'v4.0-release' into remove-v3.1-deprecated
j-d-b Nov 18, 2021
0ed12cd
Merge pull request #176 from usdot-jpo-ode/remove-v3.1-deprecated
j-d-b Nov 18, 2021
202b5bf
Merge branch 'v4.0-release' into remove-lrs-info
j-d-b Nov 18, 2021
80446b3
Merge pull request #177 from usdot-jpo-ode/remove-lrs-info
j-d-b Nov 18, 2021
b1865d3
Merge branch 'v4.0-release' into v4.0-release-restrictions
mark-mockett Nov 18, 2021
9a73683
Merge pull request #198 from DeraldDudley/v4.0-release-restrictions
mark-mockett Nov 18, 2021
753b955
Merge branch 'v4.0-release' into worker-presence
mark-mockett Nov 18, 2021
fa95519
Merge pull request #206 from usdot-jpo-ode/worker-presence
mark-mockett Nov 18, 2021
e03d031
Remove section from spec-content README
j-d-b Nov 18, 2021
157160a
Merge branch 'v4.0-release' into refactor-road-event
j-d-b Nov 18, 2021
1973c8c
Fix RestrictionType used by
j-d-b Nov 18, 2021
5ff9182
Merge branch 'v4.0-release' into refactor-road-event
j-d-b Nov 18, 2021
f951722
Merge remote-tracking branch 'upstream/refactor-road-event' into Rest…
j-d-b Nov 18, 2021
ce248cc
Merge branch 'v4.0-release' into field-devices
j-d-b Nov 18, 2021
f12d476
Update scenario 1 multipoint example
sknick-iastate Dec 3, 2021
9197ae2
Update local access example
sknick-iastate Dec 3, 2021
2287835
Update scenario 1 line string example
sknick-iastate Dec 3, 2021
6aedece
Update scenario 2 linestring example
sknick-iastate Dec 3, 2021
9bb4eaa
Update scenario 3 linestring example
sknick-iastate Dec 3, 2021
fb6cd00
Update scenario 4 linestring example
sknick-iastate Dec 3, 2021
8aeea48
Update scenario 5 linestring example
sknick-iastate Dec 3, 2021
2067fe5
Update example descriptions
sknick-iastate Dec 3, 2021
1c3dc8b
Remove multipoint comprehensive example
sknick-iastate Dec 3, 2021
dfdddd2
remove multipoint local access example
sknick-iastate Dec 3, 2021
f293dd5
Remove multipoint scenario 2 example
sknick-iastate Dec 3, 2021
2371132
remove multipoint scenario 3 example
sknick-iastate Dec 3, 2021
8236cb6
Remove multipoint scenario 4 example
sknick-iastate Dec 3, 2021
37fe672
Remove multipoint scenario 5 example
sknick-iastate Dec 3, 2021
3a3b1da
Remove linestring comprehensive example
sknick-iastate Dec 3, 2021
e400db6
Added new bridge height restriction example
sknick-iastate Dec 3, 2021
46e5c4f
Update reference to bridge restriction
sknick-iastate Dec 3, 2021
79ad547
Update bridge clearance example
mark-mockett Dec 3, 2021
01c4047
Convert scenario 1 example from mph to kmh
sknick-iastate Dec 3, 2021
bb85a20
Convert scenario 1 example from mph to kmh multipoint
sknick-iastate Dec 3, 2021
371214b
Convert scenario 2 example from mph to kmh
sknick-iastate Dec 3, 2021
2d7fd1e
Convert scenario 4 example from mph to kmh
sknick-iastate Dec 3, 2021
71d3b21
Fix grammar/reword sentence in README
j-d-b Dec 6, 2021
b1e9d05
CUpdate links in create-feed/README
j-d-b Dec 6, 2021
b83f634
Format example JSON files
j-d-b Dec 6, 2021
fe1ab65
Simplify example folder structure and update references
j-d-b Dec 6, 2021
3570a66
Add bridge restriction linestring example
j-d-b Dec 6, 2021
758aa04
Merge remote-tracking branch 'upstream/refactor-road-event' into Rest…
j-d-b Dec 6, 2021
36badd6
Merge remote-tracking branch 'upstream/refactor-road-event' into Rest…
j-d-b Dec 6, 2021
9ab94c4
Re-add example files
j-d-b Dec 6, 2021
2f2fcb0
Merge remote-tracking branch 'upstream/refactor-road-event' into Rest…
j-d-b Dec 6, 2021
b8ef8cd
Fix schema by using anyOf instead of oneOf
j-d-b Dec 6, 2021
b0151a2
Merge branch 'refactor-road-event' into field-devices
j-d-b Dec 6, 2021
95de00f
Move WZDxFeed example files to subdirectory
j-d-b Dec 6, 2021
e32eac8
Rename schema file
j-d-b Dec 6, 2021
d7c18eb
Remove merge artifact typo
j-d-b Dec 6, 2021
e0c0861
Add Data Feeds section to project README
j-d-b Dec 6, 2021
f5514a1
Add paragraph to first section of project README
j-d-b Dec 6, 2021
28869ae
Fix link to SwzDeviceFeed schema
j-d-b Dec 6, 2021
01f8ef9
Fix description of data_source_id
j-d-b Dec 6, 2021
323f7d7
Fix road_names usage in scenario 1 example
j-d-b Dec 7, 2021
7117455
Modularize and reorganize JSON schema
j-d-b Dec 7, 2021
434cb34
Fix schema
j-d-b Dec 7, 2021
89a7674
Delete RoadRestriction.md
mark-mockett Dec 7, 2021
c7f2b6d
Fix feed info schema
j-d-b Dec 7, 2021
1cc8d9e
Fix SwzDeviceFeed schema
j-d-b Dec 7, 2021
e3b9170
Fix WorkerPresence object in schema
mark-mockett Dec 7, 2021
f5cddfe
Merge pull request #209 from usdot-jpo-ode/refactor-road-event
j-d-b Dec 7, 2021
6e87897
Fix SwzDeviceFeed schema 'oneOf'
j-d-b Dec 8, 2021
3a139a0
Refine validation of WZDxFeed
j-d-b Dec 8, 2021
87c63ad
Add SwzDeviceFeed example
j-d-b Dec 8, 2021
5010374
Merge branch 'v4.0-release' into field-devices
j-d-b Dec 8, 2021
5109ceb
Update wording in project README
j-d-b Dec 8, 2021
a7f85e8
Move examples out of create-feed
j-d-b Dec 8, 2021
a3ba966
Replace create-feed directory with Markdown file
j-d-b Dec 8, 2021
6758090
Remove out of context paragraph from Creating_a_WZDx_Feed.md
j-d-b Dec 8, 2021
250f99f
Fix link and add related helpful tip in project README
j-d-b Dec 8, 2021
f12c1bb
Update FeedDataSource schema title for consistency
j-d-b Dec 8, 2021
8a90f3b
Update of old schemas
j-d-b Dec 8, 2021
a32b765
Fix link
j-d-b Dec 8, 2021
f03ea4c
Fix typo
j-d-b Dec 8, 2021
ed12129
Update spec-content README
j-d-b Dec 9, 2021
cde3459
Fix LocationMethod 'Used By'
j-d-b Dec 9, 2021
a7c0bb4
Merge remote-tracking branch 'upstream/v4.0-release' into Restriction…
j-d-b Dec 9, 2021
000cc58
Fix placeholder acronym
j-d-b Dec 9, 2021
93bd823
Merge in latest from usdot-jpo-ode/wzdx to prepare PR
j-d-b Dec 9, 2021
0c08b52
Fix bridge height restriction example paragraph
j-d-b Dec 9, 2021
8ce9ebc
Extract RoadEventCoreDetails JSON schema
j-d-b Dec 9, 2021
fd87e79
Extract Restriction JSON schema
j-d-b Dec 9, 2021
491fd9d
Extract Lane JSON schema
j-d-b Dec 9, 2021
63cd6f3
Fix RoadRestrictionFeed schema typo
j-d-b Dec 9, 2021
6ee0f4b
Combine schemas to finalize RoadRestrictionFeed schema
j-d-b Dec 9, 2021
f9b4c81
Add description of restriction event type
j-d-b Dec 9, 2021
3277c9a
Add RoadRestrictionFeed to project README
j-d-b Dec 9, 2021
7f06113
Add mention to RoadRestriction feed in examples README
j-d-b Dec 9, 2021
fa7f543
Add references to RoadRestrictionFeed in READMEs
j-d-b Dec 9, 2021
623acf7
Update list of data feeds table
j-d-b Dec 9, 2021
cec6967
Combine FeedInfo and FeedDataSource schemas
j-d-b Dec 9, 2021
6bb47e2
Merge remote-tracking branch 'upstream/field-devices' into Restrictio…
j-d-b Dec 9, 2021
04cacb1
Change reduced speed limit type to number
mark-mockett Dec 9, 2021
b591819
Update reduced_speed_limit_kph in examples
mark-mockett Dec 9, 2021
e7c53f0
Fix typo in FeedInfo.json
mark-mockett Dec 10, 2021
9340070
Merge pull request #217 from usdot-jpo-ode/reduced-speed-limit-patch
mark-mockett Dec 10, 2021
c7607fb
Merge branch 'v4.0-release' into field-devices
j-d-b Dec 10, 2021
4627d18
Merge pull request #208 from usdot-jpo-ode/field-devices
j-d-b Dec 10, 2021
59275ca
Merge remote-tracking branch 'upstream/v4.0-release' into Restriction…
j-d-b Dec 10, 2021
4420462
Update project README for consistency
j-d-b Dec 10, 2021
ada0c8f
Fix WZDxFeed schema file
j-d-b Dec 10, 2021
407c123
Fix RoadEventFeature schema
j-d-b Dec 10, 2021
379fd93
Update all schema IDs for demonstration
j-d-b Dec 10, 2021
c282663
Re-add missing LocationMethod definition to schema
j-d-b Dec 10, 2021
34cbb37
Fix RoadEventFeature schema
j-d-b Dec 11, 2021
138c035
Finalize fix of RoadEventFeature schema
j-d-b Dec 11, 2021
b97a7db
UFix name of feed info in bridge height restriction example
j-d-b Dec 11, 2021
404b72b
Remove whitespace from WZDxFeed
j-d-b Dec 11, 2021
75c9f48
Add demonstration to RoadRestrictionFeed schema
j-d-b Dec 11, 2021
c69f596
Change bridge height restriction example to use spaces for indentation
j-d-b Dec 11, 2021
54acdba
Add restriction to EventType schema
j-d-b Dec 11, 2021
a2581e4
Revert schema to match current v4.0-release RoadEventFeature
j-d-b Dec 11, 2021
616b038
Add missing LocationMethod
j-d-b Dec 11, 2021
e71cfaf
Fix RoadRestrictionFeed schema
j-d-b Dec 11, 2021
70c319d
Add SwzDeviceFeed to FeedInfo 'Used By'
j-d-b Dec 11, 2021
bd365c7
Remove abbreviation
j-d-b Dec 11, 2021
89bdc94
Fix typos
mark-mockett Dec 13, 2021
ed917c2
Merge pull request #205 from DeraldDudley/RestrictionEvent
j-d-b Dec 13, 2021
486dc4c
Update schema ids to reference main branch
j-d-b Dec 14, 2021
1f64a32
Remove old RoadEvent.md
j-d-b Dec 14, 2021
db7a2d5
Add v4.0 release notes
j-d-b Dec 14, 2021
73f933c
Simplify Release Notes in project README
j-d-b Dec 14, 2021
7e22f88
Add information about feed to feed object introductions
j-d-b Dec 14, 2021
c99a99b
Update WZDx version in project README
j-d-b Dec 14, 2021
ab934f2
Update project README Getting Started section
j-d-b Dec 14, 2021
d4d24d5
Consistent formatting within spec-content/objects
chuehlien Dec 15, 2021
f13be95
Scrub links to refactored RoadEvent object
chuehlien Dec 15, 2021
6cd1916
Scrub RoadEventFeedInfo -> FeedInfo
chuehlien Dec 15, 2021
cb87639
Fix broken link and add period
chuehlien Dec 15, 2021
5efe432
Scrub FeedDataSource and add reference to RestrictionRoadEvent on Roa…
chuehlien Dec 15, 2021
29eb1f0
Scrub RoadEventDataSource and update ref to worker_presence_definition
chuehlien Dec 15, 2021
7ee7098
Minor typo / missing period fix
chuehlien Dec 15, 2021
bd622b9
Fix typos on WorkerPresenceMethod page
chuehlien Dec 15, 2021
6b02ec5
Fix typo in example file name
chuehlien Dec 15, 2021
9f7e3e1
Fix broken links / remove extra period in example README
chuehlien Dec 15, 2021
453ab00
Fix broken link, minor edits
chuehlien Dec 15, 2021
e2d6482
Add period to readme
chuehlien Dec 15, 2021
d6e8546
Remove reference to old RoadEvent in business rule 6
j-d-b Dec 15, 2021
674c573
Clarify worker_presence_last_confirmed_date is in UTC
j-d-b Dec 15, 2021
b98248b
Simplify 'verified' description
j-d-b Dec 15, 2021
75b3ddd
Remove specificity of usage of TrafficSensorLaneData
j-d-b Dec 15, 2021
462aff3
Remove specificity of usage of TrafficSensorLaneData
j-d-b Dec 15, 2021
640465f
Alphabetize order of directories in project README
j-d-b Dec 15, 2021
e81ed13
Move old schemas to subdirectories for consistency
j-d-b Dec 15, 2021
563dc4b
Capitalize Pull Request for consistency
j-d-b Dec 15, 2021
91983ca
Minor formatting
sknick-iastate Dec 15, 2021
7c9e258
Fix typo in readme
mark-mockett Dec 15, 2021
6890c6c
Merge branch 'v4.0-release' of https://github.com/usdot-jpo-ode/wzdx …
mark-mockett Dec 15, 2021
81aad1d
Revert "Merge branch 'v4.0-release' of https://github.com/usdot-jpo-o…
mark-mockett Dec 15, 2021
0812997
Update reference to feed data source
sknick-iastate Dec 15, 2021
e5c8524
Revert "Revert "Merge branch 'v4.0-release' of https://github.com/usd…
mark-mockett Dec 15, 2021
d670066
Generalize 'description' beyond work zones
mark-mockett Dec 15, 2021
d3096dd
Un-capitalize road event in Restriction Road Event
mark-mockett Dec 15, 2021
726c099
Update TrafficSensor road event reference for consistency
j-d-b Dec 15, 2021
a7e4d26
Merge branch 'v4.0-release' of https://github.com/usdot-jpo-ode/wzdx …
j-d-b Dec 15, 2021
41879c2
Merge branch 'main' into v4.0-release
j-d-b Dec 15, 2021
a112290
Clarify reference to road event types in a WZDx Feed
mark-mockett Dec 15, 2021
27d84bf
Merge branch 'v4.0-release' of https://github.com/usdot-jpo-ode/wzdx …
mark-mockett Dec 15, 2021
efbf06f
Remove outdated object diagram
j-d-b Dec 15, 2021
91cbfbf
Merge branch 'v4.0-release' of https://github.com/usdot-jpo-ode/wzdx …
j-d-b Dec 15, 2021
a98da6b
Unify enumerated type file titles
mark-mockett Dec 15, 2021
17ff0c5
Merge branch 'v4.0-release' of https://github.com/usdot-jpo-ode/wzdx …
mark-mockett Dec 15, 2021
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
57 changes: 57 additions & 0 deletions Creating_a_WZDx_Feed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Creating a WZDx Feed
This documents contains information to assist in creating a WZDx data feed, such as the feed format, business rules, and validation tools.

## Feed Format and File Type
WZDx feeds are formatted according to the [GeoJSON](https://geojson.org/) specification. The output of a WZDx feed is a GeoJSON document (a `.geojson` file) that contains a single [GeoJSON FeatureCollection](https://datatracker.ietf.org/doc/html/rfc7946#section-3.3) which includes information about the feed (see the [FeedInfo Object](/spec-content/objects/FeedInfo.md)) and a list of [GeoJSON Feature](https://datatracker.ietf.org/doc/html/rfc7946#section-3.2)s describing entities specific to the type of feed, such as work zones.

### Why GeoJSON?
GeoJSON is the file format of choice because:

- It is a lightweight data exchange format.
- It is easy for humans to read and write.
- It is easy for machines to parse and generate.
- The format is designed to exchange spatial data, which is a primary goal of the Work Zone Data Working Group.
- It is an open specification and does not carry licensing burdens.
- GeoJSON formatted-data is published as text files, so there is a low technological burden of entry.
- GeoJSON validation, mapping, and visualization tools already exist and will ease adoption by producers and consumers.

## Feed Content
WZDx defines the content and structure of several data feeds. Each feed is described by a single root object with many child objects. The output of a WZDx data feed is a GeoJSON file containing the feed object. WZDx defines the following feed objects:

- [WZDxFeed Object](/spec-content/objects/WZDxFeed.md): describes high-level information about work zone events ocurring on roadways (called "road events") that impact the characteristics of the roadway and involve a change from the default state (such as a lane closure). This is the original work zone data exchange feed and the only feed that WZDx defined until [version 4.0](https://github.com/usdot-jpo-ode/wzdx/releases/tag/v4.0).
- [RoadRestrictionFeed Object](/spec-content/objects/RoadRestrictionFeed.md): describes the location and details of restrictions on roadways.
- [SwzDeviceFeed Object](/spec-content/objects/SwzDeviceFeed.md): describes information (location, status, live data) about field devices deployed on the roadway in work zones.

*See the [/spec-content/README.md](/spec-content/README.md) for detailed information on all objects defined by WZDx.*

## Business Rules
The following business rules help assure a standardized and interpretable use of the WZDx specification. The specification describes the required structure and data fields to describe a work zone, whereas business rules are additional requirements for using the WZDx specification in a standard manner. Note that business rules are distinct from best practices in that the latter are suggestions and business rules are requirements.

### WZDxFeed (Work Zones) Business Rules
1. Each direction of travel must be represented by a separate road event. For example, if there is a work zone on a roadway with two lanes, each in an opposite travel direction (↑↓), each direction must be a separate road event.
2. Construction which requires alternating traffic flows within a lane must be represented with at least one road event in each direction. Similarly, roadways that during normal operation have an alternating flow of traffic direction based on time of day must be represented by at least one road event in each direction.
3. The preferred [GeoJSON Geometry](https://tools.ietf.org/html/rfc7946#page-7) for a [RoadEventFeature](/spec-content/objects/RoadEventFeature.md) is `LineString`, which allows indicating the full path of the road event. In cases where only the beginning and ending coordinates are available, the `MultiPoint` can be used.
4. A cascading multi-lane closure should consider the speed of vehicles traveling through the work zone. If the distance between lane closures is short enough that time in a to-be-closed lane is not significant, which is common, the to-be-closed lane should be represented as closed to avoid traffic delays and potential crashes.
5. A detour must be represented with a [RoadEvent](/spec-content/objects/RoadEvent.md) of type (i.e. with `event_type` of) `detour` and its containing [RoadEventFeature](/spec-content/objects/RoadEventFeature.md) should have a `geometry` of `type` `LineString` to represent the full detour route. The detour road event should be connected to the work zone road event using the `relationship` property on the detour road event.
6. If the `lanes` property on the [WorkZoneRoadEvent](/spec-content/objects/WorkZoneRoadEvent.md), [DetourRoadEvent](/spec-content/objects/DetourRoadEvent.md), or [RestrictionRoadEvent](/spec-content/objects/RestrictionRoadEvent.md) is provided, it must include one entry for every lane in the road event. Providing lane information for only some of the lanes in a road event is not allowed.

## Data Validation

### JSON Schemas
The WZDx Specification defines a JSON schema for each feed (WZDx v2.0 and later) within the [schemas](/schemas) directory. The repository contains schemas for the following feeds:

#### Current Version (4.0)
- [WZDx v4.0 WZDxFeed](/schemas/4.0/WZDxFeed.json)
- [WZDx v4.0 SwzDeviceFeed](/schemas/4.0/SwzDeviceFeed.json)
- [WZDx v4.0 RoadRestrictionFeed](/schemas/4.0/RoadRestrictionFeed.json)

#### Previous Versions
- [WZDx v2.0 WZDxFeed](/schemas/2.0/WZDxFeed.json)
- [WZDx v3.0 WZDxFeed](/schemas/3.0/WZDxFeed.json)
- [WZDx v3.1 WZDxFeed](/schemas/3.1/WZDxFeed.json)

### Self-Validation Checklist
For a list of steps to take to make sure your data feed conforms to the specification and is ready to publish, follow the [Self-Validation Checklist](/documents/WZDx_Data_Feed_Self-Validation_Checklist.docx).

### WZDx v1.1
To validate data feeds and measure compliance with the v1.1 specification, the GSA/18F team developed a [prototype data validation tool](https://github.com/18F/usdot-jpo-ode-workzone-data-exchange/wiki).
Loading