Use diagnostics.PerfOptimizedFeeds; not params.FeedIDs for routing logic
view log » | |
tests_simple | view log » |
test_zipgtfs | view log » |
upload_results_ref | view log » |
check-branch | view log » |
upload_results_master | view log » |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
[#1477823] 2025/04/24 19:01:22 Booting image alpine/3.20 (default) on port 22263 [#1477823] 2025/04/24 19:01:22 Waiting for guest to settle [#1477823] 2025/04/24 19:01:31 Sending tasks [#1477823] 2025/04/24 19:01:33 Sending build environment [#1477823] 2025/04/24 19:01:34 Sending secrets [#1477823] 2025/04/24 19:01:34 Resolving secret a762687d-f65a-42d7-ad56-c2bd1edbcf94 [#1477823] 2025/04/24 19:01:34 Resolving secret 47e261d2-a744-4a45-bda0-591baa3d381b [#1477823] 2025/04/24 19:01:35 Installing packages Warning: Permanently added '[localhost]:22263' (ED25519) to the list of known hosts. fetch http://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz OK: 444 MiB in 140 packages Warning: Permanently added '[localhost]:22263' (ED25519) to the list of known hosts. (1/3) Installing go (1.22.10-r0) (2/3) Installing sqlite (3.45.3-r2) (3/3) Installing sqlite-dev (3.45.3-r2) Executing busybox-1.36.1-r29.trigger OK: 629 MiB in 143 packages [#1477823] 2025/04/24 19:01:37 Cloning repositories Cloning into 'mobroute'... + cd mobroute + git checkout -q f924e9d4c5fd0426571daf0b4ce9afd04c600a8f + cd mobroute + git submodule update --init --recursive [#1477823] 2025/04/24 19:01:38 Running task tests_simple [#1477823] 2025/04/24 19:02:33 Running task test_zipgtfs [#1477823] 2025/04/24 19:04:03 Running task upload_results_ref [#1477823] 2025/04/24 19:04:18 Running task check-branch [#1477823] 2025/04/24 19:04:18 Processing post-success triggers... [#1477823] 2025/04/24 19:04:19 Sent build results email to ~mil/mobroute-ci@lists.sr.ht |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 |
This is a big file! Only the last 128KiB is shown. Click here to download the full log.
2025/04/24 19:02:31 Loading views ok
2025/04/24 19:02:31 Importing table from //tmp/mobroute_test_mobdb_1210964382.csv (0.00MB) to table: _gtfssource_mdbcsv
2025/04/24 19:02:31 Last checksum vs current: / C_0M_de6a3c1b4ce9b402e041aa39c4dd219014f37030c2b25321e97a131dd9b81555; import will occur
2025/04/24 19:02:31 Execute insert query: <insert into _gtfssource_mdbcsv select -1 as feed_id, nullif(vtable."data_type", '') as "data_type", nullif(vtable."location.bounding_box.minimum_latitude", '') as "location.bounding_box.minimum_latitude", nullif(vtable."location.bounding_box.minimum_longitude", '') as "location.bounding_box.minimum_longitude", nullif(vtable."location.bounding_box.maximum_latitude", '') as "location.bounding_box.maximum_latitude", nullif(vtable."location.bounding_box.maximum_longitude", '') as "location.bounding_box.maximum_longitude", nullif(vtable."location.country_code", '') as "location.country_code", nullif(vtable."location.subdivision_name", '') as "location.subdivision_name", nullif(vtable."location.municipality", '') as "location.municipality", null as "urls.direct_download", nullif(vtable."urls.latest", '') as "urls.latest", null as "urls.license", nullif(vtable."mdb_source_id", '') as "mdb_source_id", nullif(vtable."name", '') as "name", nullif(vtable."status", '') as "status", nullif(vtable."provider", '') as "provider" from vtable>
2025/04/24 19:02:31 Insert query complete
2025/04/24 19:02:31 Imported 1 rows into _gtfssource_mdbcsv ok
2025/04/24 19:02:31 Imported table from //tmp/mobroute_test_mobdb_1210964382.csv to table: _gtfssource_mdbcsv ok
2025/04/24 19:02:31 Running RTDatabase against input: {"feed_ids":[42],"op":"loadmdbgtfs"}
2025/04/24 19:02:31 Running Load against 1 feeds
2025/04/24 19:02:31 Loading GTFS feed 42 (1 of 1)
2025/04/24 19:02:31 Loading /tmp/2817738267.zip to DB with GTFS feed: 42
2025/04/24 19:02:31 Loaded GTFS Archive /tmp/2817738267.zip to temporary directory: /tmp/mobroute_tempdir121145936
2025/04/24 19:02:31 Loading table: agency
2025/04/24 19:02:31 Importing table from /tmp/mobroute_tempdir121145936/agency.txt (0.00MB) to table: agency
2025/04/24 19:02:31 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur
2025/04/24 19:02:31 Execute insert query: <insert into agency select 42 as feed_id, nullif(vtable."agency_id", '') as "agency_id", nullif(vtable."agency_name", '') as "agency_name", nullif(vtable."agency_url", '') as "agency_url", nullif(vtable."agency_timezone", '') as "agency_timezone" from vtable>
2025/04/24 19:02:31 Insert query complete
2025/04/24 19:02:31 Imported 1 rows into agency ok
2025/04/24 19:02:31 Imported table from /tmp/mobroute_tempdir121145936/agency.txt to table: agency ok
2025/04/24 19:02:31 Loading table: agency complete
2025/04/24 19:02:31 Loading table: calendar
2025/04/24 19:02:31 Importing table from /tmp/mobroute_tempdir121145936/calendar.txt (0.00MB) to table: calendar
2025/04/24 19:02:31 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir121145936/calendar.txt
2025/04/24 19:02:31 Loading table: calendar complete
2025/04/24 19:02:31 Loading table: calendar_dates
2025/04/24 19:02:31 Importing table from /tmp/mobroute_tempdir121145936/calendar_dates.txt (0.00MB) to table: calendar_dates
2025/04/24 19:02:31 Last checksum vs current: / C_0M_e37e371e5f8c7c355413d55fe59c9054de3dbf0d759f0bcd6ef7968b46cde54e; import will occur
2025/04/24 19:02:31 Execute insert query: <insert into calendar_dates select 42 as feed_id, nullif(vtable."service_id", '') as "service_id", nullif(vtable."date", '') as "date", nullif(vtable."exception_type", '') as "exception_type" from vtable>
2025/04/24 19:02:31 Insert query complete
2025/04/24 19:02:31 Imported 1 rows into calendar_dates ok
2025/04/24 19:02:31 Imported table from /tmp/mobroute_tempdir121145936/calendar_dates.txt to table: calendar_dates ok
2025/04/24 19:02:31 Loading table: calendar_dates complete
2025/04/24 19:02:31 Loading table: stop_times
2025/04/24 19:02:31 Importing table from /tmp/mobroute_tempdir121145936/stop_times.txt (0.00MB) to table: stop_times
2025/04/24 19:02:31 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur
2025/04/24 19:02:31 Execute insert query: <insert into stop_times select 42 as feed_id, nullif(vtable."trip_id", '') as "trip_id",
(cast(substr(arrival_time, -8, 2) as int) * 3600) +
(cast(substr(arrival_time, -5, 2) as int) * 60) +
cast(substr(arrival_time, -2, 2) as int)
as "arrival_time",
(cast(substr(departure_time, -8, 2) as int) * 3600) +
(cast(substr(departure_time, -5, 2) as int) * 60) +
cast(substr(departure_time, -2, 2) as int)
as "departure_time", nullif(vtable."stop_id", '') as "stop_id", nullif(vtable."stop_sequence", '') as "stop_sequence", null as "stop_headsign", null as "pickup_type", null as "drop_off_type", null as "continuous_drop_off", null as "timepoint" from vtable>
2025/04/24 19:02:31 Insert query complete
2025/04/24 19:02:31 Imported 1 rows into stop_times ok
2025/04/24 19:02:31 Imported table from /tmp/mobroute_tempdir121145936/stop_times.txt to table: stop_times ok
2025/04/24 19:02:31 Loading table: stop_times complete
2025/04/24 19:02:31 Loading table: stops
2025/04/24 19:02:31 Importing table from /tmp/mobroute_tempdir121145936/stops.txt (0.00MB) to table: stops
2025/04/24 19:02:31 Last checksum vs current: / C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897; import will occur
2025/04/24 19:02:31 Execute insert query: <insert into stops select 42 as feed_id, nullif(vtable."stop_id", '') as "stop_id", null as "stop_code", nullif(vtable."stop_name", '') as "stop_name", null as "stop_desc", nullif(vtable."stop_lat", '') as "stop_lat", nullif(vtable."stop_lon", '') as "stop_lon", null as "zone_id", null as "stop_url", nullif(vtable."location_type", '') as "location_type", nullif(vtable."parent_station", '') as "parent_station", null as "stop_timezone", null as "wheelchair_boarding", null as "level_id", null as "platform_code" from vtable>
2025/04/24 19:02:31 Insert query complete
2025/04/24 19:02:31 Imported 4 rows into stops ok
2025/04/24 19:02:31 Imported table from /tmp/mobroute_tempdir121145936/stops.txt to table: stops ok
2025/04/24 19:02:31 Loading table: stops complete
2025/04/24 19:02:31 Loading table: trips
2025/04/24 19:02:31 Importing table from /tmp/mobroute_tempdir121145936/trips.txt (0.00MB) to table: trips
2025/04/24 19:02:31 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur
2025/04/24 19:02:31 Execute insert query: <insert into trips select 42 as feed_id, nullif(vtable."route_id", '') as "route_id", nullif(vtable."service_id", '') as "service_id", nullif(vtable."trip_id", '') as "trip_id", nullif(vtable."trip_headsign", '') as "trip_headsign", null as "trip_short_name", nullif(vtable."direction_id", '') as "direction_id", null as "block_id", null as "shape_id", null as "wheelchair_accessible", null as "bikes_allowed" from vtable>
2025/04/24 19:02:31 Insert query complete
2025/04/24 19:02:31 Imported 1 rows into trips ok
2025/04/24 19:02:31 Imported table from /tmp/mobroute_tempdir121145936/trips.txt to table: trips ok
2025/04/24 19:02:31 Loading table: trips complete
2025/04/24 19:02:31 Loading table: routes
2025/04/24 19:02:31 Importing table from /tmp/mobroute_tempdir121145936/routes.txt (0.00MB) to table: routes
2025/04/24 19:02:31 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur
2025/04/24 19:02:31 Execute insert query: <insert into routes select 42 as feed_id, nullif(vtable."route_id", '') as "route_id", null as "agency_id", nullif(vtable."route_short_name", '') as "route_short_name", null as "route_long_name", null as "route_desc", nullif(vtable."route_type", '') as "route_type", null as "route_url", null as "route_color", null as "route_text_color", null as "route_sort_order", null as "continuous_pickup", null as "continuous_drop_off" from vtable>
2025/04/24 19:02:31 Insert query complete
2025/04/24 19:02:31 Imported 1 rows into routes ok
2025/04/24 19:02:31 Imported table from /tmp/mobroute_tempdir121145936/routes.txt to table: routes ok
2025/04/24 19:02:31 Loading table: routes complete
2025/04/24 19:02:31 Loading table: transfers
2025/04/24 19:02:31 Importing table from /tmp/mobroute_tempdir121145936/transfers.txt (0.00MB) to table: transfers
2025/04/24 19:02:31 Last checksum vs current: / C_0M_62f6463902bf0c18eefcc88fd81a21fbf559daca8485920a3653a28636aa83f5; import will occur
2025/04/24 19:02:31 Execute insert query: <insert into transfers select 42 as feed_id, nullif(vtable."from_stop_id", '') as "from_stop_id", nullif(vtable."to_stop_id", '') as "to_stop_id", nullif(vtable."transfer_type", '') as "transfer_type", nullif(vtable."min_transfer_time", '') as "min_transfer_time" from vtable>
2025/04/24 19:02:31 Insert query complete
2025/04/24 19:02:31 Imported 2 rows into transfers ok
2025/04/24 19:02:31 Imported table from /tmp/mobroute_tempdir121145936/transfers.txt to table: transfers ok
2025/04/24 19:02:31 Loading table: transfers complete
2025/04/24 19:02:31 Loaded /tmp/2817738267.zip to DB with GTFS feed: 42 ok
2025/04/24 19:02:31 Loading GTFS feed 42 ok; used cache for URL download (true)
2025/04/24 19:02:31 Running Load against 1 feeds ok
2025/04/24 19:02:31 Running RTDatabase against input: {"feed_ids":[42],"op":"compute"}
2025/04/24 19:02:31 Running Compute against 1 feeds
2025/04/24 19:02:31 Computed table _ctconn for feed (42 <nil>) out of date - updating ('' vs '42:routes:C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8,42:stop_times:C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a,42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897,42:trips:C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435')
2025/04/24 19:02:31 Computed table _ctcaltoservice for feed (42 <nil>) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897')
2025/04/24 19:02:31 Computed table _cttransfersgen for feed (42 0xc000213ef8) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897')
2025/04/24 19:02:31 Running Compute against 1 feeds ok
2025/04/24 19:02:31 Loading select * from (
-- Implicit transfers
select
from_stop_parent_uid, from_stop_parent_id, from_stop_id, from_feed_id,
to_stop_parent_uid, to_stop_parent_id, to_stop_id, to_feed_id,
'i' as transfer_category,
? as transfer_seconds
from _vtransfersimplicit
union all
-- Generated transfers
select
from_stop_parent_uid, from_stop_parent_id, from_stop_id, feed_id as from_feed_id,
to_stop_parent_uid, to_stop_parent_id, to_stop_id, feed_id_pair as to_feed_id,
'g' as transfer_category,
-- Uses dist_km to determine seconds transfer cost; round up to min_seconds
max(coalesce(cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds
from _cttransfersgen
union all
-- Feed transfers (transfers.txt)
select
from_stop_parent_uid, from_stop_parent_id, from_stop_id, feed_id as from_feed_id,
to_stop_parent_uid, to_stop_parent_id, to_stop_id, feed_id_pair as to_feed_id,
'f' as transfer_category,
-- Uses min_transfer_time, else use dist_km; round up to min_seconds
max(coalesce(min_transfer_time, cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds
from _vtransferstbl
) t
where ((from_feed_id = ? and to_feed_id = ?))
and transfer_seconds < ?
and transfer_category in (? , ?)
([3 3.5 3 3 3.5 3 3 42 42 1000 f g]) to memory
2025/04/24 19:02:31 Loaded select * from (
-- Implicit transfers
select
from_stop_parent_uid, from_stop_parent_id, from_stop_id, from_feed_id,
to_stop_parent_uid, to_stop_parent_id, to_stop_id, to_feed_id,
'i' as transfer_category,
? as transfer_seconds
from _vtransfersimplicit
union all
-- Generated transfers
select
from_stop_parent_uid, from_stop_parent_id, from_stop_id, feed_id as from_feed_id,
to_stop_parent_uid, to_stop_parent_id, to_stop_id, feed_id_pair as to_feed_id,
'g' as transfer_category,
-- Uses dist_km to determine seconds transfer cost; round up to min_seconds
max(coalesce(cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds
from _cttransfersgen
union all
-- Feed transfers (transfers.txt)
select
from_stop_parent_uid, from_stop_parent_id, from_stop_id, feed_id as from_feed_id,
to_stop_parent_uid, to_stop_parent_id, to_stop_id, feed_id_pair as to_feed_id,
'f' as transfer_category,
-- Uses min_transfer_time, else use dist_km; round up to min_seconds
max(coalesce(min_transfer_time, cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds
from _vtransferstbl
) t
where ((from_feed_id = ? and to_feed_id = ?))
and transfer_seconds < ?
and transfer_category in (? , ?)
([3 3.5 3 3 3.5 3 3 42 42 1000 f g]) to memory ok (len=5)
--- PASS: Test_LoadTransfers (0.08s)
PASS
ok git.sr.ht/~mil/mobroute/dbquery_test 0.299s
? git.sr.ht/~mil/mobroute/dbschemaextra [no test files]
? git.sr.ht/~mil/mobroute/dbstubquery [no test files]
=== RUN Test_LoadCalToService
2025/04/24 19:02:32 Generated mock for input (map[42:../testhelper/mockgtfs/gtfs_cal_only.yml]): (gtfs zips: [/tmp/259226016.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_560421386.csv)
2025/04/24 19:02:32 SQLite system version (3.46.1); comparing to required version: 3.28.0
2025/04/24 19:02:32 Loading schema tables
2025/04/24 19:02:32 Execute statement:
create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl))
2025/04/24 19:02:32 Execute statement:
create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.direct_download' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2)))
2025/04/24 19:02:32 Execute statement:
create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence))
2025/04/24 19:02:32 Execute statement:
create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check(
((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or
(location_type = 3 or location_type = 4)
),'stop_desc' text,'stop_lat' real check(
((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or
(location_type = 3 or location_type = 4)
),'stop_lon' real check(
((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or
(location_type = 3 or location_type = 4)
),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int)
2025/04/24 19:02:32 Execute statement:
create table if not exists _ctconn ('feed_id' int not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_parent_id' text not null,'from_stop_parent_uid' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_parent_id' text not null,'to_stop_parent_uid' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null)
2025/04/24 19:02:32 Execute statement:
create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null)
2025/04/24 19:02:32 Execute statement:
create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_parent_id' text not null,'to_stop_parent_id' text not null,'from_stop_parent_uid' text not null,'to_stop_parent_uid' text not null,'dist_km' real)
2025/04/24 19:02:32 Loading schema tables ok
2025/04/24 19:02:32 Loading schema indexes
2025/04/24 19:02:32 Create index idx_agency1_agency_timezone on agency as [agency_timezone]
2025/04/24 19:02:32 Created index idx_agency1_agency_timezone ok
2025/04/24 19:02:32 Create index idx_stop_times1_trip_id on stop_times as [trip_id]
2025/04/24 19:02:32 Created index idx_stop_times1_trip_id ok
2025/04/24 19:02:32 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id]
2025/04/24 19:02:32 Created index idx_stops2_feed_id_stop_id ok
2025/04/24 19:02:32 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon]
2025/04/24 19:02:32 Created index idx_stops2_stop_lat_stop_lon ok
2025/04/24 19:02:32 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type]
2025/04/24 19:02:32 Created index idx_stops3_feed_id_parent_station_location_type ok
2025/04/24 19:02:32 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id]
2025/04/24 19:02:32 Created index idx_transfers2_feed_id_from_stop_id ok
2025/04/24 19:02:32 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id]
2025/04/24 19:02:32 Created index idx_transfers2_feed_id_to_stop_id ok
2025/04/24 19:02:32 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time]
2025/04/24 19:02:32 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok
2025/04/24 19:02:32 Create index idx__ctconn3_feed_id_from_stop_parent_uid_from_stop_time on _ctconn as [feed_id from_stop_parent_uid from_stop_time]
2025/04/24 19:02:32 Created index idx__ctconn3_feed_id_from_stop_parent_uid_from_stop_time ok
2025/04/24 19:02:32 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date]
2025/04/24 19:02:32 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok
2025/04/24 19:02:32 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date]
2025/04/24 19:02:32 Created index idx__ctcaltoservice2_feed_id_service_date ok
2025/04/24 19:02:32 Loading schema indexes ok
2025/04/24 19:02:32 Loading views ok
2025/04/24 19:02:32 Loaded view _vfeedsminmaxdates (bytes=251)
2025/04/24 19:02:32 Loaded view _vfeedsmetadata (bytes=3789)
2025/04/24 19:02:32 Loaded view _vstopparent (bytes=2600)
2025/04/24 19:02:32 Loaded view _vconn (bytes=1225)
2025/04/24 19:02:32 Loaded view _vconnverbose (bytes=1173)
2025/04/24 19:02:32 Loaded view _vcaltoservice (bytes=3110)
2025/04/24 19:02:32 Loaded view _vtransferstbl (bytes=957)
2025/04/24 19:02:32 Loaded view _vtransfersgen (bytes=1559)
2025/04/24 19:02:32 Loaded view _vtransfersimplicit (bytes=395)
2025/04/24 19:02:32 Loading views ok
2025/04/24 19:02:32 Importing table from //tmp/mobroute_test_mobdb_560421386.csv (0.00MB) to table: _gtfssource_mdbcsv
2025/04/24 19:02:32 Last checksum vs current: / C_0M_a97a393cfcdd031aa9653aecceb7917a156fb96e90631e34224adfc0bab39e76; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into _gtfssource_mdbcsv select -1 as feed_id, nullif(vtable."data_type", '') as "data_type", nullif(vtable."location.bounding_box.minimum_latitude", '') as "location.bounding_box.minimum_latitude", nullif(vtable."location.bounding_box.minimum_longitude", '') as "location.bounding_box.minimum_longitude", nullif(vtable."location.bounding_box.maximum_latitude", '') as "location.bounding_box.maximum_latitude", nullif(vtable."location.bounding_box.maximum_longitude", '') as "location.bounding_box.maximum_longitude", nullif(vtable."location.country_code", '') as "location.country_code", nullif(vtable."location.subdivision_name", '') as "location.subdivision_name", nullif(vtable."location.municipality", '') as "location.municipality", null as "urls.direct_download", nullif(vtable."urls.latest", '') as "urls.latest", null as "urls.license", nullif(vtable."mdb_source_id", '') as "mdb_source_id", nullif(vtable."name", '') as "name", nullif(vtable."status", '') as "status", nullif(vtable."provider", '') as "provider" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into _gtfssource_mdbcsv ok
2025/04/24 19:02:32 Imported table from //tmp/mobroute_test_mobdb_560421386.csv to table: _gtfssource_mdbcsv ok
2025/04/24 19:02:32 Running RTDatabase against input: {"feed_ids":[42],"op":"loadmdbgtfs"}
2025/04/24 19:02:32 Running Load against 1 feeds
2025/04/24 19:02:32 Loading GTFS feed 42 (1 of 1)
2025/04/24 19:02:32 Loading /tmp/259226016.zip to DB with GTFS feed: 42
2025/04/24 19:02:32 Loaded GTFS Archive /tmp/259226016.zip to temporary directory: /tmp/mobroute_tempdir3951806670
2025/04/24 19:02:32 Loading table: agency
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir3951806670/agency.txt (0.00MB) to table: agency
2025/04/24 19:02:32 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into agency select 42 as feed_id, nullif(vtable."agency_id", '') as "agency_id", nullif(vtable."agency_name", '') as "agency_name", nullif(vtable."agency_url", '') as "agency_url", nullif(vtable."agency_timezone", '') as "agency_timezone" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into agency ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir3951806670/agency.txt to table: agency ok
2025/04/24 19:02:32 Loading table: agency complete
2025/04/24 19:02:32 Loading table: calendar
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir3951806670/calendar.txt (0.00MB) to table: calendar
2025/04/24 19:02:32 Last checksum vs current: / C_0M_e3b90f0aa591f682039ce6ac7a9f4e8f46025c2346ee8478c06a04300d59ed12; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into calendar select 42 as feed_id, nullif(vtable."service_id", '') as "service_id", nullif(vtable."monday", '') as "monday", nullif(vtable."tuesday", '') as "tuesday", nullif(vtable."wednesday", '') as "wednesday", nullif(vtable."thursday", '') as "thursday", nullif(vtable."friday", '') as "friday", nullif(vtable."saturday", '') as "saturday", nullif(vtable."sunday", '') as "sunday", nullif(vtable."start_date", '') as "start_date", nullif(vtable."end_date", '') as "end_date" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 2 rows into calendar ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir3951806670/calendar.txt to table: calendar ok
2025/04/24 19:02:32 Loading table: calendar complete
2025/04/24 19:02:32 Loading table: calendar_dates
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir3951806670/calendar_dates.txt (0.00MB) to table: calendar_dates
2025/04/24 19:02:32 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir3951806670/calendar_dates.txt
2025/04/24 19:02:32 Loading table: calendar_dates complete
2025/04/24 19:02:32 Loading table: stop_times
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir3951806670/stop_times.txt (0.00MB) to table: stop_times
2025/04/24 19:02:32 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into stop_times select 42 as feed_id, nullif(vtable."trip_id", '') as "trip_id",
(cast(substr(arrival_time, -8, 2) as int) * 3600) +
(cast(substr(arrival_time, -5, 2) as int) * 60) +
cast(substr(arrival_time, -2, 2) as int)
as "arrival_time",
(cast(substr(departure_time, -8, 2) as int) * 3600) +
(cast(substr(departure_time, -5, 2) as int) * 60) +
cast(substr(departure_time, -2, 2) as int)
as "departure_time", nullif(vtable."stop_id", '') as "stop_id", nullif(vtable."stop_sequence", '') as "stop_sequence", null as "stop_headsign", null as "pickup_type", null as "drop_off_type", null as "continuous_drop_off", null as "timepoint" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into stop_times ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir3951806670/stop_times.txt to table: stop_times ok
2025/04/24 19:02:32 Loading table: stop_times complete
2025/04/24 19:02:32 Loading table: stops
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir3951806670/stops.txt (0.00MB) to table: stops
2025/04/24 19:02:32 Last checksum vs current: / C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into stops select 42 as feed_id, nullif(vtable."stop_id", '') as "stop_id", null as "stop_code", nullif(vtable."stop_name", '') as "stop_name", null as "stop_desc", nullif(vtable."stop_lat", '') as "stop_lat", nullif(vtable."stop_lon", '') as "stop_lon", null as "zone_id", null as "stop_url", null as "location_type", null as "parent_station", null as "stop_timezone", null as "wheelchair_boarding", null as "level_id", null as "platform_code" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into stops ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir3951806670/stops.txt to table: stops ok
2025/04/24 19:02:32 Loading table: stops complete
2025/04/24 19:02:32 Loading table: trips
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir3951806670/trips.txt (0.00MB) to table: trips
2025/04/24 19:02:32 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into trips select 42 as feed_id, nullif(vtable."route_id", '') as "route_id", nullif(vtable."service_id", '') as "service_id", nullif(vtable."trip_id", '') as "trip_id", nullif(vtable."trip_headsign", '') as "trip_headsign", null as "trip_short_name", nullif(vtable."direction_id", '') as "direction_id", null as "block_id", null as "shape_id", null as "wheelchair_accessible", null as "bikes_allowed" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into trips ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir3951806670/trips.txt to table: trips ok
2025/04/24 19:02:32 Loading table: trips complete
2025/04/24 19:02:32 Loading table: routes
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir3951806670/routes.txt (0.00MB) to table: routes
2025/04/24 19:02:32 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into routes select 42 as feed_id, nullif(vtable."route_id", '') as "route_id", null as "agency_id", nullif(vtable."route_short_name", '') as "route_short_name", null as "route_long_name", null as "route_desc", nullif(vtable."route_type", '') as "route_type", null as "route_url", null as "route_color", null as "route_text_color", null as "route_sort_order", null as "continuous_pickup", null as "continuous_drop_off" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into routes ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir3951806670/routes.txt to table: routes ok
2025/04/24 19:02:32 Loading table: routes complete
2025/04/24 19:02:32 Loading table: transfers
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir3951806670/transfers.txt (0.00MB) to table: transfers
2025/04/24 19:02:32 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir3951806670/transfers.txt
2025/04/24 19:02:32 Loading table: transfers complete
2025/04/24 19:02:32 Loaded /tmp/259226016.zip to DB with GTFS feed: 42 ok
2025/04/24 19:02:32 Loading GTFS feed 42 ok; used cache for URL download (true)
2025/04/24 19:02:32 Running Load against 1 feeds ok
2025/04/24 19:02:32 Running RTDatabase against input: {"feed_ids":[42],"op":"compute"}
2025/04/24 19:02:32 Running Compute against 1 feeds
2025/04/24 19:02:32 Computed table _ctconn for feed (42 <nil>) out of date - updating ('' vs '42:routes:C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8,42:stop_times:C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a,42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb,42:trips:C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435')
2025/04/24 19:02:32 Computed table _ctcaltoservice for feed (42 <nil>) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb')
2025/04/24 19:02:32 Computed table _cttransfersgen for feed (42 0xc0003b34d8) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb')
2025/04/24 19:02:32 Running Compute against 1 feeds ok
2025/04/24 19:02:32 Loading
select feed_id, service_date, service_id from _ctcaltoservice
where feed_id = ? and service_date between ? and ?
([42 20230620 20230621]) to memory
2025/04/24 19:02:32 Loaded
select feed_id, service_date, service_id from _ctcaltoservice
where feed_id = ? and service_date between ? and ?
([42 20230620 20230621]) to memory ok (len=4)
2025/04/24 19:02:32 Generated mock for input (map[42:../testhelper/mockgtfs/gtfs_cal_only.yml]): (gtfs zips: [/tmp/3635491532.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_1746181886.csv)
2025/04/24 19:02:32 SQLite system version (3.46.1); comparing to required version: 3.28.0
2025/04/24 19:02:32 Loading schema tables
2025/04/24 19:02:32 Execute statement:
create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl))
2025/04/24 19:02:32 Execute statement:
create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.direct_download' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2)))
2025/04/24 19:02:32 Execute statement:
create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence))
2025/04/24 19:02:32 Execute statement:
create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check(
((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or
(location_type = 3 or location_type = 4)
),'stop_desc' text,'stop_lat' real check(
((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or
(location_type = 3 or location_type = 4)
),'stop_lon' real check(
((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or
(location_type = 3 or location_type = 4)
),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int)
2025/04/24 19:02:32 Execute statement:
create table if not exists _ctconn ('feed_id' int not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_parent_id' text not null,'from_stop_parent_uid' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_parent_id' text not null,'to_stop_parent_uid' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null)
2025/04/24 19:02:32 Execute statement:
create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null)
2025/04/24 19:02:32 Execute statement:
create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_parent_id' text not null,'to_stop_parent_id' text not null,'from_stop_parent_uid' text not null,'to_stop_parent_uid' text not null,'dist_km' real)
2025/04/24 19:02:32 Loading schema tables ok
2025/04/24 19:02:32 Loading schema indexes
2025/04/24 19:02:32 Create index idx_agency1_agency_timezone on agency as [agency_timezone]
2025/04/24 19:02:32 Created index idx_agency1_agency_timezone ok
2025/04/24 19:02:32 Create index idx_stop_times1_trip_id on stop_times as [trip_id]
2025/04/24 19:02:32 Created index idx_stop_times1_trip_id ok
2025/04/24 19:02:32 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id]
2025/04/24 19:02:32 Created index idx_stops2_feed_id_stop_id ok
2025/04/24 19:02:32 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon]
2025/04/24 19:02:32 Created index idx_stops2_stop_lat_stop_lon ok
2025/04/24 19:02:32 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type]
2025/04/24 19:02:32 Created index idx_stops3_feed_id_parent_station_location_type ok
2025/04/24 19:02:32 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id]
2025/04/24 19:02:32 Created index idx_transfers2_feed_id_from_stop_id ok
2025/04/24 19:02:32 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id]
2025/04/24 19:02:32 Created index idx_transfers2_feed_id_to_stop_id ok
2025/04/24 19:02:32 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time]
2025/04/24 19:02:32 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok
2025/04/24 19:02:32 Create index idx__ctconn3_feed_id_from_stop_parent_uid_from_stop_time on _ctconn as [feed_id from_stop_parent_uid from_stop_time]
2025/04/24 19:02:32 Created index idx__ctconn3_feed_id_from_stop_parent_uid_from_stop_time ok
2025/04/24 19:02:32 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date]
2025/04/24 19:02:32 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok
2025/04/24 19:02:32 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date]
2025/04/24 19:02:32 Created index idx__ctcaltoservice2_feed_id_service_date ok
2025/04/24 19:02:32 Loading schema indexes ok
2025/04/24 19:02:32 Loading views ok
2025/04/24 19:02:32 Loaded view _vfeedsminmaxdates (bytes=251)
2025/04/24 19:02:32 Loaded view _vfeedsmetadata (bytes=3789)
2025/04/24 19:02:32 Loaded view _vstopparent (bytes=2600)
2025/04/24 19:02:32 Loaded view _vconn (bytes=1225)
2025/04/24 19:02:32 Loaded view _vconnverbose (bytes=1173)
2025/04/24 19:02:32 Loaded view _vcaltoservice (bytes=3110)
2025/04/24 19:02:32 Loaded view _vtransferstbl (bytes=957)
2025/04/24 19:02:32 Loaded view _vtransfersgen (bytes=1559)
2025/04/24 19:02:32 Loaded view _vtransfersimplicit (bytes=395)
2025/04/24 19:02:32 Loading views ok
2025/04/24 19:02:32 Importing table from //tmp/mobroute_test_mobdb_1746181886.csv (0.00MB) to table: _gtfssource_mdbcsv
2025/04/24 19:02:32 Last checksum vs current: / C_0M_55fe2b89748e547da86aa6b9d7ec2f451f068a9ebe93657208d93b01cc3c495b; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into _gtfssource_mdbcsv select -1 as feed_id, nullif(vtable."data_type", '') as "data_type", nullif(vtable."location.bounding_box.minimum_latitude", '') as "location.bounding_box.minimum_latitude", nullif(vtable."location.bounding_box.minimum_longitude", '') as "location.bounding_box.minimum_longitude", nullif(vtable."location.bounding_box.maximum_latitude", '') as "location.bounding_box.maximum_latitude", nullif(vtable."location.bounding_box.maximum_longitude", '') as "location.bounding_box.maximum_longitude", nullif(vtable."location.country_code", '') as "location.country_code", nullif(vtable."location.subdivision_name", '') as "location.subdivision_name", nullif(vtable."location.municipality", '') as "location.municipality", null as "urls.direct_download", nullif(vtable."urls.latest", '') as "urls.latest", null as "urls.license", nullif(vtable."mdb_source_id", '') as "mdb_source_id", nullif(vtable."name", '') as "name", nullif(vtable."status", '') as "status", nullif(vtable."provider", '') as "provider" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into _gtfssource_mdbcsv ok
2025/04/24 19:02:32 Imported table from //tmp/mobroute_test_mobdb_1746181886.csv to table: _gtfssource_mdbcsv ok
2025/04/24 19:02:32 Running RTDatabase against input: {"feed_ids":[42],"op":"loadmdbgtfs"}
2025/04/24 19:02:32 Running Load against 1 feeds
2025/04/24 19:02:32 Loading GTFS feed 42 (1 of 1)
2025/04/24 19:02:32 Loading /tmp/3635491532.zip to DB with GTFS feed: 42
2025/04/24 19:02:32 Loaded GTFS Archive /tmp/3635491532.zip to temporary directory: /tmp/mobroute_tempdir2582616177
2025/04/24 19:02:32 Loading table: agency
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir2582616177/agency.txt (0.00MB) to table: agency
2025/04/24 19:02:32 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into agency select 42 as feed_id, nullif(vtable."agency_id", '') as "agency_id", nullif(vtable."agency_name", '') as "agency_name", nullif(vtable."agency_url", '') as "agency_url", nullif(vtable."agency_timezone", '') as "agency_timezone" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into agency ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir2582616177/agency.txt to table: agency ok
2025/04/24 19:02:32 Loading table: agency complete
2025/04/24 19:02:32 Loading table: calendar
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir2582616177/calendar.txt (0.00MB) to table: calendar
2025/04/24 19:02:32 Last checksum vs current: / C_0M_e3b90f0aa591f682039ce6ac7a9f4e8f46025c2346ee8478c06a04300d59ed12; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into calendar select 42 as feed_id, nullif(vtable."service_id", '') as "service_id", nullif(vtable."monday", '') as "monday", nullif(vtable."tuesday", '') as "tuesday", nullif(vtable."wednesday", '') as "wednesday", nullif(vtable."thursday", '') as "thursday", nullif(vtable."friday", '') as "friday", nullif(vtable."saturday", '') as "saturday", nullif(vtable."sunday", '') as "sunday", nullif(vtable."start_date", '') as "start_date", nullif(vtable."end_date", '') as "end_date" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 2 rows into calendar ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir2582616177/calendar.txt to table: calendar ok
2025/04/24 19:02:32 Loading table: calendar complete
2025/04/24 19:02:32 Loading table: calendar_dates
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir2582616177/calendar_dates.txt (0.00MB) to table: calendar_dates
2025/04/24 19:02:32 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2582616177/calendar_dates.txt
2025/04/24 19:02:32 Loading table: calendar_dates complete
2025/04/24 19:02:32 Loading table: stop_times
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir2582616177/stop_times.txt (0.00MB) to table: stop_times
2025/04/24 19:02:32 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into stop_times select 42 as feed_id, nullif(vtable."trip_id", '') as "trip_id",
(cast(substr(arrival_time, -8, 2) as int) * 3600) +
(cast(substr(arrival_time, -5, 2) as int) * 60) +
cast(substr(arrival_time, -2, 2) as int)
as "arrival_time",
(cast(substr(departure_time, -8, 2) as int) * 3600) +
(cast(substr(departure_time, -5, 2) as int) * 60) +
cast(substr(departure_time, -2, 2) as int)
as "departure_time", nullif(vtable."stop_id", '') as "stop_id", nullif(vtable."stop_sequence", '') as "stop_sequence", null as "stop_headsign", null as "pickup_type", null as "drop_off_type", null as "continuous_drop_off", null as "timepoint" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into stop_times ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir2582616177/stop_times.txt to table: stop_times ok
2025/04/24 19:02:32 Loading table: stop_times complete
2025/04/24 19:02:32 Loading table: stops
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir2582616177/stops.txt (0.00MB) to table: stops
2025/04/24 19:02:32 Last checksum vs current: / C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into stops select 42 as feed_id, nullif(vtable."stop_id", '') as "stop_id", null as "stop_code", nullif(vtable."stop_name", '') as "stop_name", null as "stop_desc", nullif(vtable."stop_lat", '') as "stop_lat", nullif(vtable."stop_lon", '') as "stop_lon", null as "zone_id", null as "stop_url", null as "location_type", null as "parent_station", null as "stop_timezone", null as "wheelchair_boarding", null as "level_id", null as "platform_code" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into stops ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir2582616177/stops.txt to table: stops ok
2025/04/24 19:02:32 Loading table: stops complete
2025/04/24 19:02:32 Loading table: trips
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir2582616177/trips.txt (0.00MB) to table: trips
2025/04/24 19:02:32 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into trips select 42 as feed_id, nullif(vtable."route_id", '') as "route_id", nullif(vtable."service_id", '') as "service_id", nullif(vtable."trip_id", '') as "trip_id", nullif(vtable."trip_headsign", '') as "trip_headsign", null as "trip_short_name", nullif(vtable."direction_id", '') as "direction_id", null as "block_id", null as "shape_id", null as "wheelchair_accessible", null as "bikes_allowed" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into trips ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir2582616177/trips.txt to table: trips ok
2025/04/24 19:02:32 Loading table: trips complete
2025/04/24 19:02:32 Loading table: routes
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir2582616177/routes.txt (0.00MB) to table: routes
2025/04/24 19:02:32 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into routes select 42 as feed_id, nullif(vtable."route_id", '') as "route_id", null as "agency_id", nullif(vtable."route_short_name", '') as "route_short_name", null as "route_long_name", null as "route_desc", nullif(vtable."route_type", '') as "route_type", null as "route_url", null as "route_color", null as "route_text_color", null as "route_sort_order", null as "continuous_pickup", null as "continuous_drop_off" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into routes ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir2582616177/routes.txt to table: routes ok
2025/04/24 19:02:32 Loading table: routes complete
2025/04/24 19:02:32 Loading table: transfers
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir2582616177/transfers.txt (0.00MB) to table: transfers
2025/04/24 19:02:32 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2582616177/transfers.txt
2025/04/24 19:02:32 Loading table: transfers complete
2025/04/24 19:02:32 Loaded /tmp/3635491532.zip to DB with GTFS feed: 42 ok
2025/04/24 19:02:32 Loading GTFS feed 42 ok; used cache for URL download (true)
2025/04/24 19:02:32 Running Load against 1 feeds ok
2025/04/24 19:02:32 Running RTDatabase against input: {"feed_ids":[42],"op":"compute"}
2025/04/24 19:02:32 Running Compute against 1 feeds
2025/04/24 19:02:32 Computed table _ctconn for feed (42 <nil>) out of date - updating ('' vs '42:routes:C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8,42:stop_times:C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a,42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb,42:trips:C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435')
2025/04/24 19:02:32 Computed table _ctcaltoservice for feed (42 <nil>) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb')
2025/04/24 19:02:32 Computed table _cttransfersgen for feed (42 0xc0004ec158) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb')
2025/04/24 19:02:32 Running Compute against 1 feeds ok
2025/04/24 19:02:32 Loading
select feed_id, service_date, service_id from _ctcaltoservice
where feed_id = ? and service_date between ? and ?
([42 20270619 20270622]) to memory
2025/04/24 19:02:32 Loaded
select feed_id, service_date, service_id from _ctcaltoservice
where feed_id = ? and service_date between ? and ?
([42 20270619 20270622]) to memory ok (len=0)
2025/04/24 19:02:32 Generated mock for input (map[42:../testhelper/mockgtfs/gtfs_caldates_only.yml]): (gtfs zips: [/tmp/4035687383.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_1342858293.csv)
2025/04/24 19:02:32 SQLite system version (3.46.1); comparing to required version: 3.28.0
2025/04/24 19:02:32 Loading schema tables
2025/04/24 19:02:32 Execute statement:
create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl))
2025/04/24 19:02:32 Execute statement:
create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.direct_download' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2)))
2025/04/24 19:02:32 Execute statement:
create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence))
2025/04/24 19:02:32 Execute statement:
create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check(
((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or
(location_type = 3 or location_type = 4)
),'stop_desc' text,'stop_lat' real check(
((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or
(location_type = 3 or location_type = 4)
),'stop_lon' real check(
((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or
(location_type = 3 or location_type = 4)
),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int)
2025/04/24 19:02:32 Execute statement:
create table if not exists _ctconn ('feed_id' int not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_parent_id' text not null,'from_stop_parent_uid' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_parent_id' text not null,'to_stop_parent_uid' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null)
2025/04/24 19:02:32 Execute statement:
create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null)
2025/04/24 19:02:32 Execute statement:
create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_parent_id' text not null,'to_stop_parent_id' text not null,'from_stop_parent_uid' text not null,'to_stop_parent_uid' text not null,'dist_km' real)
2025/04/24 19:02:32 Loading schema tables ok
2025/04/24 19:02:32 Loading schema indexes
2025/04/24 19:02:32 Create index idx_agency1_agency_timezone on agency as [agency_timezone]
2025/04/24 19:02:32 Created index idx_agency1_agency_timezone ok
2025/04/24 19:02:32 Create index idx_stop_times1_trip_id on stop_times as [trip_id]
2025/04/24 19:02:32 Created index idx_stop_times1_trip_id ok
2025/04/24 19:02:32 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id]
2025/04/24 19:02:32 Created index idx_stops2_feed_id_stop_id ok
2025/04/24 19:02:32 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon]
2025/04/24 19:02:32 Created index idx_stops2_stop_lat_stop_lon ok
2025/04/24 19:02:32 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type]
2025/04/24 19:02:32 Created index idx_stops3_feed_id_parent_station_location_type ok
2025/04/24 19:02:32 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id]
2025/04/24 19:02:32 Created index idx_transfers2_feed_id_from_stop_id ok
2025/04/24 19:02:32 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id]
2025/04/24 19:02:32 Created index idx_transfers2_feed_id_to_stop_id ok
2025/04/24 19:02:32 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time]
2025/04/24 19:02:32 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok
2025/04/24 19:02:32 Create index idx__ctconn3_feed_id_from_stop_parent_uid_from_stop_time on _ctconn as [feed_id from_stop_parent_uid from_stop_time]
2025/04/24 19:02:32 Created index idx__ctconn3_feed_id_from_stop_parent_uid_from_stop_time ok
2025/04/24 19:02:32 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date]
2025/04/24 19:02:32 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok
2025/04/24 19:02:32 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date]
2025/04/24 19:02:32 Created index idx__ctcaltoservice2_feed_id_service_date ok
2025/04/24 19:02:32 Loading schema indexes ok
2025/04/24 19:02:32 Loading views ok
2025/04/24 19:02:32 Loaded view _vfeedsminmaxdates (bytes=251)
2025/04/24 19:02:32 Loaded view _vfeedsmetadata (bytes=3789)
2025/04/24 19:02:32 Loaded view _vstopparent (bytes=2600)
2025/04/24 19:02:32 Loaded view _vconn (bytes=1225)
2025/04/24 19:02:32 Loaded view _vconnverbose (bytes=1173)
2025/04/24 19:02:32 Loaded view _vcaltoservice (bytes=3110)
2025/04/24 19:02:32 Loaded view _vtransferstbl (bytes=957)
2025/04/24 19:02:32 Loaded view _vtransfersgen (bytes=1559)
2025/04/24 19:02:32 Loaded view _vtransfersimplicit (bytes=395)
2025/04/24 19:02:32 Loading views ok
2025/04/24 19:02:32 Importing table from //tmp/mobroute_test_mobdb_1342858293.csv (0.00MB) to table: _gtfssource_mdbcsv
2025/04/24 19:02:32 Last checksum vs current: / C_0M_f073bbffcaf38a856582c527ef9235d656bb00d11e85a821ae4c1850d0f98d8b; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into _gtfssource_mdbcsv select -1 as feed_id, nullif(vtable."data_type", '') as "data_type", nullif(vtable."location.bounding_box.minimum_latitude", '') as "location.bounding_box.minimum_latitude", nullif(vtable."location.bounding_box.minimum_longitude", '') as "location.bounding_box.minimum_longitude", nullif(vtable."location.bounding_box.maximum_latitude", '') as "location.bounding_box.maximum_latitude", nullif(vtable."location.bounding_box.maximum_longitude", '') as "location.bounding_box.maximum_longitude", nullif(vtable."location.country_code", '') as "location.country_code", nullif(vtable."location.subdivision_name", '') as "location.subdivision_name", nullif(vtable."location.municipality", '') as "location.municipality", null as "urls.direct_download", nullif(vtable."urls.latest", '') as "urls.latest", null as "urls.license", nullif(vtable."mdb_source_id", '') as "mdb_source_id", nullif(vtable."name", '') as "name", nullif(vtable."status", '') as "status", nullif(vtable."provider", '') as "provider" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into _gtfssource_mdbcsv ok
2025/04/24 19:02:32 Imported table from //tmp/mobroute_test_mobdb_1342858293.csv to table: _gtfssource_mdbcsv ok
2025/04/24 19:02:32 Running RTDatabase against input: {"feed_ids":[42],"op":"loadmdbgtfs"}
2025/04/24 19:02:32 Running Load against 1 feeds
2025/04/24 19:02:32 Loading GTFS feed 42 (1 of 1)
2025/04/24 19:02:32 Loading /tmp/4035687383.zip to DB with GTFS feed: 42
2025/04/24 19:02:32 Loaded GTFS Archive /tmp/4035687383.zip to temporary directory: /tmp/mobroute_tempdir3379607807
2025/04/24 19:02:32 Loading table: agency
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir3379607807/agency.txt (0.00MB) to table: agency
2025/04/24 19:02:32 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into agency select 42 as feed_id, nullif(vtable."agency_id", '') as "agency_id", nullif(vtable."agency_name", '') as "agency_name", nullif(vtable."agency_url", '') as "agency_url", nullif(vtable."agency_timezone", '') as "agency_timezone" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into agency ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir3379607807/agency.txt to table: agency ok
2025/04/24 19:02:32 Loading table: agency complete
2025/04/24 19:02:32 Loading table: calendar
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir3379607807/calendar.txt (0.00MB) to table: calendar
2025/04/24 19:02:32 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir3379607807/calendar.txt
2025/04/24 19:02:32 Loading table: calendar complete
2025/04/24 19:02:32 Loading table: calendar_dates
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir3379607807/calendar_dates.txt (0.00MB) to table: calendar_dates
2025/04/24 19:02:32 Last checksum vs current: / C_0M_c9a596973ac871ddba3e27cef7cc8ef2d3481b1fd98a210e6f398bd2ce95a687; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into calendar_dates select 42 as feed_id, nullif(vtable."service_id", '') as "service_id", nullif(vtable."date", '') as "date", nullif(vtable."exception_type", '') as "exception_type" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 6 rows into calendar_dates ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir3379607807/calendar_dates.txt to table: calendar_dates ok
2025/04/24 19:02:32 Loading table: calendar_dates complete
2025/04/24 19:02:32 Loading table: stop_times
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir3379607807/stop_times.txt (0.00MB) to table: stop_times
2025/04/24 19:02:32 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into stop_times select 42 as feed_id, nullif(vtable."trip_id", '') as "trip_id",
(cast(substr(arrival_time, -8, 2) as int) * 3600) +
(cast(substr(arrival_time, -5, 2) as int) * 60) +
cast(substr(arrival_time, -2, 2) as int)
as "arrival_time",
(cast(substr(departure_time, -8, 2) as int) * 3600) +
(cast(substr(departure_time, -5, 2) as int) * 60) +
cast(substr(departure_time, -2, 2) as int)
as "departure_time", nullif(vtable."stop_id", '') as "stop_id", nullif(vtable."stop_sequence", '') as "stop_sequence", null as "stop_headsign", null as "pickup_type", null as "drop_off_type", null as "continuous_drop_off", null as "timepoint" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into stop_times ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir3379607807/stop_times.txt to table: stop_times ok
2025/04/24 19:02:32 Loading table: stop_times complete
2025/04/24 19:02:32 Loading table: stops
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir3379607807/stops.txt (0.00MB) to table: stops
2025/04/24 19:02:32 Last checksum vs current: / C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into stops select 42 as feed_id, nullif(vtable."stop_id", '') as "stop_id", null as "stop_code", nullif(vtable."stop_name", '') as "stop_name", null as "stop_desc", nullif(vtable."stop_lat", '') as "stop_lat", nullif(vtable."stop_lon", '') as "stop_lon", null as "zone_id", null as "stop_url", null as "location_type", null as "parent_station", null as "stop_timezone", null as "wheelchair_boarding", null as "level_id", null as "platform_code" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into stops ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir3379607807/stops.txt to table: stops ok
2025/04/24 19:02:32 Loading table: stops complete
2025/04/24 19:02:32 Loading table: trips
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir3379607807/trips.txt (0.00MB) to table: trips
2025/04/24 19:02:32 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into trips select 42 as feed_id, nullif(vtable."route_id", '') as "route_id", nullif(vtable."service_id", '') as "service_id", nullif(vtable."trip_id", '') as "trip_id", nullif(vtable."trip_headsign", '') as "trip_headsign", null as "trip_short_name", nullif(vtable."direction_id", '') as "direction_id", null as "block_id", null as "shape_id", null as "wheelchair_accessible", null as "bikes_allowed" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into trips ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir3379607807/trips.txt to table: trips ok
2025/04/24 19:02:32 Loading table: trips complete
2025/04/24 19:02:32 Loading table: routes
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir3379607807/routes.txt (0.00MB) to table: routes
2025/04/24 19:02:32 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into routes select 42 as feed_id, nullif(vtable."route_id", '') as "route_id", null as "agency_id", nullif(vtable."route_short_name", '') as "route_short_name", null as "route_long_name", null as "route_desc", nullif(vtable."route_type", '') as "route_type", null as "route_url", null as "route_color", null as "route_text_color", null as "route_sort_order", null as "continuous_pickup", null as "continuous_drop_off" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into routes ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir3379607807/routes.txt to table: routes ok
2025/04/24 19:02:32 Loading table: routes complete
2025/04/24 19:02:32 Loading table: transfers
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir3379607807/transfers.txt (0.00MB) to table: transfers
2025/04/24 19:02:32 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir3379607807/transfers.txt
2025/04/24 19:02:32 Loading table: transfers complete
2025/04/24 19:02:32 Loaded /tmp/4035687383.zip to DB with GTFS feed: 42 ok
2025/04/24 19:02:32 Loading GTFS feed 42 ok; used cache for URL download (true)
2025/04/24 19:02:32 Running Load against 1 feeds ok
2025/04/24 19:02:32 Running RTDatabase against input: {"feed_ids":[42],"op":"compute"}
2025/04/24 19:02:32 Running Compute against 1 feeds
2025/04/24 19:02:32 Computed table _ctconn for feed (42 <nil>) out of date - updating ('' vs '42:routes:C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8,42:stop_times:C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a,42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb,42:trips:C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435')
2025/04/24 19:02:32 Computed table _ctcaltoservice for feed (42 <nil>) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb')
2025/04/24 19:02:32 Computed table _cttransfersgen for feed (42 0xc00024c6c8) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb')
2025/04/24 19:02:32 Running Compute against 1 feeds ok
2025/04/24 19:02:32 Loading
select feed_id, service_date, service_id from _ctcaltoservice
where feed_id = ? and service_date between ? and ?
([42 20230302 20230303]) to memory
2025/04/24 19:02:32 Loaded
select feed_id, service_date, service_id from _ctcaltoservice
where feed_id = ? and service_date between ? and ?
([42 20230302 20230303]) to memory ok (len=3)
2025/04/24 19:02:32 Generated mock for input (map[42:../testhelper/mockgtfs/gtfs_caldates_only.yml]): (gtfs zips: [/tmp/2114034604.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_1712503406.csv)
2025/04/24 19:02:32 SQLite system version (3.46.1); comparing to required version: 3.28.0
2025/04/24 19:02:32 Loading schema tables
2025/04/24 19:02:32 Execute statement:
create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl))
2025/04/24 19:02:32 Execute statement:
create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.direct_download' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2)))
2025/04/24 19:02:32 Execute statement:
create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence))
2025/04/24 19:02:32 Execute statement:
create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check(
((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or
(location_type = 3 or location_type = 4)
),'stop_desc' text,'stop_lat' real check(
((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or
(location_type = 3 or location_type = 4)
),'stop_lon' real check(
((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or
(location_type = 3 or location_type = 4)
),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int)
2025/04/24 19:02:32 Execute statement:
create table if not exists _ctconn ('feed_id' int not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_parent_id' text not null,'from_stop_parent_uid' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_parent_id' text not null,'to_stop_parent_uid' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null)
2025/04/24 19:02:32 Execute statement:
create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null)
2025/04/24 19:02:32 Execute statement:
create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_parent_id' text not null,'to_stop_parent_id' text not null,'from_stop_parent_uid' text not null,'to_stop_parent_uid' text not null,'dist_km' real)
2025/04/24 19:02:32 Loading schema tables ok
2025/04/24 19:02:32 Loading schema indexes
2025/04/24 19:02:32 Create index idx_agency1_agency_timezone on agency as [agency_timezone]
2025/04/24 19:02:32 Created index idx_agency1_agency_timezone ok
2025/04/24 19:02:32 Create index idx_stop_times1_trip_id on stop_times as [trip_id]
2025/04/24 19:02:32 Created index idx_stop_times1_trip_id ok
2025/04/24 19:02:32 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id]
2025/04/24 19:02:32 Created index idx_stops2_feed_id_stop_id ok
2025/04/24 19:02:32 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon]
2025/04/24 19:02:32 Created index idx_stops2_stop_lat_stop_lon ok
2025/04/24 19:02:32 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type]
2025/04/24 19:02:32 Created index idx_stops3_feed_id_parent_station_location_type ok
2025/04/24 19:02:32 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id]
2025/04/24 19:02:32 Created index idx_transfers2_feed_id_from_stop_id ok
2025/04/24 19:02:32 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id]
2025/04/24 19:02:32 Created index idx_transfers2_feed_id_to_stop_id ok
2025/04/24 19:02:32 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time]
2025/04/24 19:02:32 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok
2025/04/24 19:02:32 Create index idx__ctconn3_feed_id_from_stop_parent_uid_from_stop_time on _ctconn as [feed_id from_stop_parent_uid from_stop_time]
2025/04/24 19:02:32 Created index idx__ctconn3_feed_id_from_stop_parent_uid_from_stop_time ok
2025/04/24 19:02:32 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date]
2025/04/24 19:02:32 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok
2025/04/24 19:02:32 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date]
2025/04/24 19:02:32 Created index idx__ctcaltoservice2_feed_id_service_date ok
2025/04/24 19:02:32 Loading schema indexes ok
2025/04/24 19:02:32 Loading views ok
2025/04/24 19:02:32 Loaded view _vfeedsminmaxdates (bytes=251)
2025/04/24 19:02:32 Loaded view _vfeedsmetadata (bytes=3789)
2025/04/24 19:02:32 Loaded view _vstopparent (bytes=2600)
2025/04/24 19:02:32 Loaded view _vconn (bytes=1225)
2025/04/24 19:02:32 Loaded view _vconnverbose (bytes=1173)
2025/04/24 19:02:32 Loaded view _vcaltoservice (bytes=3110)
2025/04/24 19:02:32 Loaded view _vtransferstbl (bytes=957)
2025/04/24 19:02:32 Loaded view _vtransfersgen (bytes=1559)
2025/04/24 19:02:32 Loaded view _vtransfersimplicit (bytes=395)
2025/04/24 19:02:32 Loading views ok
2025/04/24 19:02:32 Importing table from //tmp/mobroute_test_mobdb_1712503406.csv (0.00MB) to table: _gtfssource_mdbcsv
2025/04/24 19:02:32 Last checksum vs current: / C_0M_6802c1e23e5bdef9f96b23c00e0d409165c8002eaafc21e4434d8636843e3956; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into _gtfssource_mdbcsv select -1 as feed_id, nullif(vtable."data_type", '') as "data_type", nullif(vtable."location.bounding_box.minimum_latitude", '') as "location.bounding_box.minimum_latitude", nullif(vtable."location.bounding_box.minimum_longitude", '') as "location.bounding_box.minimum_longitude", nullif(vtable."location.bounding_box.maximum_latitude", '') as "location.bounding_box.maximum_latitude", nullif(vtable."location.bounding_box.maximum_longitude", '') as "location.bounding_box.maximum_longitude", nullif(vtable."location.country_code", '') as "location.country_code", nullif(vtable."location.subdivision_name", '') as "location.subdivision_name", nullif(vtable."location.municipality", '') as "location.municipality", null as "urls.direct_download", nullif(vtable."urls.latest", '') as "urls.latest", null as "urls.license", nullif(vtable."mdb_source_id", '') as "mdb_source_id", nullif(vtable."name", '') as "name", nullif(vtable."status", '') as "status", nullif(vtable."provider", '') as "provider" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into _gtfssource_mdbcsv ok
2025/04/24 19:02:32 Imported table from //tmp/mobroute_test_mobdb_1712503406.csv to table: _gtfssource_mdbcsv ok
2025/04/24 19:02:32 Running RTDatabase against input: {"feed_ids":[42],"op":"loadmdbgtfs"}
2025/04/24 19:02:32 Running Load against 1 feeds
2025/04/24 19:02:32 Loading GTFS feed 42 (1 of 1)
2025/04/24 19:02:32 Loading /tmp/2114034604.zip to DB with GTFS feed: 42
2025/04/24 19:02:32 Loaded GTFS Archive /tmp/2114034604.zip to temporary directory: /tmp/mobroute_tempdir2491307220
2025/04/24 19:02:32 Loading table: agency
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir2491307220/agency.txt (0.00MB) to table: agency
2025/04/24 19:02:32 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into agency select 42 as feed_id, nullif(vtable."agency_id", '') as "agency_id", nullif(vtable."agency_name", '') as "agency_name", nullif(vtable."agency_url", '') as "agency_url", nullif(vtable."agency_timezone", '') as "agency_timezone" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into agency ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir2491307220/agency.txt to table: agency ok
2025/04/24 19:02:32 Loading table: agency complete
2025/04/24 19:02:32 Loading table: calendar
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir2491307220/calendar.txt (0.00MB) to table: calendar
2025/04/24 19:02:32 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2491307220/calendar.txt
2025/04/24 19:02:32 Loading table: calendar complete
2025/04/24 19:02:32 Loading table: calendar_dates
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir2491307220/calendar_dates.txt (0.00MB) to table: calendar_dates
2025/04/24 19:02:32 Last checksum vs current: / C_0M_c9a596973ac871ddba3e27cef7cc8ef2d3481b1fd98a210e6f398bd2ce95a687; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into calendar_dates select 42 as feed_id, nullif(vtable."service_id", '') as "service_id", nullif(vtable."date", '') as "date", nullif(vtable."exception_type", '') as "exception_type" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 6 rows into calendar_dates ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir2491307220/calendar_dates.txt to table: calendar_dates ok
2025/04/24 19:02:32 Loading table: calendar_dates complete
2025/04/24 19:02:32 Loading table: stop_times
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir2491307220/stop_times.txt (0.00MB) to table: stop_times
2025/04/24 19:02:32 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into stop_times select 42 as feed_id, nullif(vtable."trip_id", '') as "trip_id",
(cast(substr(arrival_time, -8, 2) as int) * 3600) +
(cast(substr(arrival_time, -5, 2) as int) * 60) +
cast(substr(arrival_time, -2, 2) as int)
as "arrival_time",
(cast(substr(departure_time, -8, 2) as int) * 3600) +
(cast(substr(departure_time, -5, 2) as int) * 60) +
cast(substr(departure_time, -2, 2) as int)
as "departure_time", nullif(vtable."stop_id", '') as "stop_id", nullif(vtable."stop_sequence", '') as "stop_sequence", null as "stop_headsign", null as "pickup_type", null as "drop_off_type", null as "continuous_drop_off", null as "timepoint" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into stop_times ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir2491307220/stop_times.txt to table: stop_times ok
2025/04/24 19:02:32 Loading table: stop_times complete
2025/04/24 19:02:32 Loading table: stops
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir2491307220/stops.txt (0.00MB) to table: stops
2025/04/24 19:02:32 Last checksum vs current: / C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into stops select 42 as feed_id, nullif(vtable."stop_id", '') as "stop_id", null as "stop_code", nullif(vtable."stop_name", '') as "stop_name", null as "stop_desc", nullif(vtable."stop_lat", '') as "stop_lat", nullif(vtable."stop_lon", '') as "stop_lon", null as "zone_id", null as "stop_url", null as "location_type", null as "parent_station", null as "stop_timezone", null as "wheelchair_boarding", null as "level_id", null as "platform_code" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into stops ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir2491307220/stops.txt to table: stops ok
2025/04/24 19:02:32 Loading table: stops complete
2025/04/24 19:02:32 Loading table: trips
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir2491307220/trips.txt (0.00MB) to table: trips
2025/04/24 19:02:32 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into trips select 42 as feed_id, nullif(vtable."route_id", '') as "route_id", nullif(vtable."service_id", '') as "service_id", nullif(vtable."trip_id", '') as "trip_id", nullif(vtable."trip_headsign", '') as "trip_headsign", null as "trip_short_name", nullif(vtable."direction_id", '') as "direction_id", null as "block_id", null as "shape_id", null as "wheelchair_accessible", null as "bikes_allowed" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into trips ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir2491307220/trips.txt to table: trips ok
2025/04/24 19:02:32 Loading table: trips complete
2025/04/24 19:02:32 Loading table: routes
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir2491307220/routes.txt (0.00MB) to table: routes
2025/04/24 19:02:32 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into routes select 42 as feed_id, nullif(vtable."route_id", '') as "route_id", null as "agency_id", nullif(vtable."route_short_name", '') as "route_short_name", null as "route_long_name", null as "route_desc", nullif(vtable."route_type", '') as "route_type", null as "route_url", null as "route_color", null as "route_text_color", null as "route_sort_order", null as "continuous_pickup", null as "continuous_drop_off" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into routes ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir2491307220/routes.txt to table: routes ok
2025/04/24 19:02:32 Loading table: routes complete
2025/04/24 19:02:32 Loading table: transfers
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir2491307220/transfers.txt (0.00MB) to table: transfers
2025/04/24 19:02:32 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2491307220/transfers.txt
2025/04/24 19:02:32 Loading table: transfers complete
2025/04/24 19:02:32 Loaded /tmp/2114034604.zip to DB with GTFS feed: 42 ok
2025/04/24 19:02:32 Loading GTFS feed 42 ok; used cache for URL download (true)
2025/04/24 19:02:32 Running Load against 1 feeds ok
2025/04/24 19:02:32 Running RTDatabase against input: {"feed_ids":[42],"op":"compute"}
2025/04/24 19:02:32 Running Compute against 1 feeds
2025/04/24 19:02:32 Computed table _ctconn for feed (42 <nil>) out of date - updating ('' vs '42:routes:C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8,42:stop_times:C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a,42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb,42:trips:C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435')
2025/04/24 19:02:32 Computed table _ctcaltoservice for feed (42 <nil>) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb')
2025/04/24 19:02:32 Computed table _cttransfersgen for feed (42 0xc000220f48) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb')
2025/04/24 19:02:32 Running Compute against 1 feeds ok
2025/04/24 19:02:32 Loading
select feed_id, service_date, service_id from _ctcaltoservice
where feed_id = ? and service_date between ? and ?
([42 20230402 20230703]) to memory
2025/04/24 19:02:32 Loaded
select feed_id, service_date, service_id from _ctcaltoservice
where feed_id = ? and service_date between ? and ?
([42 20230402 20230703]) to memory ok (len=0)
2025/04/24 19:02:32 Generated mock for input (map[42:../testhelper/mockgtfs/gtfs_cal_and_caldates.yml]): (gtfs zips: [/tmp/301476746.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_3671670472.csv)
2025/04/24 19:02:32 SQLite system version (3.46.1); comparing to required version: 3.28.0
2025/04/24 19:02:32 Loading schema tables
2025/04/24 19:02:32 Execute statement:
create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl))
2025/04/24 19:02:32 Execute statement:
create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.direct_download' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2)))
2025/04/24 19:02:32 Execute statement:
create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence))
2025/04/24 19:02:32 Execute statement:
create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check(
((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or
(location_type = 3 or location_type = 4)
),'stop_desc' text,'stop_lat' real check(
((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or
(location_type = 3 or location_type = 4)
),'stop_lon' real check(
((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or
(location_type = 3 or location_type = 4)
),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int)
2025/04/24 19:02:32 Execute statement:
create table if not exists _ctconn ('feed_id' int not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_parent_id' text not null,'from_stop_parent_uid' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_parent_id' text not null,'to_stop_parent_uid' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null)
2025/04/24 19:02:32 Execute statement:
create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null)
2025/04/24 19:02:32 Execute statement:
create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_parent_id' text not null,'to_stop_parent_id' text not null,'from_stop_parent_uid' text not null,'to_stop_parent_uid' text not null,'dist_km' real)
2025/04/24 19:02:32 Loading schema tables ok
2025/04/24 19:02:32 Loading schema indexes
2025/04/24 19:02:32 Create index idx_agency1_agency_timezone on agency as [agency_timezone]
2025/04/24 19:02:32 Created index idx_agency1_agency_timezone ok
2025/04/24 19:02:32 Create index idx_stop_times1_trip_id on stop_times as [trip_id]
2025/04/24 19:02:32 Created index idx_stop_times1_trip_id ok
2025/04/24 19:02:32 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id]
2025/04/24 19:02:32 Created index idx_stops2_feed_id_stop_id ok
2025/04/24 19:02:32 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon]
2025/04/24 19:02:32 Created index idx_stops2_stop_lat_stop_lon ok
2025/04/24 19:02:32 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type]
2025/04/24 19:02:32 Created index idx_stops3_feed_id_parent_station_location_type ok
2025/04/24 19:02:32 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id]
2025/04/24 19:02:32 Created index idx_transfers2_feed_id_from_stop_id ok
2025/04/24 19:02:32 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id]
2025/04/24 19:02:32 Created index idx_transfers2_feed_id_to_stop_id ok
2025/04/24 19:02:32 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time]
2025/04/24 19:02:32 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok
2025/04/24 19:02:32 Create index idx__ctconn3_feed_id_from_stop_parent_uid_from_stop_time on _ctconn as [feed_id from_stop_parent_uid from_stop_time]
2025/04/24 19:02:32 Created index idx__ctconn3_feed_id_from_stop_parent_uid_from_stop_time ok
2025/04/24 19:02:32 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date]
2025/04/24 19:02:32 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok
2025/04/24 19:02:32 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date]
2025/04/24 19:02:32 Created index idx__ctcaltoservice2_feed_id_service_date ok
2025/04/24 19:02:32 Loading schema indexes ok
2025/04/24 19:02:32 Loading views ok
2025/04/24 19:02:32 Loaded view _vfeedsminmaxdates (bytes=251)
2025/04/24 19:02:32 Loaded view _vfeedsmetadata (bytes=3789)
2025/04/24 19:02:32 Loaded view _vstopparent (bytes=2600)
2025/04/24 19:02:32 Loaded view _vconn (bytes=1225)
2025/04/24 19:02:32 Loaded view _vconnverbose (bytes=1173)
2025/04/24 19:02:32 Loaded view _vcaltoservice (bytes=3110)
2025/04/24 19:02:32 Loaded view _vtransferstbl (bytes=957)
2025/04/24 19:02:32 Loaded view _vtransfersgen (bytes=1559)
2025/04/24 19:02:32 Loaded view _vtransfersimplicit (bytes=395)
2025/04/24 19:02:32 Loading views ok
2025/04/24 19:02:32 Importing table from //tmp/mobroute_test_mobdb_3671670472.csv (0.00MB) to table: _gtfssource_mdbcsv
2025/04/24 19:02:32 Last checksum vs current: / C_0M_f57e721351c1ea08d4f59eeb759936cfca1f4559ffe37e67d69e9f3a79fc8ca2; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into _gtfssource_mdbcsv select -1 as feed_id, nullif(vtable."data_type", '') as "data_type", nullif(vtable."location.bounding_box.minimum_latitude", '') as "location.bounding_box.minimum_latitude", nullif(vtable."location.bounding_box.minimum_longitude", '') as "location.bounding_box.minimum_longitude", nullif(vtable."location.bounding_box.maximum_latitude", '') as "location.bounding_box.maximum_latitude", nullif(vtable."location.bounding_box.maximum_longitude", '') as "location.bounding_box.maximum_longitude", nullif(vtable."location.country_code", '') as "location.country_code", nullif(vtable."location.subdivision_name", '') as "location.subdivision_name", nullif(vtable."location.municipality", '') as "location.municipality", null as "urls.direct_download", nullif(vtable."urls.latest", '') as "urls.latest", null as "urls.license", nullif(vtable."mdb_source_id", '') as "mdb_source_id", nullif(vtable."name", '') as "name", nullif(vtable."status", '') as "status", nullif(vtable."provider", '') as "provider" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into _gtfssource_mdbcsv ok
2025/04/24 19:02:32 Imported table from //tmp/mobroute_test_mobdb_3671670472.csv to table: _gtfssource_mdbcsv ok
2025/04/24 19:02:32 Running RTDatabase against input: {"feed_ids":[42],"op":"loadmdbgtfs"}
2025/04/24 19:02:32 Running Load against 1 feeds
2025/04/24 19:02:32 Loading GTFS feed 42 (1 of 1)
2025/04/24 19:02:32 Loading /tmp/301476746.zip to DB with GTFS feed: 42
2025/04/24 19:02:32 Loaded GTFS Archive /tmp/301476746.zip to temporary directory: /tmp/mobroute_tempdir617089472
2025/04/24 19:02:32 Loading table: agency
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir617089472/agency.txt (0.00MB) to table: agency
2025/04/24 19:02:32 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into agency select 42 as feed_id, nullif(vtable."agency_id", '') as "agency_id", nullif(vtable."agency_name", '') as "agency_name", nullif(vtable."agency_url", '') as "agency_url", nullif(vtable."agency_timezone", '') as "agency_timezone" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into agency ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir617089472/agency.txt to table: agency ok
2025/04/24 19:02:32 Loading table: agency complete
2025/04/24 19:02:32 Loading table: calendar
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir617089472/calendar.txt (0.00MB) to table: calendar
2025/04/24 19:02:32 Last checksum vs current: / C_0M_1a479c2cc8fe96fa8aacf573305f61c13d80b613e0c9ca8c3b964d91ece992ca; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into calendar select 42 as feed_id, nullif(vtable."service_id", '') as "service_id", nullif(vtable."monday", '') as "monday", nullif(vtable."tuesday", '') as "tuesday", nullif(vtable."wednesday", '') as "wednesday", nullif(vtable."thursday", '') as "thursday", nullif(vtable."friday", '') as "friday", nullif(vtable."saturday", '') as "saturday", nullif(vtable."sunday", '') as "sunday", nullif(vtable."start_date", '') as "start_date", nullif(vtable."end_date", '') as "end_date" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 2 rows into calendar ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir617089472/calendar.txt to table: calendar ok
2025/04/24 19:02:32 Loading table: calendar complete
2025/04/24 19:02:32 Loading table: calendar_dates
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir617089472/calendar_dates.txt (0.00MB) to table: calendar_dates
2025/04/24 19:02:32 Last checksum vs current: / C_0M_674e838dce9a30acbf7bc93af3c4c8f4856ba5f0b7c966777d38b29df07f8800; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into calendar_dates select 42 as feed_id, nullif(vtable."service_id", '') as "service_id", nullif(vtable."date", '') as "date", nullif(vtable."exception_type", '') as "exception_type" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 4 rows into calendar_dates ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir617089472/calendar_dates.txt to table: calendar_dates ok
2025/04/24 19:02:32 Loading table: calendar_dates complete
2025/04/24 19:02:32 Loading table: stop_times
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir617089472/stop_times.txt (0.00MB) to table: stop_times
2025/04/24 19:02:32 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into stop_times select 42 as feed_id, nullif(vtable."trip_id", '') as "trip_id",
(cast(substr(arrival_time, -8, 2) as int) * 3600) +
(cast(substr(arrival_time, -5, 2) as int) * 60) +
cast(substr(arrival_time, -2, 2) as int)
as "arrival_time",
(cast(substr(departure_time, -8, 2) as int) * 3600) +
(cast(substr(departure_time, -5, 2) as int) * 60) +
cast(substr(departure_time, -2, 2) as int)
as "departure_time", nullif(vtable."stop_id", '') as "stop_id", nullif(vtable."stop_sequence", '') as "stop_sequence", null as "stop_headsign", null as "pickup_type", null as "drop_off_type", null as "continuous_drop_off", null as "timepoint" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into stop_times ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir617089472/stop_times.txt to table: stop_times ok
2025/04/24 19:02:32 Loading table: stop_times complete
2025/04/24 19:02:32 Loading table: stops
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir617089472/stops.txt (0.00MB) to table: stops
2025/04/24 19:02:32 Last checksum vs current: / C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into stops select 42 as feed_id, nullif(vtable."stop_id", '') as "stop_id", null as "stop_code", nullif(vtable."stop_name", '') as "stop_name", null as "stop_desc", nullif(vtable."stop_lat", '') as "stop_lat", nullif(vtable."stop_lon", '') as "stop_lon", null as "zone_id", null as "stop_url", null as "location_type", null as "parent_station", null as "stop_timezone", null as "wheelchair_boarding", null as "level_id", null as "platform_code" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into stops ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir617089472/stops.txt to table: stops ok
2025/04/24 19:02:32 Loading table: stops complete
2025/04/24 19:02:32 Loading table: trips
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir617089472/trips.txt (0.00MB) to table: trips
2025/04/24 19:02:32 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into trips select 42 as feed_id, nullif(vtable."route_id", '') as "route_id", nullif(vtable."service_id", '') as "service_id", nullif(vtable."trip_id", '') as "trip_id", nullif(vtable."trip_headsign", '') as "trip_headsign", null as "trip_short_name", nullif(vtable."direction_id", '') as "direction_id", null as "block_id", null as "shape_id", null as "wheelchair_accessible", null as "bikes_allowed" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into trips ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir617089472/trips.txt to table: trips ok
2025/04/24 19:02:32 Loading table: trips complete
2025/04/24 19:02:32 Loading table: routes
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir617089472/routes.txt (0.00MB) to table: routes
2025/04/24 19:02:32 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into routes select 42 as feed_id, nullif(vtable."route_id", '') as "route_id", null as "agency_id", nullif(vtable."route_short_name", '') as "route_short_name", null as "route_long_name", null as "route_desc", nullif(vtable."route_type", '') as "route_type", null as "route_url", null as "route_color", null as "route_text_color", null as "route_sort_order", null as "continuous_pickup", null as "continuous_drop_off" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into routes ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir617089472/routes.txt to table: routes ok
2025/04/24 19:02:32 Loading table: routes complete
2025/04/24 19:02:32 Loading table: transfers
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir617089472/transfers.txt (0.00MB) to table: transfers
2025/04/24 19:02:32 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir617089472/transfers.txt
2025/04/24 19:02:32 Loading table: transfers complete
2025/04/24 19:02:32 Loaded /tmp/301476746.zip to DB with GTFS feed: 42 ok
2025/04/24 19:02:32 Loading GTFS feed 42 ok; used cache for URL download (true)
2025/04/24 19:02:32 Running Load against 1 feeds ok
2025/04/24 19:02:32 Running RTDatabase against input: {"feed_ids":[42],"op":"compute"}
2025/04/24 19:02:32 Running Compute against 1 feeds
2025/04/24 19:02:32 Computed table _ctconn for feed (42 <nil>) out of date - updating ('' vs '42:routes:C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8,42:stop_times:C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a,42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb,42:trips:C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435')
2025/04/24 19:02:32 Computed table _ctcaltoservice for feed (42 <nil>) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb')
2025/04/24 19:02:32 Computed table _cttransfersgen for feed (42 0xc000015338) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb')
2025/04/24 19:02:32 Running Compute against 1 feeds ok
2025/04/24 19:02:32 Loading
select feed_id, service_date, service_id from _ctcaltoservice
where feed_id = ? and service_date between ? and ?
([42 20230906 20230910]) to memory
2025/04/24 19:02:32 Loaded
select feed_id, service_date, service_id from _ctcaltoservice
where feed_id = ? and service_date between ? and ?
([42 20230906 20230910]) to memory ok (len=7)
--- PASS: Test_LoadCalToService (0.10s)
=== RUN Test_LoadStopToParent
2025/04/24 19:02:32 Generated mock for input (map[42:../testhelper/mockgtfs/gtfs_simple_stops.yml]): (gtfs zips: [/tmp/1561393537.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_111688385.csv)
2025/04/24 19:02:32 SQLite system version (3.46.1); comparing to required version: 3.28.0
2025/04/24 19:02:32 Loading schema tables
2025/04/24 19:02:32 Execute statement:
create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl))
2025/04/24 19:02:32 Execute statement:
create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.direct_download' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2)))
2025/04/24 19:02:32 Execute statement:
create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence))
2025/04/24 19:02:32 Execute statement:
create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check(
((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or
(location_type = 3 or location_type = 4)
),'stop_desc' text,'stop_lat' real check(
((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or
(location_type = 3 or location_type = 4)
),'stop_lon' real check(
((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or
(location_type = 3 or location_type = 4)
),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id))
2025/04/24 19:02:32 Execute statement:
create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int)
2025/04/24 19:02:32 Execute statement:
create table if not exists _ctconn ('feed_id' int not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_parent_id' text not null,'from_stop_parent_uid' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_parent_id' text not null,'to_stop_parent_uid' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null)
2025/04/24 19:02:32 Execute statement:
create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null)
2025/04/24 19:02:32 Execute statement:
create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_parent_id' text not null,'to_stop_parent_id' text not null,'from_stop_parent_uid' text not null,'to_stop_parent_uid' text not null,'dist_km' real)
2025/04/24 19:02:32 Loading schema tables ok
2025/04/24 19:02:32 Loading schema indexes
2025/04/24 19:02:32 Create index idx_agency1_agency_timezone on agency as [agency_timezone]
2025/04/24 19:02:32 Created index idx_agency1_agency_timezone ok
2025/04/24 19:02:32 Create index idx_stop_times1_trip_id on stop_times as [trip_id]
2025/04/24 19:02:32 Created index idx_stop_times1_trip_id ok
2025/04/24 19:02:32 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id]
2025/04/24 19:02:32 Created index idx_stops2_feed_id_stop_id ok
2025/04/24 19:02:32 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon]
2025/04/24 19:02:32 Created index idx_stops2_stop_lat_stop_lon ok
2025/04/24 19:02:32 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type]
2025/04/24 19:02:32 Created index idx_stops3_feed_id_parent_station_location_type ok
2025/04/24 19:02:32 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id]
2025/04/24 19:02:32 Created index idx_transfers2_feed_id_from_stop_id ok
2025/04/24 19:02:32 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id]
2025/04/24 19:02:32 Created index idx_transfers2_feed_id_to_stop_id ok
2025/04/24 19:02:32 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time]
2025/04/24 19:02:32 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok
2025/04/24 19:02:32 Create index idx__ctconn3_feed_id_from_stop_parent_uid_from_stop_time on _ctconn as [feed_id from_stop_parent_uid from_stop_time]
2025/04/24 19:02:32 Created index idx__ctconn3_feed_id_from_stop_parent_uid_from_stop_time ok
2025/04/24 19:02:32 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date]
2025/04/24 19:02:32 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok
2025/04/24 19:02:32 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date]
2025/04/24 19:02:32 Created index idx__ctcaltoservice2_feed_id_service_date ok
2025/04/24 19:02:32 Loading schema indexes ok
2025/04/24 19:02:32 Loading views ok
2025/04/24 19:02:32 Loaded view _vfeedsminmaxdates (bytes=251)
2025/04/24 19:02:32 Loaded view _vfeedsmetadata (bytes=3789)
2025/04/24 19:02:32 Loaded view _vstopparent (bytes=2600)
2025/04/24 19:02:32 Loaded view _vconn (bytes=1225)
2025/04/24 19:02:32 Loaded view _vconnverbose (bytes=1173)
2025/04/24 19:02:32 Loaded view _vcaltoservice (bytes=3110)
2025/04/24 19:02:32 Loaded view _vtransferstbl (bytes=957)
2025/04/24 19:02:32 Loaded view _vtransfersgen (bytes=1559)
2025/04/24 19:02:32 Loaded view _vtransfersimplicit (bytes=395)
2025/04/24 19:02:32 Loading views ok
2025/04/24 19:02:32 Importing table from //tmp/mobroute_test_mobdb_111688385.csv (0.00MB) to table: _gtfssource_mdbcsv
2025/04/24 19:02:32 Last checksum vs current: / C_0M_3ab9b867579f4f818ccd084ba68ebd98c5dc0aad0253017821a94fd85a691c70; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into _gtfssource_mdbcsv select -1 as feed_id, nullif(vtable."data_type", '') as "data_type", nullif(vtable."location.bounding_box.minimum_latitude", '') as "location.bounding_box.minimum_latitude", nullif(vtable."location.bounding_box.minimum_longitude", '') as "location.bounding_box.minimum_longitude", nullif(vtable."location.bounding_box.maximum_latitude", '') as "location.bounding_box.maximum_latitude", nullif(vtable."location.bounding_box.maximum_longitude", '') as "location.bounding_box.maximum_longitude", nullif(vtable."location.country_code", '') as "location.country_code", nullif(vtable."location.subdivision_name", '') as "location.subdivision_name", nullif(vtable."location.municipality", '') as "location.municipality", null as "urls.direct_download", nullif(vtable."urls.latest", '') as "urls.latest", null as "urls.license", nullif(vtable."mdb_source_id", '') as "mdb_source_id", nullif(vtable."name", '') as "name", nullif(vtable."status", '') as "status", nullif(vtable."provider", '') as "provider" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into _gtfssource_mdbcsv ok
2025/04/24 19:02:32 Imported table from //tmp/mobroute_test_mobdb_111688385.csv to table: _gtfssource_mdbcsv ok
2025/04/24 19:02:32 Running RTDatabase against input: {"feed_ids":[42],"op":"loadmdbgtfs"}
2025/04/24 19:02:32 Running Load against 1 feeds
2025/04/24 19:02:32 Loading GTFS feed 42 (1 of 1)
2025/04/24 19:02:32 Loading /tmp/1561393537.zip to DB with GTFS feed: 42
2025/04/24 19:02:32 Loaded GTFS Archive /tmp/1561393537.zip to temporary directory: /tmp/mobroute_tempdir339560921
2025/04/24 19:02:32 Loading table: agency
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir339560921/agency.txt (0.00MB) to table: agency
2025/04/24 19:02:32 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into agency select 42 as feed_id, nullif(vtable."agency_id", '') as "agency_id", nullif(vtable."agency_name", '') as "agency_name", nullif(vtable."agency_url", '') as "agency_url", nullif(vtable."agency_timezone", '') as "agency_timezone" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into agency ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir339560921/agency.txt to table: agency ok
2025/04/24 19:02:32 Loading table: agency complete
2025/04/24 19:02:32 Loading table: calendar
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir339560921/calendar.txt (0.00MB) to table: calendar
2025/04/24 19:02:32 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir339560921/calendar.txt
2025/04/24 19:02:32 Loading table: calendar complete
2025/04/24 19:02:32 Loading table: calendar_dates
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir339560921/calendar_dates.txt (0.00MB) to table: calendar_dates
2025/04/24 19:02:32 Last checksum vs current: / C_0M_e37e371e5f8c7c355413d55fe59c9054de3dbf0d759f0bcd6ef7968b46cde54e; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into calendar_dates select 42 as feed_id, nullif(vtable."service_id", '') as "service_id", nullif(vtable."date", '') as "date", nullif(vtable."exception_type", '') as "exception_type" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into calendar_dates ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir339560921/calendar_dates.txt to table: calendar_dates ok
2025/04/24 19:02:32 Loading table: calendar_dates complete
2025/04/24 19:02:32 Loading table: stop_times
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir339560921/stop_times.txt (0.00MB) to table: stop_times
2025/04/24 19:02:32 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into stop_times select 42 as feed_id, nullif(vtable."trip_id", '') as "trip_id",
(cast(substr(arrival_time, -8, 2) as int) * 3600) +
(cast(substr(arrival_time, -5, 2) as int) * 60) +
cast(substr(arrival_time, -2, 2) as int)
as "arrival_time",
(cast(substr(departure_time, -8, 2) as int) * 3600) +
(cast(substr(departure_time, -5, 2) as int) * 60) +
cast(substr(departure_time, -2, 2) as int)
as "departure_time", nullif(vtable."stop_id", '') as "stop_id", nullif(vtable."stop_sequence", '') as "stop_sequence", null as "stop_headsign", null as "pickup_type", null as "drop_off_type", null as "continuous_drop_off", null as "timepoint" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into stop_times ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir339560921/stop_times.txt to table: stop_times ok
2025/04/24 19:02:32 Loading table: stop_times complete
2025/04/24 19:02:32 Loading table: stops
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir339560921/stops.txt (0.00MB) to table: stops
2025/04/24 19:02:32 Last checksum vs current: / C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into stops select 42 as feed_id, nullif(vtable."stop_id", '') as "stop_id", null as "stop_code", nullif(vtable."stop_name", '') as "stop_name", null as "stop_desc", nullif(vtable."stop_lat", '') as "stop_lat", nullif(vtable."stop_lon", '') as "stop_lon", null as "zone_id", null as "stop_url", nullif(vtable."location_type", '') as "location_type", nullif(vtable."parent_station", '') as "parent_station", null as "stop_timezone", null as "wheelchair_boarding", null as "level_id", null as "platform_code" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 10 rows into stops ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir339560921/stops.txt to table: stops ok
2025/04/24 19:02:32 Loading table: stops complete
2025/04/24 19:02:32 Loading table: trips
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir339560921/trips.txt (0.00MB) to table: trips
2025/04/24 19:02:32 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into trips select 42 as feed_id, nullif(vtable."route_id", '') as "route_id", nullif(vtable."service_id", '') as "service_id", nullif(vtable."trip_id", '') as "trip_id", nullif(vtable."trip_headsign", '') as "trip_headsign", null as "trip_short_name", nullif(vtable."direction_id", '') as "direction_id", null as "block_id", null as "shape_id", null as "wheelchair_accessible", null as "bikes_allowed" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into trips ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir339560921/trips.txt to table: trips ok
2025/04/24 19:02:32 Loading table: trips complete
2025/04/24 19:02:32 Loading table: routes
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir339560921/routes.txt (0.00MB) to table: routes
2025/04/24 19:02:32 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur
2025/04/24 19:02:32 Execute insert query: <insert into routes select 42 as feed_id, nullif(vtable."route_id", '') as "route_id", null as "agency_id", nullif(vtable."route_short_name", '') as "route_short_name", null as "route_long_name", null as "route_desc", nullif(vtable."route_type", '') as "route_type", null as "route_url", null as "route_color", null as "route_text_color", null as "route_sort_order", null as "continuous_pickup", null as "continuous_drop_off" from vtable>
2025/04/24 19:02:32 Insert query complete
2025/04/24 19:02:32 Imported 1 rows into routes ok
2025/04/24 19:02:32 Imported table from /tmp/mobroute_tempdir339560921/routes.txt to table: routes ok
2025/04/24 19:02:32 Loading table: routes complete
2025/04/24 19:02:32 Loading table: transfers
2025/04/24 19:02:32 Importing table from /tmp/mobroute_tempdir339560921/transfers.txt (0.00MB) to table: transfers
2025/04/24 19:02:32 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir339560921/transfers.txt
2025/04/24 19:02:32 Loading table: transfers complete
2025/04/24 19:02:32 Loaded /tmp/1561393537.zip to DB with GTFS feed: 42 ok
2025/04/24 19:02:32 Loading GTFS feed 42 ok; used cache for URL download (true)
2025/04/24 19:02:32 Running Load against 1 feeds ok
2025/04/24 19:02:32 Running RTDatabase against input: {"feed_ids":[42],"op":"compute"}
2025/04/24 19:02:32 Running Compute against 1 feeds
2025/04/24 19:02:32 Computed table _ctconn for feed (42 <nil>) out of date - updating ('' vs '42:routes:C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8,42:stop_times:C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a,42:stops:C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366,42:trips:C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435')
2025/04/24 19:02:32 Computed table _ctcaltoservice for feed (42 <nil>) out of date - updating ('' vs '42:stops:C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366')
2025/04/24 19:02:32 Computed table _cttransfersgen for feed (42 0xc0001ff378) out of date - updating ('' vs '42:stops:C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366')
2025/04/24 19:02:32 Running Compute against 1 feeds ok
2025/04/24 19:02:32 Loading
select feed_id, stop_id, parent_station from _vstopparent
where feed_id = ?
([42]) to memory
2025/04/24 19:02:32 Loaded
select feed_id, stop_id, parent_station from _vstopparent
where feed_id = ?
([42]) to memory ok (len=10)
--- PASS: Test_LoadStopToParent (0.01s)
PASS
ok git.sr.ht/~mil/mobroute/dbstubquery_test 0.121s
? git.sr.ht/~mil/mobroute/dbt [no test files]
? git.sr.ht/~mil/mobroute/examples/load_customgtfs [no test files]
? git.sr.ht/~mil/mobroute/examples/load_mdbgtfs [no test files]
? git.sr.ht/~mil/mobroute/examples/route [no test files]
? git.sr.ht/~mil/mobroute/examples/schedule [no test files]
? git.sr.ht/~mil/mobroute/examples/stops [no test files]
? git.sr.ht/~mil/mobroute/examples/update_mdbgtfs [no test files]
? git.sr.ht/~mil/mobroute/testhelper [no test files]
? git.sr.ht/~mil/mobroute/testhelper/dbquerytesthelper [no test files]
? git.sr.ht/~mil/mobroute/util/utilcache [no test files]
? git.sr.ht/~mil/mobroute/util/utilfuncs [no test files]
=== RUN Test_DistHaversine
--- PASS: Test_DistHaversine (0.00s)
=== RUN Test_TimezoneToUTCDeltaSecs
--- PASS: Test_TimezoneToUTCDeltaSecs (0.00s)
PASS
ok git.sr.ht/~mil/mobroute/util/utilfuncs_test 0.001s
? git.sr.ht/~mil/mobroute/util/utillog [no test files]
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 |
This is a big file! Only the last 128KiB is shown. Click here to download the full log. from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.oid, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?) join _ctconn con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select oid,trip_id,from_stop_sequence,from_stop_parent_uid,from_stop_drutctime,to_stop_sequence,to_stop_parent_uid,to_stop_drutctime from timetable where 1 = 1 ([20240330 62380 76780 America/New_York -14400 524]) to memory 2025/04/24 19:03:47 Loaded with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.oid, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?) join _ctconn con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select oid,trip_id,from_stop_sequence,from_stop_parent_uid,from_stop_drutctime,to_stop_sequence,to_stop_parent_uid,to_stop_drutctime from timetable where 1 = 1 ([20240330 62380 76780 America/New_York -14400 524]) to memory ok (len=1036) 2025/04/24 19:03:47 Loading with input_coord as (select ? as lat, ? as lon), dists as ( select distinct s.feed_id, vsp.feed_id || '_' || vsp.parent_station as stop_uid, s.stop_name, s.stop_lat, s.stop_lon, 6371.0 * acos( sin(input_coord.lat * pi() / 180.0) * sin(s.stop_lat * pi() / 180.0) + cos(input_coord.lat * pi() / 180.0) * cos(s.stop_lat * pi() / 180.0) * cos((s.stop_lon - input_coord.lon) * pi() / 180.0) ) as dist_km_a from input_coord join stops s on 1 = 1 join _vstopparent vsp on s.feed_id = vsp.feed_id and vsp.parent_station = s.stop_id order by dist_km_a asc ) select stop_uid, stop_name, stop_lat, stop_lon, iif(dist_km_a > ?, null, dist_km_a) as dist_km from dists where feed_id in (?) and (length(?) = 0 or lower(stop_uid || ' ' || stop_name) glob lower('*' || ? || '*')) and (stop_lat between ? and ?) and (stop_lon between ? and ?) order by dist_km asc, stop_uid asc limit ? ([40.9599 -73.8202 1.1666666666666667 524 -90 90 -180 180 -1]) to memory 2025/04/24 19:03:47 Loaded with input_coord as (select ? as lat, ? as lon), dists as ( select distinct s.feed_id, vsp.feed_id || '_' || vsp.parent_station as stop_uid, s.stop_name, s.stop_lat, s.stop_lon, 6371.0 * acos( sin(input_coord.lat * pi() / 180.0) * sin(s.stop_lat * pi() / 180.0) + cos(input_coord.lat * pi() / 180.0) * cos(s.stop_lat * pi() / 180.0) * cos((s.stop_lon - input_coord.lon) * pi() / 180.0) ) as dist_km_a from input_coord join stops s on 1 = 1 join _vstopparent vsp on s.feed_id = vsp.feed_id and vsp.parent_station = s.stop_id order by dist_km_a asc ) select stop_uid, stop_name, stop_lat, stop_lon, iif(dist_km_a > ?, null, dist_km_a) as dist_km from dists where feed_id in (?) and (length(?) = 0 or lower(stop_uid || ' ' || stop_name) glob lower('*' || ? || '*')) and (stop_lat between ? and ?) and (stop_lon between ? and ?) order by dist_km asc, stop_uid asc limit ? ([40.9599 -73.8202 1.1666666666666667 524 -90 90 -180 180 -1]) to memory ok (len=114) 2025/04/24 19:03:47 Loading with input_coord as (select ? as lat, ? as lon), dists as ( select distinct s.feed_id, vsp.feed_id || '_' || vsp.parent_station as stop_uid, s.stop_name, s.stop_lat, s.stop_lon, 6371.0 * acos( sin(input_coord.lat * pi() / 180.0) * sin(s.stop_lat * pi() / 180.0) + cos(input_coord.lat * pi() / 180.0) * cos(s.stop_lat * pi() / 180.0) * cos((s.stop_lon - input_coord.lon) * pi() / 180.0) ) as dist_km_a from input_coord join stops s on 1 = 1 join _vstopparent vsp on s.feed_id = vsp.feed_id and vsp.parent_station = s.stop_id order by dist_km_a asc ) select stop_uid, stop_name, stop_lat, stop_lon, iif(dist_km_a > ?, null, dist_km_a) as dist_km from dists where feed_id in (?) and (length(?) = 0 or lower(stop_uid || ' ' || stop_name) glob lower('*' || ? || '*')) and (stop_lat between ? and ?) and (stop_lon between ? and ?) order by dist_km asc, stop_uid asc limit ? ([41.3942 -73.6192 1.1666666666666667 524 -90 90 -180 180 -1]) to memory 2025/04/24 19:03:47 Loaded with input_coord as (select ? as lat, ? as lon), dists as ( select distinct s.feed_id, vsp.feed_id || '_' || vsp.parent_station as stop_uid, s.stop_name, s.stop_lat, s.stop_lon, 6371.0 * acos( sin(input_coord.lat * pi() / 180.0) * sin(s.stop_lat * pi() / 180.0) + cos(input_coord.lat * pi() / 180.0) * cos(s.stop_lat * pi() / 180.0) * cos((s.stop_lon - input_coord.lon) * pi() / 180.0) ) as dist_km_a from input_coord join stops s on 1 = 1 join _vstopparent vsp on s.feed_id = vsp.feed_id and vsp.parent_station = s.stop_id order by dist_km_a asc ) select stop_uid, stop_name, stop_lat, stop_lon, iif(dist_km_a > ?, null, dist_km_a) as dist_km from dists where feed_id in (?) and (length(?) = 0 or lower(stop_uid || ' ' || stop_name) glob lower('*' || ? || '*')) and (stop_lat between ? and ?) and (stop_lon between ? and ?) order by dist_km asc, stop_uid asc limit ? ([41.3942 -73.6192 1.1666666666666667 524 -90 90 -180 180 -1]) to memory ok (len=114) 2025/04/24 19:03:47 Loading select * from ( -- Implicit transfers select from_stop_parent_uid, from_stop_parent_id, from_stop_id, from_feed_id, to_stop_parent_uid, to_stop_parent_id, to_stop_id, to_feed_id, 'i' as transfer_category, ? as transfer_seconds from _vtransfersimplicit union all -- Generated transfers select from_stop_parent_uid, from_stop_parent_id, from_stop_id, feed_id as from_feed_id, to_stop_parent_uid, to_stop_parent_id, to_stop_id, feed_id_pair as to_feed_id, 'g' as transfer_category, -- Uses dist_km to determine seconds transfer cost; round up to min_seconds max(coalesce(cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _cttransfersgen union all -- Feed transfers (transfers.txt) select from_stop_parent_uid, from_stop_parent_id, from_stop_id, feed_id as from_feed_id, to_stop_parent_uid, to_stop_parent_id, to_stop_id, feed_id_pair as to_feed_id, 'f' as transfer_category, -- Uses min_transfer_time, else use dist_km; round up to min_seconds max(coalesce(min_transfer_time, cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _vtransferstbl ) t where ((from_feed_id = ? and to_feed_id = ?)) and transfer_seconds < ? and transfer_category in (? , ?) ([180 3.5 180 180 3.5 180 180 524 524 2400 f i]) to memory 2025/04/24 19:03:47 Loaded select * from ( -- Implicit transfers select from_stop_parent_uid, from_stop_parent_id, from_stop_id, from_feed_id, to_stop_parent_uid, to_stop_parent_id, to_stop_id, to_feed_id, 'i' as transfer_category, ? as transfer_seconds from _vtransfersimplicit union all -- Generated transfers select from_stop_parent_uid, from_stop_parent_id, from_stop_id, feed_id as from_feed_id, to_stop_parent_uid, to_stop_parent_id, to_stop_id, feed_id_pair as to_feed_id, 'g' as transfer_category, -- Uses dist_km to determine seconds transfer cost; round up to min_seconds max(coalesce(cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _cttransfersgen union all -- Feed transfers (transfers.txt) select from_stop_parent_uid, from_stop_parent_id, from_stop_id, feed_id as from_feed_id, to_stop_parent_uid, to_stop_parent_id, to_stop_id, feed_id_pair as to_feed_id, 'f' as transfer_category, -- Uses min_transfer_time, else use dist_km; round up to min_seconds max(coalesce(min_transfer_time, cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _vtransferstbl ) t where ((from_feed_id = ? and to_feed_id = ?)) and transfer_seconds < ? and transfer_category in (? , ?) ([180 3.5 180 180 3.5 180 180 524 524 2400 f i]) to memory ok (len=18799) 2025/04/24 19:03:47 CSA Begin: 1036 conns, 18799 transfers, 114 walks origin, 114 walks dest 2025/04/24 19:03:47 CSA Main Loop Begin 2025/04/24 19:03:47 CSA Main Loop Complete 2025/04/24 19:03:47 CSA Complete 2025/04/24 19:03:47 Loading select agency_timezone from agency where feed_id in (?) ([524]) to memory 2025/04/24 19:03:47 Loaded select agency_timezone from agency where feed_id in (?) ([524]) to memory ok (len=1) 2025/04/24 19:03:47 Loading with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.oid, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?) join _vconnverbose con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select * from timetable where 1 = 1 and oid in (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ([20240330 62380 76780 America/New_York -14400 524 4445980 4445981 4445982 4445983 4446394 4446395 4446396 4446397 4446398 4446399 4446400 4446401 4446402 4446403 4446404]) to memory 2025/04/24 19:03:47 Loaded with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.oid, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?) join _vconnverbose con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select * from timetable where 1 = 1 and oid in (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ([20240330 62380 76780 America/New_York -14400 524 4445980 4445981 4445982 4445983 4446394 4446395 4446396 4446397 4446398 4446399 4446400 4446401 4446402 4446403 4446404]) to memory ok (len=15) 2025/04/24 19:03:47 SQLite system version (3.46.1); comparing to required version: 3.28.0 2025/04/24 19:03:47 Loading schema tables 2025/04/24 19:03:47 Execute statement: create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl)) 2025/04/24 19:03:47 Execute statement: create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.direct_download' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2025/04/24 19:03:47 Execute statement: create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id)) 2025/04/24 19:03:47 Execute statement: create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id)) 2025/04/24 19:03:47 Execute statement: create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id)) 2025/04/24 19:03:47 Execute statement: create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2025/04/24 19:03:47 Execute statement: create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence)) 2025/04/24 19:03:47 Execute statement: create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or (location_type = 3 or location_type = 4) ),'stop_desc' text,'stop_lat' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or (location_type = 3 or location_type = 4) ),'stop_lon' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or (location_type = 3 or location_type = 4) ),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id)) 2025/04/24 19:03:47 Execute statement: create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id)) 2025/04/24 19:03:47 Execute statement: create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id)) 2025/04/24 19:03:47 Execute statement: create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2025/04/24 19:03:47 Execute statement: create table if not exists _ctconn ('feed_id' int not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_parent_id' text not null,'from_stop_parent_uid' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_parent_id' text not null,'to_stop_parent_uid' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null) 2025/04/24 19:03:47 Execute statement: create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null) 2025/04/24 19:03:47 Execute statement: create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_parent_id' text not null,'to_stop_parent_id' text not null,'from_stop_parent_uid' text not null,'to_stop_parent_uid' text not null,'dist_km' real) 2025/04/24 19:03:47 Loading schema tables ok 2025/04/24 19:03:47 Loading schema indexes 2025/04/24 19:03:47 Create index idx_agency1_agency_timezone on agency as [agency_timezone] 2025/04/24 19:03:47 Skipping creation of already existing index idx_agency1_agency_timezone 2025/04/24 19:03:47 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2025/04/24 19:03:47 Skipping creation of already existing index idx_stop_times1_trip_id 2025/04/24 19:03:47 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id] 2025/04/24 19:03:47 Skipping creation of already existing index idx_stops2_feed_id_stop_id 2025/04/24 19:03:47 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2025/04/24 19:03:47 Skipping creation of already existing index idx_stops2_stop_lat_stop_lon 2025/04/24 19:03:47 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type] 2025/04/24 19:03:47 Skipping creation of already existing index idx_stops3_feed_id_parent_station_location_type 2025/04/24 19:03:47 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id] 2025/04/24 19:03:47 Skipping creation of already existing index idx_transfers2_feed_id_from_stop_id 2025/04/24 19:03:47 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id] 2025/04/24 19:03:47 Skipping creation of already existing index idx_transfers2_feed_id_to_stop_id 2025/04/24 19:03:47 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time] 2025/04/24 19:03:47 Skipping creation of already existing index idx__ctconn3_feed_id_service_id_from_stop_time 2025/04/24 19:03:47 Create index idx__ctconn3_feed_id_from_stop_parent_uid_from_stop_time on _ctconn as [feed_id from_stop_parent_uid from_stop_time] 2025/04/24 19:03:47 Skipping creation of already existing index idx__ctconn3_feed_id_from_stop_parent_uid_from_stop_time 2025/04/24 19:03:47 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date] 2025/04/24 19:03:47 Skipping creation of already existing index idx__ctcaltoservice3_feed_id_service_id_service_date 2025/04/24 19:03:47 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date] 2025/04/24 19:03:47 Skipping creation of already existing index idx__ctcaltoservice2_feed_id_service_date 2025/04/24 19:03:47 Loading schema indexes ok 2025/04/24 19:03:47 Loading views ok 2025/04/24 19:03:47 Loaded view _vfeedsminmaxdates (bytes=251) 2025/04/24 19:03:47 Loaded view _vfeedsmetadata (bytes=3789) 2025/04/24 19:03:47 Loaded view _vstopparent (bytes=2600) 2025/04/24 19:03:47 Loaded view _vconn (bytes=1225) 2025/04/24 19:03:47 Loaded view _vconnverbose (bytes=1173) 2025/04/24 19:03:47 Loaded view _vcaltoservice (bytes=3110) 2025/04/24 19:03:47 Loaded view _vtransferstbl (bytes=957) 2025/04/24 19:03:47 Loaded view _vtransfersgen (bytes=1559) 2025/04/24 19:03:47 Loaded view _vtransfersimplicit (bytes=395) 2025/04/24 19:03:47 Loading views ok 2025/04/24 19:03:47 Importing table from //home/build/mobroute/test_results/mockmdb.csv (0.01MB) to table: _gtfssource_mdbcsv 2025/04/24 19:03:47 Cache skipped import for table _gtfssource_mdbcsv and feed_id -1 matched existing checksum: C_0M_84c84050cb9d805534f168e758bca992b2b07972d9c77e1042eb5f2a905ebb96 2025/04/24 19:03:47 Imported table from //home/build/mobroute/test_results/mockmdb.csv to table: _gtfssource_mdbcsv ok 2025/04/24 19:03:47 Running RTDatabase against input: {"feed_ids":[660],"op":"loadmdbgtfs"} 2025/04/24 19:03:47 Running Load against 1 feeds 2025/04/24 19:03:47 Loading GTFS feed 660 (1 of 1) 2025/04/24 19:03:47 Attempting to download URL https://ci.lrdu.org/tests_gtfs//gtfs_660_db2badff02d58c0c6200c02db7da518510fac552c1bf0c46826ba7848e1b8612.zip?alt=media to /home/build/.cache/mobroute//gtfs_660_uribdc7a5_20250424190347.zip 2025/04/24 19:03:47 Purging stale files from cache matching glob querying: /home/build/.cache/mobroute/gtfs_660_* 2025/04/24 19:03:47 Purging stale files from cache matching glob - matched files removing: [] 2025/04/24 19:03:47 Filesize of https://ci.lrdu.org/tests_gtfs//gtfs_660_db2badff02d58c0c6200c02db7da518510fac552c1bf0c46826ba7848e1b8612.zip?alt=media: 12.01Mb 2025/04/24 19:03:49 Downloaded URL https://ci.lrdu.org/tests_gtfs//gtfs_660_db2badff02d58c0c6200c02db7da518510fac552c1bf0c46826ba7848e1b8612.zip?alt=media to /home/build/.cache/mobroute//gtfs_660_uribdc7a5_20250424190347.zip ok 2025/04/24 19:03:49 Loading /home/build/.cache/mobroute//gtfs_660_uribdc7a5_20250424190347.zip to DB with GTFS feed: 660 2025/04/24 19:03:49 Loaded GTFS Archive /home/build/.cache/mobroute//gtfs_660_uribdc7a5_20250424190347.zip to temporary directory: /tmp/mobroute_tempdir3247448533 2025/04/24 19:03:49 Loading table: agency 2025/04/24 19:03:49 Importing table from /tmp/mobroute_tempdir3247448533/agency.txt (0.00MB) to table: agency 2025/04/24 19:03:49 Last checksum vs current: / C_0M_0a25a4196a50431495c26d2e1edd438283d953aa00c68df0fc55a105a6e4277d; import will occur 2025/04/24 19:03:49 Execute insert query: <insert into agency select 660 as feed_id, nullif(vtable."agency_id", '') as "agency_id", nullif(vtable."agency_name", '') as "agency_name", nullif(vtable."agency_url", '') as "agency_url", nullif(vtable."agency_timezone", '') as "agency_timezone" from vtable> 2025/04/24 19:03:49 Insert query complete 2025/04/24 19:03:49 Imported 9 rows into agency ok 2025/04/24 19:03:49 Imported table from /tmp/mobroute_tempdir3247448533/agency.txt to table: agency ok 2025/04/24 19:03:49 Loading table: agency complete 2025/04/24 19:03:49 Loading table: calendar 2025/04/24 19:03:49 Importing table from /tmp/mobroute_tempdir3247448533/calendar.txt (0.00MB) to table: calendar 2025/04/24 19:03:49 Last checksum vs current: / C_0M_f7c62474fb93ecb6a41be7b225948c036b68b0780e38ef6836cdf81c37e82683; import will occur 2025/04/24 19:03:49 Execute insert query: <insert into calendar select 660 as feed_id, nullif(vtable."service_id", '') as "service_id", nullif(vtable."monday", '') as "monday", nullif(vtable."tuesday", '') as "tuesday", nullif(vtable."wednesday", '') as "wednesday", nullif(vtable."thursday", '') as "thursday", nullif(vtable."friday", '') as "friday", nullif(vtable."saturday", '') as "saturday", nullif(vtable."sunday", '') as "sunday", nullif(vtable."start_date", '') as "start_date", nullif(vtable."end_date", '') as "end_date" from vtable> 2025/04/24 19:03:49 Insert query complete 2025/04/24 19:03:49 Imported 69 rows into calendar ok 2025/04/24 19:03:49 Imported table from /tmp/mobroute_tempdir3247448533/calendar.txt to table: calendar ok 2025/04/24 19:03:49 Loading table: calendar complete 2025/04/24 19:03:49 Loading table: calendar_dates 2025/04/24 19:03:49 Importing table from /tmp/mobroute_tempdir3247448533/calendar_dates.txt (0.00MB) to table: calendar_dates 2025/04/24 19:03:49 Last checksum vs current: / C_0M_8461b103b5a66347eaa074a6f427e22ec2e1ce0cbb28ccb5fc55a3c9ded51e3f; import will occur 2025/04/24 19:03:49 Execute insert query: <insert into calendar_dates select 660 as feed_id, nullif(vtable."service_id", '') as "service_id", nullif(vtable."date", '') as "date", nullif(vtable."exception_type", '') as "exception_type" from vtable> 2025/04/24 19:03:49 Insert query complete 2025/04/24 19:03:49 Imported 314 rows into calendar_dates ok 2025/04/24 19:03:49 Imported table from /tmp/mobroute_tempdir3247448533/calendar_dates.txt to table: calendar_dates ok 2025/04/24 19:03:49 Loading table: calendar_dates complete 2025/04/24 19:03:49 Loading table: stop_times 2025/04/24 19:03:49 Importing table from /tmp/mobroute_tempdir3247448533/stop_times.txt (45.98MB) to table: stop_times 2025/04/24 19:03:49 Last checksum vs current: / C_45M_58f58d73fc79fbadd69f2fd84cf510765798b55b33904eb1b8786338ebc76469; import will occur 2025/04/24 19:03:49 Execute insert query: <insert into stop_times select 660 as feed_id, nullif(vtable."trip_id", '') as "trip_id", (cast(substr(arrival_time, -8, 2) as int) * 3600) + (cast(substr(arrival_time, -5, 2) as int) * 60) + cast(substr(arrival_time, -2, 2) as int) as "arrival_time", (cast(substr(departure_time, -8, 2) as int) * 3600) + (cast(substr(departure_time, -5, 2) as int) * 60) + cast(substr(departure_time, -2, 2) as int) as "departure_time", nullif(vtable."stop_id", '') as "stop_id", nullif(vtable."stop_sequence", '') as "stop_sequence", nullif(vtable."stop_headsign", '') as "stop_headsign", nullif(vtable."pickup_type", '') as "pickup_type", nullif(vtable."drop_off_type", '') as "drop_off_type", null as "continuous_drop_off", nullif(vtable."timepoint", '') as "timepoint" from vtable> 2025/04/24 19:03:52 Insert query complete 2025/04/24 19:03:52 Imported 962872 rows into stop_times ok 2025/04/24 19:03:52 Imported table from /tmp/mobroute_tempdir3247448533/stop_times.txt to table: stop_times ok 2025/04/24 19:03:52 Loading table: stop_times complete 2025/04/24 19:03:52 Loading table: stops 2025/04/24 19:03:52 Importing table from /tmp/mobroute_tempdir3247448533/stops.txt (1.17MB) to table: stops 2025/04/24 19:03:52 Last checksum vs current: / C_1M_cc80eb5ea931bbd0e8604495f81f527c7d2b87a40d558077dfa6163a406eabf7; import will occur 2025/04/24 19:03:52 Execute insert query: <insert into stops select 660 as feed_id, nullif(vtable."stop_id", '') as "stop_id", nullif(vtable."stop_code", '') as "stop_code", nullif(vtable."stop_name", '') as "stop_name", nullif(vtable."stop_desc", '') as "stop_desc", nullif(vtable."stop_lat", '') as "stop_lat", nullif(vtable."stop_lon", '') as "stop_lon", nullif(vtable."zone_id", '') as "zone_id", nullif(vtable."stop_url", '') as "stop_url", nullif(vtable."location_type", '') as "location_type", nullif(vtable."parent_station", '') as "parent_station", nullif(vtable."stop_timezone", '') as "stop_timezone", nullif(vtable."wheelchair_boarding", '') as "wheelchair_boarding", null as "level_id", null as "platform_code" from vtable> 2025/04/24 19:03:52 Insert query complete 2025/04/24 19:03:52 Imported 7799 rows into stops ok 2025/04/24 19:03:52 Imported table from /tmp/mobroute_tempdir3247448533/stops.txt to table: stops ok 2025/04/24 19:03:52 Loading table: stops complete 2025/04/24 19:03:52 Loading table: trips 2025/04/24 19:03:52 Importing table from /tmp/mobroute_tempdir3247448533/trips.txt (1.04MB) to table: trips 2025/04/24 19:03:52 Last checksum vs current: / C_1M_3089f6af8bfe8df839fc3b85bb924a7f7f2f1911e456a09f67f6756649d363ff; import will occur 2025/04/24 19:03:52 Execute insert query: <insert into trips select 660 as feed_id, nullif(vtable."route_id", '') as "route_id", nullif(vtable."service_id", '') as "service_id", nullif(vtable."trip_id", '') as "trip_id", nullif(vtable."trip_headsign", '') as "trip_headsign", nullif(vtable."trip_short_name", '') as "trip_short_name", nullif(vtable."direction_id", '') as "direction_id", nullif(vtable."block_id", '') as "block_id", nullif(vtable."shape_id", '') as "shape_id", nullif(vtable."wheelchair_accessible", '') as "wheelchair_accessible", null as "bikes_allowed" from vtable> 2025/04/24 19:03:52 Insert query complete 2025/04/24 19:03:52 Imported 25298 rows into trips ok 2025/04/24 19:03:52 Imported table from /tmp/mobroute_tempdir3247448533/trips.txt to table: trips ok 2025/04/24 19:03:52 Loading table: trips complete 2025/04/24 19:03:52 Loading table: routes 2025/04/24 19:03:52 Importing table from /tmp/mobroute_tempdir3247448533/routes.txt (0.13MB) to table: routes 2025/04/24 19:03:52 Last checksum vs current: / C_0M_5b6dbc8821398a16d990a31d385febeb0c44d338b521e858f8cad7e39e1737a1; import will occur 2025/04/24 19:03:52 Execute insert query: <insert into routes select 660 as feed_id, nullif(vtable."route_id", '') as "route_id", nullif(vtable."agency_id", '') as "agency_id", nullif(vtable."route_short_name", '') as "route_short_name", nullif(vtable."route_long_name", '') as "route_long_name", nullif(vtable."route_desc", '') as "route_desc", nullif(vtable."route_type", '') as "route_type", nullif(vtable."route_url", '') as "route_url", nullif(vtable."route_color", '') as "route_color", nullif(vtable."route_text_color", '') as "route_text_color", null as "route_sort_order", null as "continuous_pickup", null as "continuous_drop_off" from vtable> 2025/04/24 19:03:52 Insert query complete 2025/04/24 19:03:52 Imported 577 rows into routes ok 2025/04/24 19:03:52 Imported table from /tmp/mobroute_tempdir3247448533/routes.txt to table: routes ok 2025/04/24 19:03:52 Loading table: routes complete 2025/04/24 19:03:52 Loading table: transfers 2025/04/24 19:03:52 Importing table from /tmp/mobroute_tempdir3247448533/transfers.txt (0.01MB) to table: transfers 2025/04/24 19:03:52 Last checksum vs current: / C_0M_dcd02a07962bbbc20ce1bce9142a3e618526d202145ff9e4a850dd9aefcefff0; import will occur 2025/04/24 19:03:52 Execute insert query: <insert into transfers select 660 as feed_id, nullif(vtable."from_stop_id", '') as "from_stop_id", nullif(vtable."to_stop_id", '') as "to_stop_id", nullif(vtable."transfer_type", '') as "transfer_type", nullif(vtable."min_transfer_time", '') as "min_transfer_time" from vtable> 2025/04/24 19:03:52 Insert query complete 2025/04/24 19:03:52 Imported 709 rows into transfers ok 2025/04/24 19:03:52 Imported table from /tmp/mobroute_tempdir3247448533/transfers.txt to table: transfers ok 2025/04/24 19:03:52 Loading table: transfers complete 2025/04/24 19:03:52 Loaded /home/build/.cache/mobroute//gtfs_660_uribdc7a5_20250424190347.zip to DB with GTFS feed: 660 ok 2025/04/24 19:03:52 Loading GTFS feed 660 ok; used cache for URL download (false) 2025/04/24 19:03:52 Running Load against 1 feeds ok 2025/04/24 19:03:52 Running RTDatabase against input: {"feed_ids":[660],"op":"compute"} 2025/04/24 19:03:52 Running Compute against 1 feeds 2025/04/24 19:03:52 Computed table _ctconn for feed (660 <nil>) out of date - updating ('' vs '660:routes:C_0M_5b6dbc8821398a16d990a31d385febeb0c44d338b521e858f8cad7e39e1737a1,660:stop_times:C_45M_58f58d73fc79fbadd69f2fd84cf510765798b55b33904eb1b8786338ebc76469,660:stops:C_1M_cc80eb5ea931bbd0e8604495f81f527c7d2b87a40d558077dfa6163a406eabf7,660:trips:C_1M_3089f6af8bfe8df839fc3b85bb924a7f7f2f1911e456a09f67f6756649d363ff') 2025/04/24 19:03:57 Computed table _ctcaltoservice for feed (660 <nil>) out of date - updating ('' vs '660:stops:C_1M_cc80eb5ea931bbd0e8604495f81f527c7d2b87a40d558077dfa6163a406eabf7') 2025/04/24 19:03:57 Computed table _cttransfersgen for feed (660 0xc000729318) out of date - updating ('' vs '660:stops:C_1M_cc80eb5ea931bbd0e8604495f81f527c7d2b87a40d558077dfa6163a406eabf7') 2025/04/24 19:04:00 Running Compute against 1 feeds ok 2025/04/24 19:04:00 Running RTRoute against input:: {"feed_ids":[660],"from":[-35.0435,138.8789],"to":[-34.919223,138.575316],"transfer_categories":["f","i"],"output_formats":["legs","diagnostics","mapurl","request"],"time":"2024-03-30T13:53:35+10:30","max_n_transfers":0,"max_transfer_seconds":0,"max_trip_seconds":0,"max_walk_seconds":0,"min_transfer_seconds":0,"walkspeed_km_hr":0,"optimizations":null} 2025/04/24 19:04:00 Expanded (defaultized) params RTRoute:: {"feed_ids":[660],"from":[-35.0435,138.8789],"to":[-34.919223,138.575316],"transfer_categories":["f","i"],"output_formats":["legs","diagnostics","mapurl","request"],"time":"2024-03-30T13:53:35+10:30","max_n_transfers":20,"max_transfer_seconds":2400,"max_trip_seconds":14400,"max_walk_seconds":1200,"min_transfer_seconds":180,"walkspeed_km_hr":3.5,"optimizations":["feedsclean"]} 2025/04/24 19:04:00 Optimization feedsclean: Input feed IDs [660] reduced to => [660] 2025/04/24 19:04:00 Running query: select count(*) from _vfeedsmetadata where loaded = 1 and computed = 1 and feed_id in (?) with args: [[660]] 2025/04/24 19:04:00 Loading select agency_timezone from agency where feed_id in (?) ([660]) to memory 2025/04/24 19:04:00 Loaded select agency_timezone from agency where feed_id in (?) ([660]) to memory ok (len=9) 2025/04/24 19:04:00 Loading with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.oid, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?) join _ctconn con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select oid,trip_id,from_stop_sequence,from_stop_parent_uid,from_stop_drutctime,to_stop_sequence,to_stop_parent_uid,to_stop_drutctime from timetable where 1 = 1 ([20240330 87815 102215 Australia/Adelaide 37800 660]) to memory 2025/04/24 19:04:00 Loaded with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.oid, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?) join _ctconn con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select oid,trip_id,from_stop_sequence,from_stop_parent_uid,from_stop_drutctime,to_stop_sequence,to_stop_parent_uid,to_stop_drutctime from timetable where 1 = 1 ([20240330 87815 102215 Australia/Adelaide 37800 660]) to memory ok (len=51801) 2025/04/24 19:04:00 Loading with input_coord as (select ? as lat, ? as lon), dists as ( select distinct s.feed_id, vsp.feed_id || '_' || vsp.parent_station as stop_uid, s.stop_name, s.stop_lat, s.stop_lon, 6371.0 * acos( sin(input_coord.lat * pi() / 180.0) * sin(s.stop_lat * pi() / 180.0) + cos(input_coord.lat * pi() / 180.0) * cos(s.stop_lat * pi() / 180.0) * cos((s.stop_lon - input_coord.lon) * pi() / 180.0) ) as dist_km_a from input_coord join stops s on 1 = 1 join _vstopparent vsp on s.feed_id = vsp.feed_id and vsp.parent_station = s.stop_id order by dist_km_a asc ) select stop_uid, stop_name, stop_lat, stop_lon, iif(dist_km_a > ?, null, dist_km_a) as dist_km from dists where feed_id in (?) and (length(?) = 0 or lower(stop_uid || ' ' || stop_name) glob lower('*' || ? || '*')) and (stop_lat between ? and ?) and (stop_lon between ? and ?) order by dist_km asc, stop_uid asc limit ? ([-35.0435 138.8789 1.1666666666666667 660 -90 90 -180 180 -1]) to memory 2025/04/24 19:04:00 Loaded with input_coord as (select ? as lat, ? as lon), dists as ( select distinct s.feed_id, vsp.feed_id || '_' || vsp.parent_station as stop_uid, s.stop_name, s.stop_lat, s.stop_lon, 6371.0 * acos( sin(input_coord.lat * pi() / 180.0) * sin(s.stop_lat * pi() / 180.0) + cos(input_coord.lat * pi() / 180.0) * cos(s.stop_lat * pi() / 180.0) * cos((s.stop_lon - input_coord.lon) * pi() / 180.0) ) as dist_km_a from input_coord join stops s on 1 = 1 join _vstopparent vsp on s.feed_id = vsp.feed_id and vsp.parent_station = s.stop_id order by dist_km_a asc ) select stop_uid, stop_name, stop_lat, stop_lon, iif(dist_km_a > ?, null, dist_km_a) as dist_km from dists where feed_id in (?) and (length(?) = 0 or lower(stop_uid || ' ' || stop_name) glob lower('*' || ? || '*')) and (stop_lat between ? and ?) and (stop_lon between ? and ?) order by dist_km asc, stop_uid asc limit ? ([-35.0435 138.8789 1.1666666666666667 660 -90 90 -180 180 -1]) to memory ok (len=7559) 2025/04/24 19:04:00 Loading with input_coord as (select ? as lat, ? as lon), dists as ( select distinct s.feed_id, vsp.feed_id || '_' || vsp.parent_station as stop_uid, s.stop_name, s.stop_lat, s.stop_lon, 6371.0 * acos( sin(input_coord.lat * pi() / 180.0) * sin(s.stop_lat * pi() / 180.0) + cos(input_coord.lat * pi() / 180.0) * cos(s.stop_lat * pi() / 180.0) * cos((s.stop_lon - input_coord.lon) * pi() / 180.0) ) as dist_km_a from input_coord join stops s on 1 = 1 join _vstopparent vsp on s.feed_id = vsp.feed_id and vsp.parent_station = s.stop_id order by dist_km_a asc ) select stop_uid, stop_name, stop_lat, stop_lon, iif(dist_km_a > ?, null, dist_km_a) as dist_km from dists where feed_id in (?) and (length(?) = 0 or lower(stop_uid || ' ' || stop_name) glob lower('*' || ? || '*')) and (stop_lat between ? and ?) and (stop_lon between ? and ?) order by dist_km asc, stop_uid asc limit ? ([-34.919223 138.575316 1.1666666666666667 660 -90 90 -180 180 -1]) to memory 2025/04/24 19:04:00 Loaded with input_coord as (select ? as lat, ? as lon), dists as ( select distinct s.feed_id, vsp.feed_id || '_' || vsp.parent_station as stop_uid, s.stop_name, s.stop_lat, s.stop_lon, 6371.0 * acos( sin(input_coord.lat * pi() / 180.0) * sin(s.stop_lat * pi() / 180.0) + cos(input_coord.lat * pi() / 180.0) * cos(s.stop_lat * pi() / 180.0) * cos((s.stop_lon - input_coord.lon) * pi() / 180.0) ) as dist_km_a from input_coord join stops s on 1 = 1 join _vstopparent vsp on s.feed_id = vsp.feed_id and vsp.parent_station = s.stop_id order by dist_km_a asc ) select stop_uid, stop_name, stop_lat, stop_lon, iif(dist_km_a > ?, null, dist_km_a) as dist_km from dists where feed_id in (?) and (length(?) = 0 or lower(stop_uid || ' ' || stop_name) glob lower('*' || ? || '*')) and (stop_lat between ? and ?) and (stop_lon between ? and ?) order by dist_km asc, stop_uid asc limit ? ([-34.919223 138.575316 1.1666666666666667 660 -90 90 -180 180 -1]) to memory ok (len=7559) 2025/04/24 19:04:00 Loading select * from ( -- Implicit transfers select from_stop_parent_uid, from_stop_parent_id, from_stop_id, from_feed_id, to_stop_parent_uid, to_stop_parent_id, to_stop_id, to_feed_id, 'i' as transfer_category, ? as transfer_seconds from _vtransfersimplicit union all -- Generated transfers select from_stop_parent_uid, from_stop_parent_id, from_stop_id, feed_id as from_feed_id, to_stop_parent_uid, to_stop_parent_id, to_stop_id, feed_id_pair as to_feed_id, 'g' as transfer_category, -- Uses dist_km to determine seconds transfer cost; round up to min_seconds max(coalesce(cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _cttransfersgen union all -- Feed transfers (transfers.txt) select from_stop_parent_uid, from_stop_parent_id, from_stop_id, feed_id as from_feed_id, to_stop_parent_uid, to_stop_parent_id, to_stop_id, feed_id_pair as to_feed_id, 'f' as transfer_category, -- Uses min_transfer_time, else use dist_km; round up to min_seconds max(coalesce(min_transfer_time, cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _vtransferstbl ) t where ((from_feed_id = ? and to_feed_id = ?)) and transfer_seconds < ? and transfer_category in (? , ?) ([180 3.5 180 180 3.5 180 180 660 660 2400 f i]) to memory 2025/04/24 19:04:00 Loaded select * from ( -- Implicit transfers select from_stop_parent_uid, from_stop_parent_id, from_stop_id, from_feed_id, to_stop_parent_uid, to_stop_parent_id, to_stop_id, to_feed_id, 'i' as transfer_category, ? as transfer_seconds from _vtransfersimplicit union all -- Generated transfers select from_stop_parent_uid, from_stop_parent_id, from_stop_id, feed_id as from_feed_id, to_stop_parent_uid, to_stop_parent_id, to_stop_id, feed_id_pair as to_feed_id, 'g' as transfer_category, -- Uses dist_km to determine seconds transfer cost; round up to min_seconds max(coalesce(cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _cttransfersgen union all -- Feed transfers (transfers.txt) select from_stop_parent_uid, from_stop_parent_id, from_stop_id, feed_id as from_feed_id, to_stop_parent_uid, to_stop_parent_id, to_stop_id, feed_id_pair as to_feed_id, 'f' as transfer_category, -- Uses min_transfer_time, else use dist_km; round up to min_seconds max(coalesce(min_transfer_time, cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _vtransferstbl ) t where ((from_feed_id = ? and to_feed_id = ?)) and transfer_seconds < ? and transfer_category in (? , ?) ([180 3.5 180 180 3.5 180 180 660 660 2400 f i]) to memory ok (len=8268) 2025/04/24 19:04:00 CSA Begin: 51801 conns, 8268 transfers, 7559 walks origin, 7559 walks dest 2025/04/24 19:04:00 CSA Main Loop Begin 2025/04/24 19:04:00 CSA Main Loop Complete 2025/04/24 19:04:00 CSA Complete 2025/04/24 19:04:00 Loading select agency_timezone from agency where feed_id in (?) ([660]) to memory 2025/04/24 19:04:00 Loaded select agency_timezone from agency where feed_id in (?) ([660]) to memory ok (len=9) 2025/04/24 19:04:00 Loading with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.oid, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?) join _vconnverbose con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select * from timetable where 1 = 1 and oid in (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ([20240330 87815 102215 Australia/Adelaide 37800 660 4883661 4883662 4883663 4883664 4883665 4883666 4883667 4883668 4883669 5430758 5430759 5430760 5430761 5430762 5430763 5430764 5430765 5430766 5430767 5430768 5430769 5430770 5430771 5430772 5430773 5430774 5430775 5430776 5430777 5430778 5430779 5430780 5430781 5430782 5430783 5430784 5430785 5430786 5430787 5430788 5430789 5430790 5430791 5430792 5430793 5430794 5430795 5430796 5430797 5430798 5430799 5430800 5430801 5430802 5430803 5430804 5430805 5430806 5430807 5430808 5273300 5273301 5273302]) to memory 2025/04/24 19:04:00 Loaded with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.oid, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?) join _vconnverbose con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select * from timetable where 1 = 1 and oid in (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ([20240330 87815 102215 Australia/Adelaide 37800 660 4883661 4883662 4883663 4883664 4883665 4883666 4883667 4883668 4883669 5430758 5430759 5430760 5430761 5430762 5430763 5430764 5430765 5430766 5430767 5430768 5430769 5430770 5430771 5430772 5430773 5430774 5430775 5430776 5430777 5430778 5430779 5430780 5430781 5430782 5430783 5430784 5430785 5430786 5430787 5430788 5430789 5430790 5430791 5430792 5430793 5430794 5430795 5430796 5430797 5430798 5430799 5430800 5430801 5430802 5430803 5430804 5430805 5430806 5430807 5430808 5273300 5273301 5273302]) to memory ok (len=63) 2025/04/24 19:04:00 SQLite system version (3.46.1); comparing to required version: 3.28.0 2025/04/24 19:04:00 Loading schema tables 2025/04/24 19:04:00 Execute statement: create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl)) 2025/04/24 19:04:00 Execute statement: create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.direct_download' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2025/04/24 19:04:00 Execute statement: create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id)) 2025/04/24 19:04:00 Execute statement: create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id)) 2025/04/24 19:04:00 Execute statement: create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id)) 2025/04/24 19:04:00 Execute statement: create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2025/04/24 19:04:00 Execute statement: create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence)) 2025/04/24 19:04:00 Execute statement: create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or (location_type = 3 or location_type = 4) ),'stop_desc' text,'stop_lat' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or (location_type = 3 or location_type = 4) ),'stop_lon' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or (location_type = 3 or location_type = 4) ),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id)) 2025/04/24 19:04:00 Execute statement: create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id)) 2025/04/24 19:04:00 Execute statement: create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id)) 2025/04/24 19:04:00 Execute statement: create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2025/04/24 19:04:00 Execute statement: create table if not exists _ctconn ('feed_id' int not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_parent_id' text not null,'from_stop_parent_uid' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_parent_id' text not null,'to_stop_parent_uid' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null) 2025/04/24 19:04:00 Execute statement: create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null) 2025/04/24 19:04:00 Execute statement: create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_parent_id' text not null,'to_stop_parent_id' text not null,'from_stop_parent_uid' text not null,'to_stop_parent_uid' text not null,'dist_km' real) 2025/04/24 19:04:00 Loading schema tables ok 2025/04/24 19:04:00 Loading schema indexes 2025/04/24 19:04:00 Create index idx_agency1_agency_timezone on agency as [agency_timezone] 2025/04/24 19:04:00 Skipping creation of already existing index idx_agency1_agency_timezone 2025/04/24 19:04:00 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2025/04/24 19:04:00 Skipping creation of already existing index idx_stop_times1_trip_id 2025/04/24 19:04:00 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id] 2025/04/24 19:04:00 Skipping creation of already existing index idx_stops2_feed_id_stop_id 2025/04/24 19:04:00 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2025/04/24 19:04:00 Skipping creation of already existing index idx_stops2_stop_lat_stop_lon 2025/04/24 19:04:00 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type] 2025/04/24 19:04:00 Skipping creation of already existing index idx_stops3_feed_id_parent_station_location_type 2025/04/24 19:04:00 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id] 2025/04/24 19:04:00 Skipping creation of already existing index idx_transfers2_feed_id_from_stop_id 2025/04/24 19:04:00 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id] 2025/04/24 19:04:00 Skipping creation of already existing index idx_transfers2_feed_id_to_stop_id 2025/04/24 19:04:00 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time] 2025/04/24 19:04:00 Skipping creation of already existing index idx__ctconn3_feed_id_service_id_from_stop_time 2025/04/24 19:04:00 Create index idx__ctconn3_feed_id_from_stop_parent_uid_from_stop_time on _ctconn as [feed_id from_stop_parent_uid from_stop_time] 2025/04/24 19:04:00 Skipping creation of already existing index idx__ctconn3_feed_id_from_stop_parent_uid_from_stop_time 2025/04/24 19:04:00 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date] 2025/04/24 19:04:00 Skipping creation of already existing index idx__ctcaltoservice3_feed_id_service_id_service_date 2025/04/24 19:04:00 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date] 2025/04/24 19:04:00 Skipping creation of already existing index idx__ctcaltoservice2_feed_id_service_date 2025/04/24 19:04:00 Loading schema indexes ok 2025/04/24 19:04:00 Loading views ok 2025/04/24 19:04:00 Loaded view _vfeedsminmaxdates (bytes=251) 2025/04/24 19:04:00 Loaded view _vfeedsmetadata (bytes=3789) 2025/04/24 19:04:00 Loaded view _vstopparent (bytes=2600) 2025/04/24 19:04:00 Loaded view _vconn (bytes=1225) 2025/04/24 19:04:00 Loaded view _vconnverbose (bytes=1173) 2025/04/24 19:04:00 Loaded view _vcaltoservice (bytes=3110) 2025/04/24 19:04:00 Loaded view _vtransferstbl (bytes=957) 2025/04/24 19:04:00 Loaded view _vtransfersgen (bytes=1559) 2025/04/24 19:04:00 Loaded view _vtransfersimplicit (bytes=395) 2025/04/24 19:04:00 Loading views ok 2025/04/24 19:04:00 Importing table from //home/build/mobroute/test_results/mockmdb.csv (0.01MB) to table: _gtfssource_mdbcsv 2025/04/24 19:04:00 Cache skipped import for table _gtfssource_mdbcsv and feed_id -1 matched existing checksum: C_0M_84c84050cb9d805534f168e758bca992b2b07972d9c77e1042eb5f2a905ebb96 2025/04/24 19:04:00 Imported table from //home/build/mobroute/test_results/mockmdb.csv to table: _gtfssource_mdbcsv ok 2025/04/24 19:04:00 Running RTDatabase against input: {"feed_ids":[1828],"op":"loadmdbgtfs"} 2025/04/24 19:04:00 Running Load against 1 feeds 2025/04/24 19:04:00 Loading GTFS feed 1828 (1 of 1) 2025/04/24 19:04:00 Attempting to download URL https://ci.lrdu.org/tests_gtfs//gtfs_1828_3d0d6f9ddacc56f5d28e00b95233a73cf07ff9d2ac1f9faeb7e3e42ed6df0c89.zip?alt=media to /home/build/.cache/mobroute//gtfs_1828_uri3bb7b1_20250424190400.zip 2025/04/24 19:04:00 Purging stale files from cache matching glob querying: /home/build/.cache/mobroute/gtfs_1828_* 2025/04/24 19:04:00 Purging stale files from cache matching glob - matched files removing: [] 2025/04/24 19:04:01 Filesize of https://ci.lrdu.org/tests_gtfs//gtfs_1828_3d0d6f9ddacc56f5d28e00b95233a73cf07ff9d2ac1f9faeb7e3e42ed6df0c89.zip?alt=media: 0.04Mb 2025/04/24 19:04:01 Downloaded URL https://ci.lrdu.org/tests_gtfs//gtfs_1828_3d0d6f9ddacc56f5d28e00b95233a73cf07ff9d2ac1f9faeb7e3e42ed6df0c89.zip?alt=media to /home/build/.cache/mobroute//gtfs_1828_uri3bb7b1_20250424190400.zip ok 2025/04/24 19:04:01 Loading /home/build/.cache/mobroute//gtfs_1828_uri3bb7b1_20250424190400.zip to DB with GTFS feed: 1828 2025/04/24 19:04:01 Loaded GTFS Archive /home/build/.cache/mobroute//gtfs_1828_uri3bb7b1_20250424190400.zip to temporary directory: /tmp/mobroute_tempdir1144335396 2025/04/24 19:04:01 Loading table: agency 2025/04/24 19:04:01 Importing table from /tmp/mobroute_tempdir1144335396/agency.txt (0.00MB) to table: agency 2025/04/24 19:04:01 Last checksum vs current: / C_0M_154a46064788c5c20e17fbdf662ced74f441f50290aaa80f695a4de3113fdc82; import will occur 2025/04/24 19:04:01 Execute insert query: <insert into agency select 1828 as feed_id, nullif(vtable."agency_id", '') as "agency_id", nullif(vtable."agency_name", '') as "agency_name", nullif(vtable."agency_url", '') as "agency_url", nullif(vtable."agency_timezone", '') as "agency_timezone" from vtable> 2025/04/24 19:04:01 Insert query complete 2025/04/24 19:04:01 Imported 1 rows into agency ok 2025/04/24 19:04:01 Imported table from /tmp/mobroute_tempdir1144335396/agency.txt to table: agency ok 2025/04/24 19:04:01 Loading table: agency complete 2025/04/24 19:04:01 Loading table: calendar 2025/04/24 19:04:01 Importing table from /tmp/mobroute_tempdir1144335396/calendar.txt (0.00MB) to table: calendar 2025/04/24 19:04:01 Last checksum vs current: / C_0M_6ddc201d11999724be112e88050bbc797b0cb3a7ad823e35e6d243237cff7f39; import will occur 2025/04/24 19:04:01 Execute insert query: <insert into calendar select 1828 as feed_id, nullif(vtable."service_id", '') as "service_id", nullif(vtable."monday", '') as "monday", nullif(vtable."tuesday", '') as "tuesday", nullif(vtable."wednesday", '') as "wednesday", nullif(vtable."thursday", '') as "thursday", nullif(vtable."friday", '') as "friday", nullif(vtable."saturday", '') as "saturday", nullif(vtable."sunday", '') as "sunday", nullif(vtable."start_date", '') as "start_date", nullif(vtable."end_date", '') as "end_date" from vtable> 2025/04/24 19:04:01 Insert query complete 2025/04/24 19:04:01 Imported 2 rows into calendar ok 2025/04/24 19:04:01 Imported table from /tmp/mobroute_tempdir1144335396/calendar.txt to table: calendar ok 2025/04/24 19:04:01 Loading table: calendar complete 2025/04/24 19:04:01 Loading table: calendar_dates 2025/04/24 19:04:01 Importing table from /tmp/mobroute_tempdir1144335396/calendar_dates.txt (0.00MB) to table: calendar_dates 2025/04/24 19:04:01 Last checksum vs current: / C_0M_6c513a05c52753763f12f26bb53ae5c5a290d5fee63b08cc006540d2082fdf58; import will occur 2025/04/24 19:04:01 Execute insert query: <insert into calendar_dates select 1828 as feed_id, nullif(vtable."service_id", '') as "service_id", nullif(vtable."date", '') as "date", nullif(vtable."exception_type", '') as "exception_type" from vtable> 2025/04/24 19:04:01 Insert query complete 2025/04/24 19:04:01 Imported 0 rows into calendar_dates ok 2025/04/24 19:04:01 Imported table from /tmp/mobroute_tempdir1144335396/calendar_dates.txt to table: calendar_dates ok 2025/04/24 19:04:01 Loading table: calendar_dates complete 2025/04/24 19:04:01 Loading table: stop_times 2025/04/24 19:04:01 Importing table from /tmp/mobroute_tempdir1144335396/stop_times.txt (0.20MB) to table: stop_times 2025/04/24 19:04:01 Last checksum vs current: / C_0M_fda85104f381d35a8d132f1600c9fdbfa52f2d4224dbebed3da990601d433990; import will occur 2025/04/24 19:04:01 Execute insert query: <insert into stop_times select 1828 as feed_id, nullif(vtable."trip_id", '') as "trip_id", (cast(substr(arrival_time, -8, 2) as int) * 3600) + (cast(substr(arrival_time, -5, 2) as int) * 60) + cast(substr(arrival_time, -2, 2) as int) as "arrival_time", (cast(substr(departure_time, -8, 2) as int) * 3600) + (cast(substr(departure_time, -5, 2) as int) * 60) + cast(substr(departure_time, -2, 2) as int) as "departure_time", nullif(vtable."stop_id", '') as "stop_id", nullif(vtable."stop_sequence", '') as "stop_sequence", nullif(vtable."stop_headsign", '') as "stop_headsign", nullif(vtable."pickup_type", '') as "pickup_type", null as "drop_off_type", null as "continuous_drop_off", null as "timepoint" from vtable> 2025/04/24 19:04:01 Insert query complete 2025/04/24 19:04:01 Imported 6564 rows into stop_times ok 2025/04/24 19:04:01 Imported table from /tmp/mobroute_tempdir1144335396/stop_times.txt to table: stop_times ok 2025/04/24 19:04:01 Loading table: stop_times complete 2025/04/24 19:04:01 Loading table: stops 2025/04/24 19:04:01 Importing table from /tmp/mobroute_tempdir1144335396/stops.txt (0.00MB) to table: stops 2025/04/24 19:04:01 Last checksum vs current: / C_0M_8d95238a33b822c0f7e06e3e87bb94c618c208e4632ffed0ff74f260ba296f37; import will occur 2025/04/24 19:04:01 Execute insert query: <insert into stops select 1828 as feed_id, nullif(vtable."stop_id", '') as "stop_id", null as "stop_code", nullif(vtable."stop_name", '') as "stop_name", null as "stop_desc", nullif(vtable."stop_lat", '') as "stop_lat", nullif(vtable."stop_lon", '') as "stop_lon", nullif(vtable."zone_id", '') as "zone_id", nullif(vtable."stop_url", '') as "stop_url", nullif(vtable."location_type", '') as "location_type", nullif(vtable."parent_station", '') as "parent_station", null as "stop_timezone", null as "wheelchair_boarding", null as "level_id", null as "platform_code" from vtable> 2025/04/24 19:04:01 Insert query complete 2025/04/24 19:04:01 Imported 41 rows into stops ok 2025/04/24 19:04:01 Imported table from /tmp/mobroute_tempdir1144335396/stops.txt to table: stops ok 2025/04/24 19:04:01 Loading table: stops complete 2025/04/24 19:04:01 Loading table: trips 2025/04/24 19:04:01 Importing table from /tmp/mobroute_tempdir1144335396/trips.txt (0.01MB) to table: trips 2025/04/24 19:04:01 Last checksum vs current: / C_0M_b40c62fd0c96c8e803d08df1fb47d8fc88d5a86c66138c5f97806178caf1b802; import will occur 2025/04/24 19:04:01 Execute insert query: <insert into trips select 1828 as feed_id, nullif(vtable."route_id", '') as "route_id", nullif(vtable."service_id", '') as "service_id", nullif(vtable."trip_id", '') as "trip_id", nullif(vtable."trip_headsign", '') as "trip_headsign", null as "trip_short_name", nullif(vtable."direction_id", '') as "direction_id", nullif(vtable."block_id", '') as "block_id", nullif(vtable."shape_id", '') as "shape_id", null as "wheelchair_accessible", null as "bikes_allowed" from vtable> 2025/04/24 19:04:01 Insert query complete 2025/04/24 19:04:01 Imported 239 rows into trips ok 2025/04/24 19:04:01 Imported table from /tmp/mobroute_tempdir1144335396/trips.txt to table: trips ok 2025/04/24 19:04:01 Loading table: trips complete 2025/04/24 19:04:01 Loading table: routes 2025/04/24 19:04:01 Importing table from /tmp/mobroute_tempdir1144335396/routes.txt (0.00MB) to table: routes 2025/04/24 19:04:01 Last checksum vs current: / C_0M_5a460ddcce7211e0988f81bc64d1fe102e1431840c4c6784ad55432fbf8e2329; import will occur 2025/04/24 19:04:01 Execute insert query: <insert into routes select 1828 as feed_id, nullif(vtable."route_id", '') as "route_id", nullif(vtable."agency_id", '') as "agency_id", nullif(vtable."route_short_name", '') as "route_short_name", nullif(vtable."route_long_name", '') as "route_long_name", nullif(vtable."route_desc", '') as "route_desc", nullif(vtable."route_type", '') as "route_type", nullif(vtable."route_url", '') as "route_url", nullif(vtable."route_color", '') as "route_color", nullif(vtable."route_text_color", '') as "route_text_color", null as "route_sort_order", null as "continuous_pickup", null as "continuous_drop_off" from vtable> 2025/04/24 19:04:01 Insert query complete 2025/04/24 19:04:01 Imported 8 rows into routes ok 2025/04/24 19:04:01 Imported table from /tmp/mobroute_tempdir1144335396/routes.txt to table: routes ok 2025/04/24 19:04:01 Loading table: routes complete 2025/04/24 19:04:01 Loading table: transfers 2025/04/24 19:04:01 Importing table from /tmp/mobroute_tempdir1144335396/transfers.txt (0.00MB) to table: transfers 2025/04/24 19:04:01 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1144335396/transfers.txt 2025/04/24 19:04:01 Loading table: transfers complete 2025/04/24 19:04:01 Loaded /home/build/.cache/mobroute//gtfs_1828_uri3bb7b1_20250424190400.zip to DB with GTFS feed: 1828 ok 2025/04/24 19:04:01 Loading GTFS feed 1828 ok; used cache for URL download (false) 2025/04/24 19:04:01 Running Load against 1 feeds ok 2025/04/24 19:04:01 Running RTDatabase against input: {"feed_ids":[1828],"op":"compute"} 2025/04/24 19:04:01 Running Compute against 1 feeds 2025/04/24 19:04:01 Computed table _ctconn for feed (1828 <nil>) out of date - updating ('' vs '1828:routes:C_0M_5a460ddcce7211e0988f81bc64d1fe102e1431840c4c6784ad55432fbf8e2329,1828:stop_times:C_0M_fda85104f381d35a8d132f1600c9fdbfa52f2d4224dbebed3da990601d433990,1828:stops:C_0M_8d95238a33b822c0f7e06e3e87bb94c618c208e4632ffed0ff74f260ba296f37,1828:trips:C_0M_b40c62fd0c96c8e803d08df1fb47d8fc88d5a86c66138c5f97806178caf1b802') 2025/04/24 19:04:01 Computed table _ctcaltoservice for feed (1828 <nil>) out of date - updating ('' vs '1828:stops:C_0M_8d95238a33b822c0f7e06e3e87bb94c618c208e4632ffed0ff74f260ba296f37') 2025/04/24 19:04:01 Computed table _cttransfersgen for feed (1828 0xc000827fc8) out of date - updating ('' vs '1828:stops:C_0M_8d95238a33b822c0f7e06e3e87bb94c618c208e4632ffed0ff74f260ba296f37') 2025/04/24 19:04:01 Running Compute against 1 feeds ok 2025/04/24 19:04:01 Running RTRoute against input:: {"feed_ids":[1828],"from":[38.2094,27.3072],"to":[38.4222,27.157],"transfer_categories":["f","i"],"output_formats":["legs","diagnostics","mapurl","request"],"time":"2024-03-30T13:59:30+03:00","max_n_transfers":0,"max_transfer_seconds":0,"max_trip_seconds":0,"max_walk_seconds":0,"min_transfer_seconds":0,"walkspeed_km_hr":0,"optimizations":null} 2025/04/24 19:04:01 Expanded (defaultized) params RTRoute:: {"feed_ids":[1828],"from":[38.2094,27.3072],"to":[38.4222,27.157],"transfer_categories":["f","i"],"output_formats":["legs","diagnostics","mapurl","request"],"time":"2024-03-30T13:59:30+03:00","max_n_transfers":20,"max_transfer_seconds":2400,"max_trip_seconds":14400,"max_walk_seconds":1200,"min_transfer_seconds":180,"walkspeed_km_hr":3.5,"optimizations":["feedsclean"]} 2025/04/24 19:04:01 Optimization feedsclean: Input feed IDs [1828] reduced to => [1828] 2025/04/24 19:04:01 Running query: select count(*) from _vfeedsmetadata where loaded = 1 and computed = 1 and feed_id in (?) with args: [[1828]] 2025/04/24 19:04:01 Loading select agency_timezone from agency where feed_id in (?) ([1828]) to memory 2025/04/24 19:04:01 Loaded select agency_timezone from agency where feed_id in (?) ([1828]) to memory ok (len=1) 2025/04/24 19:04:01 Loading with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.oid, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?) join _ctconn con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select oid,trip_id,from_stop_sequence,from_stop_parent_uid,from_stop_drutctime,to_stop_sequence,to_stop_parent_uid,to_stop_drutctime from timetable where 1 = 1 ([20240330 61170 75570 Europe/Istanbul 10800 1828]) to memory 2025/04/24 19:04:01 Loaded with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.oid, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?) join _ctconn con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select oid,trip_id,from_stop_sequence,from_stop_parent_uid,from_stop_drutctime,to_stop_sequence,to_stop_parent_uid,to_stop_drutctime from timetable where 1 = 1 ([20240330 61170 75570 Europe/Istanbul 10800 1828]) to memory ok (len=1319) 2025/04/24 19:04:01 Loading with input_coord as (select ? as lat, ? as lon), dists as ( select distinct s.feed_id, vsp.feed_id || '_' || vsp.parent_station as stop_uid, s.stop_name, s.stop_lat, s.stop_lon, 6371.0 * acos( sin(input_coord.lat * pi() / 180.0) * sin(s.stop_lat * pi() / 180.0) + cos(input_coord.lat * pi() / 180.0) * cos(s.stop_lat * pi() / 180.0) * cos((s.stop_lon - input_coord.lon) * pi() / 180.0) ) as dist_km_a from input_coord join stops s on 1 = 1 join _vstopparent vsp on s.feed_id = vsp.feed_id and vsp.parent_station = s.stop_id order by dist_km_a asc ) select stop_uid, stop_name, stop_lat, stop_lon, iif(dist_km_a > ?, null, dist_km_a) as dist_km from dists where feed_id in (?) and (length(?) = 0 or lower(stop_uid || ' ' || stop_name) glob lower('*' || ? || '*')) and (stop_lat between ? and ?) and (stop_lon between ? and ?) order by dist_km asc, stop_uid asc limit ? ([38.2094 27.3072 1.1666666666666667 1828 -90 90 -180 180 -1]) to memory 2025/04/24 19:04:01 Loaded with input_coord as (select ? as lat, ? as lon), dists as ( select distinct s.feed_id, vsp.feed_id || '_' || vsp.parent_station as stop_uid, s.stop_name, s.stop_lat, s.stop_lon, 6371.0 * acos( sin(input_coord.lat * pi() / 180.0) * sin(s.stop_lat * pi() / 180.0) + cos(input_coord.lat * pi() / 180.0) * cos(s.stop_lat * pi() / 180.0) * cos((s.stop_lon - input_coord.lon) * pi() / 180.0) ) as dist_km_a from input_coord join stops s on 1 = 1 join _vstopparent vsp on s.feed_id = vsp.feed_id and vsp.parent_station = s.stop_id order by dist_km_a asc ) select stop_uid, stop_name, stop_lat, stop_lon, iif(dist_km_a > ?, null, dist_km_a) as dist_km from dists where feed_id in (?) and (length(?) = 0 or lower(stop_uid || ' ' || stop_name) glob lower('*' || ? || '*')) and (stop_lat between ? and ?) and (stop_lon between ? and ?) order by dist_km asc, stop_uid asc limit ? ([38.2094 27.3072 1.1666666666666667 1828 -90 90 -180 180 -1]) to memory ok (len=41) 2025/04/24 19:04:01 Loading with input_coord as (select ? as lat, ? as lon), dists as ( select distinct s.feed_id, vsp.feed_id || '_' || vsp.parent_station as stop_uid, s.stop_name, s.stop_lat, s.stop_lon, 6371.0 * acos( sin(input_coord.lat * pi() / 180.0) * sin(s.stop_lat * pi() / 180.0) + cos(input_coord.lat * pi() / 180.0) * cos(s.stop_lat * pi() / 180.0) * cos((s.stop_lon - input_coord.lon) * pi() / 180.0) ) as dist_km_a from input_coord join stops s on 1 = 1 join _vstopparent vsp on s.feed_id = vsp.feed_id and vsp.parent_station = s.stop_id order by dist_km_a asc ) select stop_uid, stop_name, stop_lat, stop_lon, iif(dist_km_a > ?, null, dist_km_a) as dist_km from dists where feed_id in (?) and (length(?) = 0 or lower(stop_uid || ' ' || stop_name) glob lower('*' || ? || '*')) and (stop_lat between ? and ?) and (stop_lon between ? and ?) order by dist_km asc, stop_uid asc limit ? ([38.4222 27.157 1.1666666666666667 1828 -90 90 -180 180 -1]) to memory 2025/04/24 19:04:01 Loaded with input_coord as (select ? as lat, ? as lon), dists as ( select distinct s.feed_id, vsp.feed_id || '_' || vsp.parent_station as stop_uid, s.stop_name, s.stop_lat, s.stop_lon, 6371.0 * acos( sin(input_coord.lat * pi() / 180.0) * sin(s.stop_lat * pi() / 180.0) + cos(input_coord.lat * pi() / 180.0) * cos(s.stop_lat * pi() / 180.0) * cos((s.stop_lon - input_coord.lon) * pi() / 180.0) ) as dist_km_a from input_coord join stops s on 1 = 1 join _vstopparent vsp on s.feed_id = vsp.feed_id and vsp.parent_station = s.stop_id order by dist_km_a asc ) select stop_uid, stop_name, stop_lat, stop_lon, iif(dist_km_a > ?, null, dist_km_a) as dist_km from dists where feed_id in (?) and (length(?) = 0 or lower(stop_uid || ' ' || stop_name) glob lower('*' || ? || '*')) and (stop_lat between ? and ?) and (stop_lon between ? and ?) order by dist_km asc, stop_uid asc limit ? ([38.4222 27.157 1.1666666666666667 1828 -90 90 -180 180 -1]) to memory ok (len=41) 2025/04/24 19:04:01 Loading select * from ( -- Implicit transfers select from_stop_parent_uid, from_stop_parent_id, from_stop_id, from_feed_id, to_stop_parent_uid, to_stop_parent_id, to_stop_id, to_feed_id, 'i' as transfer_category, ? as transfer_seconds from _vtransfersimplicit union all -- Generated transfers select from_stop_parent_uid, from_stop_parent_id, from_stop_id, feed_id as from_feed_id, to_stop_parent_uid, to_stop_parent_id, to_stop_id, feed_id_pair as to_feed_id, 'g' as transfer_category, -- Uses dist_km to determine seconds transfer cost; round up to min_seconds max(coalesce(cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _cttransfersgen union all -- Feed transfers (transfers.txt) select from_stop_parent_uid, from_stop_parent_id, from_stop_id, feed_id as from_feed_id, to_stop_parent_uid, to_stop_parent_id, to_stop_id, feed_id_pair as to_feed_id, 'f' as transfer_category, -- Uses min_transfer_time, else use dist_km; round up to min_seconds max(coalesce(min_transfer_time, cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _vtransferstbl ) t where ((from_feed_id = ? and to_feed_id = ?)) and transfer_seconds < ? and transfer_category in (? , ?) ([180 3.5 180 180 3.5 180 180 1828 1828 2400 f i]) to memory 2025/04/24 19:04:01 Loaded select * from ( -- Implicit transfers select from_stop_parent_uid, from_stop_parent_id, from_stop_id, from_feed_id, to_stop_parent_uid, to_stop_parent_id, to_stop_id, to_feed_id, 'i' as transfer_category, ? as transfer_seconds from _vtransfersimplicit union all -- Generated transfers select from_stop_parent_uid, from_stop_parent_id, from_stop_id, feed_id as from_feed_id, to_stop_parent_uid, to_stop_parent_id, to_stop_id, feed_id_pair as to_feed_id, 'g' as transfer_category, -- Uses dist_km to determine seconds transfer cost; round up to min_seconds max(coalesce(cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _cttransfersgen union all -- Feed transfers (transfers.txt) select from_stop_parent_uid, from_stop_parent_id, from_stop_id, feed_id as from_feed_id, to_stop_parent_uid, to_stop_parent_id, to_stop_id, feed_id_pair as to_feed_id, 'f' as transfer_category, -- Uses min_transfer_time, else use dist_km; round up to min_seconds max(coalesce(min_transfer_time, cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _vtransferstbl ) t where ((from_feed_id = ? and to_feed_id = ?)) and transfer_seconds < ? and transfer_category in (? , ?) ([180 3.5 180 180 3.5 180 180 1828 1828 2400 f i]) to memory ok (len=41) 2025/04/24 19:04:01 CSA Begin: 1319 conns, 41 transfers, 41 walks origin, 41 walks dest 2025/04/24 19:04:01 CSA Main Loop Begin 2025/04/24 19:04:01 CSA Main Loop Complete 2025/04/24 19:04:01 CSA Complete 2025/04/24 19:04:01 Loading select agency_timezone from agency where feed_id in (?) ([1828]) to memory 2025/04/24 19:04:01 Loaded select agency_timezone from agency where feed_id in (?) ([1828]) to memory ok (len=1) 2025/04/24 19:04:01 Loading with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.oid, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?) join _vconnverbose con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select * from timetable where 1 = 1 and oid in (?,?,?,?,?,?,?,?,?,?,?,?,?) ([20240330 61170 75570 Europe/Istanbul 10800 1828 5802894 5802895 5802896 5802897 5802898 5802899 5802900 5802901 5802902 5802903 5802904 5802905 5802906]) to memory 2025/04/24 19:04:01 Loaded with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.oid, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?) join _vconnverbose con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select * from timetable where 1 = 1 and oid in (?,?,?,?,?,?,?,?,?,?,?,?,?) ([20240330 61170 75570 Europe/Istanbul 10800 1828 5802894 5802895 5802896 5802897 5802898 5802899 5802900 5802901 5802902 5802903 5802904 5802905 5802906]) to memory ok (len=13) 2025/04/24 19:04:01 SQLite system version (3.46.1); comparing to required version: 3.28.0 2025/04/24 19:04:01 Loading schema tables 2025/04/24 19:04:01 Execute statement: create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl)) 2025/04/24 19:04:01 Execute statement: create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.direct_download' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2025/04/24 19:04:01 Execute statement: create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id)) 2025/04/24 19:04:01 Execute statement: create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id)) 2025/04/24 19:04:01 Execute statement: create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id)) 2025/04/24 19:04:01 Execute statement: create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2025/04/24 19:04:01 Execute statement: create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence)) 2025/04/24 19:04:01 Execute statement: create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or (location_type = 3 or location_type = 4) ),'stop_desc' text,'stop_lat' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or (location_type = 3 or location_type = 4) ),'stop_lon' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or (location_type = 3 or location_type = 4) ),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id)) 2025/04/24 19:04:01 Execute statement: create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id)) 2025/04/24 19:04:01 Execute statement: create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id)) 2025/04/24 19:04:01 Execute statement: create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2025/04/24 19:04:01 Execute statement: create table if not exists _ctconn ('feed_id' int not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_parent_id' text not null,'from_stop_parent_uid' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_parent_id' text not null,'to_stop_parent_uid' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null) 2025/04/24 19:04:01 Execute statement: create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null) 2025/04/24 19:04:01 Execute statement: create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_parent_id' text not null,'to_stop_parent_id' text not null,'from_stop_parent_uid' text not null,'to_stop_parent_uid' text not null,'dist_km' real) 2025/04/24 19:04:01 Loading schema tables ok 2025/04/24 19:04:01 Loading schema indexes 2025/04/24 19:04:01 Create index idx_agency1_agency_timezone on agency as [agency_timezone] 2025/04/24 19:04:01 Skipping creation of already existing index idx_agency1_agency_timezone 2025/04/24 19:04:01 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2025/04/24 19:04:01 Skipping creation of already existing index idx_stop_times1_trip_id 2025/04/24 19:04:01 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id] 2025/04/24 19:04:01 Skipping creation of already existing index idx_stops2_feed_id_stop_id 2025/04/24 19:04:01 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2025/04/24 19:04:01 Skipping creation of already existing index idx_stops2_stop_lat_stop_lon 2025/04/24 19:04:01 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type] 2025/04/24 19:04:01 Skipping creation of already existing index idx_stops3_feed_id_parent_station_location_type 2025/04/24 19:04:01 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id] 2025/04/24 19:04:01 Skipping creation of already existing index idx_transfers2_feed_id_from_stop_id 2025/04/24 19:04:01 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id] 2025/04/24 19:04:01 Skipping creation of already existing index idx_transfers2_feed_id_to_stop_id 2025/04/24 19:04:01 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time] 2025/04/24 19:04:01 Skipping creation of already existing index idx__ctconn3_feed_id_service_id_from_stop_time 2025/04/24 19:04:01 Create index idx__ctconn3_feed_id_from_stop_parent_uid_from_stop_time on _ctconn as [feed_id from_stop_parent_uid from_stop_time] 2025/04/24 19:04:01 Skipping creation of already existing index idx__ctconn3_feed_id_from_stop_parent_uid_from_stop_time 2025/04/24 19:04:01 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date] 2025/04/24 19:04:01 Skipping creation of already existing index idx__ctcaltoservice3_feed_id_service_id_service_date 2025/04/24 19:04:01 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date] 2025/04/24 19:04:01 Skipping creation of already existing index idx__ctcaltoservice2_feed_id_service_date 2025/04/24 19:04:01 Loading schema indexes ok 2025/04/24 19:04:01 Loading views ok 2025/04/24 19:04:01 Loaded view _vfeedsminmaxdates (bytes=251) 2025/04/24 19:04:01 Loaded view _vfeedsmetadata (bytes=3789) 2025/04/24 19:04:01 Loaded view _vstopparent (bytes=2600) 2025/04/24 19:04:01 Loaded view _vconn (bytes=1225) 2025/04/24 19:04:01 Loaded view _vconnverbose (bytes=1173) 2025/04/24 19:04:01 Loaded view _vcaltoservice (bytes=3110) 2025/04/24 19:04:01 Loaded view _vtransferstbl (bytes=957) 2025/04/24 19:04:01 Loaded view _vtransfersgen (bytes=1559) 2025/04/24 19:04:01 Loaded view _vtransfersimplicit (bytes=395) 2025/04/24 19:04:01 Loading views ok 2025/04/24 19:04:01 Importing table from //home/build/mobroute/test_results/mockmdb.csv (0.01MB) to table: _gtfssource_mdbcsv 2025/04/24 19:04:01 Cache skipped import for table _gtfssource_mdbcsv and feed_id -1 matched existing checksum: C_0M_84c84050cb9d805534f168e758bca992b2b07972d9c77e1042eb5f2a905ebb96 2025/04/24 19:04:01 Imported table from //home/build/mobroute/test_results/mockmdb.csv to table: _gtfssource_mdbcsv ok 2025/04/24 19:04:01 Running RTDatabase against input: {"feed_ids":[509,516],"op":"loadmdbgtfs"} 2025/04/24 19:04:01 Running Load against 2 feeds 2025/04/24 19:04:01 Loading GTFS feed 509 (1 of 2) 2025/04/24 19:04:01 Loading /home/build/.cache/mobroute/gtfs_509_uri046da6_20250424190244.zip to DB with GTFS feed: 509 2025/04/24 19:04:01 Loaded GTFS Archive /home/build/.cache/mobroute/gtfs_509_uri046da6_20250424190244.zip to temporary directory: /tmp/mobroute_tempdir1986389905 2025/04/24 19:04:01 Loading table: agency 2025/04/24 19:04:01 Importing table from /tmp/mobroute_tempdir1986389905/agency.txt (0.00MB) to table: agency 2025/04/24 19:04:01 Cache skipped import for table agency and feed_id 509 matched existing checksum: C_0M_f0a9e88d7ecf74ca2c01478ebe08a8906bb318bd07ca94dfa7a2f1eb05b52ff2 2025/04/24 19:04:01 Imported table from /tmp/mobroute_tempdir1986389905/agency.txt to table: agency ok 2025/04/24 19:04:01 Loading table: agency complete 2025/04/24 19:04:01 Loading table: calendar 2025/04/24 19:04:01 Importing table from /tmp/mobroute_tempdir1986389905/calendar.txt (0.00MB) to table: calendar 2025/04/24 19:04:01 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1986389905/calendar.txt 2025/04/24 19:04:01 Loading table: calendar complete 2025/04/24 19:04:01 Loading table: calendar_dates 2025/04/24 19:04:01 Importing table from /tmp/mobroute_tempdir1986389905/calendar_dates.txt (0.01MB) to table: calendar_dates 2025/04/24 19:04:01 Cache skipped import for table calendar_dates and feed_id 509 matched existing checksum: C_0M_a5a26a0e99d6c425e8400db30286edbe82297e58f464ace8616c8fecf64b1c08 2025/04/24 19:04:01 Imported table from /tmp/mobroute_tempdir1986389905/calendar_dates.txt to table: calendar_dates ok 2025/04/24 19:04:01 Loading table: calendar_dates complete 2025/04/24 19:04:01 Loading table: stop_times 2025/04/24 19:04:01 Importing table from /tmp/mobroute_tempdir1986389905/stop_times.txt (2.62MB) to table: stop_times 2025/04/24 19:04:01 Cache skipped import for table stop_times and feed_id 509 matched existing checksum: C_2M_65f0fd4fe27e4d43fd83ec1db5ab383a644b8a85d76474213a7a15f8b7db7a7c 2025/04/24 19:04:01 Imported table from /tmp/mobroute_tempdir1986389905/stop_times.txt to table: stop_times ok 2025/04/24 19:04:01 Loading table: stop_times complete 2025/04/24 19:04:01 Loading table: stops 2025/04/24 19:04:01 Importing table from /tmp/mobroute_tempdir1986389905/stops.txt (0.01MB) to table: stops 2025/04/24 19:04:01 Cache skipped import for table stops and feed_id 509 matched existing checksum: C_0M_2b070c1cf7ab25c957d16435dab10b9e50f60b8846386f972482194af7ef9feb 2025/04/24 19:04:01 Imported table from /tmp/mobroute_tempdir1986389905/stops.txt to table: stops ok 2025/04/24 19:04:01 Loading table: stops complete 2025/04/24 19:04:01 Loading table: trips 2025/04/24 19:04:01 Importing table from /tmp/mobroute_tempdir1986389905/trips.txt (0.20MB) to table: trips 2025/04/24 19:04:01 Cache skipped import for table trips and feed_id 509 matched existing checksum: C_0M_f38f4302202b75d9fc2f11b85761b08b5c4046226f01a177b4acd3fbd310c0b6 2025/04/24 19:04:01 Imported table from /tmp/mobroute_tempdir1986389905/trips.txt to table: trips ok 2025/04/24 19:04:01 Loading table: trips complete 2025/04/24 19:04:01 Loading table: routes 2025/04/24 19:04:01 Importing table from /tmp/mobroute_tempdir1986389905/routes.txt (0.00MB) to table: routes 2025/04/24 19:04:01 Cache skipped import for table routes and feed_id 509 matched existing checksum: C_0M_0bbe1be4e9dd6044ef8e54218d3df3c3dbb612d4297e4b4695d02bc24442a72e 2025/04/24 19:04:01 Imported table from /tmp/mobroute_tempdir1986389905/routes.txt to table: routes ok 2025/04/24 19:04:01 Loading table: routes complete 2025/04/24 19:04:01 Loading table: transfers 2025/04/24 19:04:01 Importing table from /tmp/mobroute_tempdir1986389905/transfers.txt (0.00MB) to table: transfers 2025/04/24 19:04:01 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1986389905/transfers.txt 2025/04/24 19:04:01 Loading table: transfers complete 2025/04/24 19:04:01 Loaded /home/build/.cache/mobroute/gtfs_509_uri046da6_20250424190244.zip to DB with GTFS feed: 509 ok 2025/04/24 19:04:01 Loading GTFS feed 509 ok; used cache for URL download (true) 2025/04/24 19:04:01 Loading GTFS feed 516 (2 of 2) 2025/04/24 19:04:01 Loading /home/build/.cache/mobroute/gtfs_516_uri1384b4_20250424190238.zip to DB with GTFS feed: 516 2025/04/24 19:04:01 Loaded GTFS Archive /home/build/.cache/mobroute/gtfs_516_uri1384b4_20250424190238.zip to temporary directory: /tmp/mobroute_tempdir758085273 2025/04/24 19:04:01 Loading table: agency 2025/04/24 19:04:01 Importing table from /tmp/mobroute_tempdir758085273/agency.txt (0.00MB) to table: agency 2025/04/24 19:04:01 Cache skipped import for table agency and feed_id 516 matched existing checksum: C_0M_335bdc2bd64ccca518456137a68e96bed45c487a4ca15b365e22926f65c1e875 2025/04/24 19:04:01 Imported table from /tmp/mobroute_tempdir758085273/agency.txt to table: agency ok 2025/04/24 19:04:01 Loading table: agency complete 2025/04/24 19:04:01 Loading table: calendar 2025/04/24 19:04:01 Importing table from /tmp/mobroute_tempdir758085273/calendar.txt (0.00MB) to table: calendar 2025/04/24 19:04:01 Cache skipped import for table calendar and feed_id 516 matched existing checksum: C_0M_7c6de7aa329206ed719337431423c6f9935daf05df97e35705cf9a63bff39ec4 2025/04/24 19:04:01 Imported table from /tmp/mobroute_tempdir758085273/calendar.txt to table: calendar ok 2025/04/24 19:04:01 Loading table: calendar complete 2025/04/24 19:04:01 Loading table: calendar_dates 2025/04/24 19:04:01 Importing table from /tmp/mobroute_tempdir758085273/calendar_dates.txt (0.00MB) to table: calendar_dates 2025/04/24 19:04:01 Cache skipped import for table calendar_dates and feed_id 516 matched existing checksum: C_0M_552a19eebfbe6e390058ed765f8b52eece1650a42acb79b0de3653d3ec4cd70c 2025/04/24 19:04:01 Imported table from /tmp/mobroute_tempdir758085273/calendar_dates.txt to table: calendar_dates ok 2025/04/24 19:04:01 Loading table: calendar_dates complete 2025/04/24 19:04:01 Loading table: stop_times 2025/04/24 19:04:01 Importing table from /tmp/mobroute_tempdir758085273/stop_times.txt (34.01MB) to table: stop_times 2025/04/24 19:04:01 Cache skipped import for table stop_times and feed_id 516 matched existing checksum: C_34M_a0449b99076f5cbf985993a5e749d70ea43fd03a67393f0b1ff2682f2f7b3462 2025/04/24 19:04:01 Imported table from /tmp/mobroute_tempdir758085273/stop_times.txt to table: stop_times ok 2025/04/24 19:04:01 Loading table: stop_times complete 2025/04/24 19:04:01 Loading table: stops 2025/04/24 19:04:01 Importing table from /tmp/mobroute_tempdir758085273/stops.txt (0.06MB) to table: stops 2025/04/24 19:04:01 Cache skipped import for table stops and feed_id 516 matched existing checksum: C_0M_adcc729df5b0aa3bb900e11d73197d93289bd2a54e498dff45c6c31c4f53db7d 2025/04/24 19:04:01 Imported table from /tmp/mobroute_tempdir758085273/stops.txt to table: stops ok 2025/04/24 19:04:01 Loading table: stops complete 2025/04/24 19:04:01 Loading table: trips 2025/04/24 19:04:01 Importing table from /tmp/mobroute_tempdir758085273/trips.txt (1.47MB) to table: trips 2025/04/24 19:04:01 Cache skipped import for table trips and feed_id 516 matched existing checksum: C_1M_0b05128d28a04a2202be0f5f1efa016d52653bec14dae01cca9b5390e4d5fcdc 2025/04/24 19:04:01 Imported table from /tmp/mobroute_tempdir758085273/trips.txt to table: trips ok 2025/04/24 19:04:01 Loading table: trips complete 2025/04/24 19:04:01 Loading table: routes 2025/04/24 19:04:01 Importing table from /tmp/mobroute_tempdir758085273/routes.txt (0.01MB) to table: routes 2025/04/24 19:04:01 Cache skipped import for table routes and feed_id 516 matched existing checksum: C_0M_a6bbec5b360b1ad63caa4dfcc73356c0cc3642a92397c1ecc55dce9485f6763f 2025/04/24 19:04:01 Imported table from /tmp/mobroute_tempdir758085273/routes.txt to table: routes ok 2025/04/24 19:04:01 Loading table: routes complete 2025/04/24 19:04:01 Loading table: transfers 2025/04/24 19:04:01 Importing table from /tmp/mobroute_tempdir758085273/transfers.txt (0.01MB) to table: transfers 2025/04/24 19:04:01 Cache skipped import for table transfers and feed_id 516 matched existing checksum: C_0M_5a40318e214c82e62f08cd64e1aeeb769bab93d26d5f8b154c7bd879acbffe09 2025/04/24 19:04:01 Imported table from /tmp/mobroute_tempdir758085273/transfers.txt to table: transfers ok 2025/04/24 19:04:01 Loading table: transfers complete 2025/04/24 19:04:01 Loaded /home/build/.cache/mobroute/gtfs_516_uri1384b4_20250424190238.zip to DB with GTFS feed: 516 ok 2025/04/24 19:04:01 Loading GTFS feed 516 ok; used cache for URL download (true) 2025/04/24 19:04:01 Running Load against 2 feeds ok 2025/04/24 19:04:01 Running RTDatabase against input: {"feed_ids":[509,516],"op":"compute"} 2025/04/24 19:04:01 Running Compute against 2 feeds 2025/04/24 19:04:01 Computed table _ctconn for feeds (509 <nil>) already up to date 2025/04/24 19:04:01 Computed table _ctconn for feeds (516 <nil>) already up to date 2025/04/24 19:04:01 Computed table _ctcaltoservice for feeds (509 <nil>) already up to date 2025/04/24 19:04:01 Computed table _ctcaltoservice for feeds (516 <nil>) already up to date 2025/04/24 19:04:01 Computed table _cttransfersgen for feeds (509 0xc00092bc28) already up to date 2025/04/24 19:04:01 Computed table _cttransfersgen for feed (509 0xc00092bc48) out of date - updating ('' vs '509:stops:C_0M_2b070c1cf7ab25c957d16435dab10b9e50f60b8846386f972482194af7ef9feb,516:stops:C_0M_adcc729df5b0aa3bb900e11d73197d93289bd2a54e498dff45c6c31c4f53db7d') 2025/04/24 19:04:01 Computed table _cttransfersgen for feeds (516 0xc00092bc88) already up to date 2025/04/24 19:04:01 Running Compute against 2 feeds ok 2025/04/24 19:04:01 Running RTRoute against input:: {"feed_ids":[509,516],"from":[40.64809,-73.93799],"to":[40.82732,-74.12064],"transfer_categories":["f","i","g"],"output_formats":["legs","diagnostics","mapurl","request"],"time":"2024-02-02T21:19:40-05:00","max_n_transfers":0,"max_transfer_seconds":0,"max_trip_seconds":0,"max_walk_seconds":0,"min_transfer_seconds":0,"walkspeed_km_hr":0,"optimizations":null} 2025/04/24 19:04:01 Expanded (defaultized) params RTRoute:: {"feed_ids":[509,516],"from":[40.64809,-73.93799],"to":[40.82732,-74.12064],"transfer_categories":["f","i","g"],"output_formats":["legs","diagnostics","mapurl","request"],"time":"2024-02-02T21:19:40-05:00","max_n_transfers":20,"max_transfer_seconds":2400,"max_trip_seconds":14400,"max_walk_seconds":1200,"min_transfer_seconds":180,"walkspeed_km_hr":3.5,"optimizations":["feedsclean"]} 2025/04/24 19:04:01 Optimization feedsclean: Input feed IDs [509 516] reduced to => [509 516] 2025/04/24 19:04:01 Running query: select count(*) from _vfeedsmetadata where loaded = 1 and computed = 1 and feed_id in (?,?) with args: [[509 516]] 2025/04/24 19:04:01 Loading select agency_timezone from agency where feed_id in (?,?) ([509 516]) to memory 2025/04/24 19:04:01 Loaded select agency_timezone from agency where feed_id in (?,?) ([509 516]) to memory ok (len=3) 2025/04/24 19:04:01 Loading with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.oid, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?,?) join _ctconn con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select oid,trip_id,from_stop_sequence,from_stop_parent_uid,from_stop_drutctime,to_stop_sequence,to_stop_parent_uid,to_stop_drutctime from timetable where 1 = 1 ([20240202 58780 73180 America/New_York -18000 509 516]) to memory 2025/04/24 19:04:01 Loaded with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.oid, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?,?) join _ctconn con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select oid,trip_id,from_stop_sequence,from_stop_parent_uid,from_stop_drutctime,to_stop_sequence,to_stop_parent_uid,to_stop_drutctime from timetable where 1 = 1 ([20240202 58780 73180 America/New_York -18000 509 516]) to memory ok (len=29277) 2025/04/24 19:04:01 Loading with input_coord as (select ? as lat, ? as lon), dists as ( select distinct s.feed_id, vsp.feed_id || '_' || vsp.parent_station as stop_uid, s.stop_name, s.stop_lat, s.stop_lon, 6371.0 * acos( sin(input_coord.lat * pi() / 180.0) * sin(s.stop_lat * pi() / 180.0) + cos(input_coord.lat * pi() / 180.0) * cos(s.stop_lat * pi() / 180.0) * cos((s.stop_lon - input_coord.lon) * pi() / 180.0) ) as dist_km_a from input_coord join stops s on 1 = 1 join _vstopparent vsp on s.feed_id = vsp.feed_id and vsp.parent_station = s.stop_id order by dist_km_a asc ) select stop_uid, stop_name, stop_lat, stop_lon, iif(dist_km_a > ?, null, dist_km_a) as dist_km from dists where feed_id in (?,?) and (length(?) = 0 or lower(stop_uid || ' ' || stop_name) glob lower('*' || ? || '*')) and (stop_lat between ? and ?) and (stop_lon between ? and ?) order by dist_km asc, stop_uid asc limit ? ([40.64809 -73.93799 1.1666666666666667 509 516 -90 90 -180 180 -1]) to memory 2025/04/24 19:04:01 Loaded with input_coord as (select ? as lat, ? as lon), dists as ( select distinct s.feed_id, vsp.feed_id || '_' || vsp.parent_station as stop_uid, s.stop_name, s.stop_lat, s.stop_lon, 6371.0 * acos( sin(input_coord.lat * pi() / 180.0) * sin(s.stop_lat * pi() / 180.0) + cos(input_coord.lat * pi() / 180.0) * cos(s.stop_lat * pi() / 180.0) * cos((s.stop_lon - input_coord.lon) * pi() / 180.0) ) as dist_km_a from input_coord join stops s on 1 = 1 join _vstopparent vsp on s.feed_id = vsp.feed_id and vsp.parent_station = s.stop_id order by dist_km_a asc ) select stop_uid, stop_name, stop_lat, stop_lon, iif(dist_km_a > ?, null, dist_km_a) as dist_km from dists where feed_id in (?,?) and (length(?) = 0 or lower(stop_uid || ' ' || stop_name) glob lower('*' || ? || '*')) and (stop_lat between ? and ?) and (stop_lon between ? and ?) order by dist_km asc, stop_uid asc limit ? ([40.64809 -73.93799 1.1666666666666667 509 516 -90 90 -180 180 -1]) to memory ok (len=727) 2025/04/24 19:04:01 Loading with input_coord as (select ? as lat, ? as lon), dists as ( select distinct s.feed_id, vsp.feed_id || '_' || vsp.parent_station as stop_uid, s.stop_name, s.stop_lat, s.stop_lon, 6371.0 * acos( sin(input_coord.lat * pi() / 180.0) * sin(s.stop_lat * pi() / 180.0) + cos(input_coord.lat * pi() / 180.0) * cos(s.stop_lat * pi() / 180.0) * cos((s.stop_lon - input_coord.lon) * pi() / 180.0) ) as dist_km_a from input_coord join stops s on 1 = 1 join _vstopparent vsp on s.feed_id = vsp.feed_id and vsp.parent_station = s.stop_id order by dist_km_a asc ) select stop_uid, stop_name, stop_lat, stop_lon, iif(dist_km_a > ?, null, dist_km_a) as dist_km from dists where feed_id in (?,?) and (length(?) = 0 or lower(stop_uid || ' ' || stop_name) glob lower('*' || ? || '*')) and (stop_lat between ? and ?) and (stop_lon between ? and ?) order by dist_km asc, stop_uid asc limit ? ([40.82732 -74.12064 1.1666666666666667 509 516 -90 90 -180 180 -1]) to memory 2025/04/24 19:04:01 Loaded with input_coord as (select ? as lat, ? as lon), dists as ( select distinct s.feed_id, vsp.feed_id || '_' || vsp.parent_station as stop_uid, s.stop_name, s.stop_lat, s.stop_lon, 6371.0 * acos( sin(input_coord.lat * pi() / 180.0) * sin(s.stop_lat * pi() / 180.0) + cos(input_coord.lat * pi() / 180.0) * cos(s.stop_lat * pi() / 180.0) * cos((s.stop_lon - input_coord.lon) * pi() / 180.0) ) as dist_km_a from input_coord join stops s on 1 = 1 join _vstopparent vsp on s.feed_id = vsp.feed_id and vsp.parent_station = s.stop_id order by dist_km_a asc ) select stop_uid, stop_name, stop_lat, stop_lon, iif(dist_km_a > ?, null, dist_km_a) as dist_km from dists where feed_id in (?,?) and (length(?) = 0 or lower(stop_uid || ' ' || stop_name) glob lower('*' || ? || '*')) and (stop_lat between ? and ?) and (stop_lon between ? and ?) order by dist_km asc, stop_uid asc limit ? ([40.82732 -74.12064 1.1666666666666667 509 516 -90 90 -180 180 -1]) to memory ok (len=727) 2025/04/24 19:04:01 Loading select * from ( -- Implicit transfers select from_stop_parent_uid, from_stop_parent_id, from_stop_id, from_feed_id, to_stop_parent_uid, to_stop_parent_id, to_stop_id, to_feed_id, 'i' as transfer_category, ? as transfer_seconds from _vtransfersimplicit union all -- Generated transfers select from_stop_parent_uid, from_stop_parent_id, from_stop_id, feed_id as from_feed_id, to_stop_parent_uid, to_stop_parent_id, to_stop_id, feed_id_pair as to_feed_id, 'g' as transfer_category, -- Uses dist_km to determine seconds transfer cost; round up to min_seconds max(coalesce(cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _cttransfersgen union all -- Feed transfers (transfers.txt) select from_stop_parent_uid, from_stop_parent_id, from_stop_id, feed_id as from_feed_id, to_stop_parent_uid, to_stop_parent_id, to_stop_id, feed_id_pair as to_feed_id, 'f' as transfer_category, -- Uses min_transfer_time, else use dist_km; round up to min_seconds max(coalesce(min_transfer_time, cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _vtransferstbl ) t where ((from_feed_id = ? and to_feed_id = ?) or (from_feed_id = ? and to_feed_id = ?) or (from_feed_id = ? and to_feed_id = ?)) and transfer_seconds < ? and transfer_category in (? , ? , ?) ([180 3.5 180 180 3.5 180 180 509 509 509 516 516 516 2400 f i g]) to memory 2025/04/24 19:04:02 Loaded select * from ( -- Implicit transfers select from_stop_parent_uid, from_stop_parent_id, from_stop_id, from_feed_id, to_stop_parent_uid, to_stop_parent_id, to_stop_id, to_feed_id, 'i' as transfer_category, ? as transfer_seconds from _vtransfersimplicit union all -- Generated transfers select from_stop_parent_uid, from_stop_parent_id, from_stop_id, feed_id as from_feed_id, to_stop_parent_uid, to_stop_parent_id, to_stop_id, feed_id_pair as to_feed_id, 'g' as transfer_category, -- Uses dist_km to determine seconds transfer cost; round up to min_seconds max(coalesce(cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _cttransfersgen union all -- Feed transfers (transfers.txt) select from_stop_parent_uid, from_stop_parent_id, from_stop_id, feed_id as from_feed_id, to_stop_parent_uid, to_stop_parent_id, to_stop_id, feed_id_pair as to_feed_id, 'f' as transfer_category, -- Uses min_transfer_time, else use dist_km; round up to min_seconds max(coalesce(min_transfer_time, cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _vtransferstbl ) t where ((from_feed_id = ? and to_feed_id = ?) or (from_feed_id = ? and to_feed_id = ?) or (from_feed_id = ? and to_feed_id = ?)) and transfer_seconds < ? and transfer_category in (? , ? , ?) ([180 3.5 180 180 3.5 180 180 509 509 509 516 516 516 2400 f i g]) to memory ok (len=6518) 2025/04/24 19:04:02 CSA Begin: 29277 conns, 6518 transfers, 727 walks origin, 727 walks dest 2025/04/24 19:04:02 CSA Main Loop Begin 2025/04/24 19:04:02 CSA Main Loop Complete 2025/04/24 19:04:02 CSA Complete 2025/04/24 19:04:02 Loading select agency_timezone from agency where feed_id in (?,?) ([509 516]) to memory 2025/04/24 19:04:02 Loaded select agency_timezone from agency where feed_id in (?,?) ([509 516]) to memory ok (len=3) 2025/04/24 19:04:02 Loading with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.oid, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?,?) join _vconnverbose con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select * from timetable where 1 = 1 and oid in (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ([20240202 58780 73180 America/New_York -18000 509 516 537523 537524 537525 537526 537527 537528 537529 537530 537531 537532 537533 537534 537535 537536 537537 537538 537539 537540 1022669 1000394 1000395 1000396]) to memory 2025/04/24 19:04:02 Loaded with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.oid, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?,?) join _vconnverbose con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select * from timetable where 1 = 1 and oid in (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ([20240202 58780 73180 America/New_York -18000 509 516 537523 537524 537525 537526 537527 537528 537529 537530 537531 537532 537533 537534 537535 537536 537537 537538 537539 537540 1022669 1000394 1000395 1000396]) to memory ok (len=22) --- PASS: Test_ApiRouteZIPGTFS (88.84s) PASS ok command-line-arguments 89.119s |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
+ cd mobroute ++ git rev-parse HEAD ++ cut -c1-5 + REF=f924e ++ cat /home/build/.user_at_server + ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null miles_milesalan@ssh.nyc1.nearlyfreespeech.net 'rm -rf /home/public/ci.lrdu.org/tests_results_refs//f924e/index.html /home/public/ci.lrdu.org/tests_results_refs//f924e/json' Warning: Permanently added 'ssh.nyc1.nearlyfreespeech.net' (ED25519) to the list of known hosts. ++ cat /home/build/.user_at_server + ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null miles_milesalan@ssh.nyc1.nearlyfreespeech.net 'mkdir -p /home/public/ci.lrdu.org/tests_results_refs//f924e' Warning: Permanently added 'ssh.nyc1.nearlyfreespeech.net' (ED25519) to the list of known hosts. ++ cat /home/build/.user_at_server + scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -r /home/build/mobroute/test_results/index.html /home/build/mobroute/test_results/json /home/build/mobroute/test_results/mockmdb.csv miles_milesalan@ssh.nyc1.nearlyfreespeech.net:/home/public/ci.lrdu.org/tests_results_refs//f924e Warning: Permanently added 'ssh.nyc1.nearlyfreespeech.net' (ED25519) to the list of known hosts. |
1 2 3 4 5 6 7 |
+ cd mobroute ++ git rev-parse master ++ git rev-parse HEAD + '[' f8d93e01a62c4121ff3848cc56ef55f50b732fad '!=' f924e9d4c5fd0426571daf0b4ce9afd04c600a8f ']' + complete-build + echo 1 + exit 0 |
Error fetching logs for task "upload_results_master" |