GET api/GetEvents

Returns all event types.

Request Information

https://www.i-traffic.co.za/api/getevents?key={key}&format={format}

URI Parameters

Api Call
NameDescriptionTypeAdditional information
key

string

Required

format

Valid values are xml or json.

string

Required

Response Information

Resource Description


Api Call
NameDescriptionTypeAdditional information
ID

string

None.

RegionName

string

None.

CountyName

string

None.

Severity

Describes the severity of the event with default value of Unknown.

string

None.

RoadwayName

string

None.

DirectionOfTravel

One of the following directions of travel: None, All Directions, Northbound, Eastbound, Southbound, Westbound, Inbound, Outbound, Both Directions.

string

None.

Description

A summary of the event details which often includes type of event, dates, and lanes affected.

string

None.

Location

Describes the location on the roadway where the event occurred.

string

None.

LanesAffected

Describes the lane or number of lanes affected by the event. For example: all lanes.

string

None.

LanesStatus

Describes the status of the lanes which are affected by the event. For example: closed.

string

None.

LcsEntries

Currently not used.

None.

NavteqLinkId

The Navteq link id on which this event occurrs.

string

None.

PrimaryLocation

Describes the starting point of the section of roadway which is affected by the event.

string

None.

SecondaryLocation

Describes the end point of the section of roadway which is affected by the event.

string

None.

FirstArticleCity

The city at the starting point of the section of roadway which is affected by the event. May also include an article; for example: between New York.

string

None.

SecondCity

The city at the end point of the section of roadway which is affected by the event.

string

None.

EventType

The type of event. One of accidentsAndIncidents, roadwork, specialEvents, closures, transitMode, generalInfo, winterDrivingIndex.

string

None.

EventSubType

A more detailed and descriptive event type. No fixed list of sub types.

string

None.

MapEncodedPolyline

A Google maps encoded polyline representing the coordinates of the roadway for EventType winterDrivingIndex

string

None.

LastUpdated

The date the events details were last updated. Format: dd/MM/yyyy HH:mm:ss.

string

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

PlannedEndDate

The date the event is expected to end. Format: dd/MM/yyyy HH:mm:ss.

string

None.

Reported

The date the event was reported. Format: dd/MM/yyyy HH:mm:ss.

string

None.

StartDate

The start date of the event. Format: dd/MM/yyyy HH:mm:ss.

string

None.

Response Formats

application/xml, text/xml

Sample:
<ArrayOfEvent xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Event>
    <LastUpdated>sample string 1</LastUpdated>
    <Latitude>2.1</Latitude>
    <Longitude>3.1</Longitude>
    <PlannedEndDate>sample string 4</PlannedEndDate>
    <Reported>sample string 5</Reported>
    <StartDate>sample string 6</StartDate>
    <ID>sample string 1</ID>
    <RegionName>sample string 2</RegionName>
    <CountyName>sample string 3</CountyName>
    <Severity>sample string 4</Severity>
    <RoadwayName>sample string 5</RoadwayName>
    <DirectionOfTravel>sample string 6</DirectionOfTravel>
    <Description>sample string 7</Description>
    <Location>sample string 8</Location>
    <LanesAffected>sample string 9</LanesAffected>
    <LanesStatus>sample string 10</LanesStatus>
    <LcsEntries>
      <LcsEntry />
      <LcsEntry />
    </LcsEntries>
    <NavteqLinkId>sample string 11</NavteqLinkId>
    <PrimaryLocation>sample string 12</PrimaryLocation>
    <SecondaryLocation>sample string 13</SecondaryLocation>
    <FirstArticleCity>sample string 14</FirstArticleCity>
    <SecondCity>sample string 15</SecondCity>
    <EventType>sample string 16</EventType>
    <EventSubType>sample string 17</EventSubType>
    <MapEncodedPolyline>sample string 18</MapEncodedPolyline>
  </Event>
  <Event>
    <LastUpdated>sample string 1</LastUpdated>
    <Latitude>2.1</Latitude>
    <Longitude>3.1</Longitude>
    <PlannedEndDate>sample string 4</PlannedEndDate>
    <Reported>sample string 5</Reported>
    <StartDate>sample string 6</StartDate>
    <ID>sample string 1</ID>
    <RegionName>sample string 2</RegionName>
    <CountyName>sample string 3</CountyName>
    <Severity>sample string 4</Severity>
    <RoadwayName>sample string 5</RoadwayName>
    <DirectionOfTravel>sample string 6</DirectionOfTravel>
    <Description>sample string 7</Description>
    <Location>sample string 8</Location>
    <LanesAffected>sample string 9</LanesAffected>
    <LanesStatus>sample string 10</LanesStatus>
    <LcsEntries>
      <LcsEntry />
      <LcsEntry />
    </LcsEntries>
    <NavteqLinkId>sample string 11</NavteqLinkId>
    <PrimaryLocation>sample string 12</PrimaryLocation>
    <SecondaryLocation>sample string 13</SecondaryLocation>
    <FirstArticleCity>sample string 14</FirstArticleCity>
    <SecondCity>sample string 15</SecondCity>
    <EventType>sample string 16</EventType>
    <EventSubType>sample string 17</EventSubType>
    <MapEncodedPolyline>sample string 18</MapEncodedPolyline>
  </Event>
