File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
src/main/kotlin/fi/hsl/jore4/mapmatching
repository/infrastructure Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 13
13
<groupId >fi.hsl.jore4</groupId >
14
14
<artifactId >map-matching-backend</artifactId >
15
15
<packaging >jar</packaging >
16
- <version >1.1.2 </version >
16
+ <version >1.1.3 </version >
17
17
<name >Jore4 Map Matching</name >
18
18
<description >Jore4 map matching server</description >
19
19
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ data class PublicTransportRouteMatchRequestDTO(@field:Pattern(regexp = "[\\w\\d-
80
80
val fallbackToViaNodesAlgorithm : Boolean? ) {
81
81
82
82
private val isRoadJunctionMatchingEnabled: Boolean
83
- get() = roadJunctionMatchingEnabled?. let { it } != false
83
+ get() = roadJunctionMatchingEnabled != false
84
84
85
85
@AssertTrue(message = " false" )
86
86
fun isJunctionNodeDistancesAbsentWhenJunctionMatchingDisabled (): Boolean =
Original file line number Diff line number Diff line change @@ -48,8 +48,12 @@ class StopRepositoryImpl @Autowired constructor(val jdbcTemplate: NamedParameter
48
48
val stopSideOnLink: LinkSide =
49
49
when (rs.getBoolean(" is_on_direction_of_link_forward_traversal" )) {
50
50
true -> LinkSide .RIGHT
51
- false -> LinkSide .LEFT
52
- null -> LinkSide .BOTH
51
+ false -> {
52
+ if (rs.wasNull()) // only rarely in the real world
53
+ LinkSide .BOTH
54
+ else
55
+ LinkSide .LEFT
56
+ }
53
57
}
54
58
55
59
val infrastructureLinkId = rs.getLong(" infrastructure_link_id" )
You can’t perform that action at this time.
0 commit comments