GET api/GetRoadways
Returns all roadway names.
Request Information
https://www.i-traffic.co.za/api/getroadways?key={key}&format={format}
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| key | string |
Required |
|
| format |
Valid values are xml or json. |
string |
Required |
Response Information
Resource Description
| Name | Description | Type | Additional information |
|---|---|---|---|
| RoadwayName | string |
None. |
|
| SortOrder | integer |
None. |
Response Formats
application/xml, text/xml
Sample:
<ArrayOfRoadway xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Roadway>
<RoadwayName>sample string 1</RoadwayName>
<SortOrder>1</SortOrder>
</Roadway>
<Roadway>
<RoadwayName>sample string 1</RoadwayName>
<SortOrder>1</SortOrder>
</Roadway>
</ArrayOfRoadway>
application/json, text/json
Sample:
[
{
"RoadwayName": "sample string 1",
"SortOrder": 1
},
{
"RoadwayName": "sample string 1",
"SortOrder": 1
}
]