GET api/GetWinterRoadConditions
Returns all winter road conditions.
Request Information
https://511ny.org/api/getwinterroadconditions?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 |
---|---|---|---|
Condition | string |
None. |
|
AreaName | string |
None. |
|
LocationDescription | string |
None. |
|
RoadwayName | string |
None. |
|
Polyline |
Encoded poyline describing the geometry of the roadway segment. See: https://developers.google.com/maps/documentation/utilities/polylinealgorithm |
string |
None. |
LastUpdated | integer |
None. |
Response Formats
application/xml, text/xml
Sample:
<RoadCondition xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Condition>sample string 1</Condition> <AreaName>sample string 2</AreaName> <LocationDescription>sample string 3</LocationDescription> <RoadwayName>sample string 4</RoadwayName> <Polyline>sample string 5</Polyline> <LastUpdated>1</LastUpdated> </RoadCondition>
application/json, text/json
Sample:
{ "Condition": "sample string 1", "AreaName": "sample string 2", "LocationDescription": "sample string 3", "RoadwayName": "sample string 4", "Polyline": "sample string 5", "LastUpdated": 1 }