Skip to content

Commit

Permalink
Merge pull request #206 from ibi-group/upstream-merge-2024-03-13
Browse files Browse the repository at this point in the history
Upstream merge 2024-03-13
  • Loading branch information
miles-grant-ibigroup authored Mar 18, 2024
2 parents 621f31f + 0faa711 commit b98ea69
Show file tree
Hide file tree
Showing 104 changed files with 3,047 additions and 1,682 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cibuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
# on windows there are frequent failures caused by page files being too small
# https://github.com/actions/virtual-environments/issues/785
- name: Configure Windows Pagefile
uses: al-cheb/configure-pagefile-action@v1.3
uses: al-cheb/configure-pagefile-action@v1.4
- name: Run tests
run: mvn --batch-mode test -P prettierSkip

Expand All @@ -130,7 +130,7 @@ jobs:
LOCAL_BRANCH: local-pages
REMOTE_BRANCH: main
TOKEN: ${{ secrets.CHANGELOG_TOKEN }}
MASTER_BRANCH_VERSION: 2.4.0
MASTER_BRANCH_VERSION: 2.5.0

steps:

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ GTFS and OpenStreetMap). It applies real-time updates and alerts with immediate
clients, finding itineraries that account for disruptions and service changes.

Note that this branch contains **OpenTripPlanner 2**, the second major version of OTP, which has
been under development since 2018. The latest version of OTP is v2.4.0, released in September 2023.
been under development since 2018. The latest version of OTP is v2.5.0, released in March 2024.

If you do not want to use this version, please switch to the final 1.x release
tag `v1.5.0` or the `dev-1.x` branch.
Expand Down
999 changes: 606 additions & 393 deletions client-next/package-lock.json

Large diffs are not rendered by default.

48 changes: 24 additions & 24 deletions client-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,38 +18,38 @@
},
"dependencies": {
"@googlemaps/polyline-codec": "1.0.28",
"bootstrap": "5.3.1",
"bootstrap": "5.3.3",
"graphql": "16.8.1",
"graphql-request": "6.1.0",
"maplibre-gl": "4.0.1",
"maplibre-gl": "4.1.0",
"react": "18.2.0",
"react-bootstrap": "2.8.0",
"react-bootstrap": "2.10.1",
"react-dom": "18.2.0",
"react-map-gl": "7.1.5"
"react-map-gl": "7.1.7"
},
"devDependencies": {
"@graphql-codegen/cli": "5.0.0",
"@graphql-codegen/client-preset": "4.1.0",
"@graphql-codegen/introspection": "4.0.0",
"@parcel/watcher": "2.3.0",
"@testing-library/react": "14.1.2",
"@types/react": "18.2.21",
"@types/react-dom": "18.2.7",
"@typescript-eslint/eslint-plugin": "7.1.0",
"@typescript-eslint/parser": "7.1.0",
"@vitejs/plugin-react": "4.0.4",
"@vitest/coverage-v8": "1.1.3",
"eslint": "8.56.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-import": "2.28.1",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-react": "7.33.2",
"@graphql-codegen/cli": "5.0.2",
"@graphql-codegen/client-preset": "4.2.4",
"@graphql-codegen/introspection": "4.0.3",
"@parcel/watcher": "2.4.1",
"@testing-library/react": "14.2.1",
"@types/react": "18.2.65",
"@types/react-dom": "18.2.21",
"@typescript-eslint/eslint-plugin": "7.2.0",
"@typescript-eslint/parser": "7.2.0",
"@vitejs/plugin-react": "4.2.1",
"@vitest/coverage-v8": "1.3.1",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsx-a11y": "6.8.0",
"eslint-plugin-react": "7.34.0",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-react-refresh": "0.4.3",
"eslint-plugin-react-refresh": "0.4.5",
"jsdom": "24.0.0",
"prettier": "3.0.3",
"typescript": "5.2.2",
"prettier": "3.2.5",
"typescript": "5.4.2",
"vite": "4.5.2",
"vitest": "1.1.3"
"vitest": "1.3.1"
}
}
4 changes: 2 additions & 2 deletions doc-templates/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ text inserted is valid JSON (starts with `{` and ends with `}`).
Variable substitution is performed on configuration file after the include file directive; Hence
variable substitution is also performed on the text in the injected file.

