Moritz Kobitzsch
bbcf343e40
compress traffic signals
...
- handle penalties within edges (not phantom nodes)
- changes model from providing penalties on turns to using additional segments
2017-08-04 11:19:32 +02:00
Moritz Kobitzsch
4c965b9f44
Add regression test for interaction between via-way and via-node
2017-08-03 14:37:05 +02:00
Moritz Kobitzsch
50c90b29d2
parse conditional turn restriction with via way
2017-08-01 12:27:29 +02:00
Moritz Kobitzsch
8135f08958
restructure for review remarks
2017-07-31 09:36:25 +02:00
Moritz Kobitzsch
645b1ffd75
add testcases to highlight limitation of via-way handling
2017-07-31 09:36:25 +02:00
Moritz Kobitzsch
8d0202d240
Add data structure to allow identification of via-way turns during creation of edge-based-graph
...
initial version of handling via-way turn restrictions (this is dirty)
- requires update of data structures
- requires clean-up
- requires optimisation
2017-07-31 09:36:25 +02:00
Moritz Kobitzsch
1f7aa6f812
adding tests to highlight via-way-restriciton development
2017-07-31 09:36:25 +02:00
Daniel J. Hofmann
ababeb3a69
Makes construction=minor ways routable again, see #4258
2017-07-19 16:24:45 +00:00
Patrick Niklaus
440dccb81b
Move classes to intersection object and don't emit notifications
2017-07-18 16:48:22 +00:00
Emil Tin
e413b25cd9
profiles api v2
2017-07-18 10:09:22 +00:00
Daniel J. Hofmann
6a555a477b
Discards construction and proposed ways, resolves #4230
2017-07-10 10:34:20 +02:00
Emil Tin
0bfbe5ad16
handle startpoint in bicycle profile, add tests
2017-07-07 16:16:13 +00:00
Daniel J. Hofmann
8c5ac84f0c
Lets approaches cuke test run under testbot profile, resolves #4181
...
🥒 🚗 -> 🤖
2017-07-06 14:40:21 +00:00
Patrick Niklaus
44739f2dc3
Allow users to specify a class for each way
...
This adds the ability to mark ways with a user-defined
class in the profile. This class information will be included
in the response as property of the RouteStep object.
2017-07-06 09:17:49 +00:00
Michael Krasnyk
b28077a437
Use rate rounding up to tenth in routability tests
2017-07-03 21:58:32 +00:00
Michael Krasnyk
879de346ea
Add timezone names customization in tests
2017-06-02 17:35:18 +02:00
Michael Krasnyk
50d9c4b34a
Add local time support for windows
2017-06-02 17:35:18 +02:00
karenzshea
0e39320a77
do not run conditional cuke tests by default
2017-06-02 11:15:34 +02:00
karenzshea
f497201322
add check that restrictions are off when not found in timezone polygons
2017-06-02 10:00:07 +02:00
karenzshea
63ea75612b
by default restrictions are off if timezone is not found
2017-06-02 10:00:07 +02:00
karenzshea
564a29141e
add testing geojson files
2017-06-02 10:00:07 +02:00
Moritz Kobitzsch
a92674022a
make all u-turns continue
2017-06-01 12:39:10 +02:00
Moritz Kobitzsch
ceaf065d0e
don't collapse highway ramps into uturns ( #4074 )
2017-06-01 12:39:10 +02:00
Daniel J. Hofmann
0317bbb35d
Splits via tests into car and testbot domain, resolves #4061
2017-05-30 16:38:51 +02:00
Daniel J. Hofmann
a4a6ed7e38
Puts approach test into car domain
2017-05-30 16:37:05 +02:00
Karen Shea
799a677e7a
Conditional turn restriction support ( #3841 )
...
* optionally include condition and via node coords in InputRestrictionContainer
* only write conditionals to disk, custom serialization for restrictions
* conditional turn lookup, reuse timezone validation from
extract-conditionals
* adapt updater to use coordinates/osm ids, remove internal to external map
* add utc time now parameter to contraction
* only compile timezone code where libshp is found, adapt test running
* slight refactor, more tests
* catch invalid via nodes in restriction parsing, set default cucumber
origin to guinée
* add another run to test mld routed paths
* cosmetic review changes
* Simplify Timezoner for windows build
* Split declaration and parsing parts for opening hours
* adjust conditional tests to run without shapefiles
* always include parse conditionals option
* Adjust travis timeout
* Added dummy TZ shapefile with test timezone polygons
* [skip ci] update changelog
2017-05-11 12:13:52 +02:00
Michael Krasnyk
6484fed190
Remove generate-edge-lookup argument in feature tests
2017-05-05 22:15:05 +00:00
Patrick Niklaus
9974b8b1da
Apply traffic light penalty also for non-turns
2017-04-20 13:52:13 +00:00
Michael Krasnyk
c81baae1b9
Fix incorrect weight fallback for distance-based weights
2017-04-19 08:28:38 +02:00
Michael Krasnyk
c39690195e
Added traffic tests to MLD testing
2017-03-17 13:20:33 +01:00
Michael Krasnyk
fe5d1a6e74
Add MLD testing to cucumber tests
2017-03-17 12:27:47 +01:00
Patrick Niklaus
596890a0f4
Fix spelling of access=customer_s_ and add to the restricted list way whitelisted highways
2017-03-06 16:14:26 +00:00
Patrick Niklaus
cc3a4899a2
Only allow restricted access for road of certain highway type
2017-03-03 16:03:41 +00:00
Patrick Niklaus
fbf7521769
Other flakey test
2017-03-02 15:24:51 +00:00
Patrick Niklaus
7c911b3891
Mark test as flaky and track in own issue.
2017-03-02 14:55:52 +00:00
karenzshea
d32ebd57e6
simplify test, add intersection turn test
2017-03-02 14:55:52 +00:00
karenzshea
8e43c8cbce
add restricted penalty on NoTurn turns
2017-03-02 14:55:52 +00:00
Moritz Kobitzsch
18a50d357f
remove suppressed new names from new tests
2017-02-25 12:17:22 +00:00
Moritz Kobitzsch
6c3390f14d
refactor of post-processing
...
- moves collapse into a dedicated set of functions / files
- make collapse scenarios distinct (slight performance cost)
- reduce verbosity for short name segments (now actually working, was supposed to do so before)
2017-02-25 12:17:22 +00:00
yuryleb
5739c27ef4
Corrected car's bridge feature tests
2017-02-23 22:35:15 +00:00
karenzshea
c2727f2029
expose data about turning onto restricted roads to turn function
2017-02-20 12:40:51 +00:00
Daniel Patterson
73ce44028f
Allow routing on toll roads by default ( #3712 )
2017-02-14 15:20:10 -08:00
Patrick Niklaus
b906f2a628
Fix side road penalties and add test
2017-02-13 09:28:35 +00:00
Patrick Niklaus
2e6428e917
Fix HOV lane support with penalties
2017-02-10 14:27:28 +00:00
karenzshea
1f3a8d4538
remove units from rate columns in routability testing
2017-02-10 14:27:28 +00:00
karenzshea
1c25070572
provide rate and weight headers for checking in routability tests
2017-02-10 14:27:28 +00:00
karenzshea
24fe881d03
hov_penalty, use min penalty rather than aggregate
2017-02-10 14:27:28 +00:00
karenzshea
25ab51f4f0
remove calls to handlers now in handle_penalties
2017-02-10 14:27:28 +00:00
karenzshea
46f96af360
fix merge conflicts
2017-02-10 14:27:28 +00:00
Daniel J. Hofmann
919386bdaf
Adds access=permissive
routability scenarios, see #3435 .
2017-02-08 14:27:55 +00:00
Patrick Niklaus
ae835cc04f
Blacklist steps from the car profile
2017-02-08 14:27:55 +00:00
Michael Krasnyk
1628ebb871
Fix assertions in car profile, resolves #3629
...
restrict direction if access tag is missing and can not be derived
from highway tag
http://www.openstreetmap.org/way/4282676
http://www.openstreetmap.org/way/4621857
http://www.openstreetmap.org/way/4898368
2017-02-03 12:41:26 +00:00
Emil Tin
11ee632cfe
car: add tests oneway:<mode> tags
2017-02-01 16:50:18 +01:00
Emil Tin
97c0a74c04
factor out common lua code to helper files
2017-02-01 16:50:18 +01:00
Michael Krasnyk
ad594cb2e4
Update review findings
2017-01-27 11:19:37 +01:00
Patrick Niklaus
279f8aabfb
Allow specifing a weight for routing that is independent of duration
2017-01-27 11:19:37 +01:00
Michael Krasnyk
fbc7189cf8
Added speed round-off error test
2017-01-20 12:31:45 +01:00
Michael Krasnyk
e8167b2e4e
Use round for float to fixed coordinate transformations
2017-01-20 12:31:45 +01:00
Daniel J. Hofmann
94854b5c90
Adds barrier=gate regression tests, see #581
2016-12-15 12:03:24 +01:00
Daniel J. Hofmann
98659fb0a0
Adds failing tests for directional access overrides, discovered in #3345
2016-12-13 17:37:42 +01:00
Daniel J. Hofmann
875f482203
Refactors and improves the Sliproad Handler, resolves #3109
2016-12-07 19:22:03 +01:00
Emil Tin
9461c83511
car profile: handle forward/backward access
2016-12-05 14:15:47 +01:00
Emil Tin
532cbfce13
profiles: Directional helper, some car refactoring
2016-12-05 14:15:47 +01:00
Michael Krasnyk
e343f71541
Refactor Hilbert values computation
2016-11-28 14:17:12 +01:00
Daniel J. Hofmann
6ac9617d49
Adapt test to returning ref, Take Pronunciation into Account, Fixes name change heuristic usage in UTurn check
2016-11-08 12:14:23 +01:00
Daniel Patterson
ceddfada3d
Don't mark all lanes as designated when there are blank lane specifiers in the tag.
2016-10-25 14:37:59 -06:00
Daniel J. Hofmann
19f00589de
Removes constant speed offset from calibration two years ago, resolves #3023 .
...
Our fine-tuned profiles are better in modelling real speed by now. This
constant offset is no longer needed. We still scale maxspeed, though.
https://github.com/Project-OSRM/osrm-backend/issues/3053
2016-10-22 06:48:49 +02:00
Moritz Kobitzsch
ecee13bffa
actually calculate distance instead of using .distance
which is a timing value
2016-10-20 12:27:02 +02:00
Daniel J. Hofmann
ee4fb89336
Adds missing routable service tags
...
http://taginfo.openstreetmap.org/keys/service#values
2016-10-18 22:11:13 +02:00
karenzshea
f540485cb0
Add a speed for driveway to service speeds
2016-10-17 15:45:31 -07:00
karenzshea
5617d3886d
Fix cucumber support code for routability testing to actually test
...
input/output for speed and time values, adjust resulting broken tests
2016-10-17 15:45:11 -07:00
Daniel J. Hofmann
a13cf3f2be
Route over alternating oneways but not reversible ones, closes #2837 .
...
- alternating: high frequency, route over them with penalty
- reversible: low frequency, do not route over them - time dependence
- http://wiki.openstreetmap.org/wiki/Tag:oneway%3Dreversible
- http://wiki.openstreetmap.org/wiki/Tag:oneway%3Dalternating
This distinction was made at the Elbe-Labe Meetup in Dresden, with
accompanying Wiki pages and tagging scheme. Thanks all involed!
- https://github.com/Project-OSRM/osrm-backend/issues/2837
- http://wiki.openstreetmap.org/wiki/Key:oneway
2016-10-12 12:53:07 +02:00
Emil Tin
7cbb1807e7
cucumber: change syntax of node maps
2016-10-11 09:07:48 +02:00
karenzshea
5d9fc83db4
adjust test cases that specify coords without leading 0
2016-10-03 13:15:39 -04:00
Moritz Kobitzsch
10b93c6908
re-introduce space into summaries
2016-09-30 14:36:09 +02:00
Moritz Kobitzsch
e4d0d49300
move summaries to car profile, test for references, use boost adaptors
2016-09-30 10:59:23 +02:00
Daniel J. Hofmann
a63b10972b
Handle HOV designated-only Lanes, resolves #2929
...
In https://github.com/Project-OSRM/osrm-backend/issues/2711 we made
`hov=designated` routability configurable.
We want to handle designated-only lanes in the same way. Example:
hov:lanes:forward=designated|designated
hov:lanes:backward=designated
should have more or less the same effects as
hov=designated
In contrast
hov:lanes:forward=designated|no|yes hov:lanes:backward=yes
should not be handled. See
https://github.com/Project-OSRM/osrm-backend/issues/2711
for explanation wrt. tag semantics with the difference that
backward/forward only set the backward/forward mode to inaccessible.
References:
- http://wiki.openstreetmap.org/wiki/Key:hov#hov:lanes.3D.2A
2016-09-21 10:56:42 +02:00
Patrick Niklaus
7d124ce54d
Close GH-2795: Rewrite cucumber test caching (and support logic). Fixes #2745
2016-09-19 14:13:44 -07:00
Daniel J. Hofmann
e6fe9d0d67
Fixes issue where two ways with same name but different pronunciation where deduplicated, resolves #2860
2016-09-09 18:28:44 +02:00
karenzshea
dcc1b5ab2b
return name and reference separately
2016-09-08 14:28:23 +02:00
Moritz Kobitzsch
938dff011f
handle all our new strings correctly, introduce rotary_pronunciation
2016-09-07 16:09:13 +02:00
Moritz Kobitzsch
802b93fa9a
fix testcases, one case only works by turn restriction, needs investigation
2016-09-07 12:04:17 +02:00
Moritz Kobitzsch
6fac14dbd8
ignore invalid only_* restrictions
2016-09-01 09:14:01 +02:00
karenzshea
146eb3a20e
add test case for ignoring unknown restrictions
2016-08-31 09:52:05 -04:00
Patrick Niklaus
315823cce1
Use service tag to penaltize alleys and forbid emergency access
2016-08-29 14:15:22 +02:00
Patrick Niklaus
12d478784b
Enable toll roads by default again.
...
Currently we don't route over the Golden Gate bridge by default.
This sets the value to false by default. To test the behavior for
tolls when ignored, we would need issue #2781 implemented.
2016-08-19 13:01:15 +02:00
Daniel Patterson
176c2244ad
Catch and report errors during osrm-contract tests.
2016-08-05 14:19:22 -07:00
Daniel J. Hofmann
8bee57b0b0
Makes toll=yes way's routability configurable in profiles.
...
The primary use-case is conditionally filtering ways such as:
https://www.openstreetmap.org/edit#map=18/38.94198/-77.28127
which we are guiding the user onto in the route from DC to IAD:
http://map.project-osrm.org/?z=12¢er=38.934443%2C-77.167969&loc=38.902656%2C-77.029095&loc=38.952210%2C-77.453424&hl=en&alt=0
This changeset makes `toll=yes` configurable in the profiles, disabling
them by default. Neither do we support time-based fees nor vehicle
category fees at the moment.
References:
- http://wiki.openstreetmap.org/wiki/Key:toll
2016-08-04 14:29:22 +02:00
Daniel J. Hofmann
583aaff286
Makes designated HOV way's routability configurable in profiles.
...
Why only `hov=designated` and not all access tags, such as `hov:yes`,
`hov=no` and so on? From the Wiki:
- designated: The way is designated to high occupancy vehicles.
- yes: High occupancy vehicles are allowed. This by itself does not imply that other vehicles are restricted from using the way.
- no: High occupancy vehicles are not allowed on the way. This by itself does not imply that other vehicle types are allowed to use it.
The primary use-case is conditionally filtering ways such as:
http://www.openstreetmap.org/way/11198593#map=19/37.82571/-122.30521&layers=D
In addition there is a notion of HOV lanes for lane handling:
http://wiki.openstreetmap.org/wiki/Key:hov#hov:lanes.3D.2A
This changeset does not handle lanes at all, only designated HOV ways.
For HOV lane support, a logic similar to the lane access handling needs
to be implemented. This needs to go hand in hand with the existing lane
handling introduced in:
7d076e9344
References:
- #2711
- http://wiki.openstreetmap.org/wiki/Key:access
- http://wiki.openstreetmap.org/wiki/Key:hov#Values
2016-08-03 12:24:43 +02:00
Daniel Patterson
d012b44b7f
Filter out edges that have any speed=0 segments.
...
They become non-snappable and non-routable. Note that a single segment
of speed=0 will eliminate the entire edge.
2016-07-30 23:53:38 +02:00
Moritz Kobitzsch
efa29edf09
basic turn lane handling
2016-06-27 10:07:41 +02:00
Moritz Kobitzsch
1dfdb38d4a
improve collapse-handling
2016-06-06 10:05:18 +02:00
Daniel J. Hofmann
b78207ddd8
Revert "Add implied oneway cucumber tests for mini roundabouts"
...
This reverts commit bd707b0cfc
.
Conflicts:
features/bicycle/oneway.feature
features/car/oneway.feature
2016-06-02 15:00:44 +02:00
Daniel J. Hofmann
c490752ca7
highway=motorway_link does not imply oneway, fixes #1662
...
References:
- http://wiki.openstreetmap.org/wiki/Tag:highway%3Dmotorway_link#Tagging_oneway
- http://wiki.openstreetmap.org/wiki/Tag:highway%3Dmotorway_link
- http://wiki.openstreetmap.org/wiki/Tag:highway%3Dmotorway
2016-06-02 13:05:50 +02:00
Patrick Niklaus
0a53775fb3
Expose pronunciation in RouteStep
...
Uses name:pronunciation by default for cars.
2016-06-01 23:17:57 +02:00
Daniel J. Hofmann
bd707b0cfc
Add implied oneway cucumber tests for mini roundabouts
2016-06-01 20:17:48 +02:00
Lauren Budorick
346146d834
Address comments from b89164c14e
( #2346 )
2016-05-02 08:00:27 -07:00
Lauren Budorick
b8f7569e93
Implement arbitrary turn penalty file IO and integration ( #2306 )
...
Closes #1830
2016-04-29 00:48:13 -07:00
Moritz Kobitzsch
be5b49e391
Fix local path looping, fixes #2309
2016-04-25 19:37:59 +02:00
karenzshea
58c13d2c07
remove movable bridge travel mode references
2016-04-19 12:59:33 -04:00