Skip to content

Commit

Permalink
Merge pull request #431 from skedgo/bugfix/19921-lit-routing-issues-fix
Browse files Browse the repository at this point in the history
[19921] lit routing issues fix
  • Loading branch information
MichaelReyes authored May 13, 2024
2 parents a49a859 + e69e882 commit 7bc8982
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ class GetTravelledLineForTrip @Inject constructor() {
else
it.serviceColor.color
val decodedWayPoints = PolyUtil.decode(it.encodedWaypoints)
println("tag123, a: ${decodedWayPoints.size}")
val simplified = decodedWayPoints.simplify(LAT_LNG_SIMPLIFY_TOLERANCE)
println("tag123, b: ${simplified.size}")
simplified.zipWithNext()
.map { (start, end) ->
com.skedgo.tripkit.LineSegment(
Expand All @@ -70,8 +68,10 @@ class GetTravelledLineForTrip @Inject constructor() {
.map { (start, end) ->
var lineColor =
(getColorForWheelchairAndBicycle(street, modeId) ?: color)
if (!street.roadTags().isNullOrEmpty()) {
lineColor = Color.BLUE
street.roadTags()?.let {
it.firstOrNull()?.let {
lineColor = it.getRoadTagColor()
}
}
com.skedgo.tripkit.LineSegment(
TripKitLatLng(start.latitude, start.longitude),
Expand Down

0 comments on commit 7bc8982

Please sign in to comment.