Vantiq / Contributions

A collection of VANTIQ projects, apps, collaborations, clients, samples and code that is freely available to all users.
MIT License
2 stars 0 forks source link

Issue with GoogleDistanceMatrix #9

Closed hendelali closed 3 years ago

hendelali commented 3 years ago

Hi

I don't know if this is the place to report this but with the changes in the current 1.31 theres a compiling issue with the function GoogleDistanceMatrix.

FOR EACH origin IN originations DO
    if (origins == "") {
        origins = origin.coordinates[1] +"," + origin.coordinates[0]
        origins = format("{0},{1}", origin.coordinates[1], origin.coordinates[0])
    } else { 
        origins = format("{0}|{1},{2}", origins , origin.coordinates[1], origin.coordinates[0])
    }
END

DO seems to be a reserved word and it's not supported.

I guess the fix is simple but it must be included when contributions are imported for new projects.

Thanks.