Liking cljdoc? Tell your friends :D

hiposfer.kamal.router.util.fastq

namespace for hand-optimized queries that are used inside the routing algorithm and need to run extremely fast (< 1 ms per query)

By convention all queries here return Entities

namespace for hand-optimized queries that are used inside the routing
algorithm and need to run extremely fast (< 1 ms per query)

By convention all queries here return Entities
raw docstring

cache-stop-successorsclj

(cache-stop-successors network)

computes the next-stops for each stop and returns a transaction that will cache those results inside the :stop entities

computes the next-stops for each stop and returns a transaction
that will cache those results inside the :stop entities
sourceraw docstring

continue-tripclj

(continue-trip network previous ?dst-id)

given the previous(ly) found result through (find-trips ...) compute the cost of reaching ?dst-id

given the previous(ly) found result through (find-trips ...) compute the
cost of reaching ?dst-id
sourceraw docstring

day-tripsclj

(day-trips network date)

returns a set of stop_times entity ids that are available for date

returns a set of stop_times entity ids that are available for date
sourceraw docstring

find-tripclj

(find-trip network trips ?src-id ?dst-id now)

Returns a map with {:value :stop_times/wait :stop_times/to} and maybe {:frequency/cycle :frequency/entity} on a frequency match.

To find a matching trip, we search among repetitive trips (frequencies.txt) and exact time trips (stop_times.txt). The closest departing trip to now is chosen.

Returns nil if no trip was found

Returns a map with {:value :stop_times/wait :stop_times/to} and maybe
{:frequency/cycle :frequency/entity} on a frequency match.

To find a matching trip, we search among repetitive trips (frequencies.txt)
and exact time trips (stop_times.txt). The closest departing trip to now is
chosen.

Returns nil if no trip was found
sourceraw docstring

(link-stops network)

takes a network, looks up the nearest node for each stop and returns a transaction that will link those

takes a network, looks up the nearest node for each stop and returns
a transaction that will link those
sourceraw docstring

nearest-nodesclj

(nearest-nodes network point)

returns the nearest node/location to point

returns the nearest node/location to point
sourceraw docstring

referencesclj

(references network attribute target-id)

returns all entities that reference/point to target-id through attribute

returns all entities that reference/point to target-id through
attribute
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close