RoundTrip near coastlines with a heading near the sea

When I create a suggestion with a heading seaward, the intented length is exceeded many times.
For example

  • startpoint near our coast in Belgium (point=51.277704,3.0322621)
  • I want a roundtrip of 55 km (round_trip.distance=55000)
  • Heading North (heading=0)

https://graphhopper.com/api/1/route?points_encoded=true&vehicle=mtb&weighting=fastest&ch.disable=true&algorithm=round_trip&round_trip.distance=55000&round_trip.seed=0&heading=0&instructions=true&point=51.277704,3.0322621&key=[key]

Resulting in a route of 926 km (16x asked length).

Is it possible to add some qc check (or something) while calculating the roundtrip in the RoundTripRouting.java code to avoid such mistakes ?

haha2

Powered by Discourse