I use the Here Rout Matching v8 API to match routes from sequences of GPS coordinates. I pass the GPS coordinates as a CSV trace file in the POST request body (as documented here https://developer.here.com/documentation/route-matching/api-reference.html). The resulting route contains one leg, which in turn contains the sequence of links connecting the leg's origin to the leg's destination.
In my use case, some of the GPS coordinates in the trace file are stop locations. Can I change my request so that the matched route is divided into multiple legs? To be clear, I would like
- first leg from the origin to the first stop
- second leg from the first stop to the second stop
- ...
- last leg from the last stop to the destination
I tried passing additional columns in the CSV trace file (speed and time, indicating that the GPS trace actually stops at the stopover locations) but I still got a matched route with a single leg.