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.
datetime
url parameter?datetime=2025-01-02T00:00:00Z
?datetime=2025-01-02T00:00:00Z/2025-02-02T00:00:00Z
?datetime=../2025-01-02T00:00:00Z
?datetime=2025-01-02T00:00:00Z/..
StartColumn
andEndColumn
are found, it will filter by time range overlapInstantColumn
is contained in the range/demo
)Spec Used:
.15.4. Parameter datetime
Requirement 24
/req/core/fc-time-definition
A
The operation SHALL support a parameter datetime with the following characteristics (using an OpenAPI Specification 3.0 fragment):
name: datetime
in: query
required: false
schema:
type: string
style: form
explode: false
Requirement 25
/req/core/fc-time-response
A
Only features that have a temporal geometry that intersects the temporal information in the datetime parameter SHALL be part of the result set, if the parameter is provided.
B
If a feature has multiple temporal properties, it is the decision of the server whether only a single temporal property is used to determine the extent or all relevant temporal properties.
C
The datetime parameter SHALL match all features in the collection that are not associated with a temporal geometry, too.
D
Temporal geometries are either a date-time value or a time interval. The parameter value SHALL conform to the following syntax (using ABNF):
interval-closed = date-time "/" date-time
interval-open-start = [".."] "/" date-time
interval-open-end = date-time "/" [".."]
interval = interval-closed / interval-open-start / interval-open-end
datetime = date-time / interval
E
The syntax of date-time is specified by RFC 3339, 5.6.
F
Open ranges in time intervals at the start or end are supported using a double-dot (..) or an empty string for the start/end.
"Intersects" means that the time (instant or interval) specified in the parameter datetime includes a timestamp that is part of the temporal geometry of the feature (again, a time instant or interval). For time intervals this includes the start and end time.
NOTE
ISO 8601-2 distinguishes open start/end timestamps (double-dot) and unknown start/end timestamps (empty string). For queries, an unknown start/end has the same effect as an open start/end.
Example 6. A date-time
February 12, 2018, 23:20:52 UTC:
datetime=2018-02-12T23%3A20%3A52Z
For features with a temporal property that is a timestamp (like lastUpdate in the building features), a date-time value would match all features where the temporal property is identical.
For features with a temporal property that is a date or a time interval, a date-time value would match all features where the timestamp is on that day or within the time interval.
Example 7. Intervals
February 12, 2018, 00:00:00 UTC to March 18, 2018, 12:31:12 UTC:
datetime=2018-02-12T00%3A00%3A00Z%2F2018-03-18T12%3A31%3A12Z
February 12, 2018, 00:00:00 UTC or later:
datetime=2018-02-12T00%3A00%3A00Z%2F.. or datetime=2018-02-12T00%3A00%3A00Z%2F
March 18, 2018, 12:31:12 UTC or earlier:
datetime=..%2F2018-03-18T12%3A31%3A12Z or datetime=%2F2018-03-18T12%3A31%3A12Z
For features with a temporal property that is a timestamp (like lastUpdate in the building features), a time interval would match all features where the temporal property is within the interval.
For features with a temporal property that is a date or a time interval, a time interval would match all features where the values overlap.
A template for the definition of the parameter in YAML according to OpenAPI 3.0 is available at datetime.yaml.