Fixes issue #270
This commit is contained in:
parent
eb90be2ec3
commit
0388860ea1
@ -184,7 +184,7 @@ public:
|
|||||||
//list all viapoints so that the client may display it
|
//list all viapoints so that the client may display it
|
||||||
reply.content += "\"via_points\":[";
|
reply.content += "\"via_points\":[";
|
||||||
std::string tmp;
|
std::string tmp;
|
||||||
if(true == config.geometry) {
|
if(config.geometry && INT_MAX != durationOfTrip) {
|
||||||
for(unsigned i = 0; i < rawRoute.segmentEndCoordinates.size(); ++i) {
|
for(unsigned i = 0; i < rawRoute.segmentEndCoordinates.size(); ++i) {
|
||||||
reply.content += "[";
|
reply.content += "[";
|
||||||
if(rawRoute.segmentEndCoordinates[i].startPhantom.location.isSet())
|
if(rawRoute.segmentEndCoordinates[i].startPhantom.location.isSet())
|
||||||
|
Loading…
Reference in New Issue
Block a user