Skip to content

Point of Interest Management

Tim Baccaert edited this page Jul 26, 2017 · 5 revisions

Adding new points of interest to the application is really easy. You can look below for the provided format in which your points should be. You can look at the python script in data/poisettools if you need some help with getting a script to generate these files for you.

POIs are also stored in the database, but the only way to add them is through the data/update.sh shell script as described below.

JSON Structure

Every POI set has the following structure:

{
    "name": "<your-name-here>"
    "elements": [
        {
            "lat": 51.1065,
            "lon": 3.7064,
            "name": "<your-point-name-here>",
            "description": "<your-point-description-here>"
        }
    ]
}

If you want a real example you can look inside data/poisets at any of the already existing sets. Save the file as <your-name-here>.json inside the data/poisets folder.

Updating the database

To make the app use the new set, all you have to do is run the data/update.sh shell script and restart the server. Please note that every set can be used either positively or negatively at the moment.

Partners

imec - IDLab - Ghent University

Clone this wiki locally