From 70645de56d2199cbccdeb8aefd11c20d56ad37f2 Mon Sep 17 00:00:00 2001 From: drag0s Date: Tue, 29 Nov 2016 11:49:17 +0100 Subject: [PATCH] FIX how to use example for LineString intersection --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0047778..fd99b18 100755 --- a/README.md +++ b/README.md @@ -22,11 +22,11 @@ Geospatial Consortium's recommendation! ## Line intersections ```javascript -gju.linesIntersect({ "type": "LineString", "coordinates": [[0, 2], [5, 2]] }, +gju.lineStringsIntersect({ "type": "LineString", "coordinates": [[0, 2], [5, 2]] }, { "type": "LineString", "coordinates": [[3, 0], [3, 4], [4,4], [4,0]] }) // [{"type":"Point","coordinates":[2,3]},{"type":"Point","coordinates":[2,4]}] -gju.linesIntersect({ "type": "LineString", "coordinates": [[0, 2], [5, 2]] }, +gju.lineStringsIntersect({ "type": "LineString", "coordinates": [[0, 2], [5, 2]] }, { "type": "LineString", "coordinates": [[0, 0], [5, 0]] }) // false ```