MCPcopy Create free account

hub / github.com/catenarytransit/catenary-backend / functions

Functions1,097 in github.com/catenarytransit/catenary-backend

↓ 4 callersMethodload
(pool: &Arc<CatenaryPostgresPool>)
src/spruce/chateau_rtree.rs:26
↓ 4 callersFunctionmatch_stops_for_feed
Batch match stops for a feed, updating stops.osm_station_id directly This is called during GTFS import in gtfs_process.rs Algorithm: 1. Load stops in
src/maple/osm_station_matching.rs:750
↓ 4 callersFunctionoverlap_ratio_metric
Check overlap ratio of A onto B in metric space using interval intersection.
src/globeflower/geometry_utils.rs:162
↓ 4 callersMethodpoints
(&self, steps: usize)
src/harebell/tile_gen.rs:1196
↓ 4 callersFunctionprecompute_chateau_map
(response: &GetVehicleLocationsResponse)
src/spruce/map_coordinator.rs:185
↓ 4 callersFunctionresolve_coords
( partition_id: u32, stop_idx: u32, partition_map: &HashMap<u32, &TransitPartition>, )
src/linnaea/main.rs:26
↓ 4 callersFunctionrt_stop_matches_scheduled_simple
Simpler version of stop matching for handlers without mapping access. Falls back to underscore suffix pattern matching only.
src/birch/stop_matching.rs:42
↓ 4 callersMethodrun
( &mut self, params: &P::Params, graph: &RoutingGraph, max_cost: CostT,
src/routing_common/dijkstra.rs:125
↓ 4 callersFunctiontile_enum_to_i16
(x: TileCategory)
src/tile_save_and_get.rs:15
↓ 4 callersFunctiontile_width_degrees_from_z
(z: u8)
src/birch/postgis_download.rs:257
↓ 4 callersMethodway_nodes
(&self)
src/routing_common/ways.rs:463
↓ 4 callersFunctionwipe_whole_feed
( feed_id: &str, pool: Arc<CatenaryPostgresPool>, )
src/maple/cleanup.rs:593
↓ 3 callersFunctionadd_auth_headers
(request: RequestBuilder, feed_id: &str)
src/maple/transitland_download.rs:969
↓ 3 callersFunctionbatch_update_stops
Batch update stops with OSM station and platform IDs using unnest
src/maple/osm_station_matching.rs:243
↓ 3 callersFunctionbearing
Calculate bearing angle (degrees)
src/globeflower/geometry_utils.rs:293
↓ 3 callersFunctioncalculate_direction_pattern_id
(route_id: &str, stop_sequence: Vec<CompactString>)
src/maple_syrup/mod.rs:490
↓ 3 callersFunctioncategory_to_allowed_route_ids
(category: &CategoryOfRealtimeVehicleData)
src/birch/aspenised_data_over_https.rs:87
↓ 3 callersFunctionclassify_mode
Classify mode type based on OSM tags
src/osmstationimport/main.rs:113
↓ 3 callersFunctioncleanup_response
( response: Response, urltype: UrlType, feed_id: &str, hashes_of_data: Arc<SccHashMap<(String,
src/alpenrose/single_fetch_time.rs:53
↓ 3 callersMethodcount_crossings_at_node
Count crossings at a single node for a given edge ordering config. Returns (same_segment_crossings, diff_segment_crossings)
src/harebell/optimizer.rs:3358
↓ 3 callersMethodcreate_or_update_edge
Create or update an edge between two nodes
src/globeflower/support_graph.rs:424
↓ 3 callersFunctioncreate_stop
Stops
src/edelweiss/test_direct_connections_intermediate.rs:23
↓ 3 callersFunctiondelete_attempt_objects
( feed_id: &str, attempt_id: &str, pool: Arc<CatenaryPostgresPool>, )
src/maple/cleanup.rs:369
↓ 3 callersMethodelevator
(mut self, v: bool)
src/routing_common/ways.rs:169
↓ 3 callersMethodensure_service_context
( &self, partition_id: u32, timezone_idx: u32, timezones: &[String], c
src/edelweiss/query_graph.rs:709
↓ 3 callersFunctionestimate_service_date
Estimate if a realtime trip update matches a valid scheduled trip's service date
src/birch/departures_shared.rs:670
↓ 3 callersFunctionextract_sub_zip
Extracts a sub zip file and uses it as the parent folder
src/maple/gtfs_handlers/flatten.rs:83
↓ 3 callersFunctionextract_to_dir
(input: &Path, output_dir: &Path)
src/avens/main.rs:75
↓ 3 callersFunctionfast_hash
(t: &T)
src/lib.rs:286
↓ 3 callersFunctionfetch_lirr_mnr_track_data
( chateau_id: &str, pool: &CatenaryPostgresPool, )
src/aspen/track_number/lirr_mnr.rs:99
↓ 3 callersFunctionfetch_track_data
(chateau_id: &str, pool: &CatenaryPostgresPool)
src/aspen/track_number/mod.rs:196
↓ 3 callersFunctionfinalize_chunk_response
( intermediates: &[Option<ChateauIntermediate>], etcd_arc: Arc<Option<etcd_client::Client>>, skip_
src/spruce/nearby_departures.rs:1637
↓ 3 callersFunctionfind_service_ranges
( service: &CalendarUnified, trip_instance: &TripToFindScheduleFor, input_time: chrono::DateTime<c
src/lib.rs:630
↓ 3 callersMethodforward
Converts WGS84 (lon, lat) to Local (x, y) in metres
src/maple/gtfs_handlers/hull_from_gtfs.rs:274
↓ 3 callersMethodget_alert_from_stop_ids
( self, _: context::Context, chateau_id: String, stop_ids: Vec<String>, )
src/aspen/main.rs:584
↓ 3 callersMethodget_alerts_from_route_id
( self, _: context::Context, chateau_id: String, route_id: String, )
src/aspen/main.rs:558
↓ 3 callersFunctionget_gtfs_header_timestamp_from_bytes
(data: &[u8])
src/timestamp_extraction.rs:6
↓ 3 callersFunctionget_icon_min_zoom
(level: i16)
src/osm_station_rank_and_clean/main.rs:92
↓ 3 callersFunctionget_mta_trips
( client: &reqwest::Client, url: &str, )
src/alpenrose/custom_rt_feeds/mta.rs:135
↓ 3 callersMethodget_node_pos
(&self, node: NodeIdx)
src/routing_common/ways.rs:541
↓ 3 callersMethodget_region_for_point
(&self, lat: f64, lon: f64)
src/routing_common/graph_loader.rs:91
↓ 3 callersMethodget_trajectories
( self, _: tarpc::context::Context, chateau_id: String, params: catenary::pasq
src/aspen/main.rs:1608
↓ 3 callersMethodget_trip_updates_from_trip_id
( self, _: context::Context, chateau_id: String, trip_id: String, )
src/aspen/main.rs:1474
↓ 3 callersMethodget_urls
(&self)
src/catenaryconfig.rs:373
↓ 3 callersMethodgreedy_hillclimb_component
Combined greedy + hill climbing for large components Use this as fallback when ILP is too expensive
src/harebell/optimizer.rs:3558
↓ 3 callersFunctionhausdorff_distance_metric
Calculate Hausdorff distance between two densified polylines in metric space.
src/globeflower/geometry_utils.rs:143
↓ 3 callersFunctionindex_trip_update_id
( lookup: &mut AHashMap<CompactString, Vec<CompactString>>, trip_id: &str, entity_id: &str, )
src/aspen/import_alpenrose.rs:71
↓ 3 callersMethodis_bus_accessible
(&self)
src/routing_common/ways.rs:81
↓ 3 callersMethodis_car_accessible
(&self)
src/routing_common/ways.rs:33
↓ 3 callersFunctionis_railway_station_or_platform
Check if this OSM object should be included as a railway station/platform
src/osmstationimport/main.rs:226
↓ 3 callersFunctionload_chateau_data
( chateau_id: &str, )
src/aspen/persistence.rs:30
↓ 3 callersFunctionlogin
Admin Credential login
src/birch/api_key_management.rs:29
↓ 3 callersFunctionlon_lat_to_tile
Math helpers
src/osm_extractor/main.rs:388
↓ 3 callersFunctionmake_browser_like_client
Creates a client that better mimics a real browser to bypass anti-bot systems
src/maple/transitland_download.rs:162
↓ 3 callersFunctionmake_en_translated_string
(text: String)
src/custom_alerts/metrolink_alerts.rs:522
↓ 3 callersFunctionmake_feed_from_entity_vec
(entities: Vec<FeedEntity>)
src/lib.rs:415
↓ 3 callersFunctionmake_hashmap_stops_to_route_types_and_ids
( gtfs: &gtfs_structures::Gtfs, )
src/maple/gtfs_handlers/stops_associated_items.rs:16
↓ 3 callersFunctionmake_reqwest_client
()
src/maple/transitland_download.rs:145
↓ 3 callersFunctionmake_reqwest_for_url
( url_type: UrlType, assignment: &RealtimeFeedFetch, client: reqwest::Client, )
src/alpenrose/single_fetch_time.rs:784
↓ 3 callersFunctionminimum_day_filter
(gtfs: Gtfs, naive_date: chrono::NaiveDate)
src/schedule_filtering/mod.rs:108
↓ 3 callersFunctionoption_i32_to_schedule_relationship
( schedule_relationship: &Option<i32>, )
src/aspen_dataset.rs:594
↓ 3 callersFunctionproject_point_to_polyline
( point: (f64, f64), coords: &[(f64, f64)], )
src/globeflower/geometry_utils.rs:266
↓ 3 callersFunctionprotobuf_to_frequencies
( frequencies: &GtfsFrequenciesProto, )
src/lib.rs:275
↓ 3 callersMethodpush
(&mut self, cost: CostT, node: NodeIdx, level: Level)
src/routing_common/dijkstra.rs:26
↓ 3 callersMethodread_tile
(&self, key: (i32, i32))
src/globeflower/corridor.rs:692
↓ 3 callersFunctionreduce
(gtfs: &gtfs_structures::Gtfs)
src/maple_syrup/mod.rs:90
↓ 3 callersFunctionrequires_authentication
Check if a feed requires authentication (headers, API keys, basic auth, etc.) Feeds that require auth should NOT use wget fallback since wget won't ha
src/maple/transitland_download.rs:231
↓ 3 callersFunctionrun_optional_req
( request: Option<reqwest::Request>, client: reqwest::Client, )
src/alpenrose/single_fetch_time.rs:767
↓ 3 callersFunctionsave_chateau_data
( chateau_id: &str, data: &AspenisedData, )
src/aspen/persistence.rs:6
↓ 3 callersFunctionscore_candidate
Score a candidate station against a stop
src/maple/osm_station_matching.rs:320
↓ 3 callersMethodspeed_limit
(&self)
src/routing_common/ways.rs:52
↓ 3 callersFunctiontile_category_to_number
(category: &Category)
src/shape_fetcher/mod.rs:15
↓ 3 callersMethodtrigger_trajectory_update
(&mut self, ctx: &mut ws::WebsocketContext<Self>)
src/spruce/trip_websocket.rs:731
↓ 3 callersFunctiontry_wget_fallback
Fallback to wget for downloading files when reqwest fails This can bypass some server-side restrictions that block reqwest
src/maple/transitland_download.rs:272
↓ 3 callersMethodunion
(&mut self, x: usize, y: usize)
src/globeflower/corridor.rs:109
↓ 3 callersMethodupdate_map_subscriptions
( &mut self, ctx: &mut ws::WebsocketContext<Self>, new_chateaus: HashSet<String>,
src/spruce/trip_websocket.rs:287
↓ 3 callersFunctionupsert_compact_feed
( store: &SccHashMap<(String, GtfsRtType), CompactFeedMessage>, realtime_feed_id: &str, feed_type:
src/aspen/main.rs:2291
↓ 2 callersMethodadd_dag_edge
(&mut self, partition_id: u32, dag_edge: &DagEdge)
src/edelweiss/query_graph.rs:303
↓ 2 callersFunctionalpenrose_loop_process_thread
( alpenrose_to_process_queue: Arc<Injector<ProcessAlpenroseData>>, authoritative_gtfs_rt_store: Arc<Sc
src/aspen/async_threads_alpenrose.rs:139
↓ 2 callersFunctionauthenticate_genentech
( client: &reqwest::Client, )
src/genentech_auth.rs:8
↓ 2 callersFunctionavailability_to_int
(input: &gtfs_structures::Availability)
src/enum_to_int.rs:35
↓ 2 callersFunctionbearing_difference
(a: f64, b: f64)
src/globeflower/geometry_utils.rs:309
↓ 2 callersMethodbig_street
(mut self, v: bool)
src/routing_common/ways.rs:207
↓ 2 callersMethodbus_accessible_with_penalty
(mut self, v: bool)
src/routing_common/ways.rs:235
↓ 2 callersMethodcalculate_arrival_time_unix
( &self, partition: &TransitPartition, trip: &CompressedTrip, stop_idx_in_patt
src/edelweiss/query_graph.rs:981
↓ 2 callersMethodcalculate_arrival_time_unix_dc
( &self, dc: &catenary::routing_common::transit_graph::DirectConnections, trip: &Compr
src/edelweiss/query_graph.rs:1024
↓ 2 callersFunctioncalendar_into_postgres
( gtfs: &gtfs_structures::Gtfs, feed_id: &str, arc_conn_pool: Arc<CatenaryPostgresPool>, chate
src/maple/gtfs_ingestion_sequence/calendar_into_postgres.rs:8
↓ 2 callersMethodcan_merge_routes
(&self, mode: RailMode, a: &AtomicEdge, b: &AtomicEdge)
src/globeflower/corridor.rs:540
↓ 2 callersMethodchateau
(&self)
src/routing_common/api.rs:191
↓ 2 callersFunctionclosest_distance_percentile_metric
Calculate the P-th percentile distance from A to B. e.g. p90 means 90% of points on A are within this distance of B.
src/globeflower/geometry_utils.rs:420
↓ 2 callersMethodcmp
(&self, other: &Self)
src/hull.rs:29
↓ 2 callersMethodcmp
(&self, other: &Self)
src/globeflower/map_matcher.rs:27
↓ 2 callersMethodcompute_edge_score
Compute crossing score for a single edge (at both endpoints)
src/harebell/optimizer.rs:3465
↓ 2 callersMethodconfig
Get the configuration for this region
src/globeflower/regions.rs:32
↓ 2 callersFunctionconnections_lookup
( input_chateau: &str, input_route: &str, input_route_type: i16, stop_positions: Vec<(String,
src/birch/connections_lookup.rs:30
↓ 2 callersFunctioncontains_html
(text: &str)
examples/check_alerts_html.rs:150
↓ 2 callersFunctionconvert
( mta: &Vec<MtaTrain>, railroad: MtaRailroad, input_gtfs_trips: &gtfs_realtime::FeedMessage, )
src/alpenrose/custom_rt_feeds/mta.rs:295
↓ 2 callersFunctionconvert_hhmmss_to_seconds
(input: &str)
src/lib.rs:841
↓ 2 callersFunctionconvert_support_node_to_catenary
Convert SupportNodeId to catenary's NodeId format
src/globeflower/export.rs:262
↓ 2 callersFunctionconvert_text_12h_to_24h
(input: &str)
src/lib.rs:803
← previousnext →101–200 of 1,097, ranked by callers