Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 37c941dff3 | |||
| 40a428d49f | |||
| 48eeef2d30 | |||
| c34520f3a4 |
@@ -42,8 +42,6 @@
|
|||||||
- Algorithm)
|
- Algorithm)
|
||||||
- BREAKING: the file format requires re-processing due to the changes on via-ways
|
- BREAKING: the file format requires re-processing due to the changes on via-ways
|
||||||
- Added support for via-way restrictions
|
- Added support for via-way restrictions
|
||||||
- Node.js Bindings:
|
|
||||||
- Include binaries in the `node_modules/.bin` directory so they're in the PATH when running inside Node
|
|
||||||
|
|
||||||
# 5.9.2
|
# 5.9.2
|
||||||
- API:
|
- API:
|
||||||
|
|||||||
@@ -0,0 +1,102 @@
|
|||||||
|
@routing @guidance
|
||||||
|
Feature: Divided road entry
|
||||||
|
|
||||||
|
Background:
|
||||||
|
Given the profile "car"
|
||||||
|
Given a grid size of 5 meters
|
||||||
|
|
||||||
|
Scenario: Join on a divided road named after the main road
|
||||||
|
Given the node map
|
||||||
|
"""
|
||||||
|
a-------b-----c
|
||||||
|
|
|
||||||
|
d-------e-----f
|
||||||
|
|
|
||||||
|
|
|
||||||
|
g
|
||||||
|
"""
|
||||||
|
|
||||||
|
And the ways
|
||||||
|
| nodes | name | highway | oneway |
|
||||||
|
| abc | main st | residential | -1 |
|
||||||
|
| def | main st | residential | yes |
|
||||||
|
| be | main st | residential | |
|
||||||
|
| eg | side st | residential | |
|
||||||
|
|
||||||
|
When I route I should get
|
||||||
|
| waypoints | route | turns |
|
||||||
|
| g,a | side st,main st,main st| depart,end of road left,arrive |
|
||||||
|
|
||||||
|
|
||||||
|
# Similar to previous one, but the joining way is tagged with the side-street name
|
||||||
|
Scenario: Join on a divided road, named after the side street
|
||||||
|
Given the node map
|
||||||
|
"""
|
||||||
|
a-------b-----c
|
||||||
|
|
|
||||||
|
d-------e-----f
|
||||||
|
|
|
||||||
|
|
|
||||||
|
g
|
||||||
|
"""
|
||||||
|
|
||||||
|
And the ways
|
||||||
|
| nodes | name | highway | oneway |
|
||||||
|
| abc | main st | residential | -1 |
|
||||||
|
| def | main st | residential | yes |
|
||||||
|
| beg | side st | residential | |
|
||||||
|
|
||||||
|
When I route I should get
|
||||||
|
| waypoints | route | turns |
|
||||||
|
| g,a | side st,main st,main st| depart,end of road left,arrive |
|
||||||
|
|
||||||
|
|
||||||
|
# Center join named after crossroad
|
||||||
|
Scenario: Crossing a divided road, named after side-street
|
||||||
|
Given the node map
|
||||||
|
"""
|
||||||
|
h
|
||||||
|
|
|
||||||
|
a-------b-----c
|
||||||
|
|
|
||||||
|
d-------e-----f
|
||||||
|
|
|
||||||
|
|
|
||||||
|
g
|
||||||
|
"""
|
||||||
|
|
||||||
|
And the ways
|
||||||
|
| nodes | name | highway | oneway |
|
||||||
|
| abc | main st | residential | -1 |
|
||||||
|
| def | main st | residential | yes |
|
||||||
|
| hbeg | side st | residential | |
|
||||||
|
|
||||||
|
When I route I should get
|
||||||
|
| waypoints | route | turns |
|
||||||
|
| g,a | side st,main st,main st| depart,turn left,arrive |
|
||||||
|
|
||||||
|
# Join named after divided road
|
||||||
|
Scenario: Crossing a divided road, named after main street
|
||||||
|
Given the node map
|
||||||
|
"""
|
||||||
|
h
|
||||||
|
|
|
||||||
|
a-------b-----c
|
||||||
|
|
|
||||||
|
d-------e-----f
|
||||||
|
|
|
||||||
|
|
|
||||||
|
g
|
||||||
|
"""
|
||||||
|
|
||||||
|
And the ways
|
||||||
|
| nodes | name | highway | oneway |
|
||||||
|
| abc | main st | residential | -1 |
|
||||||
|
| def | main st | residential | yes |
|
||||||
|
| be | main st | residential | |
|
||||||
|
| hb | side st | residential | |
|
||||||
|
| eg | side st | residential | |
|
||||||
|
|
||||||
|
When I route I should get
|
||||||
|
| waypoints | route | turns |
|
||||||
|
| g,a | side st,main st,main st| depart,turn left,arrive |
|
||||||
+1
-10
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "osrm",
|
"name": "osrm",
|
||||||
"version": "5.11.0-rc.1",
|
"version": "5.11.0-rc.2",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "The Open Source Routing Machine is a high performance routing engine written in C++14 designed to run on OpenStreetMap data.",
|
"description": "The Open Source Routing Machine is a high performance routing engine written in C++14 designed to run on OpenStreetMap data.",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -65,14 +65,5 @@
|
|||||||
"host": "https://mapbox-node-binary.s3.amazonaws.com",
|
"host": "https://mapbox-node-binary.s3.amazonaws.com",
|
||||||
"remote_path": "./{name}/v{version}/{configuration}/",
|
"remote_path": "./{name}/v{version}/{configuration}/",
|
||||||
"package_name": "{node_abi}-{platform}-{arch}.tar.gz"
|
"package_name": "{node_abi}-{platform}-{arch}.tar.gz"
|
||||||
},
|
|
||||||
"bin": {
|
|
||||||
"osrm-extract": "./lib/binding/osrm-extract",
|
|
||||||
"osrm-contract": "./lib/binding/osrm-contract",
|
|
||||||
"osrm-partition": "./lib/binding/osrm-partition",
|
|
||||||
"osrm-customize": "./lib/binding/osrm-customize",
|
|
||||||
"osrm-routed": "./lib/binding/osrm-routed",
|
|
||||||
"osrm-components": "./lib/binding/osrm-components",
|
|
||||||
"osrm-datastore": "./lib/binding/osrm-datastore"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user