$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "requests": [
< "signal timing: phase 1: NB 450 vph 2 lanes, SB 380 vph 2 lanes; phase 2: EB 300 vph, WB 260 vph; phase 3: NBL 180 vph, SBL 150 vph; 45 mph, 70 ft intersection, 60 ft crosswalk",
< "yellow and all-red for 45 mph, 3% downgrade, 80 ft intersection",
< "critical flow ratios 0.25, 0.20, 0.15; lost time 12 s total",
< "check: cycle 90 s, greens 40 30; NS 600 vph 2 lanes; EW 400 vph 1 lane, PHF 0.92",
< "intersection: phase A: main street 900 vph 2 lanes; phase B: side street 350 vph, 50 km/h, 20 m wide, crosswalk 14 m",
< {
< "type": "timing",
< "phases": [
< {
< "name": "North-south",
< "movements": [
< {
< "name": "NB",
< "volume": 620,
< "lanes": 2
< },
< {
< "name": "SB",
< "volume": 540,
< "lanes": 2
< }
< ]
< },
< {
< "name": "East-west",
< "movements": [
< {
< "name": "EB",
< "volume": 410,
< "lanes": 1
< },
< {
< "name": "WB",
< "volume": 380,
< "lanes": 1
< }
< ]
< }
< ],
< "saturationFlow": 1850,
< "speed": "40 mph",
< "width": "60 ft",
< "maxCycle": 120
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/jumblemog~traffic-signal-calculator/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'