Skip to content

Commit

Permalink
[pgr_astarCost] Arrange comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MarPetra committed Nov 26, 2018
1 parent 9e20477 commit f5d7f1b
Showing 1 changed file with 49 additions and 49 deletions.
98 changes: 49 additions & 49 deletions sql/astar/astarCost.sql
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,6 @@ COST 100
ROWS 1000;


COMMENT ON FUNCTION pgr_aStarCost(TEXT, BIGINT, BIGINT, BOOLEAN, INTEGER, FLOAT, FLOAT)
IS 'pgr_aStarCost(One to One)
- Parameters:
- edges SQL with columns: id, source, target, cost [,reverse_cost], x1, y1, x2, y2
- From vertex identifier
- To vertex identifier
- Optional Parameters:
- directed := true
- heuristic := 5
- factor := 1
- epsilon := 1
- Documentation:
- ${PGROUTING_DOC_LINK}/pgr_astar.html
';



CREATE OR REPLACE FUNCTION pgr_aStarCost(
TEXT, -- edges sql (required)
Expand All @@ -93,21 +77,6 @@ COST 100
ROWS 1000;


COMMENT ON FUNCTION pgr_aStarCost(TEXT, BIGINT, ANYARRAY, BOOLEAN, INTEGER, FLOAT, FLOAT)
IS 'pgr_astar(One to Many)
- Parameters:
- edges SQL with columns: id, source, target, cost [,reverse_cost], x1, y1, x2, y2
- From vertex identifier
- To ARRAY[vertices identifiers]
- Optional Parameters:
- directed := true
- heuristic := 5
- factor := 1
- epsilon := 1
- Documentation:
- ${PGROUTING_DOC_LINK}/pgr_astar.html
';


CREATE OR REPLACE FUNCTION pgr_aStarCost(
TEXT, -- edges sql (required)
Expand All @@ -132,20 +101,6 @@ LANGUAGE sql VOLATILE STRICT
COST 100
ROWS 1000;

COMMENT ON FUNCTION pgr_aStarCost(TEXT, ANYARRAY, BIGINT, BOOLEAN, INTEGER, FLOAT, FLOAT)
IS 'pgr_astar(Many to One)
- Parameters:
- edges SQL with columns: id, source, target, cost [,reverse_cost], x1, y1, x2, y2
- From ARRAY[vertices identifiers]
- To vertex identifier
- Optional Parameters:
- directed := true
- heuristic := 5
- factor := 1
- epsilon := 1
- Documentation:
- ${PGROUTING_DOC_LINK}/pgr_astar.html
';

CREATE OR REPLACE FUNCTION pgr_aStarCost(
TEXT, -- edges sql (required)
Expand All @@ -172,11 +127,29 @@ COST 100
ROWS 1000;


COMMENT ON FUNCTION pgr_aStarCost(TEXT, ANYARRAY, ANYARRAY, BOOLEAN, INTEGER, FLOAT, FLOAT)
IS 'pgr_astar(Many to Many)
-- COMMENTS

COMMENT ON FUNCTION pgr_aStarCost(TEXT, BIGINT, BIGINT, BOOLEAN, INTEGER, FLOAT, FLOAT)
IS 'pgr_aStarCost(One to One)
- Parameters:
- edges SQL with columns: id, source, target, cost [,reverse_cost], x1, y1, x2, y2
- From ARRAY[vertices identifiers]
- From vertex identifier
- To vertex identifier
- Optional Parameters:
- directed := true
- heuristic := 5
- factor := 1
- epsilon := 1
- Documentation:
- ${PGROUTING_DOC_LINK}/pgr_astar.html
';


COMMENT ON FUNCTION pgr_aStarCost(TEXT, BIGINT, ANYARRAY, BOOLEAN, INTEGER, FLOAT, FLOAT)
IS 'pgr_astar(One to Many)
- Parameters:
- edges SQL with columns: id, source, target, cost [,reverse_cost], x1, y1, x2, y2
- From vertex identifier
- To ARRAY[vertices identifiers]
- Optional Parameters:
- directed := true
Expand All @@ -188,6 +161,33 @@ IS 'pgr_astar(Many to Many)
';


COMMENT ON FUNCTION pgr_aStarCost(TEXT, ANYARRAY, BIGINT, BOOLEAN, INTEGER, FLOAT, FLOAT)
IS 'pgr_astar(Many to One)
- Parameters:
- edges SQL with columns: id, source, target, cost [,reverse_cost], x1, y1, x2, y2
- From ARRAY[vertices identifiers]
- To vertex identifier
- Optional Parameters:
- directed := true
- heuristic := 5
- factor := 1
- epsilon := 1
- Documentation:
- ${PGROUTING_DOC_LINK}/pgr_astar.html
';


-- COMMENTS
COMMENT ON FUNCTION pgr_aStarCost(TEXT, ANYARRAY, ANYARRAY, BOOLEAN, INTEGER, FLOAT, FLOAT)
IS 'pgr_astar(Many to Many)
- Parameters:
- edges SQL with columns: id, source, target, cost [,reverse_cost], x1, y1, x2, y2
- From ARRAY[vertices identifiers]
- To ARRAY[vertices identifiers]
- Optional Parameters:
- directed := true
- heuristic := 5
- factor := 1
- epsilon := 1
- Documentation:
- ${PGROUTING_DOC_LINK}/pgr_astar.html
';

0 comments on commit f5d7f1b

Please sign in to comment.