opengeospatial / ogcapi-routes

public repo for OGC API - Routes Standards Working Group
Other
10 stars 3 forks source link

Should duration be optional? #35

Closed cportele closed 2 years ago

cportele commented 2 years ago

Currently "duration" is, like "length", mandatory in the route overview and each route segment. This makes sense for length, since there is always a geometry. However, computing realistic durations may not always be necessary or straightforward. If we keep "duration" as a mandatory attribute, this will likely result in not-very-useful values in cases where a routing engine would normally not compute a duration (like a constant value multiplied by the length). It would be clearer to make the duration optional in the REM.

skyNacho commented 2 years ago

I've been thinking about this for a while to figure out whether duration is an inner property of a route or just optional. This is more about what the majority of people consider a route is, not what we might feel should be included. So I looked at the definitions in different languages:

No definition mentions duration or time. The Spanish definition even considers it a synonym to road. I am now in favor of making it optional.

cportele commented 2 years ago

Meeting 2021-12-09: Make duration optional, but strongly recommend, to provide an estimated duration for each segment / the total route.