FOR OFFICIAL USE ONLY (FOUO) UNCLASSIFIED CONTROLLED INFORMATION (UCI)
UCI/FOUO may be distributed only after permission of the public information officer and the regional records access officer has granted and identified the recipient(s) and use of information. Mark conspicuously each part of an electronically transmitted message that contains UCI/FOUO information.

GET api/GetWinterRoadConditions

Returns all winter road conditions.

Request Information

https://511ny.org/api/getwinterroadconditions?key={key}&format={format}

URI Parameters

Api Call
NameDescriptionTypeAdditional information
key

Developer Key.

string

Required

format

Valid values are xml or json.

string

Required

Response Information

Resource Description


Api Call
NameDescriptionTypeAdditional information
Condition

Represents the condition of the winter road condition.

string

None.

AreaName

Area name.

string

None.

LocationDescription

A description of the location that is affected. Often described as from one road to another.

string

None.

RoadwayName

The roadway which this condition affects.

string

None.

Polyline

Encoded poyline describing the geometry of the roadway segment. See: https://developers.google.com/maps/documentation/utilities/polylinealgorithm

string

None.

LastUpdated

The date the condition's details were last updated in Unix time. See: https://en.wikipedia.org/wiki/Unix_time

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
}