Get All Updates - Spectrum_Routing_for_Big_Data - 3.0

Global Routing SDK Developer Guide

Product type
Software
Portfolio
Locate
Product family
Spectrumâ„¢ software
Product
Spatial Big Data > Routing for Big Data
Version
3.0
ft:locale
en-US
Product name
Routing for Big Data
ft:title
Global Routing SDK Developer Guide
Copyright
2024
First publish date
2007
ft:lastEdition
2024-10-15
ft:lastPublication
2024-10-15T10:39:39.482000

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: /webApp-context/services/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 Database Resource tool.

Query Parameters

This operation takes the following query parameter:

Parameter Type Required Description
velocityUnit String No Specifies that 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 where mph is the default value:
  • mph (miles per hour)
  • kph (kilometers per hour)
  • mtps (meters per second)
  • mtpm (meters per minute)
version String No Specifies the version of the RoadTypePointUpdates REST service. Valid values are 1 and 2.

Examples

Return a list of updates for the US_NE routing database resource.

http://<server>:<port>/<webApp-context>/services/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>/<webApp-context>/services/databases/<database_name>/
     persistentUpdates.json?velocityUnit=kph

Response

{
 "roadTypeUpdates": [{
   "roadType": "major road dense urban", 
   "speed": {
    "velocity": 145, 
    "velocityUnit": "KPH"
   }
  }
 ]
}