Fix typos found with cspell

This commit is contained in:
Kristjan ESPERANTO 2025-03-02 17:43:48 +01:00 committed by Traines
parent 040a8f44e4
commit de63bf0a37
12 changed files with 14 additions and 14 deletions

View file

@ -12,7 +12,7 @@ Also see the [root readme](https://github.com/public-transport/db-vendo-client)
- [`locations(query, [opt])`](locations.md) find stations, POIs and addresses
- [`stop(id, [opt])`](stop.md) get details about a stop/station
- [`nearby(location, [opt])`](nearby.md) show stations & POIs around
- `radar(north, west, south, east, [opt])` not supporteda
- `radar(north, west, south, east, [opt])` not supported
- `reachableFrom(address, [opt])` not supported
- `remarks([opt])` not supported
- `lines(query, [opt])` not supported

View file

@ -28,7 +28,7 @@
longitude: 3.21
}
// an address, which is an FTPF `location` object
// an address, which is an FPTF `location` object
{
type: 'location',
address: 'foo street 1',

View file

@ -1,7 +1,7 @@
openapi: 3.0.3
info:
title: db-vendo-client
description: Schema for db-vendo-client/hafas-rest-api's Friendy Public Transport Format REST API
description: Schema for db-vendo-client/hafas-rest-api's Friendly Public Transport Format REST API
contact:
url: https://github.com/public-transport/db-vendo-client
version: '6'
@ -275,7 +275,7 @@ paths:
format: date-time
- name: earlierThan
in: query
description: Compute journeys "before" an `ealierRef`.
description: Compute journeys "before" an `earlierRef`.
schema:
type: string
- name: laterThan

View file

@ -134,7 +134,7 @@ Unexpected errors e.g. due to bugs in `db-vendo-client` itself aside, it
Each `HafasError` error has the following properties:
- `isHafasError` Always `true`. Allows you to differente HAFAS-related errors from e.g. network errors.
- `isHafasError` Always `true`. Allows you to distinguish HAFAS-related errors from e.g. network errors.
- `code` A string representing the error type for all other error classes, e.g. `INVALID_REQUEST` for `HafasInvalidRequestError`. `null` for plain `HafasError`s.
- `isCausedByServer` Boolean, telling you if the HAFAS endpoint says that it couldn't process your request because *it* is unavailable/broken.
- `hafasCode` A HAFAS-specific error code, if the HAFAS endpoint returned one; e.g. `H890` when no journeys could be found. `null` otherwise.

View file

@ -111,7 +111,7 @@ const byErrorCode = Object.assign(Object.create(null), {
},
PROBLEMS: {
Error: HafasServerError,
message: 'an unknown problem occured during search',
message: 'an unknown problem occurred during search',
props: {
shouldRetry: true,
},
@ -212,7 +212,7 @@ const byErrorCode = Object.assign(Object.create(null), {
},
H9230: {
Error: HafasServerError,
message: 'journeys search: an internal error occured',
message: 'journeys search: an internal error occurred',
props: {
shouldRetry: true,
},

View file

@ -12,7 +12,7 @@ const regensburgHbf = '8000309'
let data = await client.locations('Berlin Jungfernheide')
// let data = await client.locations('Atze Musiktheater', {
// poi: true,
// addressses: false,
// addresses: false,
// fuzzy: false,
// })
// let data = await client.nearby({

View file

@ -28,7 +28,7 @@ const parseLocation = (ctx, l) => {
res.longitude = lid.X / 1000000;
}
// addresses and pois might also have fake evaNr sometimes!
// addresses and POIs might also have fake evaNr sometimes!
if (l.type === STATION || l.extId || l.evaNumber || l.evaNo || lid.A == '1' || l.bahnhofsId) {
let stop = {
type: 'station',

View file

@ -210,7 +210,7 @@ tap.test('Berlin Schwedter Str. to ATZE Musiktheater', async (t) => {
});
tap.test('journeys: via works with detour', async (t) => {
// Going from Westhafen to Wedding via Württembergalle without detour
// Going from Westhafen to Wedding via Württembergallee without detour
// is currently impossible. We check if the routing engine computes a detour.
const res = await client.journeys(westhafen, wedding, {
via: württembergallee,

View file

@ -210,7 +210,7 @@ tap.test('Berlin Schwedter Str. to ATZE Musiktheater', async (t) => {
});
tap.test('journeys: via works with detour', async (t) => {
// Going from Westhafen to Wedding via Württembergalle without detour
// Going from Westhafen to Wedding via Württembergallee without detour
// is currently impossible. We check if the routing engine computes a detour.
const res = await client.journeys(westhafen, wedding, {
via: württembergallee,

View file

@ -211,7 +211,7 @@ tap.test('Berlin Schwedter Str. to ATZE Musiktheater', async (t) => {
});
tap.test('journeys: via works with detour', async (t) => {
// Going from Westhafen to Wedding via Württembergalle without detour
// Going from Westhafen to Wedding via Württembergallee without detour
// is currently impossible. We check if the routing engine computes a detour.
const res = await client.journeys(westhafen, wedding, {
via: württembergallee,

View file

@ -210,7 +210,7 @@ tap.test('Berlin Schwedter Str. to ATZE Musiktheater', async (t) => {
});
tap.test('journeys: via works with detour', async (t) => {
// Going from Westhafen to Wedding via Württembergalle without detour
// Going from Westhafen to Wedding via Württembergallee without detour
// is currently impossible. We check if the routing engine computes a detour.
const res = await client.journeys(westhafen, wedding, {
via: württembergallee,

View file

@ -1,4 +1,4 @@
// Polly's HTTP adapter uses nock [1] underneath, with currenctly monkey-patches the built-in `node:http` module. For this to work, it must be imported quite early, before many other parts of hafas-client.
// Polly's HTTP adapter uses nock [1] underneath, with currently monkey-patches the built-in `node:http` module. For this to work, it must be imported quite early, before many other parts of hafas-client.
// Importing the adapter itself has no side effects (or rather: immediately undoes nock's monkey-patching, to re-patch when it is actually getting used). We activate it (by passing it into Polly's core) below.
// remotely related: https://github.com/nock/nock/issues/2461
import NodeHttpAdapter from '@pollyjs/adapter-node-http';