Data Structures
ESR
ESR Data Structure
- refnum (string) - this is made up of a route specific prefix, a three digit incremental counter, plus the two digit year
- speed (object) - "Freight Speed / Passenger Speed" - single number if both are same, units and unrestricted line speed
- route (object) - all properties of the route- du (object) - responsible Delivery Unit
- elr (object) - ELR of track segment impacted e.g. LTN1
- lor (object) - LOR properties
- location (string) - description of where the restriction is applied
- reason (object) - describes reason the ESR is imposed
- withdrawn (bool) - 0 = active, 1 = withdrawn
- whenimposed (string) - W3C format date time string, updated during amendment
- etc (null|string) - if set this is a W3C format date time string
- whenwithdrawn (null|string) - if withdrawn === 1, W3C format date time string
- lines (array) - object for each "line". A "line" is the combination of ELR + TrackID
- elr (object) - as above
- trackId (int) - e.g. 1100 = Up Main
- direction (string) - "Up Direction" | "Down Direction" (yuk)
- linedescription (string) - can be driven by trackId or overridden by Controller
- routeheader (string) - "Primary Line" | "Additional Line"
- boards (array)
- type (string) - short name (no spaces)
- description (string) - long name
- elrId (int) - copied from line
- trackId (int) - copied from line
- miles (int) -
- chains (int) - 0 >= X < 80
- serialNumber (string) - not currently used
- marker (GeoJSON)
- references (object)
- updated_at - time of last database change
Example Response