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-map

  • Method: 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-Token or x-api-key is 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: Always FeatureCollection.

  • features: Array of GeoJSON Feature objects.

  • 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.).

Retrieve the GeoJSON network map for a facility

get

Returns the GeoJSON network map associated with the specified facility.

Path parameters
facility_idstringRequired

Trimble identifier for the facility.

Responses
200

Facility GeoJSON network map (FeatureCollection)

application/json
get
/facility/{facility_id}/network-map

Last updated