-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement NodeJS based server replicating osrm-routed #6411
base: master
Are you sure you want to change the base?
Changes from all commits
53f2da5
251ffe4
768c331
dd04760
8273e8b
61810b9
3f0ded6
9c7d75d
1047cc1
242c074
4fd4c3b
71a638a
6dfb7d4
41ff79a
8e3fa70
40805f7
4dfae26
ddde7e1
38e4b0b
2016d46
3e68237
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -52,11 +52,11 @@ Feature: Weight tests | |||
| abc | | ||||
|
||||
When I route I should get | ||||
| waypoints | route | distances | weights | times | a:distance | a:duration | a:weight | a:speed | | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems to be caused by the fact that our JSON renderer truncates numbers to have maximum 10 digits after dot
|
||||
| s,t | abc,abc | 20m,0m | 2,0 | 2s,0s | 20.03462663 | 2 | 2 | 10 | | ||||
| t,s | abc,abc | 20m,0m | 2,0 | 2s,0s | 20.03462663 | 2 | 2 | 10 | | ||||
| s,e | abc,abc | 40m,0m | 3.9,0 | 3.9s,0s | 29.94063646:10.01731331 | 3:0.9 | 3:0.9 | 10:11.1 | | ||||
| e,s | abc,abc | 40m,0m | 3.9,0 | 3.9s,0s | 10.01731331:29.94063646 | 0.9:3 | 0.9:3 | 11.1:10 | | ||||
| waypoints | route | distances | weights | times | a:distance | a:duration | a:weight | a:speed | | ||||
| s,t | abc,abc | 20m,0m | 2,0 | 2s,0s | 20.03462663 +- 1e-7 | 2 | 2 | 10 | | ||||
| t,s | abc,abc | 20m,0m | 2,0 | 2s,0s | 20.03462663 +- 1e-7 | 2 | 2 | 10 | | ||||
| s,e | abc,abc | 40m,0m | 3.9,0 | 3.9s,0s | 29.94063646:10.01731331 +- 1e-7 | 3:0.9 | 3:0.9 | 10:11.1 | | ||||
| e,s | abc,abc | 40m,0m | 3.9,0 | 3.9s,0s | 10.01731331:29.94063646 +- 1e-7 | 0.9:3 | 0.9:3 | 11.1:10 | | ||||
|
||||
|
||||
Scenario: Step weights -- way_function: fail if no weight or weight_per_meter property | ||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Feature: Tile service | ||
Background: | ||
Given the profile "testbot" | ||
Scenario: Smoke test | ||
Given the origin 52.5212,13.3919 | ||
Given the node map | ||
""" | ||
a b | ||
""" | ||
And the ways | ||
| nodes | | ||
| ab | | ||
When I request /tile/v1/testbot/tile(8800,5373,14).mvt | ||
Then HTTP code should be 200 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
"use strict"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note for reviewers: all |
||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Format = void 0; | ||
var Format; | ||
(function (Format) { | ||
Format["Json"] = "json"; | ||
Format["Flatbuffers"] = "flatbuffers"; | ||
})(Format = exports.Format || (exports.Format = {})); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export enum Format { | ||
Json = 'json', | ||
Flatbuffers = 'flatbuffers' | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to change it since new server has higher startup time than our existing osrm-routed.