1.1.1 • Published 6 years ago

lpdgenerator v1.1.1

Weekly downloads
4
License
ISC
Repository
-
Last release
6 years ago

lpdgenerator

Linked parking data generator, generates dumps of parking data in the form of linked data.

This generator tries to mimic the real world by creating events of interest that give people a reason to park somewhere.

Usage

First install lpdgenerator:

npm install lpdgenerator -s
const lpdgenerator = require('lpdgenerator');

var generator = new lpdgenerator();
var output_files = generator.generate();

This output_files is an array with elements of this structure:

{
	city // The city number that is described in this file
	file_time // The time that this file describes
	result // The linked data
}

There could be multiple files of one city when the files split.

And then run the program with an input file as parameter:

node myprog <input-file>

Input

There is an example input file in the root.

NameDescriptionDefault
cities:numberThe number of generated cities1
parkings:min_num_per_cityThe minimum number of parkings per city1
parkings:max_num_per_cityThe maximum number of parkings per city1
parkings:min_spacesThe minimum number of spaces per parking100
parkings:max_spacesThe maximum number of spaces per parking100
parkings:min_min_occupationThe minimum value of the standard occupation0.1
parkings:max_min_occupationThe maximum value of the standard occupation0.3
time:startThe time from which the generation starts"1970-00-00T00:00:00"
time:endThe time at which the generation stops"1970-00-00T01:00:00"
time:time_per_fileThe amount of time in seconds that will be put in one file3600
time:intervalThe interval in seconds at which the parkings get updated30
file:output_meta_dataBool to see if meta data should be put in the filefalse
file:splitIf files of cities should be split, if false will ignore "time:time_per_file"true
events:day_variablesAn object that should contain the variables for every day of the weeksee later
events:change_rateThe rate at which the parameters of the event distributions should change in minutes1

Events

The variables in "events:day_variables" will denote how events will be generated for that day.

NameDescriptionDefault
min_eventsMinimum number of events that day0
max_eventsMaximum number of events that day1
min_durationMinimum duration of the events0
max_durationMaximum duration of the events1
min_occupationMinimum occupation of an event0
max_occupationMaximum occupation of an event1
meanEvents get generated via a Normal distribution. This is the mean of that distribution12
standard_deviationThe standard diviation for the distribution1

Literature

Literature that could be of intrest: 1. Estimating Parking Spot Occupancy 2. Parking Principles 3. Park+

1.1.1

6 years ago

1.1.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago