Reference for http://data.goteborg.se/TrafficInformationService/v1.1/Situations/{APPID}?latitude={LATITUDE}&longitude={LONGITUDE}&radius={RADIUS}&format={FORMAT}&severityCodes={SEVERITYCODES}

Return current situations

Url: http://data.goteborg.se/TrafficInformationService/v1.1/Situations/{APPID}?latitude={LATITUDE}&longitude={LONGITUDE}&radius={RADIUS}&format={FORMAT}&severityCodes={SEVERITYCODES}

HTTP Method: GET

This operation supports JSONP responses. The callback function can be specified using the "callback" Url query parameter.

Message direction Format Body
Request N/A The Request body is empty.
Response Xml Example,Schema
Response Json Example

The following is an example response Xml body:

<Situations xmlns="TK.DevServer.Services.TrafficInformationService">
  <Situation>
    <CountryCode>String content</CountryCode>
    <Id>String content</Id>
    <Deviation>
      <CountyNo>2147483647</CountyNo>
      <Creator>String content</Creator>
      <StartTime>1999-05-31T11:20:00</StartTime>
      <EndTime>1999-05-31T11:20:00</EndTime>
      <Header>String content</Header>
      <Geometry>
        <SWEREF99TM>String content</SWEREF99TM>
        <WGS84>String content</WGS84>
      </Geometry>
      <Message>String content</Message>
      <MessageCode>String content</MessageCode>
      <MessageCodeValue>String content</MessageCodeValue>
      <MessageType>String content</MessageType>
      <MessageTypeValue>String content</MessageTypeValue>
      <SeverityCode>32767</SeverityCode>
      <SeverityText>String content</SeverityText>
      <LocationDescriptor>String content</LocationDescriptor>
      <Lat>1.26743233E+15</Lat>
      <Long>1.26743233E+15</Long>
      <VersionTime>1999-05-31T11:20:00</VersionTime>
      <CreationTime>1999-05-31T11:20:00</CreationTime>
      <TrafficRestrictionType>String content</TrafficRestrictionType>
      <Schedule>
        <EndOfPeriod>1999-05-31T11:20:00</EndOfPeriod>
        <StartOfPeriod>1999-05-31T11:20:00</StartOfPeriod>
        <RecurringTimePeriodOfDay>
          <Start>String content</Start>
          <End>String content</End>
        </RecurringTimePeriodOfDay>
      </Schedule>
    </Deviation>
  </Situation>
  <Situation>
    <CountryCode>String content</CountryCode>
    <Id>String content</Id>
    <Deviation>
      <CountyNo>2147483647</CountyNo>
      <Creator>String content</Creator>
      <StartTime>1999-05-31T11:20:00</StartTime>
      <EndTime>1999-05-31T11:20:00</EndTime>
      <Header>String content</Header>
      <Geometry>
        <SWEREF99TM>String content</SWEREF99TM>
        <WGS84>String content</WGS84>
      </Geometry>
      <Message>String content</Message>
      <MessageCode>String content</MessageCode>
      <MessageCodeValue>String content</MessageCodeValue>
      <MessageType>String content</MessageType>
      <MessageTypeValue>String content</MessageTypeValue>
      <SeverityCode>32767</SeverityCode>
      <SeverityText>String content</SeverityText>
      <LocationDescriptor>String content</LocationDescriptor>
      <Lat>1.26743233E+15</Lat>
      <Long>1.26743233E+15</Long>
      <VersionTime>1999-05-31T11:20:00</VersionTime>
      <CreationTime>1999-05-31T11:20:00</CreationTime>
      <TrafficRestrictionType>String content</TrafficRestrictionType>
      <Schedule>
        <EndOfPeriod>1999-05-31T11:20:00</EndOfPeriod>
        <StartOfPeriod>1999-05-31T11:20:00</StartOfPeriod>
        <RecurringTimePeriodOfDay>
          <Start>String content</Start>
          <End>String content</End>
        </RecurringTimePeriodOfDay>
      </Schedule>
    </Deviation>
  </Situation>
</Situations>

The following is an example response Json body:

