Banghyewonn commited on
Commit
16431bf
·
verified ·
1 Parent(s): 4b8bc79

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -61,3 +61,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
61
  Seongnam/osm_simplified.osm.pbf filter=lfs diff=lfs merge=lfs -text
62
  Seongnam/road_graph.gpkg filter=lfs diff=lfs merge=lfs -text
63
  Seongnam/road_graph_nodes.gpkg filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
61
  Seongnam/osm_simplified.osm.pbf filter=lfs diff=lfs merge=lfs -text
62
  Seongnam/road_graph.gpkg filter=lfs diff=lfs merge=lfs -text
63
  Seongnam/road_graph_nodes.gpkg filter=lfs diff=lfs merge=lfs -text
64
+ NYC/osm_simplified.osm.pbf filter=lfs diff=lfs merge=lfs -text
65
+ NYC/road_graph.gpkg filter=lfs diff=lfs merge=lfs -text
66
+ NYC/road_graph_nodes.gpkg filter=lfs diff=lfs merge=lfs -text
67
+ NYC/taxi_zones/taxi_zones.shp filter=lfs diff=lfs merge=lfs -text
NYC/.DS_Store ADDED
Binary file (10.2 kB). View file
 
NYC/boundary.geojson ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "FeatureCollection",
3
+ "name": "boundary",
4
+ "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
5
+ "features": [
6
+ { "type": "Feature", "properties": { }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -74.0472209, 40.6908892 ], [ -74.0472133, 40.690917 ], [ -74.0472041, 40.6909398 ], [ -74.047189, 40.690962 ], [ -74.0471724, 40.6909803 ], [ -74.0471496, 40.6909979 ], [ -74.0471232, 40.6910138 ], [ -74.0470937, 40.6910277 ], [ -74.0470605, 40.6910372 ], [ -74.0470212, 40.6910442 ], [ -74.0469829, 40.6910489 ], [ -74.0461778, 40.691104 ], [ -74.0461524, 40.6911293 ], [ -74.0461245, 40.6911292 ], [ -74.0461132, 40.691129 ], [ -74.0460787, 40.6911267 ], [ -74.0460458, 40.6911231 ], [ -74.0460174, 40.6911182 ], [ -74.0459898, 40.6911115 ], [ -74.0459617, 40.6911024 ], [ -74.0459271, 40.6910896 ], [ -74.0458907, 40.6910753 ], [ -74.0445985, 40.6905663 ], [ -74.0438883, 40.6901864 ], [ -74.0435049, 40.6896932 ], [ -74.0434871, 40.6896706 ], [ -74.04347, 40.6896489 ], [ -74.043465, 40.6896421 ], [ -74.0435113, 40.689208 ], [ -74.0436327, 40.688777 ], [ -74.0439725, 40.6885868 ], [ -74.0441445, 40.6885605 ], [ -74.0443758, 40.6885252 ], [ -74.0447779, 40.6885981 ], [ -74.0453031, 40.6888646 ], [ -74.0453147, 40.6888513 ], [ -74.0453632, 40.6888759 ], [ -74.045357, 40.6888833 ], [ -74.0462749, 40.6893396 ], [ -74.046752, 40.6898984 ], [ -74.0467971, 40.6899522 ], [ -74.046845, 40.6900082 ], [ -74.0468962, 40.6900682 ], [ -74.0469401, 40.6901196 ], [ -74.0471981, 40.6904236 ], [ -74.0471319, 40.6904559 ], [ -74.0470101, 40.6905177 ], [ -74.0470244, 40.6905703 ], [ -74.0470351, 40.6906098 ], [ -74.047146, 40.690714 ], [ -74.0472028, 40.6907986 ], [ -74.0472123, 40.6908169 ], [ -74.0472201, 40.6908408 ], [ -74.0472219, 40.6908633 ], [ -74.0472209, 40.6908892 ] ] ], [ [ [ -74.0406966, 40.7002152 ], [ -74.0406477, 40.7002136 ], [ -74.0406121, 40.7002008 ], [ -74.0405689, 40.7001879 ], [ -74.0405278, 40.7001765 ], [ -74.0404958, 40.7001623 ], [ -74.0404601, 40.7001494 ], [ -74.0404152, 40.7001264 ], [ -74.0403756, 40.7001122 ], [ -74.0403288, 40.7001007 ], [ -74.0402827, 40.7001113 ], [ -74.0402491, 40.700117 ], [ -74.0401871, 40.700114 ], [ -74.0401534, 40.7001026 ], [ -74.0401196, 40.700094 ], [ -74.040082, 40.7000925 ], [ -74.0400483, 40.700074 ], [ -74.040022, 40.700061 ], [ -74.0399938, 40.7000412 ], [ -74.0399657, 40.7000183 ], [ -74.0399339, 40.6999941 ], [ -74.0399002, 40.6999811 ], [ -74.0398588, 40.6999655 ], [ -74.0398251, 40.6999554 ], [ -74.0397827, 40.6999518 ], [ -74.0397453, 40.6999503 ], [ -74.0397134, 40.6999275 ], [ -74.0396891, 40.699899 ], [ -74.0396647, 40.6998733 ], [ -74.0396215, 40.6998561 ], [ -74.0395859, 40.6998533 ], [ -74.0395465, 40.6998431 ], [ -74.0395109, 40.6998161 ], [ -74.0394771, 40.6997818 ], [ -74.0394283, 40.6997632 ], [ -74.0393815, 40.6997504 ], [ -74.0393298, 40.6997268 ], [ -74.0392866, 40.6997081 ], [ -74.0392548, 40.6996867 ], [ -74.0392097, 40.699681 ], [ -74.0391629, 40.6996767 ], [ -74.0391214, 40.6996709 ], [ -74.0390746, 40.699668 ], [ -74.0390239, 40.6996623 ], [ -74.0389901, 40.6996622 ], [ -74.0389358, 40.6996549 ], [ -74.0388927, 40.6996251 ], [ -74.0388796, 40.6996022 ], [ -74.0388382, 40.6995622 ], [ -74.0388149, 40.6995316 ], [ -74.0388017, 40.6994874 ], [ -74.0387962, 40.699439 ], [ -74.0387831, 40.6994062 ], [ -74.0387719, 40.6993976 ], [ -74.0387588, 40.6993677 ], [ -74.0387475, 40.6993362 ], [ -74.0387232, 40.699302 ], [ -74.038697, 40.6992793 ], [ -74.0386642, 40.6992628 ], [ -74.0386321, 40.6992385 ], [ -74.0385985, 40.6992101 ], [ -74.038561, 40.6991929 ], [ -74.0385329, 40.6991722 ], [ -74.0385101, 40.6991469 ], [ -74.0384936, 40.6991151 ], [ -74.0384982, 40.699074 ], [ -74.0384668, 40.6990169 ], [ -74.0384589, 40.6989808 ], [ -74.0384629, 40.6989239 ], [ -74.0384669, 40.6988698 ], [ -74.0384551, 40.6988247 ], [ -74.0384355, 40.6987917 ], [ -74.0384116, 40.6987557 ], [ -74.038396, 40.6987285 ], [ -74.0383801, 40.6987135 ], [ -74.0383683, 40.6986866 ], [ -74.0383723, 40.6986686 ], [ -74.0383919, 40.6986656 ], [ -74.0384197, 40.6986655 ], [ -74.0384529, 40.6986809 ], [ -74.038477, 40.6986908 ], [ -74.0385048, 40.698702 ], [ -74.0385269, 40.6987117 ], [ -74.0385693, 40.6987301 ], [ -74.0386064, 40.6987175 ], [ -74.038623, 40.6986979 ], [ -74.0386028, 40.6986769 ], [ -74.0386211, 40.6986713 ], [ -74.0386342, 40.698667 ], [ -74.0386528, 40.6986628 ], [ -74.0386807, 40.69866 ], [ -74.0387123, 40.698654 ], [ -74.038744, 40.6986371 ], [ -74.0387796, 40.698636 ], [ -74.0388273, 40.6986241 ], [ -74.0388788, 40.6986109 ], [ -74.0389252, 40.698607 ], [ -74.0389596, 40.6985951 ], [ -74.0390065, 40.6985937 ], [ -74.039061, 40.6985967 ], [ -74.0391153, 40.6985924 ], [ -74.0391679, 40.6985954 ], [ -74.0392054, 40.698604 ], [ -74.0392448, 40.6986141 ], [ -74.039285, 40.6986319 ], [ -74.0393171, 40.6986648 ], [ -74.0393415, 40.6986841 ], [ -74.0393648, 40.6987087 ], [ -74.0393763, 40.6987314 ], [ -74.0394115, 40.6987374 ], [ -74.0394385, 40.6987394 ], [ -74.0394688, 40.6987519 ], [ -74.0394876, 40.6987775 ], [ -74.0395083, 40.6987803 ], [ -74.0395382, 40.6987875 ], [ -74.0395853, 40.6987904 ], [ -74.0396316, 40.6987899 ], [ -74.0396471, 40.69879 ], [ -74.0396695, 40.6987755 ], [ -74.0399309, 40.6985897 ], [ -74.0400782, 40.6987147 ], [ -74.040234, 40.6988328 ], [ -74.0402387, 40.6988362 ], [ -74.040215, 40.6988538 ], [ -74.0401502, 40.6989014 ], [ -74.0401454, 40.6988975 ], [ -74.0400963, 40.6989342 ], [ -74.0400595, 40.6989072 ], [ -74.0400437, 40.6989027 ], [ -74.0400282, 40.6988979 ], [ -74.0399861, 40.6988865 ], [ -74.0399512, 40.6988816 ], [ -74.0399097, 40.6988835 ], [ -74.0398682, 40.6988933 ], [ -74.0398243, 40.6989111 ], [ -74.039798, 40.6989367 ], [ -74.0397962, 40.6989767 ], [ -74.0398149, 40.6990109 ], [ -74.0398618, 40.6990423 ], [ -74.0398992, 40.699068 ], [ -74.0399479, 40.6990979 ], [ -74.03998, 40.6991236 ], [ -74.0400698, 40.6991722 ], [ -74.040158, 40.6991965 ], [ -74.0401863, 40.6992152 ], [ -74.0401899, 40.6992451 ], [ -74.0401899, 40.6992778 ], [ -74.0402106, 40.699315 ], [ -74.0402425, 40.6993335 ], [ -74.040278, 40.6993506 ], [ -74.0403156, 40.699365 ], [ -74.0403511, 40.6993749 ], [ -74.0404019, 40.6993934 ], [ -74.0404262, 40.6994134 ], [ -74.0404384, 40.6994384 ], [ -74.0404553, 40.6994669 ], [ -74.0404666, 40.6994927 ], [ -74.0404664, 40.6995282 ], [ -74.0404702, 40.6995581 ], [ -74.0404842, 40.6995945 ], [ -74.0405124, 40.6996274 ], [ -74.0405311, 40.6996573 ], [ -74.0405535, 40.6996801 ], [ -74.0405779, 40.69971 ], [ -74.0406004, 40.6997386 ], [ -74.0406117, 40.6997657 ], [ -74.0406173, 40.6998026 ], [ -74.0406154, 40.6998284 ], [ -74.0406237, 40.6998605 ], [ -74.0406443, 40.6998832 ], [ -74.0406631, 40.6999075 ], [ -74.0406744, 40.6999346 ], [ -74.0406744, 40.6999616 ], [ -74.0406837, 40.699983 ], [ -74.0406874, 40.70001 ], [ -74.0406912, 40.70005 ], [ -74.0407023, 40.7000713 ], [ -74.0407192, 40.7000956 ], [ -74.0407248, 40.7001055 ], [ -74.0407397, 40.7001311 ], [ -74.0407472, 40.7001669 ], [ -74.0407303, 40.7001925 ], [ -74.0406966, 40.7002152 ] ] ], [ [ [ -74.02639, 40.700102 ], [ -74.023637, 40.718068 ], [ -74.021347, 40.7274823 ], [ -74.0213403, 40.7275071 ], [ -74.0213072, 40.7276365 ], [ -74.0206386, 40.7303906 ], [ -74.0174387, 40.7435392 ], [ -74.0142459, 40.7566558 ], [ -74.014028, 40.757551 ], [ -74.0016207, 40.7745491 ], [ -74.0004487, 40.7761545 ], [ -73.9930017, 40.7863546 ], [ -73.9916947, 40.7881446 ], [ -73.9848673, 40.7974944 ], [ -73.9772946, 40.8078634 ], [ -73.963577, 40.826642 ], [ -73.9587238, 40.8376892 ], [ -73.9561557, 40.8481811 ], [ -73.9547924, 40.8512835 ], [ -73.9502981, 40.8586258 ], [ -73.9341963, 40.8815481 ], [ -73.933907, 40.882012 ], [ -73.9253, 40.87902 ], [ -73.925254, 40.879004 ], [ -73.9249858, 40.8789176 ], [ -73.924928, 40.878899 ], [ -73.924761, 40.87887 ], [ -73.921923, 40.878381 ], [ -73.921873, 40.878372 ], [ -73.921695, 40.87824 ], [ -73.920907, 40.877504 ], [ -73.920269, 40.876863 ], [ -73.91992, 40.876531 ], [ -73.919855, 40.87647 ], [ -73.919642, 40.876327 ], [ -73.919287, 40.876153 ], [ -73.918799, 40.875961 ], [ -73.918457, 40.875858 ], [ -73.9183897, 40.8758436 ], [ -73.917916, 40.875742 ], [ -73.9178453, 40.8757074 ], [ -73.917767, 40.875669 ], [ -73.9176836, 40.8756705 ], [ -73.917598, 40.875672 ], [ -73.917396, 40.875745 ], [ -73.917279, 40.875769 ], [ -73.916957, 40.875792 ], [ -73.916502, 40.875769 ], [ -73.916437, 40.875754 ], [ -73.916377, 40.875711 ], [ -73.916284, 40.875687 ], [ -73.91623, 40.875688 ], [ -73.916216, 40.875689 ], [ -73.916187, 40.87569 ], [ -73.916185, 40.875689 ], [ -73.9161787, 40.8756893 ], [ -73.916163, 40.87569 ], [ -73.916024, 40.875728 ], [ -73.915578, 40.875696 ], [ -73.915336, 40.875808 ], [ -73.91522, 40.875923 ], [ -73.915177, 40.876079 ], [ -73.914997, 40.87649 ], [ -73.914773, 40.876719 ], [ -73.914213, 40.877134 ], [ -73.912693, 40.877768 ], [ -73.9125648, 40.8778977 ], [ -73.9124759, 40.8779877 ], [ -73.912437, 40.878027 ], [ -73.912149, 40.878432 ], [ -73.911874, 40.878958 ], [ -73.911584, 40.87914 ], [ -73.911195, 40.879198 ], [ -73.910865, 40.879171 ], [ -73.909932, 40.878842 ], [ -73.909616, 40.878754 ], [ -73.909561, 40.8783 ], [ -73.909422, 40.87812 ], [ -73.909126, 40.877998 ], [ -73.908941, 40.877642 ], [ -73.908704, 40.877596 ], [ -73.908408, 40.877613 ], [ -73.908183, 40.877538 ], [ -73.907875, 40.877168 ], [ -73.907858, 40.87683 ], [ -73.907433, 40.876412 ], [ -73.907249, 40.876308 ], [ -73.906894, 40.876287 ], [ -73.906769, 40.87598 ], [ -73.90695, 40.875047 ], [ -73.907353, 40.874351 ], [ -73.907371, 40.873963 ], [ -73.907249, 40.873772 ], [ -73.907451, 40.873398 ], [ -73.907726, 40.873247 ], [ -73.908055, 40.872965 ], [ -73.908124, 40.872802 ], [ -73.908412, 40.872698 ], [ -73.908666, 40.872978 ], [ -73.908902, 40.873034 ], [ -73.909117, 40.872919 ], [ -73.9092528, 40.8726696 ], [ -73.909264, 40.872649 ], [ -73.909332, 40.87254 ], [ -73.909148, 40.871724 ], [ -73.909194, 40.871104 ], [ -73.909337, 40.870314 ], [ -73.90949, 40.869605 ], [ -73.909711, 40.868926 ], [ -73.910336, 40.867669 ], [ -73.91078, 40.86684 ], [ -73.911319, 40.866007 ], [ -73.91186, 40.865223 ], [ -73.913396, 40.863342 ], [ -73.913623, 40.863145 ], [ -73.914244, 40.862501 ], [ -73.914333, 40.86239 ], [ -73.918224, 40.858456 ], [ -73.918948, 40.857699 ], [ -73.920076, 40.856589 ], [ -73.920402, 40.856093 ], [ -73.920605, 40.855851 ], [ -73.920794, 40.855609 ], [ -73.920875, 40.855413 ], [ -73.921527, 40.854742 ], [ -73.923448, 40.852369 ], [ -73.925114, 40.849709 ], [ -73.927091, 40.847353 ], [ -73.929128, 40.844264 ], [ -73.929339, 40.843301 ], [ -73.930104, 40.841494 ], [ -73.930996, 40.839724 ], [ -73.93287, 40.836453 ], [ -73.933215, 40.8357016 ], [ -73.933247, 40.835632 ], [ -73.933651, 40.834053 ], [ -73.933796, 40.832958 ], [ -73.933763, 40.831686 ], [ -73.933106, 40.825949 ], [ -73.932828, 40.823366 ], [ -73.932737, 40.820893 ], [ -73.9326321, 40.8189744 ], [ -73.932591, 40.818222 ], [ -73.932532, 40.816053 ], [ -73.932705, 40.812575 ], [ -73.932828, 40.811948 ], [ -73.932747, 40.811531 ], [ -73.932743, 40.811511 ], [ -73.932676, 40.811164 ], [ -73.932608, 40.811006 ], [ -73.932556, 40.810886 ], [ -73.932666, 40.810749 ], [ -73.932656, 40.810579 ], [ -73.932663, 40.810554 ], [ -73.932812, 40.810424 ], [ -73.932847, 40.810394 ], [ -73.932857, 40.810327 ], [ -73.932838, 40.810167 ], [ -73.932816, 40.810128 ], [ -73.932768, 40.810097 ], [ -73.932595, 40.810052 ], [ -73.932597, 40.810016 ], [ -73.932626, 40.80966 ], [ -73.932621, 40.80934 ], [ -73.932592, 40.809131 ], [ -73.9325, 40.80882 ], [ -73.932364, 40.808519 ], [ -73.932231, 40.808303 ], [ -73.93211, 40.808146 ], [ -73.931911, 40.807937 ], [ -73.931655, 40.807639 ], [ -73.931277, 40.807243 ], [ -73.93096, 40.806948 ], [ -73.930526, 40.806614 ], [ -73.930526, 40.806478 ], [ -73.930446, 40.806328 ], [ -73.929963, 40.805773 ], [ -73.929031, 40.804564 ], [ -73.92871, 40.804119 ], [ -73.928019, 40.802774 ], [ -73.927663, 40.802399 ], [ -73.92707, 40.802195 ], [ -73.926507, 40.802173 ], [ -73.923472, 40.802304 ], [ -73.923075, 40.802231 ], [ -73.922663, 40.802119 ], [ -73.922382, 40.801995 ], [ -73.9222, 40.801915 ], [ -73.921913, 40.801781 ], [ -73.921898, 40.801772 ], [ -73.921794, 40.801689 ], [ -73.921413, 40.801369 ], [ -73.921375, 40.801319 ], [ -73.921186, 40.801031 ], [ -73.920956, 40.800694 ], [ -73.920697, 40.800201 ], [ -73.92034, 40.799729 ], [ -73.920078, 40.799512 ], [ -73.919896, 40.799392 ], [ -73.919034, 40.799011 ], [ -73.918649, 40.798807 ], [ -73.918088, 40.798616 ], [ -73.917859, 40.798507 ], [ -73.916392, 40.797808 ], [ -73.915757, 40.797525 ], [ -73.915523, 40.797421 ], [ -73.914169, 40.796818 ], [ -73.912528, 40.796118 ], [ -73.9098375, 40.7909643 ], [ -73.9117549, 40.7897803 ], [ -73.9121128, 40.7895704 ], [ -73.9126153, 40.7894243 ], [ -73.9147322, 40.7874646 ], [ -73.9156319, 40.7864462 ], [ -73.920761, 40.782162 ], [ -73.922345, 40.780811 ], [ -73.928236, 40.777132 ], [ -73.928695, 40.776757 ], [ -73.930038, 40.776398 ], [ -73.930643, 40.776672 ], [ -73.93115, 40.777623 ], [ -73.931708, 40.777998 ], [ -73.933184, 40.778206 ], [ -73.933803, 40.778272 ], [ -73.934558, 40.77825 ], [ -73.9348937, 40.7780643 ], [ -73.935903, 40.777506 ], [ -73.936347, 40.777138 ], [ -73.937062, 40.776185 ], [ -73.937838, 40.774832 ], [ -73.937898, 40.774033 ], [ -73.9378787, 40.773831 ], [ -73.9375174, 40.7725227 ], [ -73.9359429, 40.7717347 ], [ -73.9355572, 40.7715992 ], [ -73.935045, 40.7711861 ], [ -73.935226, 40.770609 ], [ -73.935903, 40.770001 ], [ -73.939826, 40.768073 ], [ -73.9406496, 40.7675512 ], [ -73.941379, 40.767089 ], [ -73.943339, 40.765003 ], [ -73.945698, 40.761809 ], [ -73.9506844, 40.7554267 ], [ -73.9509011, 40.7551524 ], [ -73.9510922, 40.7549506 ], [ -73.951614, 40.754299 ], [ -73.952027, 40.75383 ], [ -73.9521428, 40.7537746 ], [ -73.952454, 40.7533899 ], [ -73.9528208, 40.7530006 ], [ -73.9530476, 40.7527668 ], [ -73.9534795, 40.752257 ], [ -73.9540201, 40.7518142 ], [ -73.954298, 40.751455 ], [ -73.9544422, 40.751353 ], [ -73.9545472, 40.7512427 ], [ -73.954503, 40.751138 ], [ -73.954504, 40.751136 ], [ -73.954537, 40.751035 ], [ -73.954674, 40.750879 ], [ -73.9547578, 40.7507797 ], [ -73.9561547, 40.7497876 ], [ -73.9572708, 40.7491674 ], [ -73.957853, 40.7483993 ], [ -73.9587189, 40.7471165 ], [ -73.959334, 40.7461726 ], [ -73.9598548, 40.7451772 ], [ -73.9607468, 40.7441711 ], [ -73.9621661, 40.7413534 ], [ -73.962978, 40.738393 ], [ -73.9626667, 40.7369801 ], [ -73.962547, 40.736437 ], [ -73.962112, 40.734528 ], [ -73.962298, 40.734287 ], [ -73.962413, 40.73399 ], [ -73.962406, 40.732926 ], [ -73.961465, 40.730764 ], [ -73.9613803, 40.729069 ], [ -73.9617512, 40.7281249 ], [ -73.9619238, 40.7275427 ], [ -73.961741, 40.726686 ], [ -73.961758, 40.725784 ], [ -73.961933, 40.725286 ], [ -73.9620383, 40.7252476 ], [ -73.9621293, 40.7251589 ], [ -73.962109, 40.725105 ], [ -73.961722, 40.72487 ], [ -73.9627691, 40.7227582 ], [ -73.9633389, 40.7218977 ], [ -73.9635168, 40.7217312 ], [ -73.9649308, 40.7214952 ], [ -73.9656943, 40.7206834 ], [ -73.966666, 40.7194968 ], [ -73.9679043, 40.7173184 ], [ -73.9673055, 40.7170152 ], [ -73.9677402, 40.7157309 ], [ -73.9689119, 40.7131879 ], [ -73.969061, 40.711744 ], [ -73.9700064, 40.7105491 ], [ -73.9701914, 40.7092385 ], [ -73.9704007, 40.7086318 ], [ -73.969867, 40.707916 ], [ -73.969307, 40.707116 ], [ -73.969253, 40.707038 ], [ -73.969262, 40.706803 ], [ -73.969312, 40.705475 ], [ -73.970129, 40.705383 ], [ -73.970087, 40.705752 ], [ -73.970288, 40.705753 ], [ -73.970159, 40.706916 ], [ -73.9701825, 40.7069404 ], [ -73.970534, 40.707306 ], [ -73.97054, 40.707313 ], [ -73.97226, 40.709102 ], [ -73.972864, 40.708824 ], [ -73.977116, 40.706533 ], [ -73.97912, 40.706065 ], [ -73.980921, 40.7059673 ], [ -73.9824381, 40.7058529 ], [ -73.9827564, 40.7056796 ], [ -73.9830481, 40.7056703 ], [ -73.9834159, 40.7057302 ], [ -73.9864168, 40.705454 ], [ -73.9900444, 40.7050118 ], [ -73.9901452, 40.7050162 ], [ -73.990749, 40.7049 ], [ -73.9935158, 40.7046716 ], [ -73.9943578, 40.7044439 ], [ -73.9945629, 40.7042712 ], [ -73.9950772, 40.7040197 ], [ -73.9951925, 40.7038071 ], [ -73.9957569, 40.7038774 ], [ -73.9959947, 40.7037725 ], [ -73.9963451, 40.7033735 ], [ -73.9995497, 40.7004296 ], [ -74.0002365, 40.6994949 ], [ -74.0005834, 40.6989323 ], [ -74.0011074, 40.6980893 ], [ -74.0015556, 40.6972918 ], [ -74.0018898, 40.6968077 ], [ -74.0026662, 40.6957649 ], [ -74.0033816, 40.6946775 ], [ -74.0036039, 40.6941589 ], [ -74.0041318, 40.6935657 ], [ -74.0050007, 40.6922553 ], [ -74.0054419, 40.691317 ], [ -74.0060025, 40.6905979 ], [ -74.0064699, 40.6898545 ], [ -74.0069664, 40.6889994 ], [ -74.0074623, 40.6886621 ], [ -74.0080914, 40.6875085 ], [ -74.0082907, 40.6864417 ], [ -74.0083659, 40.6864262 ], [ -74.0085948, 40.6862959 ], [ -74.008663, 40.686249 ], [ -74.019577, 40.679654 ], [ -74.035443, 40.685125 ], [ -74.034495, 40.6866935 ], [ -74.02639, 40.700102 ] ] ] ] } }
7
+ ]
8
+ }
NYC/demand.csv ADDED
The diff for this file is too large to render. See raw diff
 