</ArrayOfEvent>

application/json, text/json

Sample:
[
  {
    "LastUpdated": "sample string 1",
    "Latitude": 2.1,
    "Longitude": 3.1,
    "PlannedEndDate": "sample string 4",
    "Reported": "sample string 5",
    "StartDate": "sample string 6",
    "ID": "sample string 1",
    "RegionName": "sample string 2",
    "CountyName": "sample string 3",
    "Severity": "sample string 4",
    "RoadwayName": "sample string 5",
    "DirectionOfTravel": "sample string 6",
    "Description": "sample string 7",
    "Location": "sample string 8",
    "LanesAffected": "sample string 9",
    "LanesStatus": "sample string 10",
    "LcsEntries": [
      {},
      {}
    ],
    "NavteqLinkId": "sample string 11",
    "PrimaryLocation": "sample string 12",
    "SecondaryLocation": "sample string 13",
    "FirstArticleCity": "sample string 14",
    "SecondCity": "sample string 15",
    "EventType": "sample string 16",
    "EventSubType": "sample string 17",
    "MapEncodedPolyline": "sample string 18"
  },
  {
    "LastUpdated": "sample string 1",
    "Latitude": 2.1,
    "Longitude": 3.1,
    "PlannedEndDate": "sample string 4",
    "Reported": "sample string 5",
    "StartDate": "sample string 6",
    "ID": "sample string 1",
    "RegionName": "sample string 2",
    "CountyName": "sample string 3",
    "Severity": "sample string 4",
    "RoadwayName": "sample string 5",
    "DirectionOfTravel": "sample string 6",
    "Description": "sample string 7",
    "Location": "sample string 8",
    "LanesAffected": "sample string 9",
    "LanesStatus": "sample string 10",
    "LcsEntries": [
      {},
      {}
    ],
    "NavteqLinkId": "sample string 11",
    "PrimaryLocation": "sample string 12",
    "SecondaryLocation": "sample string 13",
    "FirstArticleCity": "sample string 14",
    "SecondCity": "sample string 15",
    "EventType": "sample string 16",
    "EventSubType": "sample string 17",
    "MapEncodedPolyline": "sample string 18"
  }
]



TRAFFIC ADVISORY
 
NIGHT-TIME LANE CLOSURES ON N2 MBOKODWENI RIVER BRIDGE
 
Pietermaritzburg, 2 May 2025 – The South African National Roads Agency SOC Ltd (SANRAL) wishes to inform road users of temporary night-time lane closures on the N2 between Joyner Road and Moss Kolnik Drive as part of the emergency repair work on the Mbokodweni River Bridge.
 
The lane closures will affect the N2 Northbound and Southbound carriageways alternately, and will be implemented according to the following schedule.
 
N2 Northbound:
Traffic will be diverted via the Moss Kolnik Drive offramp
·       Monday, 5 May 2025 from 22:00 to 05:00
·       Tuesday, 6 May 2025 from 22:00 to 05:00
·       Wednesday, 7 May 2025 from 22:00 to 05:00
 
N2 Southbound:
Traffic will be diverted via the Joyner Road offramp
·       Thursday, 8 May 2025 from 22:00 to 05:00
·       Friday, 9 May 2025 from 22:00 to 05:00
·       Saturday, 10 May 2025 from 22:00 to 05:00
 
“These essential repairs are being carried out to ensure the long-term safety and structural integrity of the Mbokodweni River Bridge. We are committed to completing the work with minimal disruption and therefore encourage motorists to plan their routes accordingly and allow for additional travel time.” said SANRAL’s Kwa-Zulu Natal Provincial Project Manager, Serisha Sukraj.
 
“We appeal to all road users to observe traffic signage, adhere to speed limits, and remain vigilant when approaching and driving through the construction zone. SANRAL apologises for any inconvenience caused and thanks the public for their cooperation as we work to preserve critical transport infrastructure” said Sukraj.
 
______________________________________________________________________________For editorial content or additional information contact Lwando Mahlasela on 082 440 4305 pressoffice@nra.co.za



Sanral, Western Cape Gov and City of Cape Town Logos