Returns static segment data including speed limit.
Description: Send vehicle speed data and location and receive relevant speed limit info for vehicle location.
/v1/segments
GETGets speed limit info for a segment
Parameters
= required
Name
Located In
Type
Description
Authorization
Header
String
A valid access token provided from either the appToken, signIn or refreshToken api response. (Required if accessToken query not specified). Exact format 'Authorization: Bearer xxxx.xxx.xxxx'.
requestID
Path
String
Unique number assigned by the caller and returned in the response. Can be used to match up req/resp pairs.
point
Path
String
Latitude and longitude in WGS84 format, in the format lat|long (e.g. 44.64|-122.53).
heading
Path
Short
Values between 0-359 are accepted.
units
Path
Integer
Use 0 for English units, 1 for metric. Default is 0.
roadSegmentType
Path
Integer
The Road Segment Type (Location Referencing method) to be returned. Currently only TMC is supported
outputFields
Path
String
The data that should be returned. Multiple fields can be specified in a comma-delimited list. The default value is the segment (if there is a segment at the specified point).
Value
Description
ps
Posted Speed Limit data.
frc
The Functional Road Classification code for each segment.
{"copyright":"Copyright INRIX Inc. 2017","versionNumber":"v1","createdDate":"2017-05-10T00:17:45.4714315Z","responseID":"123ABC","result":{"segments":{"snapPrecision":1,"speed":{"postedSpeedLimit":40,"unit":"KPH"},"roadInfo":{"code":"119+14145","type":"TMC","name":"E Front St","frc":3}}}}
Response Elements
Property
Type
Description
segments
Array
A container for RoadSpeedResults elements.
Property
Type
Description
snapPrecision
Integer
Value between 1 and 5 that indicates the accuracy of the TMC the road is snapped to. A value of 1 indicates a solid match
speed
Array
Speed limit of segment.
Property
Type
Description
unit
String
what units the posted speed is in. Either MPH or KPH
postedSpeedLimit
Integer
The speed limit of the segment.
roadInfo
Array
Defines information about the road segment of the snapped TMC
Property
Type
Description
frc
Integer
A code that indicates the size of the road. 1 - Highway 2 - Major artery 3 - Major road 4 and higher - Neighborhood street
name
String
Name of street
direction
String
Defines the direction of travel for the road
code
String
The segment code associated with the segment type.
type
String
The type of segment returned. Currently only return TMC