We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba9cc7c commit 98dce89Copy full SHA for 98dce89
.github/workflows/osrm-backend.yml
@@ -675,7 +675,7 @@ jobs:
675
cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE}
676
make --jobs=${JOBS}
677
popd
678
- - run: npm link
+ - run: cd routed-js && npm ci && npm link
679
- run: osrm-routed-js --version
680
- name: Run all tests
681
if: ${{ matrix.NODE_PACKAGE_TESTS_ONLY != 'ON' && matrix.ENABLE_APPLE_SILICON != 'ON' }}
features/options/routed/invalid.feature
@@ -4,6 +4,7 @@ Feature: osrm-routed command line options: invalid options
4
Background:
5
Given the profile "testbot"
6
7
+ @skip_on_routed_js
8
Scenario: osrm-routed - Non-existing option
9
When I try to run "osrm-routed --fly-me-to-the-moon"
10
Then stdout should be empty
features/testbot/snap_intersection.feature
@@ -570,7 +570,7 @@ Feature: Snapping at intersections
570
| a,f,k | ac,cf,cf,fj,kj,kj | 132.8s | 132.8 |
571
| k,f | ik,fi,fi | 54.3s | 54.3 |
572
| f,a | ef,ae,ae | 66.6s | 66.6 |
573
- | k,f,a | kj,fj,fj,ef,ae,ae | 141.399999999s | 141.399999999 |
+ | k,f,a | kj,fj,fj,ef,ae,ae | 141.399999999s +- 1e-7 | 141.399999999 +- 1e-7 |
574
575
When I request a travel time matrix I should get
576
| | a | f | k |
@@ -626,4 +626,4 @@ Feature: Snapping at intersections
626
| a,f,k | ad,df,df,fj,kj,kj | 105.6s | 105.6 |
627
628
629
- | k,f,a | ik,fi,fi,ef,ae,ae | 120.899999999s | 120.899999999 |
+ | k,f,a | ik,fi,fi,ef,ae,ae | 120.899999999s +- 1e-7 | 120.899999999 +- 1e-7 |
routed-js/package-lock.json
routed-js/package.json
@@ -36,6 +36,8 @@
36
"access": "public"
37
},
38
"devDependencies": {
39
+ "@types/node": "^18.11.3",
40
+ "@types/yargs": "^17.0.13",
41
"typescript": "^4.8.4"
42
}
43
routed-js/schema.js
@@ -331,6 +331,6 @@ function parseCoordinatesAndFormat(coordinatesAndFormat) {
331
if (!coordinatesSchema(coordinates)) {
332
throw { message: 'Invalid coordinates', code: 'InvalidQuery' };
333
334
- return { coordinates, format };
+ return { coordinates: coordinates, format };
335
336
exports.parseCoordinatesAndFormat = parseCoordinatesAndFormat;
routed-js/schema.ts
@@ -353,5 +353,5 @@ export function parseCoordinatesAndFormat(coordinatesAndFormat: string): { coord
353
354
throw {message: 'Invalid coordinates', code: 'InvalidQuery'};
355
356
+ return { coordinates: coordinates as [number, number][], format };
357
0 commit comments