This server is a Python API that allows GET, POST, PUT, and DELETE operations on MobilityDB. The server utilizes the PyMEOS library.
This implementation follows the OGC API - Moving Features Standard
This Python API server provides endpoints for interacting with MobilityDB, a temporal extension for PostgreSQL. It allows users to perform CRUD operations (Create, Read, Update, Delete) on MobilityDB data using HTTP methods.
- Supports GET, POST, PUT, and DELETE operations.
- Integrates the PyMEOS library for seamless interaction with MobilityDB.
- Provides endpoints for managing data stored in MobilityDB.
- A recent version of Pyhton
- A MobilityDB running locally or on a server
To install and run the server, follow these steps:
- Download the server.py and utils.py file in the same folder.
- Dowload the rest-clients and change the queries to match your MOBILITYDB collections.
- Change the connection parameters in the server.py file.
- Install PyMEOS
- Run the server :
python3 server.py
- Enjoy !
Send http requests to the api using any http service.
As an example, your can use the ais.sql that will create ships and ship2 tables containing ships data. To do that you will have to change the path in the script to the path of your .csv file.
Here is a link to download ships datasets: Denmark Ships DataSets
This project is in progress.