Commit graph

63 commits

Author SHA1 Message Date
Klaus-Uwe Mitterer
eb4fc0fa27 Implement departure table, some tuning required for arrival table to work 2017-11-04 19:37:45 +01:00
Klaus-Uwe Mitterer
c960e9a77f Allow Request() to be stitched together manually 2017-11-04 14:21:06 +01:00
Klaus-Uwe Mitterer
2006927a4e Add missing classes 2017-11-02 13:43:46 +01:00
Klaus-Uwe Mitterer
eb85dd1ec6 Use custom user agent string for outgoing requests 2017-10-30 23:17:59 +01:00
Klaus-Uwe Mitterer
cf7065a567 More refactoring, dedicated class for requests and responses 2017-10-28 17:20:10 +02:00
Klaus-Uwe Mitterer
29a53df24e Add *.swp to .gitignore 2017-10-28 15:57:28 +02:00
Klaus-Uwe Mitterer
76fd3ba93e Refactoring: Split functions in main.py 2017-10-28 15:57:05 +02:00
Klaus-Uwe Mitterer
31592abfea More refactoring 2017-10-27 17:46:00 +02:00
Klaus-Uwe Mitterer
e6270fa43a Start refactoring main.py 2017-10-27 11:28:14 +02:00
Klaus-Uwe Mitterer
316eb271ef How did nobody ever notice that the validator wasn't working? Also, escaping values before passing them to the HAFAS station endpoint. 2017-10-26 22:55:09 +02:00
Klaus-Uwe Mitterer
87f77a769a Fix path encodings 2017-10-26 22:38:55 +02:00
Klaus-Uwe Mitterer
3c89689f6b Actually fix the date issue 2017-10-26 22:00:43 +02:00
Klaus-Uwe Mitterer
92e69a14f4 Fix error caused by unexpected links in HAFAS' connection output, improve date handling, add exception raiser to threads 2017-10-26 21:21:41 +02:00
Klaus-Uwe Mitterer
d4dd2ba0e4 Use threading to improve response times for connection detail requests, set default connection count to 6 again as it doesn't matter anymore, update README. 2017-10-25 23:07:36 +02:00
Klaus-Uwe Mitterer
883cb9ee7c Add systemd service file, move Gunicorn config to gunicorn.cfg 2017-10-18 12:44:24 +02:00
Klaus-Uwe Mitterer
1d2387683a Fix it some more. 2017-10-11 14:41:11 +02:00
Klaus-Uwe Mitterer
269069878f Fix JSON for connections 2017-10-11 14:31:10 +02:00
Klaus-Uwe Mitterer
337fe033c3 Add missing files for radar... 2017-10-03 13:50:32 +02:00
Klaus-Uwe Mitterer
bddef6c491 Fix conn requests without via... 2017-10-02 21:31:06 +02:00
Klaus-Uwe Mitterer
656e4b9b49 Add radar to Readme 2017-10-02 21:16:55 +02:00
Klaus-Uwe Mitterer
cec2eca235 Add Zugradar 2017-10-02 21:02:07 +02:00
Klaus-Uwe Mitterer
d3256e0387 Add "via" to Readme. 2017-10-02 17:59:40 +02:00
Klaus-Uwe Mitterer
5940bdaa6d Refuse connection requests with more than three "via" stations. 2017-10-02 17:46:53 +02:00
Klaus-Uwe Mitterer
479bc58489 Fix via station handling 2017-10-02 12:26:19 +02:00
Klaus-Uwe Mitterer
76a4fc8625 Add missing comma 2017-10-02 12:12:05 +02:00
Klaus-Uwe Mitterer
a7a6305d54 Blindly implement via routing. Needs testing before deployment, 2017-10-02 10:05:31 +02:00
Klaus-Uwe Mitterer
e9a2d9ef43 Handle whitespace-only strings in short requests 2017-10-01 09:51:40 +02:00
Klaus-Uwe Mitterer
03338d2e48 Update Readme 2017-10-01 09:48:59 +02:00
Klaus-Uwe Mitterer
52c32dcc83 Handle latin-1 URL encoding. I didn't think that was still a thing. 2017-10-01 09:15:22 +02:00
Klaus-Uwe Mitterer
d52dbd8384 Merge branch 'master' of kumig.it:kumitterer/oebb_py 2017-09-30 15:05:58 +02:00
Klaus-Uwe Mitterer
2de7c5503d Use Overpass API at overpass.kumi.systems by default 2017-09-30 15:05:44 +02:00
Klaus-Uwe Mitterer
55625175b2 Forgot json parameter... 2017-09-28 21:06:25 +02:00
Klaus-Uwe Mitterer
749659804a GitLab is painful at times. 2017-09-28 21:00:15 +02:00
Klaus-Uwe Mitterer
7fe58e503f Apparently, GitLab doesn't handle line breaks in URLs properly. 2017-09-28 20:57:05 +02:00
Klaus-Uwe Mitterer
5613f49e08 Add short documentation 2017-09-28 20:53:28 +02:00
Klaus-Uwe Mitterer
308f30d223 Allow latitude and longitude to be passed using a decimal comma 2017-09-28 20:49:57 +02:00
Klaus-Uwe Mitterer
d43138016c Add shorthand requests for connections and validation 2017-09-28 19:27:39 +02:00
Klaus-Uwe Mitterer
03d9adbe22 Details view may time out if connection count is 3, so the default connection count is set to 1 for HTTP requests. Other requests still default to 3. 2017-09-26 13:03:19 +02:00
Klaus-Uwe Mitterer
f9526a70a0 Split classes into three files 2017-09-25 22:41:51 +02:00
Klaus-Uwe Mitterer
766c930d9c Fix last fix. 2017-09-25 22:31:13 +02:00
Klaus-Uwe Mitterer
5a1efeecc9 Show station IDs again in connections. Just so used to them. 2017-09-25 22:28:42 +02:00
Klaus-Uwe Mitterer
85dc66aed3 Throw out station IDs in connection display by default 2017-09-25 22:27:33 +02:00
Klaus-Uwe Mitterer
a6ff5fe157 Fix iid and cid 2017-09-25 22:15:36 +02:00
Klaus-Uwe Mitterer
7341b69ebf Fix destination display 2017-09-25 22:11:30 +02:00
Klaus-Uwe Mitterer
a921460a11 Make JSON available for all requests 2017-09-25 21:43:02 +02:00
Klaus-Uwe Mitterer
950924c31a Prepare worker.conn for JSON 2017-09-24 22:59:51 +02:00
Klaus-Uwe Mitterer
b8b233f630 Make worker.val JSON compatible 2017-09-24 21:04:59 +02:00
Klaus-Uwe Mitterer
dbed1fa677 Make worker.closest JSON compatible 2017-09-24 20:48:22 +02:00
Klaus-Uwe Mitterer
cd3cc716b1 Remove unused import 2017-09-23 17:32:30 +02:00
Klaus-Uwe Mitterer
d643365e6c Preparations for JSON support 2017-09-23 16:57:24 +02:00