Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GSoC 2023: Yige Huang Week 2 #299

Merged
merged 8 commits into from
Jun 10, 2023
2 changes: 1 addition & 1 deletion sql/driving_distance/_withPointsDD.sql
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ CREATE FUNCTION _pgr_withPointsDD(
distance FLOAT,

directed BOOLEAN DEFAULT true,
driving_side CHAR DEFAULT 'b',
driving_side CHAR DEFAULT 'r',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still like the default value to be r, About getting rid of b we need to discuss

details BOOLEAN DEFAULT false,
equicost BOOLEAN DEFAULT false,

Expand Down
8 changes: 4 additions & 4 deletions sql/driving_distance/withPointsDD.sql
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ CREATE FUNCTION pgr_withPointsDD(
FLOAT, -- distance (required)

directed BOOLEAN DEFAULT true,
driving_side CHAR DEFAULT 'b',
driving_side CHAR DEFAULT 'r',
details BOOLEAN DEFAULT false,

OUT seq INTEGER,
Expand All @@ -58,7 +58,7 @@ CREATE FUNCTION pgr_withPointsDD(
FLOAT, -- distance (required)

directed BOOLEAN DEFAULT true,
driving_side CHAR DEFAULT 'b',
driving_side CHAR DEFAULT 'r',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a tricky change,
Basically the default for versions 3.5 & under is band the default for 3.6 and after is r
For the moment lest leave it like it is here, but open an issue "reminder of default value" in your fork and put a link to this comment

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue for reminder: squarege#5

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #300

details BOOLEAN DEFAULT false,
equicost BOOLEAN DEFAULT false,

Expand Down Expand Up @@ -90,7 +90,7 @@ IS 'pgr_withPointsDD(Single Vertex)
- Distance
- Optional Parameters
- directed := true
- driving_side := b
- driving_side := r
- details := false
- Documentation:
- ${PROJECT_DOC_LINK}/pgr_withPointsDD.html
Expand All @@ -107,7 +107,7 @@ IS 'pgr_withPointsDD(Multiple Vertices)
- Distance
- Optional Parameters
- directed := true
- driving_side := b
- driving_side := r
- details := false
- equicost := false
- Documentation:
Expand Down