Skip to content

Latest commit

 

History

History
 
 

fake

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

fake

Generate fake MDS provider data for testing and development.

Running

Run the container to generate randomized data. The data is persisted in a data/ subdirectory (even after the container is torn down), via a Docker volume.

This command first ensures the image is up to date locally, then runs the data generator. The container is torn down after the run completes.

Run this command from the parent directory, where the docker-compose.yml file lives:

fake/bin/run.sh [OPTIONS]

[OPTIONS]

Customize data generation by appending any combination of the following to the above command:

--boundary BOUNDARY

Path (within the container) or URL to a .geojson file with geographic bounds for the generated data.

This parameter must be provided if no environment variable has been configured:

MDS_BOUNDARY=https://opendata.arcgis.com/datasets/bcc6c6245c5f46b68e043f6179bab153_3.geojson

In either case (parameter or environment variable), it should be the path or URL to a .geojson file in 4326, containing a FeatureCollection of (potentially overlapping) Polygons. See the file at the above URL for an example.

The generation process will use the unioned area of these Polygons as a reference.

--close CLOSE

The hour of the day (24-hr format) that provider stops operations.

Overrides --start and --end.

--date_format FORMAT

Format for datetime input (to this CLI) and output (files and stdout).

Options:

--devices DEVICES

The number of devices to model in the generated data.

--end END

The latest event in the generated data, in --date_format format.

--inactivity INACTIVITY

Describes the portion of the fleet that remains inactive.

For example:

--inactivity 0.05

Means approximately 5 percent of the fleet remains inactive.

--open OPEN

The hour of the day (24-hr format) that provider begins operations.

Overrides --start and --end.

--output OUTPUT

Path to a directory (in the container) to write the resulting data file(s).

--propulsion_types PROPULSION_TYPE [PROPULSION_TYPE ...]

One or more propulsion_type to use for the generated data

For example:

--propulsion_types human electric

--provider PROVIDER

The name of the fake mobility as a service provider.

--speed_mph SPEED

The average speed of devices in miles per hour.

Overridden by --speed_ms.

--speed_ms SPEED

The average speed of devices in meters per second.

Overrides --speed_mph.

--start START

The earliest event in the generated data, in --date_format format.

--vehicle_types VEHICLE_TYPE [VEHICLE_TYPE ...]

One or more vehicle_type to use for the generated data.

For example:

--vehicle_types scooter bike