Generate fake MDS provider
data for testing and development.
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]
Customize data generation by appending any combination of the following to the above command:
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.
The hour of the day (24-hr format) that provider stops operations.
Overrides --start
and --end
.
Format for datetime input (to this CLI) and output (files and stdout).
Options:
unix
for Unix timestamps (default)iso8601
for ISO 8601 format<python format string>
for custom formats, seestrftime()
andstrptime()
Behavior
The number of devices to model in the generated data.
The latest event in the generated data, in --date_format
format.
Describes the portion of the fleet that remains inactive.
For example:
--inactivity 0.05
Means approximately 5 percent of the fleet remains inactive.
The hour of the day (24-hr format) that provider begins operations.
Overrides --start
and --end
.
Path to a directory (in the container) to write the resulting data file(s).
One or more propulsion_type
to use for the generated data
For example:
--propulsion_types human electric
The name of the fake mobility as a service provider.
The average speed of devices in miles per hour.
Overridden by --speed_ms
.
The average speed of devices in meters per second.
Overrides --speed_mph
.
The earliest event in the generated data, in --date_format
format.
One or more vehicle_type
to use for the generated data.
For example:
--vehicle_types scooter bike