Here is an example including variable substitution, assuming version 2.4.0 of OTP:
Here is an example including variable substitution, assuming version 2.5.0 of OTP:

```JSON
// build-config.json
Expand All @@ -170,7 +170,7 @@ The result will look like this:
{
"transitFeeds": [
{
"source": "netex-v2.4.0.obj"
"source": "netex-v2.5.0.obj"
}
]
}
Expand Down
16 changes: 8 additions & 8 deletions docs/Basic-Tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ JAR containing all other libraries needed for OTP to work, and is available from
repository. You will be able to go
to [the OTP directory at Maven Central](https://repo1.maven.org/maven2/org/opentripplanner/otp/),
navigate to
the [directory of releases](https://repo1.maven.org/maven2/org/opentripplanner/otp/2.4.0/),
the [directory of releases](https://repo1.maven.org/maven2/org/opentripplanner/otp/2.5.0/),
and download
the [file with `shaded.jar` suffix](https://repo1.maven.org/maven2/org/opentripplanner/otp/2.4.0/otp-2.4.0-shaded.jar)
the [file with `shaded.jar` suffix](https://repo1.maven.org/maven2/org/opentripplanner/otp/2.5.0/otp-2.5.0-shaded.jar)
.

You may also want to get your own copy of the OTP source code
Expand Down Expand Up @@ -129,7 +129,7 @@ below and in other tutorials.
The simplest way to use OTP is to build a graph in a single step and start a server immediately,
without saving it to disk. The command to do so is:

$ java -Xmx2G -jar otp-2.4.0-shaded.jar --build --serve /home/username/otp
$ java -Xmx2G -jar otp-2.5.0-shaded.jar --build --serve /home/username/otp

where `/home/username/otp` should be the directory where you put your configuration and input files.

Expand All @@ -154,13 +154,13 @@ build a graph from street and transit data then save it to a file using the `--b
command line parameters together. If for example your current working directory (`.`) contains the
input files and the OTP JAR file, you can use this command:

$ java -Xmx2G -jar otp-2.4.0-shaded.jar --build --save .
$ java -Xmx2G -jar otp-2.5.0-shaded.jar --build --save .

This will produce a file called `graph.obj` in the same directory as the inputs. The server can then
be started later using the `--load` parameter, and will read this file instead of building the graph
from scratch:

$ java -Xmx2G -jar otp-2.4.0-shaded.jar --load .
$ java -Xmx2G -jar otp-2.5.0-shaded.jar --load .

Another reason to perform these two phases separately is that the building process loads the entire
GTFS and OSM data sets into memory, so can require significantly more memory than just running a
Expand All @@ -177,16 +177,16 @@ graph once, and then layer transit data on top of the streets to make the final
Again assuming the input files and OTP JAR file are in the current working directory, you can build
a street graph with OSM and elevation data only (ignoring transit input files) with this command:

$ java -Xmx2G -jar otp-2.4.0-shaded.jar --buildStreet .
$ java -Xmx2G -jar otp-2.5.0-shaded.jar --buildStreet .

Then, to build a graph layering transit data on top of the saved street graph (built using the
previous command):

$ java -Xmx2G -jar otp-2.4.0-shaded.jar --loadStreet --save .
$ java -Xmx2G -jar otp-2.5.0-shaded.jar --loadStreet --save .

Finally, the server can be started using the `--load` parameter:

$ java -Xmx2G -jar otp-2.4.0-shaded.jar --load .
$ java -Xmx2G -jar otp-2.5.0-shaded.jar --load .

## Command Line Switches

Expand Down
Loading

0 comments on commit b98ea69

Please sign in to comment.