Created
March 29, 2017 05:31
-
-
Save mondaymaps/7fe363d690c586176314db00aa77d8f8 to your computer and use it in GitHub Desktop.
Offset Routes: Step 4e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
j AS ( | |
SELECT h.the_geom, h.trip_id, h.stop_id_array, h.reverse, h.offset_id, | |
(-0.5*i.overlap_count+(h.offset_id-0.5)) AS offset_dist | |
FROM h | |
JOIN i | |
ON h.the_geom = i.the_geom | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment