Application Programming Interface

Send the following JSON object as GET or POST request to api.php. It has to be the value of key "q". For testing you can simply send a test example below.

The API will return a valid SVG file or an empty file on error.


Small specification

Sorry, a better API design would be nice, but internal function do not work out that well.

base: A two-value list. Is one of (['austria', 'bz'], ['oe', 'gm'], ['austria', 'bl'], ['europe', 'l'], [int, 'bz'], [int, 'gm']). int has to be an integer. [int, 'gm'] means "int. Bundesland Gemeinden". "gm" stands for "Gemeinde". "bz" stands for "Bezirk". Checkout the global.php file in the github repository for the exact order of Gemeinden and Bezirke.

colors: Number of colors (2-10).

data: JSON-Objekt for allocation of Key and Value. Just leave out

dec: Number of decimal points (0-3).

grad: Number for color gradient (0-7).

(sub)title: String for (sub)title.