Skip to content

Instantly share code, notes, and snippets.

@Hkazanci93
Created October 28, 2021 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hkazanci93/dac0b1223d32f8ed891b468eed2a327f to your computer and use it in GitHub Desktop.
Save Hkazanci93/dac0b1223d32f8ed891b468eed2a327f to your computer and use it in GitHub Desktop.
Retrieves journeys
MATCH (src:Station)<-[t:Trip]->(dst:Station)
WHERE distance(src.loc, point($src)) < $src_radius
AND distance(dst.loc, point($dst)) < $dst_radius
RETURN
(startNode(t) = src) as egress,
sum(t.counts[0]) as h0_trip_count,
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment