opengeospatial / ogcapi-routes

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

add restrictions #65

Open thanchevici opened 1 year ago

thanchevici commented 1 year ago

Obstacles class is not rich enough for a couple of use cases:

Suggestion

{
   "restrictions":{
      "items":[
         {
            "type":"Polygon",
            "mode":"DO_NOT_ENTER",
            "start_time":"2022-02-24T13:00:00Z",
            "end_time":"2022-02-24T18:00:00Z",
            "coordinates":[
               [
                  [
                     [
                        -77.073211,
                        38.9023888
                     ],
                     [
                        -77.049522,
                        38.9023888
                     ],
                     [
                        -77.049522,
                        38.9104038
                     ],
                     [
                        -77.073211,
                        38.9104038
                     ],
                     [
                        -77.073211,
                        38.9023888
                     ]
                  ]
               ]
            ]
         },
         {
            "type":"Polygon",
            "mode":"DO_NOT_LEAVE",
            "coordinates":[
               [
                  [
                     [
                        -78.073211,
                        37.9023888
                     ],
                     [
                        -78.049522,
                        37.9023888
                     ],
                     [
                        -78.049522,
                        37.9104038
                     ],
                     [
                        -78.073211,
                        37.9104038
                     ],
                     [
                        -78.073211,
                        37.9023888
                     ]
                  ]
               ]
            ]
         }
      ]
   }
}
{
   "restrictions":{
      "items":[
         {
            "type":"Polygon",
            "mode":"OVERRIDE",
            "start_time":"2022-02-24T13:00:00Z",
            "end_time":"2022-02-24T18:00:00Z",
            "coordinates":[
               [
                  [
                     [
                        -77.073211,
                        38.9023888
                     ],
                     [
                        -77.049522,
                        38.9023888
                     ],
                     [
                        -77.049522,
                        38.9104038
                     ],
                     [
                        -77.073211,
                        38.9104038
                     ],
                     [
                        -77.073211,
                        38.9023888
                     ]
                  ]
               ]
            ]
         },
         {
            "type":"Polygon",
            "mode":"DO_NOT_ENTER",
            "start_time":"2022-02-24T13:00:00Z",
            "coordinates":[
               [
                  [
                     [
                        -78.073211,
                        37.9023888
                     ],
                     [
                        -78.049522,
                        37.9023888
                     ],
                     [
                        -78.049522,
                        37.9104038
                     ],
                     [
                        -78.073211,
                        37.9104038
                     ],
                     [
                        -78.073211,
                        37.9023888
                     ]
                  ]
               ]
            ]
         }
      ]
   }

The server will report if it supports override restrictions

Thank you Teodor

cportele commented 1 year ago

Maybe remove the "obstacles" requirements class from version 1.0 and take the time to discuss a proper "restrictions" requirements class either in a version 1.1 or another part?

cportele commented 1 year ago

Meeting 2022-11-22: This more general approach makes sense, but will likely require more discussion and probably testing before we can finalize this. We will remove the "Obstacles" requirements class from version 1.0 and take the time to discuss a proper "Restrictions" requirements class in a version 1.1 with priority.

thanchevici commented 1 year ago

Everyone: I discussed internally and there is more feedback with respect of restrictions. All these come from practical use cases: