←back to thread

OpenStreetMap's New Vector Tiles

(tech.marksblogg.com)
480 points marklit | 1 comments | | HN request time: 0.215s | source
1. wind12 ◴[] No.42197335[source]
`open('7006.mvt.json', 'w').write(...)` (from section `Analysis-Ready Data`) should either be

import pathlib

pathlib.Path('7006.mvt.json').write_text(...)

or the historical alternative

with open(...) as f:

    f.write(...)