Skip to content

Commit

Permalink
Fixed route builder for start edge without shapes.
Browse files Browse the repository at this point in the history
  • Loading branch information
xivk committed Aug 20, 2024
1 parent a58e5b7 commit 42fc710
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Itinero.Common.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!--- Package information, Version -->
<PropertyGroup>
<PackageVersion>2.0.1-alpha-105</PackageVersion>
<PackageVersion>2.0.2-alpha-000</PackageVersion>
<NeutralLanguage>en</NeutralLanguage>
<Description>Itinero - Routeplanning for .NET.</Description>
<Copyright>Itinero BV</Copyright>
Expand Down
5 changes: 5 additions & 0 deletions src/Itinero/Routes/Builders/RouteBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ public Result<Route> Build(RoutingNetwork routingNetwork, Profile profile, Path
route.Shape.Add(shapeBetween.Current);
}

if (route.Shape.Count == 0)
{
route.Shape.Add(edgeEnumerator.LocationOnEdge(offset2));
}

if (offset1 != 0 ||
offset2 != ushort.MaxValue)
{
Expand Down

0 comments on commit 42fc710

Please sign in to comment.