Pre-release. Until the official launch, content may change, including published files.
Skip to content

Source: https://datamodels.jp/en/models/fieldservice/RoutePlan/ · Text CC BY 4.0

RoutePlan draft ​

The plan of the work of one day in one area: a route per vehicle (the requests in order, with arrival and departure times) and the requests that did not fit. It keeps the result of route optimisation (VRP) software (routes and unassigned) as it is. What was actually driven can be recorded with Smart Data Models FleetVehicleOperation.

Kindentity
Type IRIhttps://datamodels.jp/ns/fieldservice/RoutePlan
@contexthttps://datamodels.jp/context/fieldservice/v1.jsonld
JSON Schema/schema/fieldservice/RoutePlan/v1.json
DownloadCSV template Table Schema Structured output for AI PostgreSQL / PostGIS table About these files
LicenceCC0 1.0: the files (@context, JSON Schema, examples) can be used without conditions

These @context and JSON Schema URLs (version aliases) always point to the latest compatible version.
For URLs that never change, see Versions. More in URLs and versions.

Types and relationships ​

Types and their relationshipsprovidervehiclesserviceRequestsroutePlanRoutePlanRoute planServiceRequestService request3 more links →ServiceVehicleService vehicle5 more links →person,organisation or team

Relationship (attribute name)N more links: continued on that type's page

Attributes ​

AttributeDescriptionValue
providerThe organisation that does the work (a municipality, a contractor)
https://schema.org/provider
Relationship → person, organisation or team
localGovernmentCodeLocal government code (6 digits) of the municipality the plan is for
https://datamodels.jp/ns/common/localGovernmentCode
Property, string
areaThe planning area, as the provider names it
https://datamodels.jp/ns/fieldservice/area
Property, string
planDate*The day the plan is for
https://datamodels.jp/ns/fieldservice/planDate
Property, string (date)
planStatusState: draft, confirmed, in-progress, completed, cancelled. When no value fits, leave it out and write statusLabel
https://datamodels.jp/ns/fieldservice/planStatus
Property, string: draft | confirmed | in-progress | completed | cancelled
statusLabelThe source system's own status name, unchanged. Required when the status is left out
https://datamodels.jp/ns/task/statusLabel
Property, string
plannerThe software that made the plan, with its version (for example VROOM 1.14)
https://datamodels.jp/ns/fieldservice/planner
Property, string
computedAtWhen the plan was computed
https://datamodels.jp/ns/fieldservice/computedAt
Property, string (date-time)
vehiclesThe vehicles of the plan: ServiceVehicles. Always an array in the key-values form, even with one
https://datamodels.jp/ns/fieldservice/vehicles
Relationship → ServiceVehicle (multiple)
serviceRequestsThe requests planned, those left unassigned included: ServiceRequests. Always an array in the key-values form, even with one
https://datamodels.jp/ns/fieldservice/serviceRequests
Relationship → ServiceRequest (multiple)
routes*
personal data
One route per vehicle: the vehicle, crew, start and end time, distance (metres), duration, load, and its stops in order (start, job, break, end); a job stop names its request, with its position and arrival and departure times. The positions repeat the requests' locations
https://datamodels.jp/ns/fieldservice/routes
Property, array
unassignedThe requests that did not fit (ServiceRequest ids); an empty array when all did
https://datamodels.jp/ns/fieldservice/unassigned
Property, array
totalDistanceThe distance of all routes together, in metres
https://datamodels.jp/ns/fieldservice/totalDistance
Property, number, ≥ 0
totalDurationThe time of all routes together, as an ISO 8601 duration
https://datamodels.jp/ns/fieldservice/totalDuration
Property, string
sourceWhere the data comes from (a URL, for example)
https://smart-data-models.github.io/data-models/terms.jsonld#/definitions/source
Property, string

* required

"Personal data" marks attributes that often hold personal data. It is a hint: other attributes can hold it too, and whoever stores the data decides how to protect it (Personal data).

Using this model ​

  • How to validate data and send it to a broker: Using the models.

  • To add attributes of your own to this model, the extension builder writes the @context and JSON Schema.

  • Extended this model? If you publish it on a site made with the toolkit, it shows on this page once your site is on the list of sites. Without a site, list your extension so others can reuse your names (how it works).

  • Files that particular brokers and tools can load as they are, made from this model: Adapters

  • The Link header, for sending data without @context in the body:

    http
    Link: <https://datamodels.jp/context/fieldservice/v1.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"

