aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2021-03-29 00:07:03 +0200
committerJulien Dessaux2021-03-29 00:07:03 +0200
commitdbb4167a49343defa8be01921c3943d7eeb8b9dd (patch)
treeb5eb69c6d4edc46bf6dc851493c6fb957bcecfa2
parentMoved api test files into their own folder (diff)
downloadtrains-dbb4167a49343defa8be01921c3943d7eeb8b9dd.tar.gz
trains-dbb4167a49343defa8be01921c3943d7eeb8b9dd.tar.bz2
trains-dbb4167a49343defa8be01921c3943d7eeb8b9dd.zip
Renamed the api folder to something more specific
-rw-r--r--README.md2
-rw-r--r--navitia_api_client/client.go (renamed from api/client.go)2
-rw-r--r--navitia_api_client/client_test.go (renamed from api/client_test.go)2
-rw-r--r--navitia_api_client/departures.go (renamed from api/departures.go)2
-rw-r--r--navitia_api_client/departures_test.go (renamed from api/departures_test.go)2
-rw-r--r--navitia_api_client/test_data/invalid.json (renamed from api/test_data/invalid.json)0
-rw-r--r--navitia_api_client/test_data/normal-crepieux.json (renamed from api/test_data/normal-crepieux.json)0
7 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index da5431a..23ea7e2 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Trains
-Trains is a simple web app to display train timetables for specific lines at stations on France SNCF's network. It records weekly passages and you can subscribe to certain train times to alert when schedules change or your stop is removed. It queries the SNCF official api and present the results in a minimal web page that loads fast (unlike the official sites with all their images and ads).
+Trains is a simple web app to display train timetables for specific lines at stations on France SNCF's network. It records weekly passages and you can subscribe to certain train times to alert when schedules change or your stop is removed. It queries the SNCF official api by default but will work with any compatible Navitia api implementation and present the results in a minimal web page that loads fast (unlike the official sites with all their images and ads).
## Content
diff --git a/api/client.go b/navitia_api_client/client.go
index 79c8314..d08ca19 100644
--- a/api/client.go
+++ b/navitia_api_client/client.go
@@ -1,4 +1,4 @@
-package api
+package navitia_api_client
import (
"fmt"
diff --git a/api/client_test.go b/navitia_api_client/client_test.go
index c6146d4..ec51a06 100644
--- a/api/client_test.go
+++ b/navitia_api_client/client_test.go
@@ -1,4 +1,4 @@
-package api
+package navitia_api_client
import (
"fmt"
diff --git a/api/departures.go b/navitia_api_client/departures.go
index b87e35b..a6dcf53 100644
--- a/api/departures.go
+++ b/navitia_api_client/departures.go
@@ -1,4 +1,4 @@
-package api
+package navitia_api_client
import (
"encoding/json"
diff --git a/api/departures_test.go b/navitia_api_client/departures_test.go
index ad9d913..2c87429 100644
--- a/api/departures_test.go
+++ b/navitia_api_client/departures_test.go
@@ -1,4 +1,4 @@
-package api
+package navitia_api_client
import (
"net/http"
diff --git a/api/test_data/invalid.json b/navitia_api_client/test_data/invalid.json
index 98232c6..98232c6 100644
--- a/api/test_data/invalid.json
+++ b/navitia_api_client/test_data/invalid.json
diff --git a/api/test_data/normal-crepieux.json b/navitia_api_client/test_data/normal-crepieux.json
index 19a635a..19a635a 100644
--- a/api/test_data/normal-crepieux.json
+++ b/navitia_api_client/test_data/normal-crepieux.json