Skip to content

Commit

Permalink
Merge pull request #98 from Parkopedia/fix-point-along-line-encoding
Browse files Browse the repository at this point in the history
Fix PointAlongLine offset encoding
  • Loading branch information
xivk authored Apr 25, 2024
2 parents fd4f8da + 58bf8f9 commit 91baf8a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public static byte[] Encode(PointAlongLineLocation location)
SideOfRoadConverter.Encode(location.SideOfRoad.Value, data, 14, 0);
if (location.PositiveOffsetPercentage.HasValue)
{ // positive offset percentage is present.
OffsetConvertor.EncodeFlag(true, data, 15, 1);
OffsetConvertor.Encode(location.PositiveOffsetPercentage.Value, data, 16);
}

Expand Down

0 comments on commit 91baf8a

Please sign in to comment.