This is a legacy API. See new API here
The INRIX Traffic and Road Speed Service gives users relevant information to help them save time, reduce frustration, and give them the critical insights to make better decisions while on the road.
Overview
The INRIX Traffic Service provides information on road speed, both current and predicted. It can also provide a combination of both road speed and incident information.
Although INRIX provides functionality such as traffic tiles and routing, you may decide that you need to create that functionality yourself so that you can display it however you like. The main usage scenarios for road speeds are:
- Custom graphical representations of traffic on maps
- Custom routing algorithms, including finding bottlenecks to route around
- Custom calculation of drive times
- Using average speeds for general traffic analysis
Description: Retrieves road speed and congestion data for a specified region.
/?Action=GetSegmentSpeedinBox
GET Get roadspeed and congestion data for specified rectangular region
Parameters
= requiredName | Located In | Type | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
action | Query | String | Use getSegmentSpeedinBox | ||||||||||||||
token | Query | String | A valid authorization token returned in response to a GetSecurityToken request. | ||||||||||||||
corner1 | Path | String | The first corner of the region in which to get data. This parameter must be specified as a pair of latitude and longitude values separated by a pipe character (|), in the form Corner1=latitude|longitude. The latitude and longitude values are expressed using the WGS 84 datum. Northern latitudes are positive and southern latitudes are negative. Eastern hemisphere longitudes are positive and western hemisphere longitudes are negative. Longitudes in North America are negative. The corner specified by the Corner1 parameter can be any of the four corners of the bounding rectangle. | ||||||||||||||
corner2 | Path | String | The second corner of the region in which to get data. The Corner2 parameter is the geometric opposite of Corner1. | ||||||||||||||
SpeedOutputFields | Query | String | The traffic speed fields to be returned in the response. This parameter can specify a single field, or multiple fields in a comma-separated list such as “Reference,Speed”. If this SpeedOutputFields is not specified, all the fields are returned. | ||||||||||||||
|
|||||||||||||||||
SpeedFilter | Query | Integer | This parameter specifies the only speeds that should be shown are those speeds where the change is more or less than the percentage difference specified from the average speed. For example, SpeedFilter=10 returns speeds that are 10% +/- the Average speed. A negative value has the same result as a positive value (e.g. SpeedFilter=-10 is the same as SpeedFilter=10). If this parameter is not specified, no filter is applied. | ||||||||||||||
StartTime | Query | Datetime | The expected traffic at this time. The default is the current time. All times should be in UTC or have the timezone offset as specified in DateTime Values. | ||||||||||||||
Duration | Query | String | The duration, in minutes, for which to return traffic data in the specified intervals. Duration should be specified as a multiple of 5. For example, a Duration parameter of 120 and an Interval parameter of 30 will return results for the current time, as well as forecasts on the hour and half-hour, for up to 120 minutes from the current time. The default value is 0, which means real-time traffic data only. | ||||||||||||||
Interval | Query | Integer | The period of time in minutes between reports when the duration parameter is non-zero. The first set of data in the response will have the real-time timestamp. The timestamp for subsequent sets will have a minute value that is a multiple of the interval value. For example, an interval value of 30 specifies data sets on the hour and 30 minutes past the hour. The interval parameter is used in conjunction with the duration parameter. | ||||||||||||||
|
|||||||||||||||||
FRCLevel | Query | String | The Functional Road Classification code of the Segments to report. Multiple codes can be specified in a comma-delimited list. | ||||||||||||||
|
|||||||||||||||||
Units | Query | Integer | Use 0 for English units, 1 for metric. Default is 0. | ||||||||||||||
Resolution | Query | Integer | If resolution is specified, the speed of sub-segment is returned for a subsegment length which closely matches the value provided for the Resolution parameter which is in meters. The sub-segment is specified in terms of offsets. The length of the sub-segment will be based on the resolution specified. The default is 0, which means "full resolution" or one section per segment. Sub-segments are only returned if the sub-segment speed is more than 5 mph different from the speed on the overall segment. | ||||||||||||||
Coverage | Query | Integer | Indicates the type of coverage to return - core or extended. The default is specified per vendor. | ||||||||||||||
|
|||||||||||||||||
SpeedBucketID | Query | Integer | A speed bucket is a range of speeds or percentages that is used to categorize Segment data. All speed buckets are identified by a unique number called a speedbucketID. Default is to use the INRIX default speed bucket ID (id=1) which is described in the CreateSpeedBucket api . Custom speed buckets can be defined by using the CreateSpeedBucket API. | ||||||||||||||
Format | Query | String | The format of the response in either XML or JSON. Default is XML. | ||||||||||||||
SpeedBucketOutputFilter | Query | String | A comma-delimited list of bytes specifying which speed bucket numbers to be included in the response. Multiple speed buckets can be specified. The number of speed buckets available to be filtered is dependent on the number of speed buckets returned from calls to CreateSpeedBucket. A value of 255 returns only closures. | ||||||||||||||
|
|||||||||||||||||
RoadSegmentType | Query | String | This indicates the type of Segment to return. If RoadSegmentType is not specified, INRIX XD Segments (XDS) are returned. Multiple RoadSegmentTypes can be specified in a call as a comma separated ordered list and the ordering matters. For instance, if “TMC,XDS” is specified, TMCs will be returned for all TMC-defined road segments, and INRIX XD Segments will be returned for additional road segments not defined by the TMC Table and where traffic coverage is available. If “XDS,TMC” is specified then XD Segments will be returned where available, else TMC segments would be returned. However as XD segments in general cover all TMC locations this call would return only XD Segments. | ||||||||||||||
|
Requests
Example GetSegmentSpeedInBox request
Queryhttp://{serverPath}.INRIX.com/traffic/Inrix.ashx?Action=GetSegmentSpeedInBox&token={tokenhere}&Corner1=47.639|-122.236&Corner2=47.634|-122.232&Duration=0&RoadSegmentType=TMC,XDS&Units=1&Resolution=250&format=json
Responses
200 Success
Response Elements
Property | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
segmentSpeeds | Array | A collection of traffic data for a specified point in time | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
/?Action=GetSegmentSpeedinRadius
GET Get roadspeed and congestion data for specified circular region
Parameters
= requiredName | Located In | Type | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
action | Query | String | Use getSegmentSpeedinRAdius | ||||||||||||||
token | Query | String | A valid authorization token returned in response to a GetSecurityToken request. | ||||||||||||||
center | Path | String | The center of the region in which to get data. This parameter must be specified as a pair of latitude and longitude values separated by a pipe character (|), in the form Center=”latitude|longitude”. Northern latitudes are positive and southern latitudes are negative. Eastern hemisphere longitudes are positive and western hemisphere longitudes are negative. Longitudes in North America are negative. The latitude and longitude values are expressed using the WGS 84 datum. | ||||||||||||||
radius | Path | Double | The radius of the circular bounding area from which to return data. Any features that are fully or partially enclosed within the bounding area are selected. If the Units parameter is set to Metric, the radius is measured in kilometers; if Units is set to US (the default), the radius is measured in miles. | ||||||||||||||
SpeedOutputFields | Query | String | The traffic speed fields to be returned in the response. This parameter can specify a single field, or multiple fields in a comma-separated list such as “Reference,Speed”. If this SpeedOutputFields is not specified, all the fields are returned. | ||||||||||||||
|
|||||||||||||||||
SpeedFilter | Query | Integer | This parameter specifies the only speeds that should be shown are those speeds where the change is more or less than the percentage difference specified from the average speed. For example, SpeedFilter=10 returns speeds that are 10% +/- the Average speed. A negative value has the same result as a positive value (e.g. SpeedFilter=-10 is the same as SpeedFilter=10). If this parameter is not specified, no filter is applied. | ||||||||||||||
StartTime | Query | Datetime | The expected traffic at this time. The default is the current time. All times should be in UTC or have the timezone offset as specified in DateTime Values. | ||||||||||||||
Duration | Query | String | The duration, in minutes, for which to return traffic data in the specified intervals. Duration should be specified as a multiple of 5. For example, a Duration parameter of 120 and an Interval parameter of 30 will return results for the current time, as well as forecasts on the hour and half-hour, for up to 120 minutes from the current time. The default value is 0, which means real-time traffic data only. | ||||||||||||||
Interval | Query | Integer | The period of time in minutes between reports when the duration parameter is non-zero. The first set of data in the response will have the real-time timestamp. The timestamp for subsequent sets will have a minute value that is a multiple of the interval value. For example, an interval value of 30 specifies data sets on the hour and 30 minutes past the hour. The interval parameter is used in conjunction with the duration parameter. | ||||||||||||||
|
|||||||||||||||||
FRCLevel | Query | String | The Functional Road Classification code of the Segments to report. Multiple codes can be specified in a comma-delimited list. | ||||||||||||||
|
|||||||||||||||||
Units | Query | Integer | Use 0 for English units, 1 for metric. Default is 0. | ||||||||||||||
Resolution | Query | Integer | If resolution is specified, the speed of sub-segment is returned for a subsegment length which closely matches the value provided for the Resolution parameter which is in meters. The sub-segment is specified in terms of offsets. The length of the sub-segment will be based on the resolution specified. The default is 0, which means "full resolution" or one section per segment. Sub-segments are only returned if the sub-segment speed is more than 5 mph different from the speed on the overall segment. | ||||||||||||||
Coverage | Query | Integer | Indicates the type of coverage to return - core or extended. The default is specified per vendor. | ||||||||||||||
|
|||||||||||||||||
SpeedBucketID | Query | Integer | A speed bucket is a range of speeds or percentages that is used to categorize Segment data. All speed buckets are identified by a unique number called a speedbucketID. Default is to use the INRIX default speed bucket ID. Custom speed buckets can be defined by using the CreateSpeedBucket API. | ||||||||||||||
Format | Query | String | The format of the response in either XML or JSON. Default is XML. | ||||||||||||||
SpeedBucketOutputFilter | Query | String | A comma-delimited list of bytes specifying which speed bucket numbers to be included in the response. Multiple speed buckets can be specified. The number of speed buckets available to be filtered is dependent on the number of speed buckets returned from calls to CreateSpeedBucket. A value of 255 returns only closures. | ||||||||||||||
|
|||||||||||||||||
RoadSegmentType | Query | String | This indicates the type of Segment to return. If RoadSegmentType is not specified, INRIX XD Segments (XDS) are returned. Multiple RoadSegmentTypes can be specified in a call as a comma separated ordered list and the ordering matters. For instance, if “TMC,XDS” is specified, TMCs will be returned for all TMC-defined road segments, and INRIX XD Segments will be returned for additional road segments not defined by the TMC Table and where traffic coverage is available. If “XDS,TMC” is specified then XD Segments will be returned where available, else TMC segments would be returned. However as XD segments in general cover all TMC locations this call would return only XD Segments. | ||||||||||||||
|
Requests
Example GetSegmentSpeedInRadius request
Queryhttp://{serverPath}.INRIX.com/traffic/Inrix.ashx?Action=GetSegmentSpeedInRadius&token={tokenHere}&Center=47.60615|-122.35868&Radius=100&Duration=0&RoadSegmentType=TMC,XDS&Units=1&Resolution=250&format=json
Responses
200 Success
Response Elements
Property | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
segmentSpeeds | Array | A collection of traffic data for a specified point in time | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
/?Action=GetSegmentSpeedinGeography
GET Get roadspeed and congestion data for specified geography.
Parameters
= requiredName | Located In | Type | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
action | Query | String | Use GetSegmentSpeedinGeography | ||||||||||||||
token | Query | String | A valid authorization token returned in response to a GetSecurityToken request. | ||||||||||||||
geoid | Path | String | The ID of the specified geography. For more information on how to obtain the ID, see Geographies. | ||||||||||||||
SpeedOutputFields | Query | String | The traffic speed fields to be returned in the response. This parameter can specify a single field, or multiple fields in a comma-separated list such as “Reference,Speed”. If this SpeedOutputFields is not specified, all the fields are returned. | ||||||||||||||
|
|||||||||||||||||
SpeedFilter | Query | Integer | This parameter specifies the only speeds that should be shown are those speeds where the change is more or less than the percentage difference specified from the average speed. For example, SpeedFilter=10 returns speeds that are 10% +/- the Average speed. A negative value has the same result as a positive value (e.g. SpeedFilter=-10 is the same as SpeedFilter=10). If this parameter is not specified, no filter is applied. | ||||||||||||||
StartTime | Query | Datetime | The expected traffic at this time. The default is the current time. All times should be in UTC or have the timezone offset as specified in DateTime Values. | ||||||||||||||
Duration | Query | String | The duration, in minutes, for which to return traffic data in the specified intervals. Duration should be specified as a multiple of 5. For example, a Duration parameter of 120 and an Interval parameter of 30 will return results for the current time, as well as forecasts on the hour and half-hour, for up to 120 minutes from the current time. The default value is 0, which means real-time traffic data only. | ||||||||||||||
Interval | Query | Integer | The period of time in minutes between reports when the duration parameter is non-zero. The first set of data in the response will have the real-time timestamp. The timestamp for subsequent sets will have a minute value that is a multiple of the interval value. For example, an interval value of 30 specifies data sets on the hour and 30 minutes past the hour. The interval parameter is used in conjunction with the duration parameter. | ||||||||||||||
|
|||||||||||||||||
FRCLevel | Query | String | The Functional Road Classification code of the Segments to report. Multiple codes can be specified in a comma-delimited list. | ||||||||||||||
|
|||||||||||||||||
Units | Query | Integer | Use 0 for English units, 1 for metric. Default is 0. | ||||||||||||||
Resolution | Query | Integer | If resolution is specified, the speed of sub-segment is returned for a subsegment length which closely matches the value provided for the Resolution parameter which is in meters. The sub-segment is specified in terms of offsets. The length of the sub-segment will be based on the resolution specified. The default is 0, which means "full resolution" or one section per segment. Sub-segments are only returned if the sub-segment speed is more than 5 mph different from the speed on the overall segment. | ||||||||||||||
Coverage | Query | Integer | Indicates the type of coverage to return - core or extended. The default is specified per vendor. | ||||||||||||||
|
|||||||||||||||||
SpeedBucketID | Query | Integer | A speed bucket is a range of speeds or percentages that is used to categorize Segment data. All speed buckets are identified by a unique number called a speedbucketID. Default is to use the INRIX default speed bucket ID. Custom speed buckets can be defined by using the CreateSpeedBucket API. | ||||||||||||||
Format | Query | String | The format of the response in either XML or JSON. Default is XML. | ||||||||||||||
SpeedBucketOutputFilter | Query | String | A comma-delimited list of bytes specifying which speed bucket numbers to be included in the response. Multiple speed buckets can be specified. The number of speed buckets available to be filtered is dependent on the number of speed buckets returned from calls to CreateSpeedBucket. A value of 255 returns only closures. | ||||||||||||||
|
|||||||||||||||||
RoadSegmentType | Query | String | This indicates the type of Segment to return. If RoadSegmentType is not specified, INRIX XD Segments (XDS) are returned. Multiple RoadSegmentTypes can be specified in a call as a comma separated ordered list and the ordering matters. For instance, if “TMC,XDS” is specified, TMCs will be returned for all TMC-defined road segments, and INRIX XD Segments will be returned for additional road segments not defined by the TMC Table and where traffic coverage is available. If “XDS,TMC” is specified then XD Segments will be returned where available, else TMC segments would be returned. However as XD segments in general cover all TMC locations this call would return only XD Segments. | ||||||||||||||
|
Requests
Example GetSegmentSpeedInGeography request
Queryhttp://{serverPath}.INRIX.com/traffic/Inrix.ashx?Action=GetSegmentSpeedInGeography&token={tokenHere}&GeoId=207&Duration=0&RoadSegmentType=TMC,XDS&Units=1&Resolution=250&format=json
Responses
200 Success
Response Elements
Property | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
segmentSpeeds | Array | A collection of traffic data for a specified point in time | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
/?Action=GetSegmentSpeedinSet
GET Get roadspeed and congestion data for specified set of segments.
Parameters
= requiredName | Located In | Type | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
action | Query | String | Use GetSegmentSpeedinSet | ||||||||||||||
token | Query | String | A valid authorization token returned in response to a GetSecurityToken request. | ||||||||||||||
segmentSetId | Path | Integer | The predefined Segment set for which to get data. This parameter can be one or more Segment sets; you can specify multiple Segment sets in a comma-delimited list. | ||||||||||||||
SpeedOutputFields | Query | String | The traffic speed fields to be returned in the response. This parameter can specify a single field, or multiple fields in a comma-separated list such as “Reference,Speed”. If this SpeedOutputFields is not specified, all the fields are returned. | ||||||||||||||
|
|||||||||||||||||
SpeedFilter | Query | Integer | This parameter specifies the only speeds that should be shown are those speeds where the change is more or less than the percentage difference specified from the average speed. For example, SpeedFilter=10 returns speeds that are 10% +/- the Average speed. A negative value has the same result as a positive value (e.g. SpeedFilter=-10 is the same as SpeedFilter=10). If this parameter is not specified, no filter is applied. | ||||||||||||||
StartTime | Query | Datetime | The expected traffic at this time. The default is the current time. All times should be in UTC or have the timezone offset as specified in DateTime Values. | ||||||||||||||
Duration | Query | String | The duration, in minutes, for which to return traffic data in the specified intervals. Duration should be specified as a multiple of 5. For example, a Duration parameter of 120 and an Interval parameter of 30 will return results for the current time, as well as forecasts on the hour and half-hour, for up to 120 minutes from the current time. The default value is 0, which means real-time traffic data only. | ||||||||||||||
Interval | Query | Integer | The period of time in minutes between reports when the duration parameter is non-zero. The first set of data in the response will have the real-time timestamp. The timestamp for subsequent sets will have a minute value that is a multiple of the interval value. For example, an interval value of 30 specifies data sets on the hour and 30 minutes past the hour. The interval parameter is used in conjunction with the duration parameter. | ||||||||||||||
|
|||||||||||||||||
FRCLevel | Query | String | The Functional Road Classification code of the Segments to report. Multiple codes can be specified in a comma-delimited list. | ||||||||||||||
|
|||||||||||||||||
Units | Query | Integer | Use 0 for English units, 1 for metric. Default is 0. | ||||||||||||||
Resolution | Query | Integer | If resolution is specified, the speed of sub-segment is returned for a subsegment length which closely matches the value provided for the Resolution parameter which is in meters. The sub-segment is specified in terms of offsets. The length of the sub-segment will be based on the resolution specified. The default is 0, which means "full resolution" or one section per segment. Sub-segments are only returned if the sub-segment speed is more than 5 mph different from the speed on the overall segment. | ||||||||||||||
Coverage | Query | Integer | Indicates the type of coverage to return - core or extended. The default is specified per vendor. | ||||||||||||||
|
|||||||||||||||||
SpeedBucketID | Query | Integer | A speed bucket is a range of speeds or percentages that is used to categorize Segment data. All speed buckets are identified by a unique number called a speedbucketID. Default is to use the INRIX default speed bucket ID. Custom speed buckets can be defined by using the CreateSpeedBucket API. | ||||||||||||||
Format | Query | String | The format of the response in either XML or JSON. Default is XML. | ||||||||||||||
SpeedBucketOutputFilter | Query | String | A comma-delimited list of bytes specifying which speed bucket numbers to be included in the response. Multiple speed buckets can be specified. The number of speed buckets available to be filtered is dependent on the number of speed buckets returned from calls to CreateSpeedBucket. A value of 255 returns only closures. | ||||||||||||||
|
|||||||||||||||||
RoadSegmentType | Query | String | This indicates the type of Segment to return. If RoadSegmentType is not specified, INRIX XD Segments (XDS) are returned. Multiple RoadSegmentTypes can be specified in a call as a comma separated ordered list and the ordering matters. For instance, if “TMC,XDS” is specified, TMCs will be returned for all TMC-defined road segments, and INRIX XD Segments will be returned for additional road segments not defined by the TMC Table and where traffic coverage is available. If “XDS,TMC” is specified then XD Segments will be returned where available, else TMC segments would be returned. However as XD segments in general cover all TMC locations this call would return only XD Segments. | ||||||||||||||
|
Requests
Example GetSegmentSpeedInSet request
Queryhttp://{serverPath}.INRIX.com/traffic/Inrix.ashx?Action=GetSegmentSpeedInSet&token={tokenHere}&SegmentSetId=353107201&Duration=0&RoadSegmentType=TMC,XDS&Units=1&Resolution=250&format=json
Responses
200 Success
Response Elements
Property | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
segmentSpeeds | Array | A collection of traffic data for a specified point in time | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
/?Action=GetSegmentSpeed
GET Get roadspeed and congestion data for a specified list of INRIX XD Segments.
Parameters
= requiredName | Located In | Type | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
action | Query | String | Use GetSegmentSpeed | ||||||||||||||
token | Query | String | A valid authorization token returned in response to a GetSecurityToken request. | ||||||||||||||
segments | Path | String | The predefined comma-delimited list of INRIX XD Segment IDs or TMCs for which to get data. Any duplicate segments are ignored. For XD segments just the segment ID should be specified. For TMC segments the segment should be followed by a pipe character (‘|’) and ‘TMC’. The TMC ‘+’ symbol should be replaced with ‘%2B’. So the TMC ID ’111+11479′ should be represented as ’111%2B11479|TMC’. If TMCs and XD segments are both specified then the XD segments should add ‘|XDS’ to the end (e.g. XD segment ’123456′ would become ’123456|XDS’. | ||||||||||||||
SpeedOutputFields | Query | String | The traffic speed fields to be returned in the response. This parameter can specify a single field, or multiple fields in a comma-separated list such as “Reference,Speed”. If this SpeedOutputFields is not specified, all the fields are returned. | ||||||||||||||
|
|||||||||||||||||
SpeedFilter | Query | Integer | This parameter specifies the only speeds that should be shown are those speeds where the change is more or less than the percentage difference specified from the average speed. For example, SpeedFilter=10 returns speeds that are 10% +/- the Average speed. A negative value has the same result as a positive value (e.g. SpeedFilter=-10 is the same as SpeedFilter=10). If this parameter is not specified, no filter is applied. | ||||||||||||||
StartTime | Query | Datetime | The expected traffic at this time. The default is the current time. All times should be in UTC or have the timezone offset as specified in DateTime Values. | ||||||||||||||
Duration | Query | String | The duration, in minutes, for which to return traffic data in the specified intervals. Duration should be specified as a multiple of 5. For example, a Duration parameter of 120 and an Interval parameter of 30 will return results for the current time, as well as forecasts on the hour and half-hour, for up to 120 minutes from the current time. The default value is 0, which means real-time traffic data only. | ||||||||||||||
Interval | Query | Integer | The period of time in minutes between reports when the duration parameter is non-zero. The first set of data in the response will have the real-time timestamp. The timestamp for subsequent sets will have a minute value that is a multiple of the interval value. For example, an interval value of 30 specifies data sets on the hour and 30 minutes past the hour. The interval parameter is used in conjunction with the duration parameter. | ||||||||||||||
|
|||||||||||||||||
FRCLevel | Query | String | The Functional Road Classification code of the Segments to report. Multiple codes can be specified in a comma-delimited list. | ||||||||||||||
|
|||||||||||||||||
Units | Query | Integer | Use 0 for English units, 1 for metric. Default is 0. | ||||||||||||||
Resolution | Query | Integer | If resolution is specified, the speed of sub-segment is returned for a subsegment length which closely matches the value provided for the Resolution parameter which is in meters. The sub-segment is specified in terms of offsets. The length of the sub-segment will be based on the resolution specified. The default is 0, which means "full resolution" or one section per segment. Sub-segments are only returned if the sub-segment speed is more than 5 mph different from the speed on the overall segment. | ||||||||||||||
Coverage | Query | Integer | Indicates the type of coverage to return - core or extended. The default is specified per vendor. | ||||||||||||||
|
|||||||||||||||||
SpeedBucketID | Query | Integer | A speed bucket is a range of speeds or percentages that is used to categorize Segment data. All speed buckets are identified by a unique number called a speedbucketID. Default is to use the INRIX default speed bucket ID. Custom speed buckets can be defined by using the CreateSpeedBucket API. | ||||||||||||||
Format | Query | String | The format of the response in either XML or JSON. Default is XML. | ||||||||||||||
SpeedBucketOutputFilter | Query | String | A comma-delimited list of bytes specifying which speed bucket numbers to be included in the response. Multiple speed buckets can be specified. The number of speed buckets available to be filtered is dependent on the number of speed buckets returned from calls to CreateSpeedBucket. A value of 255 returns only closures. | ||||||||||||||
|
|||||||||||||||||
RoadSegmentType | Query | String | This indicates the type of Segment to return. If RoadSegmentType is not specified, INRIX XD Segments (XDS) are returned. Multiple RoadSegmentTypes can be specified in a call as a comma separated ordered list and the ordering matters. For instance, if “TMC,XDS” is specified, TMCs will be returned for all TMC-defined road segments, and INRIX XD Segments will be returned for additional road segments not defined by the TMC Table and where traffic coverage is available. If “XDS,TMC” is specified then XD Segments will be returned where available, else TMC segments would be returned. However as XD segments in general cover all TMC locations this call would return only XD Segments. | ||||||||||||||
|
Requests
Example GetSegmentSpeed request
Queryhttp://{serverPath}.INRIX.com/traffic/Inrix.ashx?Action=GetSegmentSpeed&token={tokenHere}&Segments=5908854|XDS,5898079|XDS,5898012|XDS,111%2B11479|TMC,113-04803|TMC&Duration=0&Units=1&Resolution=250&format=json
Responses
200 Success
Response Elements
Property | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
segmentSpeeds | Array | A collection of traffic data for a specified point in time | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|