Skip to content

Commit

Permalink
wip: ignore duplicate points (close #19)
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbourianes-kalisio committed Mar 27, 2023
1 parent 7ca538c commit 8c58002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elevation.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ async function elevation(geojson, query) {

// skip null segments
if (lon0 === lon1 && lat0 === lat1) {
debug(`segment ${segmentIndex} skipped, start point == end point (${lon0},${lat0}) !`)
debug(`segment ${segmentIndex} skipped, start point == end point (lon=${lon0} lat=${lat0})`)
return
}

Expand Down

0 comments on commit 8c58002

Please sign in to comment.