From 9a26e6d5a742f1c1f8da67bbc83bc311a71e80a6 Mon Sep 17 00:00:00 2001 From: Arne Neumann Date: Wed, 6 Jun 2018 09:29:24 +0200 Subject: [PATCH] documentation: Point is [lat lon z] Every developer trips on lat-lon vs. lon-lat at least once, so it's better to clarify this. --- pkg/geojson/poly/poly.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/geojson/poly/poly.go b/pkg/geojson/poly/poly.go index 8167a597..ddb0230e 100644 --- a/pkg/geojson/poly/poly.go +++ b/pkg/geojson/poly/poly.go @@ -5,7 +5,7 @@ import "fmt" // Point is simple 2D point type Point struct { - X, Y, Z float64 + X, Y, Z float64 // X=latitude, Y=longitude, (Z is optional, e.g. for elevation or timestamp) } // InsideRect detects point is inside of another rect