BM Industrie · Schema

LineNetwork

CompanyPaymentsMobile MoneyGeocodingMapsIdentity VerificationKYCFleet TrackingAfricaCameroon

Properties

Name Type Description
data array The lines, by letter.
meta object
View JSON Schema on GitHub

JSON Schema

bm-e-industrie-com-line-network-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bm-e-industrie-com/json-schema/bm-e-industrie-com-line-network-schema.json",
  "title": "LineNetwork",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bm-e-industrie-com-track-openapi.yml#/components/schemas/LineNetwork",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "description": "The lines, by letter.",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The line's uuid; `fallback` for the not-drawn stand-in."
          },
          "letter": {
            "type": "string",
            "description": "One letter or digit; empty on the stand-in."
          },
          "name": {
            "type": "string"
          },
          "loop": {
            "type": "boolean"
          },
          "stations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "zone": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "name": {
                      "type": "string"
                    }
                  }
                },
                "at": {
                  "type": "array",
                  "description": "`[col, row]` on the grid; rows grow south. A zone on several lines has one point on all of them.",
                  "items": {
                    "type": "integer"
                  }
                },
                "depot": {
                  "type": "boolean"
                },
                "label": {
                  "type": "string",
                  "enum": [
                    "n",
                    "ne",
                    "e",
                    "se",
                    "s",
                    "sw",
                    "w",
                    "nw"
                  ]
                },
                "centre": {
                  "$ref": "#/$defs/LineStationCentre"
                },
                "radius_m": {
                  "$ref": "#/$defs/LineStationRadius"
                }
              }
            }
          },
          "path": {
            "type": "array",
            "description": "Grid points; every segment is horizontal, vertical or at 45 degrees, and every station is one of its points. A loop ends where it starts.",
            "items": {
              "type": "array",
              "items": {
                "type": "integer"
              }
            }
          },
          "devices": {
            "type": [
              "array",
              "null"
            ],
            "description": "The uuids of the vehicles assigned to the line. Null on the stand-in, which nobody assigned anything to.",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "beyond": {
            "type": [
              "object",
              "null"
            ],
            "description": "Stations past the edge of the plate, folded into one label at `edge`.",
            "properties": {
              "edge": {
                "type": "string"
              },
              "names": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "stops": {
            "type": "array",
            "description": "Every stop of the line in its own order, including any folded past the plate into `beyond`: what an edit sends back as `zones` and `depots`, so a folded line is edited whole.",
            "items": {
              "type": "object",
              "properties": {
                "zone": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "name": {
                      "type": "string"
                    }
                  }
                },
                "depot": {
                  "type": "boolean"
                },
                "centre": {
                  "$ref": "#/$defs/LineStationCentre"
                },
                "radius_m": {
                  "$ref": "#/$defs/LineStationRadius"
                }
              }
            }
          },
          "road": {
            "type": [
              "object",
              "null"
            ],
            "description": "The road the line follows on a street map, through its stations in order and back to the first on a loop: BMI Maps' own directions over OpenStreetMap, computed on the server a few minutes after the line is saved. Null until then, and while a station has moved since; draw straight chords between the centres meanwhile. Credit `attribution` wherever it is drawn.",
            "properties": {
              "points": {
                "type": "array",
                "description": "`[lat, lng]` pairs, five decimals.",
                "items": {
                  "type": "array",
                  "items": {
                    "type": "number"
                  }
                }
              },
              "distance_m": {
                "type": "integer"
              },
              "source": {
                "type": "string",
                "enum": [
                  "bmi_maps"
                ]
              },
              "attribution": {
                "type": "string",
                "description": "`© OpenStreetMap contributors`."
              },
              "computed_at": {
                "type": "string",
                "format": "date-time"
              }
            }
          }
        }
      }
    },
    "meta": {
      "type": "object",
      "properties": {
        "grid": {
          "type": "object",
          "properties": {
            "cols": {
              "type": "integer"
            },
            "rows": {
              "type": "integer"
            }
          }
        },
        "plate": {
          "type": "object",
          "description": "The window of the grid a phone draws: `x`, `y`, `w`, `h`.",
          "properties": {
            "x": {
              "type": "integer"
            },
            "y": {
              "type": "integer"
            },
            "w": {
              "type": "integer"
            },
            "h": {
              "type": "integer"
            }
          }
        },
        "water": {
          "type": "array",
          "items": {
            "type": "object"
          }
        },
        "lines_hash": {
          "type": "string"
        },
        "zones": {
          "type": "object",
          "properties": {
            "used": {
              "type": "integer"
            },
            "limit": {
              "type": [
                "integer",
                "null"
              ],
              "description": "Null is unlimited."
            }
          }
        },
        "drawn": {
          "type": "boolean"
        },
        "saved": {
          "type": "string",
          "format": "uuid",
          "description": "On a write: the line written."
        }
      }
    }
  },
  "required": [
    "data",
    "meta"
  ],
  "$defs": {
    "LineStationCentre": {
      "type": [
        "array",
        "null"
      ],
      "description": "Where the station sits on a street map: its zone's centre, `[lat, lng]` (a polygon's is the average of its corners). Null for a zone with no shape.",
      "items": {
        "type": "number"
      }
    },
    "LineStationRadius": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The zone's radius in metres when it is a circle; null for a polygon."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/bm-e-industrie-com-line-network"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.