MCPcopy Create free account

hub / github.com/denysvitali/gtfs-server / functions

Functions131 in github.com/denysvitali/gtfs-server

↓ 15 callersFunctionfield_index_by_name
(field_name: &str, fields: &Vec<String>)
src/importer/mod.rs:460
↓ 12 callersFunctionupdate_db_ver
(ver: u32, conn: &Connection)
src/importer/mod.rs:1000
↓ 8 callersFunctioncreate_tables
(pool: &Pool<PostgresConnectionManager>)
src/importer/mod.rs:760
↓ 8 callersFunctiondeg2meter_lat
(lat: f64)
src/routes/api/stops.rs:450
↓ 8 callersFunctiondeg2meter_lng
(lat: f64)
src/routes/api/stops.rs:444
↓ 6 callersFunctiondeg2rad
(deg: f64)
src/routes/api/stops.rs:440
↓ 6 callersFunctiongenerate_uid
(identifier: &str, fields: &str, name: &str)
src/importer/mod.rs:244
↓ 5 callersFunctionparse_stop_row
(row: &Row)
src/routes/api/stops.rs:250
↓ 5 callersFunctionparse_stop_times
(rows: &Rows)
src/routes/api/stop_times.rs:489
↓ 5 callersFunctionparse_trip_row
(row: &Row)
src/routes/api/trips.rs:863
↓ 5 callersMethodset_feed_id
(&mut self, feed_id: String)
src/models/stop.rs:64
↓ 4 callersMethodas_str
(&self)
src/models/api/search/time.rs:38
↓ 4 callersMethodcmp
(&self, other: &Self)
src/models/trip.rs:78
↓ 4 callersFunctioncreate_server
(routes: Vec<Route>)
src/test/api/mod.rs:34
↓ 4 callersMethodformat
(&mut self)
src/models/query.rs:20
↓ 4 callersFunctionget_stop_trip
(trip_uid: String, pool: &Pool<PostgresConnectionManager>)
src/routes/api/trips.rs:828
↓ 4 callersFunctionget_times_by_query
( time_search: &TimeSearch, pool: &Pool<PostgresConnectionManager>, )
src/routes/api/times.rs:224
↓ 4 callersFunctionparse_route_row
(row: &Row, rh: &State<RoutesHandler>)
src/routes/api/routes.rs:266
↓ 3 callersFunctionparse_agency_row
(row: &Row)
src/routes/api/agency.rs:212
↓ 3 callersMethodset_id
(&mut self, id: String)
src/models/stop.rs:60
↓ 2 callersFunctionadd_stop_times_to_query
(has_times: &mut bool, has_stop: &mut bool, query: &mut Query)
src/routes/api/trips.rs:44
↓ 2 callersFunctionget_bbox_from_points
(c1: Coordinate, c2: Coordinate, r1: f64, r2: f64)
src/routes/api/stops.rs:503
↓ 2 callersFunctionget_stops_by_coordinates
(c1: Coordinate, c2: Coordinate, r1: f64, r2: f64, zoom: i32)
src/routes/api/stops.rs:456
↓ 2 callersFunctionget_stops_in_bbox
(pool: &Pool<PostgresConnectionManager>, bbox: BoundingBox)
src/routes/api/stops.rs:360
↓ 2 callersFunctionget_stops_near
( pool: &Pool<PostgresConnectionManager>, lat: f32, lng: f32, meters: f64, )
src/routes/api/stops.rs:320
↓ 2 callersFunctionparse_feed_zip
(zar: &mut ZipArchive<File>, pool: &Pool<PostgresConnectionManager>)
src/importer/mod.rs:114
↓ 2 callersFunctiontrips_query_filter
(ts: &TripSearch, query: Query, params: Vec<&ToSql>,
src/routes/api/trips.rs:60
↓ 2 callersFunctionupdate_db
(pool: &Pool<PostgresConnectionManager>)
src/importer/mod.rs:976
↓ 2 callersFunctionupdate_db_from
(ver: u32, pool: &Pool<PostgresConnectionManager>)
src/importer/mod.rs:1007
↓ 1 callersMethodas_str
(&self)
src/models/api/search/ascdesc.rs:11
↓ 1 callersMethodcmp
(&self, other: &Self)
src/importer/mod.rs:84
↓ 1 callersFunctioncreate_pool
()
src/main.rs:44
↓ 1 callersFunctioncreate_pool
()
src/test/api/mod.rs:25
↓ 1 callersFunctiondownload_feed_zip
( feed_url: &str, pool: &Pool<PostgresConnectionManager>, )
src/importer/mod.rs:49
↓ 1 callersFunctionget_agencies
(rh: &State<RoutesHandler>)
src/routes/api/agency.rs:124
↓ 1 callersFunctionget_agency_by_uid
(rh: State<RoutesHandler>, agency_uid: String)
src/routes/api/agency.rs:99
↓ 1 callersFunctionget_agency_id
Returns the UID of the `agency_id` and `feed_id` provided.
src/routes/api/agency.rs:187
↓ 1 callersFunctionget_db_version
(pool: &Pool<PostgresConnectionManager>)
src/importer/mod.rs:1151
↓ 1 callersFunctionget_routes_by_query
( rh: &State<RoutesHandler>, route_search: &RouteSearch, pool: &Pool<PostgresConnectionManager>, )
src/routes/api/routes.rs:72
↓ 1 callersFunctionget_stop_by_id
(stop_id: String, pool: &Pool<PostgresConnectionManager>)
src/routes/api/stops.rs:269
↓ 1 callersFunctionget_stops
(pool: &Pool<PostgresConnectionManager>)
src/routes/api/stops.rs:295
↓ 1 callersFunctionget_stops_by_trip
(trip_id: String, pool: &Pool<PostgresConnectionManager>)
src/routes/api/stops.rs:398
↓ 1 callersFunctionget_times_by_stop_id
(stop_uid: String, pool: &Pool<PostgresConnectionManager>)
src/routes/api/times.rs:507
↓ 1 callersFunctionget_times_by_trip
(trip_uid: String, pool: &Pool<PostgresConnectionManager>)
src/routes/api/times.rs:501
↓ 1 callersFunctionget_trips_by_query
(ts: &TripSearch, pool: &Pool<PostgresConnectionManager>)
src/routes/api/trips.rs:456
↓ 1 callersFunctionparse_agency
(feed_id: &str, f: ZipFile, pool: &Pool<PostgresConnectionManager>)
src/importer/mod.rs:191
↓ 1 callersFunctionparse_calendar
(feed_id: &str, f: ZipFile, pool: &Pool<PostgresConnectionManager>)
src/importer/mod.rs:671
↓ 1 callersFunctionparse_calendar_dates
(feed_id: &str, f: ZipFile, pool: &Pool<PostgresConnectionManager>)
src/importer/mod.rs:725
↓ 1 callersFunctionparse_feed
(f: ZipFile, pool: &Pool<PostgresConnectionManager>)
src/importer/mod.rs:618
↓ 1 callersFunctionparse_routes
(feed_id: &str, f: ZipFile, pool: &Pool<PostgresConnectionManager>)
src/importer/mod.rs:317
↓ 1 callersFunctionparse_stop_times
(feed_id: &str, f: ZipFile, pool: &Pool<PostgresConnectionManager>)
src/importer/mod.rs:471
↓ 1 callersFunctionparse_stop_trip_row
(row: &Row)
src/routes/api/trips.rs:980
↓ 1 callersFunctionparse_stop_trip_trip_row
(trips: &'a mut BTreeMap<Trip, Vec<StopTrip>>, row: &Row)
src/routes/api/trips.rs:877
↓ 1 callersFunctionparse_stops
(feed_id: &str, f: ZipFile, pool: &Pool<PostgresConnectionManager>)
src/importer/mod.rs:262
↓ 1 callersFunctionparse_time_row
(row: &Row)
src/routes/api/times.rs:513
↓ 1 callersFunctionparse_trips
(feed_id: &str, f: ZipFile, pool: &Pool<PostgresConnectionManager>)
src/importer/mod.rs:373
↓ 1 callersFunctionstart_server
(rh: RoutesHandler)
src/main.rs:102
↓ 1 callersFunctiontrips_by_bbox_query
(rh: State<RoutesHandler>, bbox: BoundingBox, ts: TripSearch)
src/routes/api/trips.rs:675
Functionagency
(rh: State<RoutesHandler>)
src/routes/api/agency.rs:18
Functionagency
(rh: State<RoutesHandler>, feed_id: String)
src/routes/api/import.rs:51
Functionagency_by_id
(rh: State<RoutesHandler>, agency_uid: String)
src/routes/api/agency.rs:69
Methodas_f64
(c: Option<Match>)
src/models/boundingbox.rs:30
Functionbool_des
(des: D)
src/models/csv/calendar.rs:26
Functioncalendar
(rh: State<RoutesHandler>, feed_id: String)
src/routes/api/import.rs:111
Methodeq
(&self, other: &Self)
src/importer/mod.rs:76
Methodeq
(&self, other: &Trip)
src/models/trip.rs:62
Functionfeed_info
(rh: State<RoutesHandler>, feed_id: String)
src/routes/api/feed.rs:13
Methodfrom_form_value
(form_value: &RawStr)
src/models/api/sort/tripsort.rs:21
Methodfrom_form_value
(form_value: &RawStr)
src/models/api/search/ascdesc.rs:22
Methodfrom_param
(param: &'r RawStr)
src/models/boundingbox.rs:25
Methodfrom_string
(input: &str)
src/models/dropoff.rs:12
Methodfrom_string
(input: &str)
src/models/pickup.rs:11
Functionfs
(rh: State<RoutesHandler>, file_name: String)
src/routes/api/import.rs:36
Functionget_agency
( agency_id: Option<String>, feed_id: &String, rh: &State<RoutesHandler>, )
src/routes/api/agency.rs:154
Methodhash
(&self, state: &mut H)
src/models/trip.rs:70
Functioni32_def
(des: D)
src/models/csv/trip.rs:19
Functioninvalid_stop_by_id
()
src/test/api/mod.rs:101
Functionit_works
()
src/test/mod.rs:7
Functionmain
()
build.rs:5
Functionmain
()
src/main.rs:158
Functionmain
()
src/routes/api/mod.rs:16
Functionmain
()
src/routes/ui/import.rs:8
Functionmain
()
src/test/api/mod.rs:42
Methodmax
(self, other: Self)
src/importer/mod.rs:93
Methodmin
(self, other: Self)
src/importer/mod.rs:100
Methodnew
( uid: String, name: String, lat: f64, lng: f64, location_type: Option
src/models/stop.rs:35
Methodnew
( uid: String, route_id: String, service_id: Option<String>, headsign: Option<
src/models/trip.rs:24
Methodpartial_cmp
(&self, other: &Self)
src/importer/mod.rs:109
Methodpartial_cmp
(&self, other: &Self)
src/models/trip.rs:84
Functionroute_by_bbox
(rh: State<RoutesHandler>, bbox: BoundingBox)
src/routes/api/routes.rs:235
Functionroute_by_id
(rh: State<RoutesHandler>, route_uid: String)
src/routes/api/routes.rs:161
Functionroute_by_stop_uid
(rh: State<RoutesHandler>, stop_uid: String)
src/routes/api/routes.rs:200
Functionroutes
(rh: State<RoutesHandler>)
src/routes/api/routes.rs:28
Functionroutes
(rh: State<RoutesHandler>, feed_id: String)
src/routes/api/import.rs:87
Functionroutes_by_query
( rh: State<RoutesHandler>, route_search: RouteSearch, )
src/routes/api/routes.rs:56
Methodset_feed_id
(&mut self, feed_id: String)
src/models/trip.rs:56
Methodset_id
(&mut self, id: String)
src/models/trip.rs:52
Functionstatic_css
(file: PathBuf)
src/main.rs:93
Functionstatic_js
(file: PathBuf)
src/main.rs:98
Functionstop_by_id
()
src/test/api/mod.rs:79
next →1–100 of 131, ranked by callers