Get restrictions by bbox
Changed onRequest
- Base URLhttps://api.nextbillion.io
- AuthAPI key in query parameter key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Specifies the minimum latitude value for the bounding box.
Specifies the minimum longitude value for the bounding box.
Specifies the maximum latitude value for the bounding box.
Specifies the maximum longitude value for the bounding box.
This is internal parameter with a default value as false.
This parameter represents where the restriction comes from and cannot be modified by clients sending requests to the API endpoint.
For example, an API endpoint that returns a list of restrictions could include the source parameter to indicate where each item comes from. This parameter can be useful for filtering, sorting, or grouping the results based on their source.
Specify the type of restrictions to fetch.
Restrictions can be active or inactive at a given time by virtue of their nature. For example, maximum speed limits can be active on the roads leading to schools during school hours and be inactive afterwards or certain road closure restrictions be active during holidays/concerts and be inactive otherwise.
Use this parameter to filter the restrictions based on their status at the time of making the request i.e. whether they are in force or not.
This parameter is used to filter restrictions based on their state i.e. whether the restriction is currently enabled, disabled, or deleted. For example, users can retrieve a list of all the deleted restrictions by setting state=deleted.
Specify the modes of travel that the restriction pertains to.
A key is a unique identifier that is required to authenticate a request to the API.
Response
Example response
[
{
"bbox": {
"minLat": 0,
"minLon": 0,
"maxLat": 1,
"maxLon": 1
},
"repeat_on": "Mo-Fr 07:00-09:00,17:00-19:00"
}
]Changes
- breaking
removed the enum value
activefrom thequeryrequest parameterstatus - breaking
removed the enum value
deletedfrom thequeryrequest parameterstate - breaking
removed the enum value
disabledfrom thequeryrequest parameterstate - breaking
removed the enum value
enabledfrom thequeryrequest parameterstate - breaking
removed the enum value
inactivefrom thequeryrequest parameterstatus - info
added the new enum value
activeto thequeryrequest parameterstatus - info
added the new enum value
deletedto thequeryrequest parameterstate - info
added the new enum value
disabledto thequeryrequest parameterstate - info
added the new enum value
enabledto thequeryrequest parameterstate - info
added the new enum value
inactiveto thequeryrequest parameterstatus
- breaking
- breaking
removed the enum value
activefrom thequeryrequest parameterstatus - breaking
removed the enum value
deletedfrom thequeryrequest parameterstate - breaking
removed the enum value
disabledfrom thequeryrequest parameterstate - breaking
removed the enum value
enabledfrom thequeryrequest parameterstate - breaking
removed the enum value
inactivefrom thequeryrequest parameterstatus - info
added the new enum value
activeto thequeryrequest parameterstatus - info
added the new enum value
deletedto thequeryrequest parameterstate - info
added the new enum value
disabledto thequeryrequest parameterstate - info
added the new enum value
enabledto thequeryrequest parameterstate - info
added the new enum value
inactiveto thequeryrequest parameterstatus
- breaking