chore: lint
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
parent
30f2f7a40f
commit
fd5737044a
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
// +4 because enc: are 4 characters, everything after enc: is considered to be part of the polyline
|
||||||
const encIndex = providedPath.indexOf('enc:') + 4;
|
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);
|
paths.push(coords);
|
||||||
} else {
|
} else {
|
||||||
// Iterate through paths, parse and validate them
|
// Iterate through paths, parse and validate them
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue