diff options
author | Daniel Schadt <kingdread@gmx.de> | 2025-07-29 21:46:30 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2025-07-29 22:16:17 +0200 |
commit | 8025f682fdd49b4e52b4356952ec1f64890d6c4c (patch) | |
tree | 92d71a08388a7e6305e13dfc334fda4b2dfde1b2 /README.adoc | |
parent | 8fa97cc60ebe04bba99c2f16465772808f533dc8 (diff) | |
download | hittekaart-8025f682fdd49b4e52b4356952ec1f64890d6c4c.tar.gz hittekaart-8025f682fdd49b4e52b4356952ec1f64890d6c4c.tar.bz2 hittekaart-8025f682fdd49b4e52b4356952ec1f64890d6c4c.zip |
more docs
They are actually visible as Python docstrings, so they are useful!
Diffstat (limited to 'README.adoc')
-rw-r--r-- | README.adoc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/README.adoc b/README.adoc index b628a68..5479979 100644 --- a/README.adoc +++ b/README.adoc @@ -260,6 +260,30 @@ With the tile server running, you can then open a HTML file like the following: </html> ---- +== PYTHON INTERFACE + +This program comes with a Python interface, which allows easy use from Python +scripts. The `hittekaart_py` subfolder in the repository is an installable +module. + +The Python API is documented in the docstrings, and at +https://docs.fietsboek.org/developer/module/hittekaart_py.html. An example +program may look like: + +[source,python] +---- +from hittekaart_py import ( + Track, HeatmapRenderer, Storage, generate +) + +tracks = [ + Track.from_file(b"Documents/track.gpx", None), + Track.from_coordinates([(45.0, 47.0)]), +] +storage = Storage.Sqlite(b"/tmp/tiles.sqlite") +generate(tracks, HeatmapRenderer(), storage) +---- + == BUGS Feel free you report bugs on the issue tracker at |