Files
2026-12-01 19:59:12 +01:00

133 lines
5.9 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# GeoDonkey for QGIS
OpenStreetMap data, map styles, routing and elevation from
[geodonkey.com](https://geodonkey.com) directly in QGIS – without the detour
through browser, download and import.
This repository contains the plugin and nothing else. It is client code: it
knows the public API, not what runs behind it.
---
## What it does
**DonkeyOSM queries.** Three ways to ask: plain language ("bakery",
"playground", "drinking water"), OSM tags (`shop=bakery,amenity=cafe`), or a
custom line query with OR between lines and AND within a line. Four ways to
define the area: current map extent, extent of a layer, extent of the
selection, outline of the selected polygons.
**Basemaps.** The GeoDonkey map styles as vector tile layers – free and
without an API key.
**Ways.** Two tools on the road network, not on the straight line:
* **Isochrone** – the area reachable from a point, up to four rings in a
single call (`5,10,15` minutes or kilometres), on foot, by bike or by car.
* **Route** – a trip through up to ten points, optionally with optimised stop
order and with turn-by-turn instructions. The result is the legs as lines
and the stops as points.
**Elevation.** Three tools on the official terrain model – **Germany only**:
* **Elevation profile** – the cut through the terrain between two points, as a
series of points with distance and height, drawn as a chart.
* **Point elevations** – height above sea level, for clicked points or for
every point of a layer; large layers are split automatically without costing
more.
* **Line of sight** – clear view between two points, including earth curvature
and refraction. With obstacles as points and with the height a mast would
need.
**Dataset upload.** The *Upload* tab sends a vector layer from the project to
GeoDonkey – no *Save as*, no file manager, no browser. GeoJSON in WGS 84 is
written, reprojected from the layer's CRS, with attributes and with curves, Z
and M values; the temporary file is deleted immediately, because this is your
data. The layer list fills itself the moment you open it, so a layer added
while the panel is open is there right away – vector layers only, as before.
Every dataset gets a link of the form `https://geodonkey.com/view/<id>`
that shows the data on a map without an account and without an API key.
**Processing toolbox.** All six tools are Processing algorithms and therefore
work in models, in batch runs and in `qgis_process`. They appear in the toolbox
under *GeoDonkey* and in the Web menu as *… (dialog) …*.
**A panel for the quick case.** Every button in the toolbar leads to the
*Tools* tab, where points are placed on the map instead of typed into a text
field. The price is shown **before** the call, results that are geometry
themselves first appear as a preview, and *Keep as layer* turns that preview
into layers without calling the service – and paying – a second time. The
preview already uses the colours of the final layer: every isochrone ring and
every route leg in its own, with the outline in the colour of the area.
Where the number of points is open – route, point elevation – the button that
ends picking is called *Use these points* and does the same as a right-click
on the map. *Reset* clears the picked points and the result; the settings
above stay as they are, and a single row of the elevation table goes with
*Remove point*, a right-click on the row or the Delete key.
**Results look like they do on geodonkey.com.** Every layer brings its style
along instead of getting the random colour QGIS hands out. The colour is also
written into a `color` column, so it travels with an export.
---
## Installation
Through the QGIS plugin manager. Alternatively from the ZIP of a release:
**Plugins ▸ Manage and Install Plugins ▸ Install from ZIP**, pick the file,
**Install Plugin**.
There is no ZIP in this repository, and that is on purpose: the official QGIS
repository asks for a source repository without zipped files.
Restart QGIS afterwards. The plugin then lives under **Web ▸ GeoDonkey** and in
its own toolbar.
**QGIS 3.40 or newer** is required. There are no further dependencies – no
`requests`, no `pip install`. The plugin uses the network stack of QGIS itself,
so it inherits the proxy settings, the certificate store and the timeouts that
are already configured there.
---
## The API key
The map styles do not need one. For everything else you get a key at
[geodonkey.com/dashboard](https://geodonkey.com/dashboard) and enter it under
**Web ▸ GeoDonkey ▸ GeoDonkey settings**.
**The key is never stored in clear text.** It lives in the QGIS authentication
database – the same one that guards database and WMS credentials – and
`QgsSettings` only holds its identifier. An API key is a means of payment:
whoever has it spends someone else's DonkeyCoins.
If there is no master password, or the database cannot be opened, the key is
**not** written to a file as a fallback. It then only applies to this QGIS
session, and the plugin says so. The inconvenience hits the owner; a clear-text
key would hit everyone who can read the file.
---
## What it costs
Most tools are charged in DonkeyCoins once the free calls of the current hour
are used up. Only successful calls are charged – a rejected area costs nothing.
The plugin shows the price **above the main button before you click**, together
with the remaining free calls and your balance. The current prices, quotas and
plans are on [geodonkey.com](https://geodonkey.com) – that is the one place
where they are always up to date.
---
## Data and licences
The data comes from OpenStreetMap and is licensed under the
[ODbL](https://www.openstreetmap.org/copyright). The plugin writes the
attribution into the layer metadata under `rights` – where QGIS finds it again
when building a layout and when exporting. It is not decoration, it is the
condition of the licence.
The plugin itself is licensed under the **GNU General Public License v3 or
later**, see [LICENSE](LICENSE).