← All procedures

geo.roadGraph

This function makes the road graph of a travel mode from GeoJSON lines, for example the ways of OpenStreetMap.

CLI
Package
@procedures/geo · README
Path
["geo","roadGraph"]
CLI
mark geo roadGraph --features <object | object[]> --options <object>
As data
{"$proc":["geo","roadGraph"],"input":{}}

Use it

In TypeScript

import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/geo/register"; // registers its procedures

const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["geo","roadGraph"], { features: "<features>", options: {} });
console.log(JSON.stringify(result));

From the command line

$ mark geo roadGraph --features <object | object[]> --options <object>

As data, in a program

{
  "$proc": ["geo", "roadGraph"],
  "input": { "features": "<features>", "options": {} }
}

Input

FieldTypeRequiredDefaultDescription
featuresobject | object[]yesThe features, or a feature collection.
optionsobjectyesThe travel mode, and the functions that read the tags and the keys.

Output

FieldTypeRequiredDefaultDescription
modestringyes
nodesany[][]yes
edgesobject[]yes
JSON Schemas
{
  "input": {
    "type": "object",
    "properties": {
      "features": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "FeatureCollection"
              },
              "features": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "Feature"
                    },
                    "geometry": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "$ref": "#/definitions/__schema0"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "MultiLineString"
                            },
                            "coordinates": {
                              "type": "array",
                              "items": {
                                "type": "array",
                                "items": {
                                  "type": "array",
                                  "items": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ],
                                  "additionalItems": {},
                                  "minItems": 2
                                }
                              }
                            },
                            "bbox": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ],
                                  "additionalItems": {},
                                  "minItems": 4,
                                  "maxItems": 4
                                },
                                {
                                  "type": "array",
                                  "items": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ],
                                  "additionalItems": {},
                                  "minItems": 6,
                                  "maxItems": 6
                                }
                              ],
                              "description": "The bounding box of the object (RFC 7946, section 5)."
                            }
                          },
                          "required": [
                            "type",
                            "coordinates"
                          ],
                          "additionalProperties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "MultiPoint"
                            },
                            "coordinates": {
                              "type": "array",
                              "items": {
                                "type": "array",
                                "items": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ],
                                "additionalItems": {},
                                "minItems": 2
                              }
                            },
                            "bbox": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ],
                                  "additionalItems": {},
                                  "minItems": 4,
                                  "maxItems": 4
                                },
                                {
                                  "type": "array",
                                  "items": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ],
                                  "additionalItems": {},
                                  "minItems": 6,
                                  "maxItems": 6
                                }
                              ],
                              "description": "The bounding box of the object (RFC 7946, section 5)."
                            }
                          },
                          "required": [
                            "type",
                            "coordinates"
                          ],
                          "additionalProperties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "Polygon"
                            },
                            "coordinates": {
                              "type": "array",
                              "items": {
                                "type": "array",
                                "items": {
                                  "type": "array",
                                  "items": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ],
                                  "additionalItems": {},
                                  "minItems": 2
                                }
                              }
                            },
                            "bbox": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ],
                                  "additionalItems": {},
                                  "minItems": 4,
                                  "maxItems": 4
                                },
                                {
                                  "type": "array",
                                  "items": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ],
                                  "additionalItems": {},
                                  "minItems": 6,
                                  "maxItems": 6
                                }
                              ],
                              "description": "The bounding box of the object (RFC 7946, section 5)."
                            }
                          },
                          "required": [
                            "type",
                            "coordinates"
                          ],
                          "additionalProperties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "LineString"
                            },
                            "coordinates": {
                              "type": "array",
                              "items": {
                                "type": "array",
                                "items": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ],
                                "additionalItems": {},
                                "minItems": 2
                              }
                            },
                            "bbox": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ],
                                  "additionalItems": {},
                                  "minItems": 4,
                                  "maxItems": 4
                                },
                                {
                                  "type": "array",
                                  "items": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ],
                                  "additionalItems": {},
                                  "minItems": 6,
                                  "maxItems": 6
                                }
                              ],
                              "description": "The bounding box of the object (RFC 7946, section 5)."
                            }
                          },
                          "required": [
                            "type",
                            "coordinates"
                          ],
                          "additionalProperties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "Point"
                            },
                            "coordinates": {
                              "type": "array",
                              "items": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "additionalItems": {},
                              "minItems": 2
                            },
                            "bbox": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ],
                                  "additionalItems": {},
                                  "minItems": 4,
                                  "maxItems": 4
                                },
                                {
                                  "type": "array",
                                  "items": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ],
                                  "additionalItems": {},
                                  "minItems": 6,
                                  "maxItems": 6
                                }
                              ],
                              "description": "The bounding box of the object (RFC 7946, section 5)."
                            }
                          },
                          "required": [
                            "type",
                            "coordinates"
                          ],
                          "additionalProperties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "MultiPolygon"
                            },
                            "coordinates": {
                              "type": "array",
                              "items": {
                                "type": "array",
                                "items": {
                                  "type": "array",
                                  "items": {
                                    "type": "array",
                                    "items": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "number"
                                      }
                                    ],
                                    "additionalItems": {},
                                    "minItems": 2
                                  }
                                }
                              }
                            },
                            "bbox": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ],
                                  "additionalItems": {},
                                  "minItems": 4,
                                  "maxItems": 4
                                },
                                {
                                  "type": "array",
                                  "items": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ],
                                  "additionalItems": {},
                                  "minItems": 6,
                                  "maxItems": 6
                                }
                              ],
                              "description": "The bounding box of the object (RFC 7946, section 5)."
                            }
                          },
                          "required": [
                            "type",
                            "coordinates"
                          ],
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "properties": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "id": {
                      "type": [
                        "string",
                        "number"
                      ]
                    },
                    "bbox": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            }
                          ],
                          "additionalItems": {},
                          "minItems": 4,
                          "maxItems": 4
                        },
                        {
                          "type": "array",
                          "items": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            }
                          ],
                          "additionalItems": {},
                          "minItems": 6,
                          "maxItems": 6
                        }
                      ],
                      "description": "The bounding box of the object (RFC 7946, section 5)."
                    }
                  },
                  "required": [
                    "type",
                    "geometry",
                    "properties"
                  ],
                  "additionalProperties": {}
                }
              },
              "bbox": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "additionalItems": {},
                    "minItems": 4,
                    "maxItems": 4
                  },
                  {
                    "type": "array",
                    "items": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "additionalItems": {},
                    "minItems": 6,
                    "maxItems": 6
                  }
                ],
                "description": "The bounding box of the object (RFC 7946, section 5)."
              }
            },
            "required": [
              "type",
              "features"
            ],
            "additionalProperties": {}
          },
          {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "Feature"
                },
                "geometry": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "$ref": "#/definitions/__schema0"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "MultiLineString"
                        },
                        "coordinates": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "array",
                              "items": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "additionalItems": {},
                              "minItems": 2
                            }
                          }
                        },
                        "bbox": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "additionalItems": {},
                              "minItems": 4,
                              "maxItems": 4
                            },
                            {
                              "type": "array",
                              "items": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "additionalItems": {},
                              "minItems": 6,
                              "maxItems": 6
                            }
                          ],
                          "description": "The bounding box of the object (RFC 7946, section 5)."
                        }
                      },
                      "required": [
                        "type",
                        "coordinates"
                      ],
                      "additionalProperties": {}
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "MultiPoint"
                        },
                        "coordinates": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "number"
                              }
                            ],
                            "additionalItems": {},
                            "minItems": 2
                          }
                        },
                        "bbox": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "additionalItems": {},
                              "minItems": 4,
                              "maxItems": 4
                            },
                            {
                              "type": "array",
                              "items": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "additionalItems": {},
                              "minItems": 6,
                              "maxItems": 6
                            }
                          ],
                          "description": "The bounding box of the object (RFC 7946, section 5)."
                        }
                      },
                      "required": [
                        "type",
                        "coordinates"
                      ],
                      "additionalProperties": {}
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "Polygon"
                        },
                        "coordinates": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "array",
                              "items": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "additionalItems": {},
                              "minItems": 2
                            }
                          }
                        },
                        "bbox": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "additionalItems": {},
                              "minItems": 4,
                              "maxItems": 4
                            },
                            {
                              "type": "array",
                              "items": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "additionalItems": {},
                              "minItems": 6,
                              "maxItems": 6
                            }
                          ],
                          "description": "The bounding box of the object (RFC 7946, section 5)."
                        }
                      },
                      "required": [
                        "type",
                        "coordinates"
                      ],
                      "additionalProperties": {}
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "LineString"
                        },
                        "coordinates": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "number"
                              }
                            ],
                            "additionalItems": {},
                            "minItems": 2
                          }
                        },
                        "bbox": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "additionalItems": {},
                              "minItems": 4,
                              "maxItems": 4
                            },
                            {
                              "type": "array",
                              "items": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "additionalItems": {},
                              "minItems": 6,
                              "maxItems": 6
                            }
                          ],
                          "description": "The bounding box of the object (RFC 7946, section 5)."
                        }
                      },
                      "required": [
                        "type",
                        "coordinates"
                      ],
                      "additionalProperties": {}
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "Point"
                        },
                        "coordinates": {
                          "type": "array",
                          "items": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            }
                          ],
                          "additionalItems": {},
                          "minItems": 2
                        },
                        "bbox": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "additionalItems": {},
                              "minItems": 4,
                              "maxItems": 4
                            },
                            {
                              "type": "array",
                              "items": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "additionalItems": {},
                              "minItems": 6,
                              "maxItems": 6
                            }
                          ],
                          "description": "The bounding box of the object (RFC 7946, section 5)."
                        }
                      },
                      "required": [
                        "type",
                        "coordinates"
                      ],
                      "additionalProperties": {}
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "MultiPolygon"
                        },
                        "coordinates": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "array",
                                "items": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ],
                                "additionalItems": {},
                                "minItems": 2
                              }
                            }
                          }
                        },
                        "bbox": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "additionalItems": {},
                              "minItems": 4,
                              "maxItems": 4
                            },
                            {
                              "type": "array",
                              "items": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "additionalItems": {},
                              "minItems": 6,
                              "maxItems": 6
                            }
                          ],
                          "description": "The bounding box of the object (RFC 7946, section 5)."
                        }
                      },
                      "required": [
                        "type",
                        "coordinates"
                      ],
                      "additionalProperties": {}
                    }
                  ]
                },
                "properties": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  ]
                },
                "id": {
                  "type": [
                    "string",
                    "number"
                  ]
                },
                "bbox": {
                  "anyOf": [
                    {
                      "type": "array",
                      "items": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "number"
                        }
                      ],
                      "additionalItems": {},
                      "minItems": 4,
                      "maxItems": 4
                    },
                    {
                      "type": "array",
                      "items": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "number"
                        }
                      ],
                      "additionalItems": {},
                      "minItems": 6,
                      "maxItems": 6
                    }
                  ],
                  "description": "The bounding box of the object (RFC 7946, section 5)."
                }
              },
              "required": [
                "type",
                "geometry",
                "properties"
              ],
              "additionalProperties": {}
            }
          }
        ],
        "description": "The features, or a feature collection."
      },
      "options": {
        "type": "object",
        "properties": {
          "mode": {
            "anyOf": [
              {
                "type": "string",
                "const": "drive"
              },
              {
                "type": "string",
                "const": "walk"
              },
              {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "highways": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "access": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "denied": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "oneway": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "impliedOneway": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "tag": {
                          "type": "string"
                        },
                        "values": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "tag",
                        "values"
                      ],
                      "additionalProperties": {}
                    }
                  }
                },
                "required": [
                  "name",
                  "highways",
                  "access",
                  "denied",
                  "oneway",
                  "impliedOneway"
                ],
                "additionalProperties": {}
              }
            ],
            "description": "The travel mode: a name of `TRAVEL_MODES`, or a table."
          },
          "tags": {
            "type": "object",
            "properties": {
              "$proc": {
                "minItems": 1,
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "input": {},
              "$when": {
                "type": "string",
                "const": "$never"
              }
            },
            "required": [
              "$proc"
            ],
            "additionalProperties": {},
            "x-procedures-program": {
              "params": [
                "feature"
              ],
              "inputs": [
                {
                  "$ref": "#/$defs/Feature_Geometry_null_GeoJsonProperties"
                }
              ],
              "output": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                ]
              }
            },
            "description": "This function gives the tags of a feature. The default is the object `properties.tags` when the feature has it, else `properties`."
          },
          "vertexKey": {
            "type": "object",
            "properties": {
              "$proc": {
                "minItems": 1,
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "input": {},
              "$when": {
                "type": "string",
                "const": "$never"
              }
            },
            "required": [
              "$proc"
            ],
            "additionalProperties": {},
            "x-procedures-program": {
              "params": [
                "position",
                "feature",
                "index",
                "part"
              ],
              "inputs": [
                {
                  "type": "array",
                  "prefixItems": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "number"
                    }
                  ],
                  "minItems": 2
                },
                {
                  "$ref": "#/$defs/Feature_Geometry_null_GeoJsonProperties"
                },
                {
                  "type": "number"
                },
                {
                  "type": "number"
                }
              ],
              "output": {
                "type": "string"
              }
            },
            "description": "This function gives the key of a position. Two positions with the same key are one node. The default key is the latitude and the normalized longitude, with no rounding. Give the identifier of the OpenStreetMap node when the input has it."
          }
        },
        "required": [
          "mode"
        ],
        "additionalProperties": {},
        "description": "The travel mode, and the functions that read the tags and the keys."
      }
    },
    "required": [
      "features",
      "options"
    ],
    "additionalProperties": false,
    "definitions": {
      "__schema0": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "const": "GeometryCollection"
          },
          "geometries": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "allOf": [
                    {
                      "$ref": "#/definitions/__schema0"
                    }
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "MultiLineString"
                    },
                    "coordinates": {
                      "type": "array",
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "array",
                          "items": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            }
                          ],
                          "additionalItems": {},
                          "minItems": 2
                        }
                      }
                    },
                    "bbox": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            }
                          ],
                          "additionalItems": {},
                          "minItems": 4,
                          "maxItems": 4
                        },
                        {
                          "type": "array",
                          "items": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            }
                          ],
                          "additionalItems": {},
                          "minItems": 6,
                          "maxItems": 6
                        }
                      ],
                      "description": "The bounding box of the object (RFC 7946, section 5)."
                    }
                  },
                  "required": [
                    "type",
                    "coordinates"
                  ],
                  "additionalProperties": {}
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "MultiPoint"
                    },
                    "coordinates": {
                      "type": "array",
                      "items": {
                        "type": "array",
                        "items": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          }
                        ],
                        "additionalItems": {},
                        "minItems": 2
                      }
                    },
                    "bbox": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            }
                          ],
                          "additionalItems": {},
                          "minItems": 4,
                          "maxItems": 4
                        },
                        {
                          "type": "array",
                          "items": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            }
                          ],
                          "additionalItems": {},
                          "minItems": 6,
                          "maxItems": 6
                        }
                      ],
                      "description": "The bounding box of the object (RFC 7946, section 5)."
                    }
                  },
                  "required": [
                    "type",
                    "coordinates"
                  ],
                  "additionalProperties": {}
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "Polygon"
                    },
                    "coordinates": {
                      "type": "array",
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "array",
                          "items": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            }
                          ],
                          "additionalItems": {},
                          "minItems": 2
                        }
                      }
                    },
                    "bbox": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            }
                          ],
                          "additionalItems": {},
                          "minItems": 4,
                          "maxItems": 4
                        },
                        {
                          "type": "array",
                          "items": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            }
                          ],
                          "additionalItems": {},
                          "minItems": 6,
                          "maxItems": 6
                        }
                      ],
                      "description": "The bounding box of the object (RFC 7946, section 5)."
                    }
                  },
                  "required": [
                    "type",
                    "coordinates"
                  ],
                  "additionalProperties": {}
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "LineString"
                    },
                    "coordinates": {
                      "type": "array",
                      "items": {
                        "type": "array",
                        "items": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          }
                        ],
                        "additionalItems": {},
                        "minItems": 2
                      }
                    },
                    "bbox": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            }
                          ],
                          "additionalItems": {},
                          "minItems": 4,
                          "maxItems": 4
                        },
                        {
                          "type": "array",
                          "items": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            }
                          ],
                          "additionalItems": {},
                          "minItems": 6,
                          "maxItems": 6
                        }
                      ],
                      "description": "The bounding box of the object (RFC 7946, section 5)."
                    }
                  },
                  "required": [
                    "type",
                    "coordinates"
                  ],
                  "additionalProperties": {}
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "Point"
                    },
                    "coordinates": {
                      "type": "array",
                      "items": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "number"
                        }
                      ],
                      "additionalItems": {},
                      "minItems": 2
                    },
                    "bbox": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            }
                          ],
                          "additionalItems": {},
                          "minItems": 4,
                          "maxItems": 4
                        },
                        {
                          "type": "array",
                          "items": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            }
                          ],
                          "additionalItems": {},
                          "minItems": 6,
                          "maxItems": 6
                        }
                      ],
                      "description": "The bounding box of the object (RFC 7946, section 5)."
                    }
                  },
                  "required": [
                    "type",
                    "coordinates"
                  ],
                  "additionalProperties": {}
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "MultiPolygon"
                    },
                    "coordinates": {
                      "type": "array",
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "number"
                              }
                            ],
                            "additionalItems": {},
                            "minItems": 2
                          }
                        }
                      }
                    },
                    "bbox": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            }
                          ],
                          "additionalItems": {},
                          "minItems": 4,
                          "maxItems": 4
                        },
                        {
                          "type": "array",
                          "items": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "number"
                            }
                          ],
                          "additionalItems": {},
                          "minItems": 6,
                          "maxItems": 6
                        }
                      ],
                      "description": "The bounding box of the object (RFC 7946, section 5)."
                    }
                  },
                  "required": [
                    "type",
                    "coordinates"
                  ],
                  "additionalProperties": {}
                }
              ]
            }
          },
          "bbox": {
            "anyOf": [
              {
                "type": "array",
                "items": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  }
                ],
                "additionalItems": {},
                "minItems": 4,
                "maxItems": 4
              },
              {
                "type": "array",
                "items": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  }
                ],
                "additionalItems": {},
                "minItems": 6,
                "maxItems": 6
              }
            ],
            "description": "The bounding box of the object (RFC 7946, section 5)."
          }
        },
        "required": [
          "type",
          "geometries"
        ],
        "additionalProperties": {}
      }
    }
  },
  "output": {
    "type": "object",
    "properties": {
      "mode": {
        "type": "string"
      },
      "nodes": {
        "type": "array",
        "items": {
          "type": "array",
          "items": [
            {
              "type": "string"
            },
            {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "point": {
                  "type": "object",
                  "properties": {
                    "lat": {
                      "type": "number",
                      "description": "The latitude in degrees, from -90 to 90."
                    },
                    "lon": {
                      "type": "number",
                      "description": "The longitude in degrees. A normalized longitude is from -180 to less than 180."
                    }
                  },
                  "required": [
                    "lat",
                    "lon"
                  ],
                  "additionalProperties": {}
                }
              },
              "required": [
                "id",
                "point"
              ],
              "additionalProperties": {}
            }
          ],
          "additionalItems": {},
          "minItems": 2,
          "maxItems": 2
        },
        "x-procedures-codec": "map"
      },
      "edges": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "from": {
              "type": "string"
            },
            "to": {
              "type": "string"
            },
            "weight": {
              "type": "number"
            },
            "meters": {
              "type": "number",
              "description": "The length of `line` on the sphere, from `distanceMeters`."
            },
            "line": {
              "type": "array",
              "items": {
                "type": "array",
                "items": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  }
                ],
                "additionalItems": {},
                "minItems": 2
              },
              "description": "The positions from the node `from` to the node `to`."
            },
            "feature": {
              "type": "number",
              "description": "The index of the feature of the way in the input."
            },
            "segment": {
              "type": "number",
              "description": "The number of the part of the way. The two directions of one part have the same number."
            }
          },
          "required": [
            "from",
            "to",
            "weight",
            "meters",
            "line",
            "feature",
            "segment"
          ],
          "additionalProperties": {}
        }
      }
    },
    "required": [
      "mode",
      "nodes",
      "edges"
    ],
    "additionalProperties": {}
  }
}