types module
- class geourban.types.GridType(value)
Represents the supported grid types. agent: The number of unique agents is calculated. speed: The speed average of every agent is calculated. emissions: The sum of carbon dioxide emissions of every agent is calculated. This makes only sense for vehicle being cars!
Example:
from geourban.types import GridType # Returns traffic grid cells accumulating the number of unique agents grid_type = GridType.AGENT # Returns traffic grid cells accumulating the speed average or every agent grid_type = GridType.SPEED # Returns traffic grid cells accumulating the sum of carbon dioxide emissions (kg/km) of every agent # This makes only sense for vehicle being cars! grid_type = GridType.EMISSIONS
- class geourban.types.VehicleType(value)
Represents the supported vehicle types. Car, Bike and Pedestrian are possible vehicle types.
Example:
from geourban.types import VehicleType # Returns traffic grid cells from agents moving by car vehicle_type = VehicleType.CAR # Returns traffic grid cells from agents moving by bike vehicle_type = VehicleType.BIKE # Returns traffic grid cells from agents walking vehicle_type = VehicleType.PEDESTRIAN