HTTP GET URL Format
The following format is used for HTTP GET requests. This HTTP GET operation is used to list all the persistent updates for a specified routing database resource.
HTTP GET: /rest/Spatial/erm/databases/dbsource/persistentUpdates.json
Where dbsource is the name of the database that contains the persistent updates to remove. Use the database name specified in the Spectrum Spatial Routing Database Resource tool.
Query Parameters
This operation takes the following query parameter.
Parameter | Type | Required | Description |
---|---|---|---|
velocityUnit | String | no |
The updates saved in the server will be returned in this specified unit. If this parameter is not mentioned, response will be returned in default unit. For speed updates, the velocity unit can have one of the following values: mph (miles per hour), kph (kilometers per hour), mtps (meters per second), and mtpm (meters per minute). The default value is mph. |
Example
Return a list of updates for the US_NE routing database resource.
http://<server>:<port>/rest/Spatial/erm/databases/US_NE/persistentUpdates.json
Response
{
"roadTypeUpdates":
[
{
"roadType": "major road dense urban",
"speed":
{
"velocity": 90,
"velocityUnit": "MPH"
}
}
],
"segmentUpdates":
[
{
"exclude": true,
"roadType": "major road dense urban",
"segmentID": "c75994cc:12d916",
"speed":
{
"velocity": 65,
"velocityUnit": "MPH"
}
},
{
"exclude": true,
"roadType": "major road dense urban",
"segmentID": "7ac5401f:6b1bf7",
"speed":
{
"velocity": 65,
"velocityUnit": "MPH"
}
}
]
}
When velocity unit parameter is specified in kph.
http://<server>:<port>/rest/Spatial/erm/databases/<database_name>/persistentUpdates.json?velocityUnit=kph
Response
{
"roadTypeUpdates": [{
"roadType": "major road dense urban",
"speed": {
"velocity": 145,
"velocityUnit": "KPH"
}
}]
}