Example ​

Most examples are a fictional scenario (heavy rain in Chiyoda, Tokyo). Place names and codes are real; the events, people and teams are invented. Some examples copy a real row of a published list instead; their notes name the source. See writing examples.

json
{
  "id": "urn:ngsi-ld:RoutePlan:131016:kanda:2026-07-16",
  "type": "RoutePlan",
  "provider": "urn:ngsi-ld:Organization:131016",
  "localGovernmentCode": "131016",
  "area": "kanda",
  "planDate": "2026-07-16",
  "planStatus": "confirmed",
  "planner": "VROOM 1.14",
  "computedAt": "2026-07-15T17:05:00+09:00",
  "vehicles": [
    "urn:ngsi-ld:ServiceVehicle:131016:truck-02"
  ],
  "serviceRequests": [
    "urn:ngsi-ld:ServiceRequest:131016-2026-0716-0042"
  ],
  "routes": [
    {
      "vehicle": "urn:ngsi-ld:ServiceVehicle:131016:truck-02",
      "crew": "urn:ngsi-ld:Crew:131016:field-team-a",
      "start": "2026-07-16T08:00:00+09:00",
      "end": "2026-07-16T08:46:00+09:00",
      "distance": 5400,
      "duration": "PT46M",
      "load": [
        3
      ],
      "stops": [
        {
          "kind": "start",
          "position": [
            139.75354,
            35.693947
          ],
          "departure": "2026-07-16T08:00:00+09:00"
        },
        {
          "kind": "job",
          "request": "urn:ngsi-ld:ServiceRequest:131016-2026-0716-0042",
          "position": [
            139.7703,
            35.6956
          ],
          "arrival": "2026-07-16T08:15:00+09:00",
          "departure": "2026-07-16T08:23:00+09:00",
          "load": [
            3
          ]
        },
        {
          "kind": "end",
          "position": [
            139.75354,
            35.693947
          ],
          "arrival": "2026-07-16T08:46:00+09:00"
        }
      ]
    }
  ],
  "unassigned": [],
  "totalDistance": 5400,
  "totalDuration": "PT46M"
}

Files: example.json · example-normalized.jsonld · Open in the JSON-LD Playground: see the full IRI behind every attribute (expanded form).

Something missing or wrong?

Open an issue, or propose new attributes or models with the proposal form. How it works: Contributing. The source files (notes, mapping tables) are on GitHub.

Notes ​

  • Built on the output of VROOM (routes, steps, unassigned, summary): the kinds of stops (start, job, break, end), arrival and departure, distance and duration mean what they mean there. Times are date-times, durations ISO 8601 durations, and distances metres.
  • The route optimisation fields follow the input and output of VROOM (https://github.com/VROOM-Project/vroom/blob/master/docs/API.md, BSD-2-Clause), whose concepts (job, vehicle, time window, amount and capacity, skills, service time) other VRP software such as jsprit and OR-Tools shares. Times are date-times (ISO 8601); converting them to the seconds VROOM uses is left to the client.
  • Upstream considered (2026-11-17). Smart Data Models FleetVehicleOperation (dataModel.Transportation) records one run of one vehicle, with its actual start and end; it has no plan (routes not yet driven, requests that did not fit), so it is not used as the type. What was driven can be recorded with FleetVehicleOperation. GTFS trips and stop_times (dataModel.UrbanMobility) are fixed timetabled runs, not an order of requests that changes every day.
  • routes is one Property, so the vehicle and request ids inside it are not Relationships. To follow links in a broker, vehicles and serviceRequests are kept apart as multi-valued Relationships (always arrays in the key-values form, one instance per target with a datasetId in the normalized form). ServiceRequest's routePlan is the link the other way. The stop positions in routes repeat the requests' locations, so routes carries x-personal-data too.
  • Real data: as with ServiceVehicle, the only data so far is the routes a demo computes. The model is listed as a draft until real data exists (decided 2026-11-23, #326).
  • Draft. The subject name fieldservice and the namespace https://datamodels.jp/ns/fieldservice/ were decided on 2026-11-23 (#326).