diff options
author | Julien Dessaux | 2021-04-06 16:52:34 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-04-06 16:55:06 +0200 |
commit | 2f48fa46a7f361e81ab3c0f3100f28d40bd14782 (patch) | |
tree | 54196156a45d57000f951077ab804f4a69cc085e | |
parent | Document configuration file default values in README (diff) | |
download | trains-2f48fa46a7f361e81ab3c0f3100f28d40bd14782.tar.gz trains-2f48fa46a7f361e81ab3c0f3100f28d40bd14782.tar.bz2 trains-2f48fa46a7f361e81ab3c0f3100f28d40bd14782.zip |
Documented how to find a trainStop code
Diffstat (limited to '')
-rw-r--r-- | README.md | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -38,6 +38,11 @@ trainStop: stop_area:SNCF:87723502 You can get a free token from the [official SNCF's website](https://www.digital.sncf.com/startup/api/token-developpeur) for up to 5000 requests per day. +For now you can get the trainStop codes by manually parsing queries like the following. It is quite horrible but with a bit of perseverance you will find the stop code you want : +``` +for i in `seq 4`; do curl 'https://TOKEN@api.sncf.com/v1/coverage/sncf/stop_areas?count=1000&start_page='$i |jq > $i.json; done +``` + ## Usage Launching the webui server is as simple as : |