as you will remember, you helped me organize a python script to query a travel time matrix using OTP. I'm now facing two questions that I'm sure you've faced before:
How can I set a limit to the number of connections?
How can I add to the csv output the travel cost based on transit fare ?
Here is the snippet of the python script where I believe I should add another column. I haven't found a manual for these code conventions used in OTP, but I assume it would be something like r.getFare().
# Add a new row of result in the CSV output
for r in result:
matrixCsv.addRow([ origin.getStringData('GEOID'), r.getIndividual().getStringData('GEOID'), r.getWalkDistance() , r.getTime(), r.getFare() ])
Hi Laurent,
as you will remember, you helped me organize a python script to query a travel time matrix using OTP. I'm now facing two questions that I'm sure you've faced before:
Here is the snippet of the python script where I believe I should add another column. I haven't found a manual for these code conventions used in OTP, but I assume it would be something like
r.getFare()
.