Real time Capabilities
Real time Capabilities of the Carrier Recommendations Endpoint
With GenLogs' Real-Time API, you can instantly identify carriers with the right equipment who are currently within a 150-mile radius of your origin and are likely seeking backhauls to your destination. Integrate Real-Time GenLogs data into your TMS and internal systems to unlock new opportunities, increase efficiency, and reduce empty miles.
When the real_time parameter is set to 'True', the recommendation system prioritizes real-time data by applying additional weight to recent detections near the origin of the search. While the recommendations still incorporate historical data and follow the usual logic, the real-time information takes precedence, resulting in a more dynamic focus on current activity.
Permissions
The realtime-api permission is required to use this parameter.
The real_time parameter is available exclusively to premium users. Reach out to us at [email protected] now to unlock Real-Time freight data.
Endpoint
URL:
https://api.genlogs.io/carrier/recommendationsMethod:
GET
Headers
Access-Token:
token(string, required): The access token obtained from the "Create Access Token" endpoint.x-api-key (string, required): The API key provided by GenLogs. This header must be included in the request
Query Parameters
Use the real_time parameter in addition to the required and optional base parameters described in the Carrier Recommendations document.
real_time (boolean, optional): Indicates whether to return recommendations that include real-time detections. If enabled, carriers recently seen within 150-mi of your search radius will be returned.
Tip: A 403 error received while using the real_time parameter signifies that your user account lacks access to this premium feature. To resolve this, please verify your access level. If you require further assistance, don't hesitate to contact our support team at [email protected].
Response Body
real_time_locs (dictionary of locations where real time carrier observations)
dot_number: string, usdot of the detected carrier.
current_lon: float, longitude of the detection location.
current_lat: float, latitude of the detection location.
is_inbound (bool): flag indicates when a carrier is currently inbound to the origin
recommendations (array of
CarrierRecommendationobjects): List of recommended carriers. See Carrier Recommendation docs for more.
Request Example
curl -X GET 'https://api.genlogs.io/carrier/recommendations?origin_city=Tucker&origin_state=Georgia&destination_city=Orange+Park&destination_state=Florida&origin_radius=50.0&destination_radius=50.0&fleet_size_min=0&fleet_size_max=1000&preferred_carriers=True&real_time=True' \
-H 'Access-Token: {access_token}' \
-H 'x-api-key: {your_api_key}' \
-iOrigin city for the recommendation
NashvilleExample: Tennessee CityOrigin state for the recommendation
TNExample: TennesseeDestination city for the recommendation
DallasExample: TascosaDestination state for the recommendation
TXExample: TexasSearch radius around the origin location in miles
50Example: 50Search radius around the destination location in miles
50Example: 50Minimum carrier score
0Example: 0Maximum carrier score
100Example: 100Minimum fleet size
1Example: 1Maximum fleet size
500Example: 500Type of cargo carried
general goodsExample: general goodsType of equipment used by carriers
flatbedExample: flatbedFilter for preferred carriers
falseExample: trueRequest real-time data if available
falseExample: trueMinimum number of months a carrier has an active common or contract authority with FMCSA
1Example: 1Specifies the format of the response.
application/jsonExample: application/jsonAccess Token for authentication
[Token]API key for authentication
[x-api-key]The JSON response containing recommendations and lane volume
GET /carrier/recommendations?origin_city=Tennessee+City&origin_state=Tennessee&destination_city=Tascosa&destination_state=Texas HTTP/1.1
Host: api.genlogs.io
accept: application/json
Access-Token: [Token]
x-api-key: [x-api-key]
Accept: */*
The JSON response containing recommendations and lane volume
{
"real_time_locs": [
{
"current_lat": 1,
"current_lon": 1,
"dot_number": "text",
"is_inbound": true
}
],
"recommendations": [
{
"add_date": "text",
"bipd_insurance_on_file": 1,
"cargo_insurance_on_file": 1,
"carried_cargo": "text",
"carrier_driver_oos_rate": 1,
"carrier_driver_oos_rate_national_avg": 1,
"carrier_score_scaled": 1,
"carrier_total_power_units": 1,
"carrier_vehicle_oos_rate": 1,
"carrier_vehicle_oos_rate_national_avg": 1,
"dba_name": "text",
"dot_number": "text",
"email_address": "text",
"is_inbound": true,
"is_real_time": true,
"is_visually_sighted": true,
"is_possible_backhaul": true,
"lat": 1,
"legal_name": "text",
"lon": 1,
"mc_number": 1,
"phy_city": "text",
"phy_state": "text",
"phy_street": "text",
"phy_zip": "text",
"telephone": "text"
}
]
}Last updated