Generate NDM Network Buffer in database
post
https://localhost:7011/chrest/v1/analysis/networkbuffer
Generate NDM Network Buffer in database. Network Buffer tables will be saved in the database where the Contraction Hierarchy is created.
Request
Query Parameters
-
bufferCenter(required): array[string]
one or multiple buffer centers in PointOnNet format (nodeId or linkId@percentage)Examples
-
bufferName(required): string
name prefix of network buffer tables in databaseExample:
SF
-
chName(required): string
name of generated contraction hierarchy networkExample:
sample
-
cost(required): number
covered range from or to the buffer centerExample:
600
-
costIndex: integer
optional index of link cost columnsExample:
1
-
direction: string
Direction from buffer center. FORWARD indicates that buffer centers are starting points. BACKWARD indicates buffer centers are destinations. The value is FORWARD by default.Allowed Values:
[ "FORWARD", "BACKWARD" ]
Example:FORWARD
-
overwrite: boolean
drop tables if exists before creation or append to existed tablesExample:
false
There's no request body for this operation.
Back to TopResponse
201 Response
network buffer created in database
400 Response
invalid input
Examples
The following example shows how to generate network buffer in forward direction of one buffer center using primary contraction hiearchy sample in database.
curl -v -X POST "https://localhost:7011/chrest/v1/analysis/networkbuffer?chName=sample&costIndex=0&bufferName=SF_&bufferCenter=-24579055@0.5&cost=600"
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 201 Created Date: Tue, 14 Jan 2020 18:35:41 GMT