AlmondTill/G3N API

On this page

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.

What happens

Reads only.

Who may call it

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

Arguments

NameTypeRequiredNotes
destinationLogicalFacilityIdID ID!yesNo further notes.

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

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

Variables:

{
  "destinationLogicalFacilityId": "01900000-0000-7000-8000-3885245e0000"
}

Example response

{
  "data": {
    "transferLaneRanking": [
      {
        "destinationLfId": "01900000-0000-7000-8000-7bd4ce680000",
        "sourceLfId": "01900000-0000-7000-8000-366bfb930000",
        "basis": "<basis>",
        "rank": 1,
        "laneId": "01900000-0000-7000-8000-15be5b420000",
        "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