[{
	"CountryCode":"String content",
	"Id":"String content",
	"Deviation":{
		"CountyNo":2147483647,
		"Creator":"String content",
		"StartTime":"\/Date(928142400000+0200)\/",
		"EndTime":"\/Date(928142400000+0200)\/",
		"Header":"String content",
		"Geometry":{
			"SWEREF99TM":"String content",
			"WGS84":"String content"
		},
		"Message":"String content",
		"MessageCode":"String content",
		"MessageCodeValue":"String content",
		"MessageType":"String content",
		"MessageTypeValue":"String content",
		"SeverityCode":32767,
		"SeverityText":"String content",
		"LocationDescriptor":"String content",
		"Lat":1.26743233E+15,
		"Long":1.26743233E+15,
		"VersionTime":"\/Date(928142400000+0200)\/",
		"CreationTime":"\/Date(928142400000+0200)\/",
		"TrafficRestrictionType":"String content",
		"Schedule":{
			"EndOfPeriod":"\/Date(928142400000+0200)\/",
			"StartOfPeriod":"\/Date(928142400000+0200)\/",
			"RecurringTimePeriodOfDay":{
				"Start":"String content",
				"End":"String content"
			}
		}
	}
}]

The following is the response Xml Schema:

<xs:schema xmlns:tns="TK.DevServer.Services.TrafficInformationService" elementFormDefault="qualified" targetNamespace="TK.DevServer.Services.TrafficInformationService" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="Situations">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Situation" nillable="true" type="tns:Situation" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Situations" nillable="true" type="tns:Situations" />
  <xs:complexType name="Situation">
    <xs:sequence>
      <xs:element minOccurs="0" name="CountryCode" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Id" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Deviation" nillable="true" type="tns:Deviation">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Situation" nillable="true" type="tns:Situation" />
  <xs:complexType name="Deviation">
    <xs:sequence>
      <xs:element minOccurs="0" name="CountyNo" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Creator" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="StartTime" type="xs:dateTime">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="EndTime" type="xs:dateTime">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Header" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Geometry" nillable="true" type="tns:GeometryFields">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Message" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="MessageCode" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="MessageCodeValue" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="MessageType" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="MessageTypeValue" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="SeverityCode" nillable="true" type="xs:short">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="SeverityText" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="LocationDescriptor" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Lat" type="xs:double">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Long" type="xs:double">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="VersionTime" type="xs:dateTime">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="CreationTime" type="xs:dateTime">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="TrafficRestrictionType" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Schedule" nillable="true" type="tns:ScheduleFields">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Deviation" nillable="true" type="tns:Deviation" />
  <xs:complexType name="GeometryFields">
    <xs:sequence>
      <xs:element minOccurs="0" name="SWEREF99TM" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="WGS84" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="GeometryFields" nillable="true" type="tns:GeometryFields" />
  <xs:complexType name="ScheduleFields">
    <xs:sequence>
      <xs:element minOccurs="0" name="EndOfPeriod" type="xs:dateTime">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="StartOfPeriod" type="xs:dateTime">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="RecurringTimePeriodOfDay" nillable="true" type="tns:PeriodOfDayFields">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ScheduleFields" nillable="true" type="tns:ScheduleFields" />
  <xs:complexType name="PeriodOfDayFields">
    <xs:sequence>
      <xs:element minOccurs="0" name="Start" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="End" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="PeriodOfDayFields" nillable="true" type="tns:PeriodOfDayFields" />
</xs:schema>

Additional response Xml Schemas:

<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="anyType" nillable="true" type="xs:anyType" />
  <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
  <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
  <xs:element name="boolean" nillable="true" type="xs:boolean" />
  <xs:element name="byte" nillable="true" type="xs:byte" />
  <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
  <xs:element name="decimal" nillable="true" type="xs:decimal" />
  <xs:element name="double" nillable="true" type="xs:double" />
  <xs:element name="float" nillable="true" type="xs:float" />
  <xs:element name="int" nillable="true" type="xs:int" />
  <xs:element name="long" nillable="true" type="xs:long" />
  <xs:element name="QName" nillable="true" type="xs:QName" />
  <xs:element name="short" nillable="true" type="xs:short" />
  <xs:element name="string" nillable="true" type="xs:string" />
  <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
  <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
  <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
  <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
  <xs:element name="char" nillable="true" type="tns:char" />
  <xs:simpleType name="char">
    <xs:restriction base="xs:int" />
  </xs:simpleType>
  <xs:element name="duration" nillable="true" type="tns:duration" />
  <xs:simpleType name="duration">
    <xs:restriction base="xs:duration">
      <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
      <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
      <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="guid" nillable="true" type="tns:guid" />
  <xs:simpleType name="guid">
    <xs:restriction base="xs:string">
      <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:attribute name="FactoryType" type="xs:QName" />
  <xs:attribute name="Id" type="xs:ID" />
  <xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>

<tns:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.w3.org/2001/XMLSchema">
  <tns:element name="schema">
    <tns:complexType />
  </tns:element>
</tns:schema>