You are viewing Nextmv legacy docs. ⚡️ Go to latest docs ⚡️

Cloud

Stop Groups

You will learn the basics of using stop groups on cloud.

To assign a set of stops to the same route you have several options.

  • If you want stops to be assigned to a specific vehicle's route, use compatibility attributes. Note, stops may be left unassigned.
  • If you want stops to be assigned to a specific vehicle's route and enforce their assignment to the route, use backlogs.
  • If you want to specify the order of stops in a group, use precedence/succession (see the batched request tutorial for an example of how to do this.)
  • If you want to group stops without specifying the vehicles to assign them to or stop order, use stop groups (this page).

Stop groups

Stop groups are used with the stop_groups attribute which defines a list of groups. Each group must consist of at least 2 stops, given by their IDs.

{
  "defaults": {
    "vehicles": {
      "shift_start": "2021-08-24T09:00:00-06:00",
      "speed": 10
    }
  },
  "vehicles": [
    {
      "id": "vehicle-1"
    },
    {
      "id": "vehicle-2"
    }
  ],
  "stops": [
    {
      "id": "location-1",
      "position": {
        "lon": 7.6129,
        "lat": 51.957
      }
    },
    {
      "id": "location-2",
      "position": {
        "lon": 7.6166,
        "lat": 51.9635
      }
    },
    {
      "id": "location-3",
      "position": {
        "lon": 7.6258,
        "lat": 51.9624
      }
    },
    {
      "id": "location-4",
      "position": {
        "lon": 7.6386,
        "lat": 51.9449
      }
    },
    {
      "id": "location-5",
      "position": {
        "lon": 7.5896,
        "lat": 51.9486
      }
    },
    {
      "id": "location-6",
      "position": {
        "lon": 7.5965,
        "lat": 51.9455
      }
    },
    {
      "id": "location-7",
      "position": {
        "lon": 7.5921,
        "lat": 51.9573
      }
    },
    {
      "id": "location-8",
      "position": {
        "lon": 7.6048,
        "lat": 51.9492
      }
    }
  ],
  "stop_groups": [
    [
      "location-1",
      "location-3"
    ],
    [
      "location-2",
      "location-4",
      "location-7"
    ]
  ]
}
Copy

Page last updated

Go to on-page nav menu