Facility Network Map
Returns the GeoJSON network map associated with the provided facility_id, the map provided has the same information used to render Shipper Network map in Truck Intelligence Portal (example below)

Authentication
Include the following headers in your requests:
Access-Token: The access token obtained from the "Create Access Token" endpoint.
x-api-key: The API key provided by GenLogs. This header must be included in the request.
Permissions
Make sure that your api user is created with a role that has external-api-shipper-lanes permission
Endpoint
URL:
https://api.genlogs.io/facility/<facility_id>/network-mapMethod:
GET
Response
200 OK: Returns the facility network map in GeoJSON format. The payload is normalized as a FeatureCollection.
400 Bad Request: If required parameters are missing or invalid.
401 Unauthorized: If the
Access-Tokenorx-api-keyis missing or invalid.403 Forbidden: If the user is not allowed to access this endpoint.
500 Internal Server Error: If an error occurs on the server while processing the request.
Response Body
When the request succeeds, the endpoint returns a GeoJSON FeatureCollection whose structure follows FacilityNetworkMapSchema:
type: AlwaysFeatureCollection.features: Array of GeoJSONFeatureobjects.Each feature has:
geometry: standard GeoJSON geometry (point, line, polygon) with coordinates relative to the facility.properties: metadata about the lane (analysis window, history window, etc.).
Returns the GeoJSON network map associated with the specified facility.
Trimble identifier for the facility.
Facility GeoJSON network map (FeatureCollection)
Missing or invalid token.
Token expired or user lacks the required role.
Unexpected error while fetching or parsing GeoJSON.
GET /facility/{facility_id}/network-map HTTP/1.1
Host: api.genlogs.io
Accept: */*
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "<Point|LineString|Polygon>",
"coordinates": [
"..."
]
},
"properties": {
"analysis_window": "<pre|post|all>",
"history_window": "<90|180|360|all>",
"direction": "<network|hub_spoke>",
"additional_metadata": "..."
}
}
]
}Last updated