stadiamaps / osrm-openapi

OpenAPI spec for Valhalla-flavored OSRM Models

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OSRM OpenAPI

OpenAPI spec and generation script to build (Valhalla-flavored) OSRM Models for various platforms.

Building OSRM Models

Setup MacOS

The model generations script requires the openapi-generator and swiftformat cli tools. To install these using brew, run the following command. For more information see OpenAPI Generator Install and SwiftFormat Install.

brew install openapi-generator swiftformat

Generating Model Code

./generate_models.sh swift
  • --clean delete the .build and generated folder.

References

About

OpenAPI spec for Valhalla-flavored OSRM Models

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Swift 96.3%Language:Shell 2.9%Language:Kotlin 0.7%