Skip to content

abouletupjv/gtfs-ametis-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

Install

Git clone

git clone https://github.com/GaetanPcht/projetthematique.git
cd projetthematique
pip install django
pip install djangorestframework

Usage

Run this application

python manage.py runserver
# or
py manage.py runserver

Administrator interface

127.0.0.1:8000/admin (root:root)

Get JSON with stop parameter

127.0.0.1:8000/gtfs-to-json/<stop name> 
(ex : 127.0.0.1:8000/gtfs-to-json/UPJV SAINT-LEU)

Get JSON with stop and time parameters (shows upcoming stops within 1.5hours after the specified time)

127.0.0.1:8000/gtfs-to-json/<stop name>/YYYYMMDD-hh:mm:ss
(ex : 127.0.0.1:8000/gtfs-to-json/UPJV SAINT-LEU/20220330-14:00:00)

Error cases

No database

If you don't have database. Remove folder migration then do the following command lines.

py manage.py makemigrations
# or
python manage.py makemigrations
py manage.py migrate
# or
python manage.py migrate

Module not found

If a module is not found. Do the following command lines.

pip install <nameModule>

Contributors

👨 Gaétan PICHOUT

👨 Loïc MALVOISIN

👨 Théo METEYER

👨 Rémy POTTIEZ

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 93.4%
  • HTML 3.5%
  • CSS 3.1%