From 6a8a832f98c63332474a7ae8dd66528998e2d6b7 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Sun, 26 Apr 2020 18:12:57 +0200 Subject: [PATCH] docs: repos moved to public-transport org :memo:, minor fixes --- docs/index.md | 6 +++--- index.js | 2 +- package.json | 2 +- readme.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/index.md b/docs/index.md index 62d9a21..167069c 100644 --- a/docs/index.md +++ b/docs/index.md @@ -71,7 +71,7 @@ Returns departures at a station. *Note:* As stated in the [*Friendly Public Transport Format* `1.2.0`](https://github.com/public-transport/friendly-public-transport-format/tree/1.2.0), the returned `departure` and `arrival` times include the current delay. -Passes all parameters into [`departures(…)` from `db-hafas`](https://github.com/derhuerst/db-hafas/blob/master/docs/departures.md). +Passes all parameters into [`departures(…)` from `db-hafas`](https://github.com/public-transport/db-hafas/blob/master/docs/departures.md). - `when`: A [UNIX timestamp](https://en.wikipedia.org/wiki/Unix_time) or anything parsable by [`parse-messy-time`](https://github.com/substack/parse-messy-time#example). Default: now. - `duration`: Show departures for the next `n` minutes. Default: `10`. @@ -87,7 +87,7 @@ curl 'https://2.db.transport.rest/stations/008011160/departures?when=tomorrow%20 ## `GET /journeys` -Output from [`require('db-hafas').journeys(…)`](https://github.com/derhuerst/db-hafas#getting-started). Start location and end location must be either in [station format](#station-format) or in [POI/address format](#poiaddress-format) (you can mix them). +Output from [`require('db-hafas').journeys(…)`](https://github.com/public-transport/db-hafas#getting-started). Start location and end location must be either in [station format](#station-format) or in [POI/address format](#poiaddress-format) (you can mix them). *Note:* As stated in the [*Friendly Public Transport Format* `1.2.0`](https://github.com/public-transport/friendly-public-transport-format/tree/1.2.0), the returned `departure` and `arrival` times include the current delay. @@ -191,7 +191,7 @@ curl 'https://your-api-endpoint/trips/1|229086|0|80|6102019?lineName=ICE+993' ## `GET /locations` -Output from [`require('db-hafas').locations(…)`](https://github.com/derhuerst/db-hafas/blob/master/docs/locations.md) +Output from [`require('db-hafas').locations(…)`](https://github.com/public-transport/db-hafas/blob/master/docs/locations.md) - `query`: **Required.** (e.g. `Alexanderplatz`) - `results`: How many stations shall be shown? Default: `10`. diff --git a/index.js b/index.js index 0983c9b..00bf075 100644 --- a/index.js +++ b/index.js @@ -19,7 +19,7 @@ const berlinHbf = '8011160' const healthCheck = createHealthCheck(hafas, berlinHbf) const config = { - hostname: process.env.HOSTNAME || '2.db.transport.rest', + hostname: process.env.HOSTNAME || 'localhost', port: process.env.PORT ? parseInt(process.env.PORT) : 3000, name: pkg.name, description: pkg.description, diff --git a/package.json b/package.json index f2dcfaa..eb35663 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "lib" ], "author": "Jannis R ", - "homepage": "https://github.com/derhuerst/db-rest", + "homepage": "https://github.com/derhuerst/db-rest/tree/2", "repository": "derhuerst/db-rest", "bugs": "https://github.com/derhuerst/db-rest/issues", "license": "ISC", diff --git a/readme.md b/readme.md index 3ff9a36..2d5c32d 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,6 @@ # db-rest -**A clean REST API wrapping around the [Deutsche Bahn](https://en.wikipedia.org/wiki/Deutsche_Bahn) [API](https://github.com/derhuerst/db-hafas#db-hafas).** +**A clean REST API wrapping around the [Deutsche Bahn](https://en.wikipedia.org/wiki/Deutsche_Bahn) [API](https://github.com/public-transport/db-hafas#db-hafas).** [API Documentation](docs/index.md) | [Why?](docs/why.md)