NYC/edge_index.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:753abbd443e8f43da59aa6859a9cb7ab6a092d778890dfca95a840a1a2afe784
3
+ size 5274877
NYC/nyc_avg_demand_5day.csv ADDED
The diff for this file is too large to render. See raw diff
 
NYC/nyc_manhattan_2017-10-19.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d27ee7cc4ef6878fbd36f57d4bb9dac8bdd5dcdcb04a8d5d25624046287ab9d9
3
+ size 4614045
NYC/nyc_taxi_preprocessing.ipynb ADDED
@@ -0,0 +1,729 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "markdown",
5
+ "metadata": {},
6
+ "source": [
7
+ "# NYC Yellow Taxi Data Preprocessing\n",
8
+ "\n",
9
+ "- **Date**: 2017-10-19 (Thursday)\n",
10
+ "- **Time**: 06:00 ~ 10:00 (Morning Rush)\n",
11
+ "- **Goal**: LocationID → lat/lon coordinate mapping"
12
+ ]
13
+ },
14
+ {
15
+ "cell_type": "code",
16
+ "execution_count": 1,
17
+ "metadata": {},
18
+ "outputs": [],
19
+ "source": [
20
+ "import pandas as pd\n",
21
+ "import geopandas as gpd\n",
22
+ "\n",
23
+ "DATA_DIR = '.'\n",
24
+ "TARGET_DATE = '2017-10-19'\n",
25
+ "TIME_START = 6 # 06:00\n",
26
+ "TIME_END = 10 # 10:00"
27
+ ]
28
+ },
29
+ {
30
+ "cell_type": "markdown",
31
+ "metadata": {},
32
+ "source": [
33
+ "## 1. Taxi Zones Shapefile → Centroid Coordinates"
34
+ ]
35
+ },
36
+ {
37
+ "cell_type": "code",
38
+ "execution_count": 2,
39
+ "metadata": {},
40
+ "outputs": [
41
+ {
42
+ "name": "stdout",
43
+ "output_type": "stream",
44
+ "text": [
45
+ "Total zones: 263\n"
46
+ ]
47
+ },
48
+ {
49
+ "data": {
50
+ "text/html": [
51
+ "<div>\n",
52
+ "<style scoped>\n",
53
+ " .dataframe tbody tr th:only-of-type {\n",
54
+ " vertical-align: middle;\n",
55
+ " }\n",
56
+ "\n",
57
+ " .dataframe tbody tr th {\n",
58
+ " vertical-align: top;\n",
59
+ " }\n",
60
+ "\n",
61
+ " .dataframe thead th {\n",
62
+ " text-align: right;\n",
63
+ " }\n",
64
+ "</style>\n",
65
+ "<table border=\"1\" class=\"dataframe\">\n",
66
+ " <thead>\n",
67
+ " <tr style=\"text-align: right;\">\n",
68
+ " <th></th>\n",
69
+ " <th>LocationID</th>\n",
70
+ " <th>zone</th>\n",
71
+ " <th>borough</th>\n",
72
+ " <th>lat</th>\n",
73
+ " <th>lon</th>\n",
74
+ " </tr>\n",
75
+ " </thead>\n",
76
+ " <tbody>\n",
77
+ " <tr>\n",
78
+ " <th>0</th>\n",
79
+ " <td>1</td>\n",
80
+ " <td>Newark Airport</td>\n",
81
+ " <td>EWR</td>\n",
82
+ " <td>40.691830</td>\n",
83
+ " <td>-74.174002</td>\n",
84
+ " </tr>\n",
85
+ " <tr>\n",
86
+ " <th>1</th>\n",
87
+ " <td>2</td>\n",
88
+ " <td>Jamaica Bay</td>\n",
89
+ " <td>Queens</td>\n",
90
+ " <td>40.616746</td>\n",
91
+ " <td>-73.831300</td>\n",
92
+ " </tr>\n",
93
+ " <tr>\n",
94
+ " <th>2</th>\n",
95
+ " <td>3</td>\n",
96
+ " <td>Allerton/Pelham Gardens</td>\n",
97
+ " <td>Bronx</td>\n",
98
+ " <td>40.864474</td>\n",
99
+ " <td>-73.847422</td>\n",
100
+ " </tr>\n",
101
+ " <tr>\n",
102
+ " <th>3</th>\n",
103
+ " <td>4</td>\n",
104
+ " <td>Alphabet City</td>\n",
105
+ " <td>Manhattan</td>\n",
106
+ " <td>40.723752</td>\n",
107
+ " <td>-73.976968</td>\n",
108
+ " </tr>\n",
109
+ " <tr>\n",
110
+ " <th>4</th>\n",
111
+ " <td>5</td>\n",
112
+ " <td>Arden Heights</td>\n",
113
+ " <td>Staten Island</td>\n",
114
+ " <td>40.552659</td>\n",
115
+ " <td>-74.188485</td>\n",
116
+ " </tr>\n",
117
+ " <tr>\n",
118
+ " <th>5</th>\n",
119
+ " <td>6</td>\n",
120
+ " <td>Arrochar/Fort Wadsworth</td>\n",
121
+ " <td>Staten Island</td>\n",
122
+ " <td>40.600324</td>\n",
123
+ " <td>-74.071770</td>\n",
124
+ " </tr>\n",
125
+ " <tr>\n",
126
+ " <th>6</th>\n",
127
+ " <td>7</td>\n",
128
+ " <td>Astoria</td>\n",
129
+ " <td>Queens</td>\n",
130
+ " <td>40.761493</td>\n",
131
+ " <td>-73.919694</td>\n",
132
+ " </tr>\n",
133
+ " <tr>\n",
134
+ " <th>7</th>\n",
135
+ " <td>8</td>\n",
136
+ " <td>Astoria Park</td>\n",
137
+ " <td>Queens</td>\n",
138
+ " <td>40.778559</td>\n",
139
+ " <td>-73.923086</td>\n",
140
+ " </tr>\n",
141
+ " <tr>\n",
142
+ " <th>8</th>\n",
143
+ " <td>9</td>\n",
144
+ " <td>Auburndale</td>\n",
145
+ " <td>Queens</td>\n",
146
+ " <td>40.751034</td>\n",
147
+ " <td>-73.787949</td>\n",
148
+ " </tr>\n",
149
+ " <tr>\n",
150
+ " <th>9</th>\n",
151
+ " <td>10</td>\n",
152
+ " <td>Baisley Park</td>\n",
153
+ " <td>Queens</td>\n",
154
+ " <td>40.678953</td>\n",
155
+ " <td>-73.790987</td>\n",
156
+ " </tr>\n",
157
+ " </tbody>\n",
158
+ "</table>\n",
159
+ "</div>"
160
+ ],
161
+ "text/plain": [
162
+ " LocationID zone borough lat lon\n",
163
+ "0 1 Newark Airport EWR 40.691830 -74.174002\n",
164
+ "1 2 Jamaica Bay Queens 40.616746 -73.831300\n",
165
+ "2 3 Allerton/Pelham Gardens Bronx 40.864474 -73.847422\n",
166
+ "3 4 Alphabet City Manhattan 40.723752 -73.976968\n",
167
+ "4 5 Arden Heights Staten Island 40.552659 -74.188485\n",
168
+ "5 6 Arrochar/Fort Wadsworth Staten Island 40.600324 -74.071770\n",
169
+ "6 7 Astoria Queens 40.761493 -73.919694\n",
170
+ "7 8 Astoria Park Queens 40.778559 -73.923086\n",
171
+ "8 9 Auburndale Queens 40.751034 -73.787949\n",
172
+ "9 10 Baisley Park Queens 40.678953 -73.790987"
173
+ ]
174
+ },
175
+ "execution_count": 2,
176
+ "metadata": {},
177
+ "output_type": "execute_result"
178
+ }
179
+ ],
180
+ "source": [
181
+ "# Shapefile load & WGS84 conversion\n",
182
+ "zones = gpd.read_file(f'{DATA_DIR}/taxi_zones/taxi_zones.shp')\n",
183
+ "zones = zones.to_crs(epsg=4326) # NAD83 feet -> WGS84 lat/lon\n",
184
+ "\n",
185
+ "# Centroid calculation (projected CRS for accuracy, then back to WGS84)\n",
186
+ "zones_proj = zones.to_crs(epsg=2263) # NYC State Plane (feet)\n",
187
+ "centroids = zones_proj.geometry.centroid.to_crs(epsg=4326)\n",
188
+ "zones['lon'] = centroids.x\n",
189
+ "zones['lat'] = centroids.y\n",
190
+ "\n",
191
+ "zone_coords = zones[['LocationID', 'zone', 'borough', 'lat', 'lon']]\n",
192
+ "print(f'Total zones: {len(zone_coords)}')\n",
193
+ "zone_coords.head(10)"
194
+ ]
195
+ },
196
+ {
197
+ "cell_type": "markdown",
198
+ "metadata": {},
199
+ "source": [
200
+ "## 2. Yellow Taxi Data Load & Filter"
201
+ ]
202
+ },
203
+ {
204
+ "cell_type": "code",
205
+ "execution_count": 3,
206
+ "metadata": {},
207
+ "outputs": [
208
+ {
209
+ "name": "stdout",
210
+ "output_type": "stream",
211
+ "text": [
212
+ "Total records (Oct 2017): 9,768,672\n",
213
+ "Columns: ['VendorID', 'tpep_pickup_datetime', 'tpep_dropoff_datetime', 'passenger_count', 'trip_distance', 'RatecodeID', 'store_and_fwd_flag', 'PULocationID', 'DOLocationID', 'payment_type', 'fare_amount', 'extra', 'mta_tax', 'tip_amount', 'tolls_amount', 'improvement_surcharge', 'total_amount', 'congestion_surcharge', 'airport_fee']\n"
214
+ ]
215
+ },
216
+ {
217
+ "data": {
218
+ "text/html": [
219
+ "<div>\n",
220
+ "<style scoped>\n",
221
+ " .dataframe tbody tr th:only-of-type {\n",
222
+ " vertical-align: middle;\n",
223
+ " }\n",
224
+ "\n",
225
+ " .dataframe tbody tr th {\n",
226
+ " vertical-align: top;\n",
227
+ " }\n",
228
+ "\n",
229
+ " .dataframe thead th {\n",
230
+ " text-align: right;\n",
231
+ " }\n",
232
+ "</style>\n",
233
+ "<table border=\"1\" class=\"dataframe\">\n",
234
+ " <thead>\n",
235
+ " <tr style=\"text-align: right;\">\n",
236
+ " <th></th>\n",
237
+ " <th>VendorID</th>\n",
238
+ " <th>tpep_pickup_datetime</th>\n",
239
+ " <th>tpep_dropoff_datetime</th>\n",
240
+ " <th>passenger_count</th>\n",
241
+ " <th>trip_distance</th>\n",
242
+ " <th>RatecodeID</th>\n",
243
+ " <th>store_and_fwd_flag</th>\n",
244
+ " <th>PULocationID</th>\n",
245
+ " <th>DOLocationID</th>\n",
246
+ " <th>payment_type</th>\n",
247
+ " <th>fare_amount</th>\n",
248
+ " <th>extra</th>\n",
249
+ " <th>mta_tax</th>\n",
250
+ " <th>tip_amount</th>\n",
251
+ " <th>tolls_amount</th>\n",
252
+ " <th>improvement_surcharge</th>\n",
253
+ " <th>total_amount</th>\n",
254
+ " <th>congestion_surcharge</th>\n",
255
+ " <th>airport_fee</th>\n",
256
+ " </tr>\n",
257
+ " </thead>\n",
258
+ " <tbody>\n",
259
+ " <tr>\n",
260
+ " <th>0</th>\n",
261
+ " <td>1</td>\n",
262
+ " <td>2017-10-01 00:01:50</td>\n",
263
+ " <td>2017-10-01 00:14:13</td>\n",
264
+ " <td>1</td>\n",
265
+ " <td>2.0</td>\n",
266
+ " <td>1</td>\n",
267
+ " <td>N</td>\n",
268
+ " <td>142</td>\n",
269
+ " <td>233</td>\n",
270
+ " <td>2</td>\n",
271
+ " <td>10.0</td>\n",
272
+ " <td>0.5</td>\n",
273
+ " <td>0.5</td>\n",
274
+ " <td>0.00</td>\n",
275
+ " <td>0.0</td>\n",
276
+ " <td>0.3</td>\n",
277
+ " <td>11.30</td>\n",
278
+ " <td>None</td>\n",
279
+ " <td>None</td>\n",
280
+ " </tr>\n",
281
+ " <tr>\n",
282
+ " <th>1</th>\n",
283
+ " <td>1</td>\n",
284
+ " <td>2017-10-01 00:02:43</td>\n",
285
+ " <td>2017-10-01 00:08:35</td>\n",
286
+ " <td>2</td>\n",
287
+ " <td>2.3</td>\n",
288
+ " <td>1</td>\n",
289
+ " <td>N</td>\n",
290
+ " <td>142</td>\n",
291
+ " <td>166</td>\n",
292
+ " <td>1</td>\n",
293
+ " <td>8.0</td>\n",
294
+ " <td>0.5</td>\n",
295
+ " <td>0.5</td>\n",
296
+ " <td>1.85</td>\n",
297
+ " <td>0.0</td>\n",
298
+ " <td>0.3</td>\n",
299
+ " <td>11.15</td>\n",
300
+ " <td>None</td>\n",
301
+ " <td>None</td>\n",
302
+ " </tr>\n",
303
+ " <tr>\n",
304
+ " <th>2</th>\n",
305
+ " <td>1</td>\n",
306
+ " <td>2017-10-01 00:12:08</td>\n",
307
+ " <td>2017-10-01 00:25:49</td>\n",
308
+ " <td>3</td>\n",
309
+ " <td>2.8</td>\n",
310
+ " <td>1</td>\n",
311
+ " <td>N</td>\n",
312
+ " <td>151</td>\n",
313
+ " <td>262</td>\n",
314
+ " <td>1</td>\n",
315
+ " <td>13.0</td>\n",
316
+ " <td>0.5</td>\n",
317
+ " <td>0.5</td>\n",
318
+ " <td>1.72</td>\n",
319
+ " <td>0.0</td>\n",
320
+ " <td>0.3</td>\n",
321
+ " <td>16.02</td>\n",
322
+ " <td>None</td>\n",
323
+ " <td>None</td>\n",
324
+ " </tr>\n",
325
+ " </tbody>\n",
326
+ "</table>\n",
327
+ "</div>"
328
+ ],
329
+ "text/plain": [
330
+ " VendorID tpep_pickup_datetime tpep_dropoff_datetime passenger_count \\\n",
331
+ "0 1 2017-10-01 00:01:50 2017-10-01 00:14:13 1 \n",
332
+ "1 1 2017-10-01 00:02:43 2017-10-01 00:08:35 2 \n",
333
+ "2 1 2017-10-01 00:12:08 2017-10-01 00:25:49 3 \n",
334
+ "\n",
335
+ " trip_distance RatecodeID store_and_fwd_flag PULocationID DOLocationID \\\n",
336
+ "0 2.0 1 N 142 233 \n",
337
+ "1 2.3 1 N 142 166 \n",
338
+ "2 2.8 1 N 151 262 \n",
339
+ "\n",
340
+ " payment_type fare_amount extra mta_tax tip_amount tolls_amount \\\n",
341
+ "0 2 10.0 0.5 0.5 0.00 0.0 \n",
342
+ "1 1 8.0 0.5 0.5 1.85 0.0 \n",
343
+ "2 1 13.0 0.5 0.5 1.72 0.0 \n",
344
+ "\n",
345
+ " improvement_surcharge total_amount congestion_surcharge airport_fee \n",
346
+ "0 0.3 11.30 None None \n",
347
+ "1 0.3 11.15 None None \n",
348
+ "2 0.3 16.02 None None "
349
+ ]
350
+ },
351
+ "execution_count": 3,
352
+ "metadata": {},
353
+ "output_type": "execute_result"
354
+ }
355
+ ],
356
+ "source": [
357
+ "# Parquet load\n",
358
+ "raw = pd.read_parquet(f'{DATA_DIR}/yellow_tripdata_2017-10.parquet')\n",
359
+ "print(f'Total records (Oct 2017): {len(raw):,}')\n",
360
+ "print(f'Columns: {list(raw.columns)}')\n",
361
+ "raw.head(3)"
362
+ ]
363
+ },
364
+ {
365
+ "cell_type": "code",
366
+ "execution_count": 4,
367
+ "metadata": {},
368
+ "outputs": [
369
+ {
370
+ "name": "stdout",
371
+ "output_type": "stream",
372
+ "text": [
373
+ "Filtered (2017-10-19 6:00~10:00): 60,046 trips\n"
374
+ ]
375
+ }
376
+ ],
377
+ "source": [
378
+ "# Date & time filter: 2017-10-19 06:00 ~ 10:00\n",
379
+ "raw['tpep_pickup_datetime'] = pd.to_datetime(raw['tpep_pickup_datetime'])\n",
380
+ "raw['tpep_dropoff_datetime'] = pd.to_datetime(raw['tpep_dropoff_datetime'])\n",
381
+ "\n",
382
+ "mask = (\n",
383
+ " (raw['tpep_pickup_datetime'].dt.date == pd.Timestamp(TARGET_DATE).date()) &\n",
384
+ " (raw['tpep_pickup_datetime'].dt.hour >= TIME_START) &\n",
385
+ " (raw['tpep_pickup_datetime'].dt.hour < TIME_END)\n",
386
+ ")\n",
387
+ "\n",
388
+ "df = raw[mask].copy().reset_index(drop=True)\n",
389
+ "print(f'Filtered ({TARGET_DATE} {TIME_START}:00~{TIME_END}:00): {len(df):,} trips')"
390
+ ]
391
+ },
392
+ {
393
+ "cell_type": "markdown",
394
+ "metadata": {},
395
+ "source": [
396
+ "## 3. LocationID → Lat/Lon Mapping"
397
+ ]
398
+ },
399
+ {
400
+ "cell_type": "code",
401
+ "execution_count": 5,
402
+ "metadata": {},
403
+ "outputs": [
404
+ {
405
+ "name": "stdout",
406
+ "output_type": "stream",
407
+ "text": [
408
+ "Mapped trips: 60,046\n",
409
+ "Missing pickup coords: 890\n",
410
+ "Missing dropoff coords: 899\n"
411
+ ]
412
+ },
413
+ {
414
+ "data": {
415
+ "text/html": [
416
+ "<div>\n",
417
+ "<style scoped>\n",
418
+ " .dataframe tbody tr th:only-of-type {\n",
419
+ " vertical-align: middle;\n",
420
+ " }\n",
421
+ "\n",
422
+ " .dataframe tbody tr th {\n",
423
+ " vertical-align: top;\n",
424
+ " }\n",
425
+ "\n",
426
+ " .dataframe thead th {\n",
427
+ " text-align: right;\n",
428
+ " }\n",
429
+ "</style>\n",
430
+ "<table border=\"1\" class=\"dataframe\">\n",
431
+ " <thead>\n",
432
+ " <tr style=\"text-align: right;\">\n",
433
+ " <th></th>\n",
434
+ " <th>tpep_pickup_datetime</th>\n",
435
+ " <th>PULocationID</th>\n",
436
+ " <th>o_lat</th>\n",
437
+ " <th>o_lon</th>\n",
438
+ " <th>DOLocationID</th>\n",
439
+ " <th>d_lat</th>\n",
440
+ " <th>d_lon</th>\n",
441
+ " </tr>\n",
442
+ " </thead>\n",
443
+ " <tbody>\n",
444
+ " <tr>\n",
445
+ " <th>0</th>\n",
446
+ " <td>2017-10-19 06:00:25</td>\n",
447
+ " <td>161</td>\n",
448
+ " <td>40.758028</td>\n",
449
+ " <td>-73.977698</td>\n",
450
+ " <td>50</td>\n",
451
+ " <td>40.766238</td>\n",
452
+ " <td>-73.995135</td>\n",
453
+ " </tr>\n",
454
+ " <tr>\n",
455
+ " <th>1</th>\n",
456
+ " <td>2017-10-19 06:00:12</td>\n",
457
+ " <td>162</td>\n",
458
+ " <td>40.756688</td>\n",
459
+ " <td>-73.972356</td>\n",
460
+ " <td>230</td>\n",
461
+ " <td>40.759818</td>\n",
462
+ " <td>-73.984197</td>\n",
463
+ " </tr>\n",
464
+ " <tr>\n",
465
+ " <th>2</th>\n",
466
+ " <td>2017-10-19 06:01:32</td>\n",
467
+ " <td>161</td>\n",
468
+ " <td>40.758028</td>\n",
469
+ " <td>-73.977698</td>\n",
470
+ " <td>161</td>\n",
471
+ " <td>40.758028</td>\n",
472
+ " <td>-73.977698</td>\n",
473
+ " </tr>\n",
474
+ " <tr>\n",
475
+ " <th>3</th>\n",
476
+ " <td>2017-10-19 06:00:17</td>\n",
477
+ " <td>132</td>\n",
478
+ " <td>40.646985</td>\n",
479
+ " <td>-73.786530</td>\n",
480
+ " <td>66</td>\n",
481
+ " <td>40.702259</td>\n",
482
+ " <td>-73.985702</td>\n",
483
+ " </tr>\n",
484
+ " <tr>\n",
485
+ " <th>4</th>\n",
486
+ " <td>2017-10-19 06:00:14</td>\n",
487
+ " <td>262</td>\n",
488
+ " <td>40.775932</td>\n",
489
+ " <td>-73.946510</td>\n",
490
+ " <td>138</td>\n",
491
+ " <td>40.774376</td>\n",
492
+ " <td>-73.873628</td>\n",
493
+ " </tr>\n",
494
+ " <tr>\n",
495
+ " <th>5</th>\n",
496
+ " <td>2017-10-19 06:03:42</td>\n",
497
+ " <td>186</td>\n",
498
+ " <td>40.748497</td>\n",
499
+ " <td>-73.992438</td>\n",
500
+ " <td>162</td>\n",
501
+ " <td>40.756688</td>\n",
502
+ " <td>-73.972356</td>\n",
503
+ " </tr>\n",
504
+ " <tr>\n",
505
+ " <th>6</th>\n",
506
+ " <td>2017-10-19 06:00:47</td>\n",
507
+ " <td>148</td>\n",
508
+ " <td>40.718938</td>\n",
509
+ " <td>-73.990896</td>\n",
510
+ " <td>114</td>\n",
511
+ " <td>40.728340</td>\n",
512
+ " <td>-73.997380</td>\n",
513
+ " </tr>\n",
514
+ " <tr>\n",
515
+ " <th>7</th>\n",
516
+ " <td>2017-10-19 06:02:13</td>\n",
517
+ " <td>158</td>\n",
518
+ " <td>40.735035</td>\n",
519
+ " <td>-74.008984</td>\n",
520
+ " <td>79</td>\n",
521
+ " <td>40.727620</td>\n",
522
+ " <td>-73.985937</td>\n",
523
+ " </tr>\n",
524
+ " <tr>\n",
525
+ " <th>8</th>\n",
526
+ " <td>2017-10-19 06:31:28</td>\n",
527
+ " <td>246</td>\n",
528
+ " <td>40.753309</td>\n",
529
+ " <td>-74.004016</td>\n",
530
+ " <td>163</td>\n",
531
+ " <td>40.764421</td>\n",
532
+ " <td>-73.977569</td>\n",
533
+ " </tr>\n",
534
+ " <tr>\n",
535
+ " <th>9</th>\n",
536
+ " <td>2017-10-19 06:46:07</td>\n",
537
+ " <td>48</td>\n",
538
+ " <td>40.762253</td>\n",
539
+ " <td>-73.989845</td>\n",
540
+ " <td>230</td>\n",
541
+ " <td>40.759818</td>\n",
542
+ " <td>-73.984197</td>\n",
543
+ " </tr>\n",
544
+ " </tbody>\n",
545
+ "</table>\n",
546
+ "</div>"
547
+ ],
548
+ "text/plain": [
549
+ " tpep_pickup_datetime PULocationID o_lat o_lon DOLocationID \\\n",
550
+ "0 2017-10-19 06:00:25 161 40.758028 -73.977698 50 \n",
551
+ "1 2017-10-19 06:00:12 162 40.756688 -73.972356 230 \n",
552
+ "2 2017-10-19 06:01:32 161 40.758028 -73.977698 161 \n",
553
+ "3 2017-10-19 06:00:17 132 40.646985 -73.786530 66 \n",
554
+ "4 2017-10-19 06:00:14 262 40.775932 -73.946510 138 \n",
555
+ "5 2017-10-19 06:03:42 186 40.748497 -73.992438 162 \n",
556
+ "6 2017-10-19 06:00:47 148 40.718938 -73.990896 114 \n",
557
+ "7 2017-10-19 06:02:13 158 40.735035 -74.008984 79 \n",
558
+ "8 2017-10-19 06:31:28 246 40.753309 -74.004016 163 \n",
559
+ "9 2017-10-19 06:46:07 48 40.762253 -73.989845 230 \n",
560
+ "\n",
561
+ " d_lat d_lon \n",
562
+ "0 40.766238 -73.995135 \n",
563
+ "1 40.759818 -73.984197 \n",
564
+ "2 40.758028 -73.977698 \n",
565
+ "3 40.702259 -73.985702 \n",
566
+ "4 40.774376 -73.873628 \n",
567
+ "5 40.756688 -73.972356 \n",
568
+ "6 40.728340 -73.997380 \n",
569
+ "7 40.727620 -73.985937 \n",
570
+ "8 40.764421 -73.977569 \n",
571
+ "9 40.759818 -73.984197 "
572
+ ]
573
+ },
574
+ "execution_count": 5,
575
+ "metadata": {},
576
+ "output_type": "execute_result"
577
+ }
578
+ ],
579
+ "source": [
580
+ "# Pickup coordinates\n",
581
+ "df = df.merge(\n",
582
+ " zone_coords[['LocationID', 'lat', 'lon']].rename(\n",
583
+ " columns={'lat': 'o_lat', 'lon': 'o_lon'}\n",
584
+ " ),\n",
585
+ " left_on='PULocationID', right_on='LocationID', how='left'\n",
586
+ ").drop(columns='LocationID')\n",
587
+ "\n",
588
+ "# Dropoff coordinates\n",
589
+ "df = df.merge(\n",
590
+ " zone_coords[['LocationID', 'lat', 'lon']].rename(\n",
591
+ " columns={'lat': 'd_lat', 'lon': 'd_lon'}\n",
592
+ " ),\n",
593
+ " left_on='DOLocationID', right_on='LocationID', how='left'\n",
594
+ ").drop(columns='LocationID')\n",
595
+ "\n",
596
+ "print(f'Mapped trips: {len(df):,}')\n",
597
+ "print(f'Missing pickup coords: {df[\"o_lat\"].isna().sum()}')\n",
598
+ "print(f'Missing dropoff coords: {df[\"d_lat\"].isna().sum()}')\n",
599
+ "df[['tpep_pickup_datetime', 'PULocationID', 'o_lat', 'o_lon', 'DOLocationID', 'd_lat', 'd_lon']].head(10)"
600
+ ]
601
+ },
602
+ {
603
+ "cell_type": "code",
604
+ "execution_count": 6,
605
+ "metadata": {},
606
+ "outputs": [
607
+ {
608
+ "name": "stdout",
609
+ "output_type": "stream",
610
+ "text": [
611
+ "Final trips (after dropping NaN): 58,988\n"
612
+ ]
613
+ }
614
+ ],
615
+ "source": [
616
+ "# Drop rows with missing coordinates\n",
617
+ "df = df.dropna(subset=['o_lat', 'o_lon', 'd_lat', 'd_lon']).reset_index(drop=True)\n",
618
+ "print(f'Final trips (after dropping NaN): {len(df):,}')"
619
+ ]
620
+ },
621
+ {
622
+ "cell_type": "markdown",
623
+ "metadata": {},
624
+ "source": [
625
+ "## 4. Summary"
626
+ ]
627
+ },
628
+ {
629
+ "cell_type": "code",
630
+ "execution_count": 7,
631
+ "metadata": {},
632
+ "outputs": [
633
+ {
634
+ "name": "stdout",
635
+ "output_type": "stream",
636
+ "text": [
637
+ "=== NYC Yellow Taxi Preprocessing Summary ===\n",
638
+ "Date: 2017-10-19 (Thursday)\n",
639
+ "Time: 6:00 ~ 10:00\n",
640
+ "Total trips: 58,988\n",
641
+ "Pickup time range: 2017-10-19 06:00:02 ~ 2017-10-19 09:59:59\n",
642
+ "Lat range: 40.5770 ~ 40.8760\n",
643
+ "Lon range: -74.1740 ~ -73.7546\n",
644
+ "\n",
645
+ "Pickup by Borough:\n",
646
+ "borough\n",
647
+ "Manhattan 55328\n",
648
+ "Queens 2921\n",
649
+ "Brooklyn 709\n",
650
+ "Bronx 28\n",
651
+ "EWR 2\n"
652
+ ]
653
+ }
654
+ ],
655
+ "source": [
656
+ "print('=== NYC Yellow Taxi Preprocessing Summary ===')\n",
657
+ "print(f'Date: {TARGET_DATE} (Thursday)')\n",
658
+ "print(f'Time: {TIME_START}:00 ~ {TIME_END}:00')\n",
659
+ "print(f'Total trips: {len(df):,}')\n",
660
+ "print(f'Pickup time range: {df[\"tpep_pickup_datetime\"].min()} ~ {df[\"tpep_pickup_datetime\"].max()}')\n",
661
+ "print(f'Lat range: {df[\"o_lat\"].min():.4f} ~ {df[\"o_lat\"].max():.4f}')\n",
662
+ "print(f'Lon range: {df[\"o_lon\"].min():.4f} ~ {df[\"o_lon\"].max():.4f}')\n",
663
+ "print()\n",
664
+ "\n",
665
+ "# Borough distribution\n",
666
+ "pu_borough = df.merge(\n",
667
+ " zone_coords[['LocationID', 'borough']],\n",
668
+ " left_on='PULocationID', right_on='LocationID', how='left'\n",
669
+ ")\n",
670
+ "print('Pickup by Borough:')\n",
671
+ "print(pu_borough['borough'].value_counts().to_string())"
672
+ ]
673
+ },
674
+ {
675
+ "cell_type": "code",
676
+ "execution_count": 8,
677
+ "metadata": {},
678
+ "outputs": [
679
+ {
680
+ "name": "stdout",
681
+ "output_type": "stream",
682
+ "text": [
683
+ "Saved: nyc_taxi_2017-10-19_morning.csv (58,988 rows)\n"
684
+ ]
685
+ }
686
+ ],
687
+ "source": [
688
+ "# Save as CSV\n",
689
+ "output = df[[\n",
690
+ " 'tpep_pickup_datetime', 'tpep_dropoff_datetime',\n",
691
+ " 'PULocationID', 'DOLocationID',\n",
692
+ " 'o_lat', 'o_lon', 'd_lat', 'd_lon',\n",
693
+ " 'passenger_count', 'trip_distance', 'total_amount'\n",
694
+ "]].copy()\n",
695
+ "\n",
696
+ "output.to_csv(f'{DATA_DIR}/nyc_taxi_{TARGET_DATE}_morning.csv', index=False)\n",
697
+ "print(f'Saved: nyc_taxi_{TARGET_DATE}_morning.csv ({len(output):,} rows)')"
698
+ ]
699
+ },
700
+ {
701
+ "cell_type": "code",
702
+ "execution_count": null,
703
+ "metadata": {},
704
+ "outputs": [],
705
+ "source": []
706
+ }
707
+ ],
708
+ "metadata": {
709
+ "kernelspec": {
710
+ "display_name": ".venv",
711
+ "language": "python",
712
+ "name": "python3"
713
+ },
714
+ "language_info": {
715
+ "codemirror_mode": {
716
+ "name": "ipython",
717
+ "version": 3
718
+ },
719
+ "file_extension": ".py",
720
+ "mimetype": "text/x-python",
721
+ "name": "python",
722
+ "nbconvert_exporter": "python",
723
+ "pygments_lexer": "ipython3",
724
+ "version": "3.13.2"
725
+ }
726
+ },
727
+ "nbformat": 4,
728
+ "nbformat_minor": 4
729
+ }
NYC/osm_simplified.osm.pbf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9b55e5c989aa0500ce8cbf9694653aded233d7628c8a5ee1506905d959e0c311
3
+ size 949603
NYC/road_graph.gpkg ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2c819c913349df31370fe69914400633b4258e13ad722663ecb2827590ca8a07
3
+ size 11042816
NYC/road_graph.meta.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crs": "EPSG:4326",
3
+ "is_simplified": true,
4
+ "original_node_count": 19581,
5
+ "original_edge_count": 37219,
6
+ "bounds": {
7
+ "min_lat": 40.6658395,
8
+ "max_lat": 40.8896306,
9
+ "min_lon": -74.0363332,
10
+ "max_lon": -73.8962896
11
+ },
12
+ "node_count": 14260,
13
+ "edge_count": 29965
14
+ }
NYC/road_graph_nodes.gpkg ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f58b6265c66fcc66db588378050df313ab7b999de445daaefd762c89da91e2c3
3
+ size 2134016
NYC/seeds/demand_seed1.csv ADDED
The diff for this file is too large to render. See raw diff
 
