chore: lint

Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
Andrew Calcutt 2023-09-26 09:59:45 -04:00
parent 30f2f7a40f
commit fd5737044a

View file

@ -164,7 +164,9 @@ const extractPathsFromQuery = (query, transformer) => {
) {
// +4 because enc: are 4 characters, everything after enc: is considered to be part of the polyline
const encIndex = providedPath.indexOf('enc:') + 4;
const coords = polyline.decode(providedPath.substring(encIndex)).map(([lat, lng]) => [lng, lat]);
const coords = polyline
.decode(providedPath.substring(encIndex))
.map(([lat, lng]) => [lng, lat]);
paths.push(coords);
} else {
// Iterate through paths, parse and validate them