AlmondTill/G3N API

transferLaneRanking

query · in the family Reading your records

What it does

Which transfer lanes (location pairs) serve a move best, ranked.

The resolved sourcing matrix into ONE destination: every active source LF as a row — stored lanes (never/always/ranked) + the sparse geodistance default ordering (LF→PF→PFL.geo; a geo-absent side ranks last flagged no-geo; same-PFL light out-ranks shipped at equal distance). never entries are shown position-less (excluded from consideration — an inactive lane is absent, not never). Derived at read. Requires authentication.

Before you call

A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.

Capability area: Reading your records — Looking up and listing the records of your organization.

Roles that may call it:

What happens

Reads only.

Arguments

NameTypeRequiredNotes
destinationLogicalFacilityIdID ID!yes

Returns

TransferLaneRankingEntry [TransferLaneRankingEntry!]! — One resolved matrix row into the destination: ordered position among considered sources; never entries are shown position-less (excluded from consideration).

Example request

graphql
query ExampleTransferLaneRanking($destinationLogicalFacilityId: ID!) {
  transferLaneRanking(destinationLogicalFacilityId: $destinationLogicalFacilityId) {
    destinationLfId
    sourceLfId
    basis
    rank
    laneId
    weightClass
    distanceKm
    samePfl
    noGeo
    position
  }
}

Variables:

json
{
  "destinationLogicalFacilityId": "01900000-0000-7000-8000-c9ff9bd30000"
}

Example response

json
{
  "data": {
    "transferLaneRanking": [
      {
        "destinationLfId": "01900000-0000-7000-8000-4560391d0000",
        "sourceLfId": "01900000-0000-7000-8000-0560b74e0000",
        "basis": "<basis>",
        "rank": 1,
        "laneId": "01900000-0000-7000-8000-ef16844f0000",
        "weightClass": "light",
        "distanceKm": 1.5,
        "samePfl": true,
        "noGeo": true,
        "position": 1
      }
    ]
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": null,
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer

Used in