onthegomap / planetiler

Flexible tool to build planet-scale vector tilesets from OpenStreetMap data fast
Apache License 2.0
1.38k stars 110 forks source link

Configurable schema followups #247

Open msbarry opened 2 years ago

msbarry commented 2 years ago

Master ticket to track followup tasks for #160 and #323:

expose planetiler functionality:

yaml config flexibility/ease of use:

code cleanup

wipfli commented 2 years ago

It is nice to have type hints when writing config. Maybe we could use something like https://github.com/aws/jsii to generate the yamls from typed languages like TypeScript?

msbarry commented 2 years ago

It is nice to have type hints when writing config. Maybe we could use something like https://github.com/aws/jsii to generate the yamls from typed languages like TypeScript?

I added json-schema definitions in #323 - you can use them in vscode by installing the YAML plugin then starting off a yaml file with:

# yaml-language-server: $schema=https://raw.githubusercontent.com/onthegomap/planetiler/main/planetiler-custommap/planetiler.schema.json