Emil Tin
0bfbe5ad16
handle startpoint in bicycle profile, add tests
2017-07-07 16:16:13 +00:00
Daniel J. Hofmann
54ceb05420
Implements Alternatives for MLD
2017-07-07 16:12:46 +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
Daniel J. Hofmann
7d900e3b5a
Implements Exit Numbers + Names (junction:ref
way tag for now)
2017-07-04 20:58:19 +00:00
Michael Krasnyk
1bee82e288
Make safety penalties graduation for primary, secondary and tertiary
2017-07-03 21:58:32 +00:00
Michael Krasnyk
a41caf0efb
Adjustment of bicycle profile to review comments
2017-07-03 21:58:32 +00:00
Michael Krasnyk
a3e0eb03db
Implement bicycle safety penalty
2017-07-03 21:58:32 +00:00
Patrick Niklaus
34f62b4894
Add test case for safety features on cycleways
2017-07-03 21:58:32 +00:00
Michael Krasnyk
8a404ea850
Use correctly traffic light penalty for no_turn turns
2017-07-03 13:43:13 +02:00
Emil Tin
f27434f2fb
fixes #4060 , incorrect cycling against oneways
2017-06-22 14:20:42 +00:00
Daniel Patterson
cd8fb82215
Add flag to allow skipping calling node function for nodes with no tags.
2017-06-13 12:23:00 +00:00
Daniel J. Hofmann
a971c2ef37
Applies max turn weight for turns onto restricted weights: no need for custom penalty
2017-05-18 16:33:50 +00:00
Daniel J. Hofmann
c757f70b97
Prevents possible overflow in applying a turn penalty onto restricted roads
2017-05-18 16:33:50 +00:00
Patrick Niklaus
7d42e18479
Fix bicycle turn penalties
2017-05-16 16:19:17 +00:00
Frederik Ramm
16f492026a
remove penalty_table from car.lua
...
remove penalty_table as it is apparently not used anywhere.
2017-05-16 10:40:21 +00:00
Patrick Niklaus
f3de2c9b94
For the cyclability profile add alley penalties
2017-05-05 17:06:50 +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
2cd4ba9a0a
move split_edges to global properties
2017-03-30 11:20:13 +02:00
Michael Krasnyk
8f8df969a2
use signed slope to distinguish uphills and downhills
2017-03-30 11:20:13 +02:00
Michael Krasnyk
dbc6535221
add split_edge flag in extracted ways
2017-03-30 11:20:13 +02:00
MichalPP
ebd938a8fc
add kerb to foot.profile barrier whitelist
2017-03-29 10:25:28 +02:00
Emil Tin
5a2da798c8
fixes speed on cycleway+oneway #3853
2017-03-28 12:07:38 +02:00
wieringen
24c70e3c8e
Added bus_trap and sump_buster to barrier whitelist for bicycle profile
2017-03-10 23:09:27 +00: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
karenzshea
8e43c8cbce
add restricted penalty on NoTurn turns
2017-03-02 14:55:52 +00:00
yuryleb
b59295e55e
Restored pre-fetching bridge tags
...
Restored bridge tags but as optional way data; highway or route tags
must be always
2017-02-23 22:35:15 +00:00
yuryleb
49862d1bcd
Restored foot and bike profiles
2017-02-23 22:35:15 +00:00
yuryleb
544e54894f
Excluded 'bridge=*' from all profiles
...
This commit fixes issue #3588 "OSRM uses man_made=bridge lines to
route?" with exclusion of 'brigde' tag analisys from all profiles to
disable routing on bridges countours (with no highway tags)
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
Lev Dragunov
a0e7bab598
Add oneway:conditional profile code comment.
2017-02-20 10:34:06 +00:00
Lev Dragunov
67ae86882a
Conditional oneway restrictions
2017-02-20 10:34:06 +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
140f1ad923
convert speed to meters per second when used to set rate
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
Patrick Niklaus
1e4c8eeeb6
Only use trains when they are marked for bringing bikes
2017-02-08 14:29:28 +00:00
Patrick Niklaus
72455a2733
Don't check access tags of bike against railway
2017-02-08 14:29:28 +00:00
Michael Krasnyk
112cf55aae
use white list as a set complement of blacklist for bicycle profile
...
http://www.openstreetmap.org/way/4788559
2017-02-08 14:29:28 +00:00
Patrick Niklaus
ae835cc04f
Blacklist steps from the car profile
2017-02-08 14:27:55 +00:00
Michael Krasnyk
9f28873cb1
add empty {tracktype,smoothness}_speeds in bicycle profile
2017-02-07 09:06:04 +00:00
Emil Tin
10c5d76909
use data.highway
2017-02-07 09:06:04 +00:00
Emil Tin
d81ef3f4db
first round of handlers
2017-02-07 09:06:04 +00:00
Emil Tin
3abab16bf3
move settings to profile table
2017-02-07 09:06:04 +00:00
Daniel J. Hofmann
cedeb15ade
Adds surface=sett to bicycle profile, resolves #3649
...
References:
- http://taginfo.openstreetmap.org/keys/surface#values
- http://wiki.openstreetmap.org/wiki/Key:surface
2017-02-06 10:54:56 +01:00
Michael Krasnyk
9e5d45d86a
Added 'distance' weight to car profile
2017-02-03 18:59:00 +00:00
Michael Krasnyk
5fd6355829
add empty speed tables to foot.lua
2017-02-03 12:41:26 +00:00
Michael Krasnyk
6da4d918d0
Allow bicycle routing without access tag for railways with highway tag
...
http://www.openstreetmap.org/way/24455356
2017-02-03 12:41:26 +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
97c0a74c04
factor out common lua code to helper files
2017-02-01 16:50:18 +01:00
Patrick Niklaus
279f8aabfb
Allow specifing a weight for routing that is independent of duration
2017-01-27 11:19:37 +01:00
Emil Tin
46ac9d05d9
foot profile: fix missing tracktype/smothness settings
2017-01-27 09:45:02 +01:00
Emil Tin
445225bf6d
clean up lua debugging
2017-01-25 16:37:41 +01:00
Emil Tin
47b1a56b12
refactor foot profile (as was done for car)
2017-01-25 11:23:49 +01:00
Michael Krasnyk
1ae69fe40d
Added missing backward_speed for cycleways
2017-01-17 12:51:38 +01:00
Daniel J. Hofmann
fd57c5b48b
Supports destination:street, resolves #3541
2017-01-13 11:07:01 +05:30
Patrick Niklaus
0f3a463854
Add api_version
gloabal variable to profiles
...
Currently only `0` is supported (the default).
2016-12-23 15:02:10 +01:00
karenzshea
d5904d5756
increase template depth on clang and gcc builds
2016-12-15 10:55:16 +01:00
Daniel J. Hofmann
0f59b78c02
Rewrite lua bindings using sol interface
2016-12-15 10:55:16 +01:00
Daniel J. Hofmann
0e6863aec1
Removes access and service restriction list from bike and foot profile
2016-12-05 14:15:47 +01:00
Daniel J. Hofmann
949d505783
Removes access_restricted flag internally
2016-12-05 14:15:47 +01:00
Emil Tin
d11927046f
car profile: remove use of is_access_restricted flag
2016-12-05 14:15:47 +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
Daniel J. Hofmann
fe5cc55b0e
support junction = circular in all profiles, add additional tests
...
References:
- https://wiki.openstreetmap.org/wiki/Tag:junction%3Dcircular
- https://lists.openstreetmap.org/pipermail/tagging/2016-November/030520.html
- https://github.com/Project-OSRM/osrm-backend/issues/3361
2016-11-29 13:44:32 +01:00
Moritz Kobitzsch
12d58ace10
add support for junction=circular, allowing named circular junctions to be treated as rotaries
2016-11-29 13:44:32 +01:00
Emil Tin
305e813489
lua: improve naming
2016-11-18 00:21:34 +01:00
Emil Tin
f5bf788814
lua: simplify destination helper
2016-11-18 00:21:34 +01:00
Emil Tin
00f7d7776d
lua: refactor destination helper
2016-11-18 00:21:34 +01:00
Emil Tin
173a39fd8b
lua: fix typo
2016-11-18 00:21:34 +01:00
Emil Tin
5d564ee510
lua: Set and Sequence
2016-11-18 00:21:34 +01:00
Emil Tin
24c2708d1e
lua: eliminte tag cache, simplify tag checks
2016-11-18 00:21:34 +01:00
Emil Tin
d87a972c66
don't return empty tags strings to lua
2016-11-18 00:21:34 +01:00
Emil Tin
f90736b6b3
lua: handle_hov()
2016-11-18 00:21:34 +01:00
Emil Tin
9aeb3086cb
lua: cleanup handle_blocking(), move common cases up early
2016-11-18 00:21:34 +01:00
Emil Tin
9e361a8178
lua: exit earlier when possible
2016-11-18 00:21:34 +01:00
Emil Tin
c3aeef4e09
lua: eliminate TagCache.set_tag()
2016-11-18 00:21:34 +01:00
Emil Tin
50090e6447
lua: some cleanup
2016-11-18 00:21:34 +01:00
Emil Tin
b9e5d26e3a
remove dead code
2016-11-18 00:21:34 +01:00
Emil Tin
184cfab33b
increase performance by passing vars instead of a table
2016-11-18 00:21:34 +01:00
Emil Tin
fd95b2da76
streamline way_function
2016-11-18 00:21:34 +01:00
Emil Tin
ce04a608b8
lua: refactor car.lua into smaller functions
2016-11-18 00:21:34 +01:00
Emil Tin
cff69178e8
lua: simple tag cache enabling factoring way_function into smaller functions
2016-11-18 00:21:34 +01:00
Emil Tin
6c682b2258
lua: helpers for debugging
2016-11-18 00:21:34 +01:00
Daniel J. Hofmann
ef2261661c
Remove {highway: type} fallback from bike / walk profile, fixes #3231
...
References:
- https://github.com/Project-OSRM/osrm-text-instructions/issues/62#issuecomment-257889721
- https://github.com/Project-OSRM/osrm-text-instructions/pull/63
2016-11-08 14:28:56 +01:00
Kajari Ghosh
c30f43b148
added max_speed to the profiles ( #3089 )
2016-11-01 17:13:10 -04: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
Michael Krasnyk
86b70f2632
Don't fail on incorrect lane tags '1; 2'
2016-10-24 15:25:46 -07: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
5e167b8745
Turn Angles in OSRM were computed using a lookahead of 10 meters.
...
This PR adds more advanced coordinate extraction, analysing the road
to detect offsets due to OSM way modelling.
In addition it improves the handling of bearings. Right now OSM reports
bearings simply based on the very first coordinate along a way.
With this PR, we store the bearings for a turn correctly, making the
bearings for turns correct.
2016-10-20 10:47:29 +02:00
Daniel J. Hofmann
ab1a9271c8
Canonicalizes Spaces in Semicolon Stringlists, fixes #3086
2016-10-19 14:14:18 -07:00
Kajari Ghosh
3f0f0e306b
Directional Destination Tags ( #3061 )
...
* cucumber test scenarios, #3027
* post review comments
* two tests are still failing
* fixed one test
* passing tests
* cleaner code refactor
* possible sceanrios for destination:ref:forward/backward
* added code for direction:ref:forward/backward, tests pass
* changelog
* store direction in variable
* added tags to taginfo
* fixed dumb error
* use boolean flags
* null pointer checks
* hopefully better null pointer checks
2016-10-18 23:09:19 -04: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