Skip to content

Paths ​

A path is a single road in the Service Road Atlas — its geometry, name, and any point features along it (gates, bridges, impasses, and so on). You'll use these endpoints to look up a specific road by ID or prefetch a region of roads for an offline map.

Fetch a single path ​

GET /api/integrations/v1/paths/{id}
Authorization: Bearer <access token>

Scope required: bulletins:read.

Response ​

Returns a GeoJSON FeatureCollection describing the road geometry and its point features. Each path contributes:

  • One MultiLineString feature for the road itself, split into one sub-line per current condition segment. The sub-lines are ordered from the start of the road to the end, and adjacent sub-lines share their boundary coord. The conditions property is an array of condition names aligned to the sub-lines (conditions[i] applies to sub-line i); each condition applies to the segment leading into its sub-line's final coordinate.
  • Zero or more Point features for the path's gates, bridges, and other features. Every Point in the response belongs to the requested road.

Condition values are one of NOMINAL, DEGRADED, HEAVILY_DEGRADED, IMPASSABLE, or UNKNOWN. A trailing UNKNOWN entry is emitted when the road continues past the last known condition change. Flatten the sub-lines (dropping duplicated seam coordinates) to recover the full path coordinate list.

json
{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "geometry": {
        "type": "MultiLineString",
        "coordinates": [
          [[-127.67656, 50.30011], [-127.67570, 50.30015], [-127.67480, 50.30019]],
          [[-127.67480, 50.30019], [-127.67400, 50.30020], [-127.67211, 50.30021]]
        ]
      },
      "properties": {
        "id": "6530bb9f...",
        "name": "Example Forest Service Road",
        "length": 5125,
        "closureStatus": "ACTIVE",
        "lastConditionUpdate": 1710000121111,
        "conditions": ["NOMINAL", "DEGRADED"]
      }
    },
    {
      "type": "Feature",
      "geometry": {
        "type": "Point",
        "coordinates": [-127.67400, 50.30015]
      },
      "properties": {
        "id": "abc123",
        "name": "BRIDGE_IN",
        "displayName": "Bridge In",
        "description": "Bridge was in good condition",
        "lastUpdatedAt": 171231229000
      }
    }
  ]
}

For each path feature, a separate point is made available in the FeatureCollection. The allowed types are:

WARNING, IMPASSE, BYPASS, BRIDGE_IN, BRIDGE_OUT, BRIDGE_UNKNOWN, FOOT_BRIDGE, OPEN_GATE, LOCKED_GATE, POTENTIAL_GATE, HYDROPOWER_STATIONMANAGED_OPEN_GATE and MANAGED_LOCKED_GATE

Errors ​

StatustypeWhen
404#not-foundNo path with that ID exists.

Service Road Atlas API documentation