diff --git a/pkg/functions/functionsDescription.go b/pkg/functions/functionsDescription.go index d49f371..786173f 100644 --- a/pkg/functions/functionsDescription.go +++ b/pkg/functions/functionsDescription.go @@ -891,7 +891,7 @@ var funcDesc = map[string]FunctionDescription{ Parameters: "string", Localizable: false, Return: "string", - Example: `jr template run --embedded '{{nearby_gps_into_polygon 45.849539549943 9.3874341200659 10}}' --geojson testfiles/poligon.geojson`, + Example: `jr template run --embedded '{{nearby_gps_into_polygon 45.849539549943 9.3874341200659 10}}' --geojson testfiles/polygon.geojson`, Output: "41.8963 12.4975", }, "nearby_gps_into_polygon_without_start": { @@ -901,7 +901,7 @@ var funcDesc = map[string]FunctionDescription{ Parameters: "string", Localizable: false, Return: "string", - Example: `jr template run --embedded '{{nearby_gps_into_polygon_without_start 10}}' --geojson testfiles/poligon.geojson`, + Example: `jr template run --embedded '{{nearby_gps_into_polygon_without_start 10}}' --geojson testfiles/polygon.geojson`, Output: "41.8963 12.4975", }, "now_add": { diff --git a/testfiles/poligon.geojson b/testfiles/polygon.geojson similarity index 99% rename from testfiles/poligon.geojson rename to testfiles/polygon.geojson index e0d5713..a3c4168 100644 --- a/testfiles/poligon.geojson +++ b/testfiles/polygon.geojson @@ -4,7 +4,14 @@ "features": [ { "type": "Feature", - "properties": {"name": "Lago di Como"}, + "properties": { + "name": "Lago di Como", + "stroke": "#1100ff", + "stroke-width": 5, + "stroke-opacity": 1, + "fill": "#cbbdff", + "fill-opacity": 0.5 + }, "geometry": { "type": "Polygon", "coordinates": [