a-b-street / abstreet

Transportation planning and traffic simulation software for creating cities friendlier to walking, biking, and public transit
https://a-b-street.github.io/docs/
Apache License 2.0
7.7k stars 343 forks source link

UI to bulk extract individual agents' parameters: speed, travel time, delay, origin, destination, etc. #720

Open leminhkieu opened 3 years ago

leminhkieu commented 3 years ago

I am just wondering if there's an easy way to extract the interesting parameters/variables for each agent:

It looks a bit like a wish list but yeah they are gonna be super helpful for traffic engineers

dabreegster commented 3 years ago

Sorry for the delay, I've been out of town.

Origin & Destination: Where are they planning to travel to, and from where

This is input to the simulation. Any travel demand model we hook up or auto-generate from census data and land use will be expressed as a "scenario." https://a-b-street.github.io/docs/tech/dev/formats/scenarios.html is the format.

How much time it currently takes them, and how much delay are they experiencing due to the traffic

This is available per trip, yes. See #549 for some details about how "delay" is defined. I think https://a-b-street.github.io/docs/tech/dev/api.html should expose most of this already; if anything's missing, we probably have the raw data for it and can add another method.

Instantaneous speed (spot speed) of the agent

Not really possible, because A/B Street doesn't really model speed at all. A vehicle goes as fast as possible at any moment, with no smooth acceleration. This is an artifact of https://a-b-street.github.io/docs/tech/trafficsim/discrete_event.html

May be route choice probability as well?

Route choice is totally deterministic right now