a-b-street / docs

Technical and user documentation for A/B Street
Apache License 2.0
12 stars 7 forks source link

Make json example more minimal #17

Closed Robinlovelace closed 3 years ago

Robinlovelace commented 3 years ago

The current example in the docs represents a trip spanning 100+ miles it seems!

image

Can we have a more minimal example, that fits in the Montlake case study area, for the docs please?

https://a-b-street.github.io/docs/tech/dev/formats/scenarios.html

Robinlovelace commented 3 years ago

Great. I'm going to try to import this slightly less minimal example with 2 agents:

{
  "scenario_name": "monday",
  "people": [
    {
      "trips": [
        {
          "departure": 10800.0,
          "origin": {
            "Position": {
              "longitude": -122.303723,
              "latitude": 47.6372834
            }
          },
          "destination": {
            "Position": {
              "longitude": -122.3075948,
              "latitude": 47.6394773
        }
          },
          "mode": "Drive",
          "purpose": "Shopping"
        },
        {
          "departure": 14400.0,
          "origin": {
            "Position": {
              "longitude": -122.3075948,
              "latitude": 47.6394773
        }
          },
          "destination": {
            "Position": {
             "longitude": -122.3190500,
              "latitude": 47.6278600
        }
          },
          "mode": "Walk",
          "purpose": "Leisure"
        }
      ]
    },
    {
      "trips": [
        {
          "departure": 10900.0,
          "origin": {
            "Position": {
              "longitude": -122.303723,
              "latitude": 47.6382834
            }
          },
          "destination": {
            "Position": {
              "longitude": -122.3075948,
              "latitude": 47.6404773
        }
          },
          "mode": "Bike",
          "purpose": "Shopping"
        },
        {
          "departure": 14500.0,
          "origin": {
            "Position": {
              "longitude": -122.3075948,
              "latitude": 47.6404773
        }
          },
          "destination": {
            "Position": {
             "longitude": -122.3190500,
              "latitude": 47.6288600
        }
          },
          "mode": "Drive",
          "purpose": "Leisure"
        }
      ]
    }
  ]
}

image

Robinlovelace commented 3 years ago

Context: https://github.com/a-b-street/abstr/issues/23