Commit Graph

48 Commits

Author SHA256 Message Date
Johannes Randerath
15d723ade8 Added Copying to app
- Added Copying to sidebar in the running application
- Added source link to comply with the AGPL
2024-07-09 02:36:07 +02:00
Johannes Randerath
3853d25c1e Added LICENSE
- Code uses AGPL
- Docs use GNU FDL
2024-07-08 22:10:53 +02:00
Johannes Randerath
53ab731787 Cookies and tests
- Added cookie banner
- Improved tests and fixed models accordingly
2024-07-03 01:18:17 +02:00
Johannes Randerath
cf6fcda0ed Started adding tests to tests for the models' integrity with GTFS 2024-06-27 13:01:56 +02:00
Johannes Randerath
7962ec4b6c Added prerequisites to add tests and db convenience
- api/convenience will hold convenience functions for database lookup
  and data grouping
- pt_map/model_test_fields holds the data from the GTFS reference
  relevant to model development
- pt_map/test_data holds example data to be used to test models
2024-06-26 15:34:02 +02:00
Johannes Randerath
6472673d0a Deleted unneccessary files 2024-06-24 14:28:49 +02:00
Johannes Randerath
f314bfb396 Got rid of bridge and fixed GTFS compliance
- Ported the bridge that was using a custom GTFS class and Pandas
  Dataframes to a native Django solution for and interface between db
  and csv (see api/io.py)
- Fixed some issues regarding the compliance of the exported csv files
  with the GTFS reference. I.e. now allowing times 24:00:00 <= t >=
  24:59:59
2024-06-24 14:21:53 +02:00
Johannes Randerath
1494dba808 Fixed and rebuilt sphinx docs 2024-06-21 12:02:35 +02:00
Johannes Randerath
80197208f8 PUT, DELETE and address Changes
- Added PUT, PATCH and DELETE to modify data in the database.
- refactored modules
- completed docstrings
- data is now served via api/ and web pages via /
2024-06-20 23:25:33 +02:00
Johannes Randerath
9cc39c56ab Added PUT, PATCH and DELETE to create, modify and delete model
instances.
2024-06-20 01:26:53 +02:00
Johannes Randerath
f5b329bc17 API: Retrieve data
Now able to retrieve model data for any number of models, identified by
their primary keys, represented as JSON, using GET /data?<primary_key>=<value>.
2024-06-19 22:12:20 +02:00
Johannes Randerath
26b08b72dd Added view to get models by pk 2024-06-17 14:26:23 +02:00
Jan Kiljanski
8f60efd87c Merge branch 'main' of gitea.randerath.eu:johannes/transport-accessibility 2024-06-11 23:06:04 +02:00
Jan Kiljanski
b90acfcebe Development of the drawing mechanism, displaying stops with the data imported from the database. 2024-06-11 23:04:22 +02:00
Johannes Randerath
9f7c360096 Refactored 2024-06-11 22:16:45 +02:00
Johannes Randerath
1dd906a87f Changed stops JSON to dict instead of list 2024-06-11 21:39:19 +02:00
Johannes Randerath
092cc348d6 Fixed a bug 2024-06-11 21:33:24 +02:00
Johannes Randerath
61d2463c9d Fixing JSON parsing 2024-06-11 21:30:45 +02:00
Jan Kiljanski
46f5cd9cf4 minor changes 2024-06-11 21:27:13 +02:00
Johannes Randerath
c10276ced4 Fixing JSON parsing 2024-06-11 21:24:44 +02:00
Jan Kiljanski
b15d5d1b3b minor fixes 2024-06-11 21:05:40 +02:00
Jan Kiljanski
d0c2c98e17 Merge branch 'data_feature' of gitea.randerath.eu:johannes/transport-accessibility into data_feature 2024-06-11 20:54:32 +02:00
Jan Kiljanski
9f541916e3 minor changes 2024-06-11 20:53:52 +02:00
Johannes Randerath
8e1d4230fb Removed backup files 2024-06-11 20:51:23 +02:00
Johannes Randerath
f2260b3a76 trying to fix static 2024-06-11 20:46:35 +02:00
Jan Kiljanski
f2c8d147e5 Merge branch 'data_feature' of gitea.randerath.eu:johannes/transport-accessibility into data_feature 2024-06-11 20:41:28 +02:00
Jan Kiljanski
d757fec4f0 Reorganizing code, adding stops display, connect with backend 2024-06-11 20:40:18 +02:00
Johannes Randerath
6bf0437303 Added static folder 2024-06-11 20:38:46 +02:00
Johannes Randerath
2d33ac8e67 Fixed a JSON bug 2024-06-11 20:15:28 +02:00
Johannes Randerath
9f674f345b Processing GET requests to pass timetables for specific route_ids 2024-06-11 19:49:28 +02:00
Johannes Randerath
0031646016 Jsonizing data to pass to index 2024-06-11 19:22:11 +02:00
Johannes Randerath
90f76c2a30 Passing timetable data to index 2024-06-11 18:56:54 +02:00
Johannes Randerath
a310152c4f Passing stops and routes to index 2024-06-11 17:20:25 +02:00
Johannes Randerath
4028f63624 Added actual foreign key support and made primary keys (kind of) unique 2024-06-10 16:33:57 +02:00
Johannes Randerath
c22049f499 Added documentation
- Using sphinx to documente the project
- Autodocumenting Python using numpy-style docstr and sphinx autodoc with napoleon
2024-06-03 20:29:28 +02:00
Johannes Randerath
71f8e765c3 Added export function to create GTFS files from a list of QuerySets 2024-06-03 00:54:48 +02:00
Johannes Randerath
3e8b2b2711 Merge branch 'main' of gitea.randerath.eu:johannes/transport-accessibility 2024-06-02 21:01:43 +02:00
Johannes Randerath
af5a2c862d Backend changes and sql convenience
- Added sql files to create and drop db and to feed example data.
- Added bridge to import (and later export) data from a gtfs.GTFS object
  to the database.
- Updated models and migrations to implement the whole GTFS reference.
2024-06-02 20:58:39 +02:00
Jan Kiljanski
26461250c3 'merge' 2024-06-02 12:19:14 +02:00
Jan Kiljanski
99c6e93b4b Drawing and deleting routes 2024-06-02 12:12:17 +02:00
Johannes Randerath
e8d02517af Just merging changes of divergent views
Merge branch 'main' of gitea.randerath.eu:johannes/transport-accessibility
2024-06-01 15:50:57 +02:00
Johannes Randerath
0af451b3c2 Added GTFS import and export support 2024-06-01 15:49:46 +02:00
Jan Kiljanski
34dce12339 Template folder and first template 2024-06-01 15:15:09 +02:00
Johannes Randerath
aeed247b26 Added TODO List and a utility to convert a GTFS folder to a Pandas
Dataframe and check the validity of the feed.
2024-06-01 04:04:04 +02:00
Johannes Randerath
9a4879a67d Changed ids to always increase as automatic primary keys 2024-06-01 01:28:32 +02:00
Johannes Randerath
0a196d6b15 Added models to represent GTFS 2024-06-01 00:20:55 +02:00
Johannes Randerath
a18927bad1 Setup Mariadb 2024-05-31 22:32:30 +02:00
Johannes Randerath
1b0d8a2ce9 Set up empty django app 2024-05-31 22:02:26 +02:00