Skip to content

stadiamaps/osrm-openapi

Repository files navigation

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