Open estebanzimanyi opened 6 months ago
Hi @estebanzimanyi, thanks for the kind words
I'm not sure I understand though why the location fields on the trips
table should be Postgis points. My idea was to keep all of the Postgis calculations on the stations
table, since there are far fewer stations than trips, and theoretically every trip has to start and end at a station (except for dockless trips, though I haven't really focused on those...)
I've seen some apparently bad data in the raw trips data where a particular station ID might be associated mostly with a single lat/lon coordinate pair, but a small handful of trips at the same station ID have different lat/lon. In those cases, I'm inclined to go with the station ID, i.e. assume that all trips with a given station ID started at that station ID's most common lat/lon pair
Anyway, let me know if you have any particular thoughts about why the Point
column type is needed on the trips
table, and thanks
You will find next the content of a diff file that creates the attribute at table creation time, which is immediate. Doing this after the table is created takes hours (I stopped the process after 1h). P.S. I am not able to attach the diff file here, this is why it is copy/pasted below
Many thanks for this AMAZING work ! Esteban