From 2f48fa46a7f361e81ab3c0f3100f28d40bd14782 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Tue, 6 Apr 2021 16:52:34 +0200 Subject: Documented how to find a trainStop code --- README.md | 5 +++++ 1 file changed, 5 insertions(+) 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 : -- cgit v1.2.3