aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2021-04-06 16:52:34 +0200
committerJulien Dessaux2021-04-06 16:55:06 +0200
commit2f48fa46a7f361e81ab3c0f3100f28d40bd14782 (patch)
tree54196156a45d57000f951077ab804f4a69cc085e
parentDocument configuration file default values in README (diff)
downloadtrains-2f48fa46a7f361e81ab3c0f3100f28d40bd14782.tar.gz
trains-2f48fa46a7f361e81ab3c0f3100f28d40bd14782.tar.bz2
trains-2f48fa46a7f361e81ab3c0f3100f28d40bd14782.zip
Documented how to find a trainStop code
Diffstat (limited to '')
-rw-r--r--README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index 72d1d04..fb62e2f 100644
--- a/README.md
+++ b/README.md
@@ -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 :