Get All Updates - web_services - 23.1

Spectrum Web Services Guide

Product type
Software
Portfolio
Integrate
Product family
Spectrum
Product
Spectrum > Web Services
Version
23.1
Language
English
Product name
Spectrum Technology Platform
Title
Spectrum Web Services Guide
First publish date
2007
Last updated
2024-10-17
Published on
2024-10-17T00:33:46.811413

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"
		}
	}]
}