NYC/seeds/demand_seed2.csv ADDED
The diff for this file is too large to render. See raw diff
 
NYC/seeds/demand_seed3.csv ADDED
The diff for this file is too large to render. See raw diff
 
NYC/taxi_zones/taxi_zones.cpg ADDED
@@ -0,0 +1 @@
 
 
1
+ UTF-8
NYC/taxi_zones/taxi_zones.dbf ADDED
Binary file (59.9 kB). View file
 
NYC/taxi_zones/taxi_zones.prj ADDED
@@ -0,0 +1 @@
 
 
1
+ PROJCS["NAD_1983_StatePlane_New_York_Long_Island_FIPS_3104_Feet",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",984250.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-74.0],PARAMETER["Standard_Parallel_1",41.0333333333333],PARAMETER["Standard_Parallel_2",40.6666666666667],PARAMETER["Latitude_Of_Origin",40.1666666666667],UNIT["US survey foot",0.304800609601219]]
NYC/taxi_zones/taxi_zones.shp ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70a5ec90bf0b6a4609b0846638e5331fee861830633cf29c4f6ed846d5d4c2ea
3
+ size 1586264
NYC/taxi_zones/taxi_zones.shx ADDED
Binary file (2.2 kB). View file
 
NYC/yellow_tripdata_2017-10.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:202444e5b9df58f4b3ef4e674330cb8f3fd8f9061476a5da25e116a42da07341
3
+ size 136742510