Time element missing at start when no intermediate route points
bug
Querying BRouter from latest "Actions" by URL ...
```
url=http://127.0.0.1:17778/brouter?profile=car-eco&alternativeidx=0&format=gpx&exportWaypoints=0&timode=8&lonlats=13.953933,46.678236|13.926694,46.695601
```
... returns
```
<?xml version="1.0" encoding="UTF-8"?>
<!-- track-length = 9870 filtered ascend = 1002 plain-ascend = 1003 cost=15514 energy=5.4kwh time=16m 36s -->
<gpx
xmlns="http://www.topografix.com/GPX/1/1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"
creator="BRouter-1.7.8" version="1.1">
<rte>
<rtept lat="46.678235" lon="13.953932">
<desc>start</desc>
<extensions>
<offset>0</offset>
</extensions>
</rtept>
<rtept lat="46.695601" lon="13.926694">
<desc>destination</desc>
<extensions>
<time>0</time>
<offset>356</offset>
</extensions>
</rtept>
</rte>
<trk>
...
</trk>
</gpx>
```
Unfortunately, if the returned route does not contain any intermediate route points, the time extension element from the starting point is missing.
May be this is intended? If not, it where nice to include time element for starting point too.
3 条评论