{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Solvice Docs","description":"Solvice API documentation for cloud-native optimization solvers. Build powerful route optimization, workforce scheduling, and resource allocation solutions with our VRP, shift planning, and clustering APIs.","colors":{"primary":"#0f62fe","light":"#0f62fe","dark":"#0f62fe"},"logo":{"light":"https://mintcdn.com/solvice-68592f22/1KJ_2AIotizI1Bng/logo/light.svg?fit=max\u0026auto=format\u0026n=1KJ_2AIotizI1Bng\u0026q=85\u0026s=e93560fee320491613107060a1afc094","dark":"https://mintcdn.com/solvice-68592f22/1KJ_2AIotizI1Bng/logo/dark.svg?fit=max\u0026auto=format\u0026n=1KJ_2AIotizI1Bng\u0026q=85\u0026s=1baeb15bf7826f571444a1d6a36fb31a"},"favicon":"https://mintcdn.com/solvice-68592f22/noMIHjSWP2Tg_tTz/favicon.png?fit=max\u0026auto=format\u0026n=noMIHjSWP2Tg_tTz\u0026q=85\u0026s=beff99df9d507e0794596b5437be687f","api":{"mdx":{"auth":{"method":"key","name":"Authorization"}}},"navbar":{"links":[{"href":"mailto:support@solvice.io","label":"Support"},{"href":"https://www.solvice.io","label":"Solvice website"}],"primary":{"type":"button","label":"Dashboard","href":"https://platform.solvice.io"}},"footer":{"socials":{"website":"https://www.solvice.io","x":"https://x.com/solvice_io","github":"https://github.com/solvice","linkedin":"https://linkedin.com/company/solvice"}},"seo":{"metatags":{"og:image":"link to your default meta tag image","charset":"UTF-8","viewport":"width=device-width, initial-scale=1.0","description":"Solvice API documentation for cloud-native optimization solvers. Build powerful route optimization, workforce scheduling, and resource allocation solutions with our VRP, shift planning, and clustering APIs.","keywords":"Route Optimization, Route API, Optimization API, Workforce Scheduling, Solvice","author":"Christophe Van Huele","robots":"index, follow","googlebot":"index, follow","google":"notranslate","google-site-verification":"verification_token"},"indexing":"all"},"integrations":{"ga4":{"measurementId":"G-2L8R78J6J9"}},"banner":{"content":"Solvice VRP API v3 is in beta. General availability (GA) is planned for 1 January 2027.","dismissible":false},"contextual":{"options":["claude","copy"],"display":"header"},"metadata":{"timestamp":true},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Dashboard","icon":"book-open-cover","href":"https://platform.solvice.io"},{"anchor":"Website","icon":"planet-ringed","href":"https://www.solvice.io"},{"anchor":"Blog","icon":"newspaper","href":"https://www.solvice.io/blog/news"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"solvice-68592f22","hasAudioNarration":false,"actualSubdomain":"solvice-68592f22","customDomains":["docs.solvice.io"],"gitSource":{"type":"gitlab","owner":"solvice","repo":"solver2","projectId":44919668,"deployBranch":"main","contentDirectory":"mintlify","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"REMOVE_BRANDING":{"status":"DISABLED"}},"buildId":"6b0eced522f8194a1eecc98b","clientVersion":"0.0.4416","searchFilterCounts":[{"language":"default","tag":"Guides","count":99},{"language":"default","tag":"VRP API","count":53},{"language":"default","tag":"Routing API","count":42},{"language":"default","tag":"Features","count":36},{"language":"default","tag":"API Reference","count":26},{"language":"default","tag":"Fill API","count":20},{"language":"default","tag":"Examples","count":13},{"language":"default","tag":"Platform","count":10},{"language":"default","tag":"Concepts","count":9},{"language":"default","tag":"Info","count":6}]},"assistantConfig":{"deflection":{"enabled":true,"email":"support@solvice.io","showHelpButton":true}},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"guides/vrp/schemas/solution","slug":"/guides/vrp/schemas/solution","pageMetadata":{"title":"Solution","openapi-schema":"OnRouteResponse","structuredData":{"@type":"TechArticle","@id":"https://docs.solvice.io/guides/vrp/schemas/solution#article","datePublished":"2023-07-19","author":{"@id":"https://docs.solvice.io/#organization"}},"description":null,"href":"/guides/vrp/schemas/solution"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The solution endpoint returns the solution of the solve job. It contains the score, the trips and the violations.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Name`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Id of the solve job`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`status`})}),_jsx(_components.td,{children:`String`}),_jsxs(_components.td,{children:[`Status of the Response (`,_jsx(_components.code,{children:`QUEUED`}),`, `,_jsx(_components.code,{children:`SOLVING`}),`, `,_jsx(_components.code,{children:`SOLVED`}),` or `,_jsx(_components.code,{children:`ERROR`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`score`})}),_jsxs(_components.td,{children:[`[`,_jsx(_components.a,{href:`#schema-score-one-of-0`,children:`Score`}),`]`]}),_jsx(_components.td,{children:`Score tells you how good a solution is.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trips`})}),_jsxs(_components.td,{children:[`[`,_jsx(_components.a,{href:`#schema-trips`,children:`Trip`}),`]`]}),_jsx(_components.td,{children:`Actual solution: trips per workingtime/day and per resource`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`totalWaitTimeInSeconds`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Wait time for all resources`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`totalTravelTimeInSeconds`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Travel time for all resources`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`totalTravelDistanceInMeters`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Travel distance for all resources`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`totalServiceTimeInSeconds`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Service time for all resources`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`unserved`})}),_jsx(_components.td,{children:`[string]`}),_jsxs(_components.td,{children:[`When `,_jsx(_components.code,{children:`options.partialPlanning`}),` is set, then this might result in a list of jobs that are unserved and not in the planning.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`unservedReasons`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{children:`Map of job names to reasons why they could not be served`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`violations`})}),_jsxs(_components.td,{children:[`[`,_jsx(_components.a,{href:`#schema-violations-one-of-0`,children:`Violation`}),`]`]}),_jsx(_components.td,{children:`A constraint that is broken in the current solution with a certain value (penalty) and a certain level (hard, soft, medium).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`workloadFairness`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`How fair a certain workload is divided over the resources (0-1, where 1 is perfectly fair).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`occupancy`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`How full this schedule is in terms of work time (incl travel) over capacity. Eg 0.80 for 80%`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`messages`})}),_jsx(_components.td,{children:`[string]`}),_jsx(_components.td,{children:`Events and warnings generated during the solver execution`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`suggestions`})}),_jsxs(_components.td,{children:[`[`,_jsx(_components.a,{href:`#schema-suggestions-one-of-0`,children:`Suggestion`}),`]`]}),_jsx(_components.td,{children:`List of suggested assignments returned by suggest api call`})]})]})]}),`\n`,_jsx(_components.p,{children:`Example:`}),`\n`,_jsx(CodeBlock,{filename:`solution`,expandable:`true`,numberOfLines:`56`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`56`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0000-00000-00000-0000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"score\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"hardScore\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mediumScore\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"softScore\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`-6924`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"feasible\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"trips\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"visits\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"arrival\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-01-13T08:44:54\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"job\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"JOB-6\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"location\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"50.89633806889935;4.45161298168845\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"arrival\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-01-13T10:21:25\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"job\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"JOB-5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"location\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"50.94837893617721;4.001604640663746\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"arrival\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-01-13T11:55:17\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"job\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"JOB-10\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"location\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"50.78868282668716;4.167956383823208\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resource\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"R-1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-01-13\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"departureTime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-01-13T08:00:00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"waitTime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"travelTime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`6917`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"workTime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`17717`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"serviceTime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10800`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalTravelTimeInSeconds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`6917`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalServiceTimeInSeconds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10800`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"workloadFairness\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"unserved\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"JOB-1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"JOB-2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"JOB-3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"JOB-4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"JOB-7\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"JOB-8\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"JOB-9\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SOLVED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"occupancy\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.65`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"messages\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Solution found in 2.5 seconds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"unservedReasons\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"JOB-1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"DATE_TIME_WINDOW_CONFLICT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"JOB-2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"TAG_HARD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Solution","openapi-schema":"OnRouteResponse","structuredData":{"@type":"TechArticle","@id":"https://docs.solvice.io/guides/vrp/schemas/solution#article","datePublished":"2023-07-19","author":{"@id":"https://docs.solvice.io/#organization"}},"description":null,"href":"/guides/vrp/schemas/solution"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"schemaData":{"type":"object","required":["trips"],"examples":[{"id":"0000-00000-00000-0000","status":"SOLVED","score":{"hard":0,"soft":-12345,"feasible":true},"trips":[{"resource":"vehicle-1","date":"2023-01-13T00:00:00Z","departureTime":"2023-01-13T08:00:00Z","visits":[{"job":"Job-1","arrival":"2023-01-13T08:30:00Z","serviceTime":600,"travelTime":1800,"distance":15000,"location":{"latitude":51.0543,"longitude":3.7174},"waitTime":0}],"waitTime":0,"travelTime":3600,"distance":30000,"workTime":4200,"serviceTime":600,"occupancy":0.47}],"totalWaitTimeInSeconds":0,"totalTravelTimeInSeconds":3600,"totalTravelDistanceInMeters":30000,"totalServiceTimeInSeconds":600,"occupancy":0.47,"workloadFairness":0.95,"unserved":[],"suggestions":[],"messages":["Solution found in 2.5 seconds"]}],"description":"OnRoute response from solve","properties":{"trips":{"type":"array","items":{"type":"object","required":["visits"],"examples":[{"resource":"vehicle-1","date":"2023-01-13T00:00:00Z","departureTime":"2023-01-13T08:00:00Z","visits":[{"job":"Job-1","arrival":"2023-01-13T08:30:00Z","serviceTime":600,"travelTime":1800,"distance":15000,"location":{"latitude":51.0543,"longitude":3.7174},"waitTime":0},{"job":"Job-2","arrival":"2023-01-13T09:45:00Z","serviceTime":900,"travelTime":900,"distance":8000,"location":{"latitude":51.05,"longitude":3.72},"waitTime":0}],"waitTime":0,"travelTime":2700,"distance":23000,"workTime":4200,"serviceTime":1500,"polyline":"_p~iF~ps|U_ulLnnqC_mqNvxq`@","occupancy":0.47}],"description":"Trip for a resource. Holds a list of visits for a resource and a date.","properties":{"visits":{"type":"array","items":{"type":"object","examples":[{"job":"Job-1","arrival":"2023-01-13T08:30:00Z","serviceTime":600,"travelTime":1800,"distance":15000,"activity":"service","location":{"latitude":51.0543,"longitude":3.7174},"latlng":[51.0543,3.7174],"breakTime":0,"waitTime":0}],"description":"Single visit for a resource. Holds information of the actual arrival time, the job, the location and the latlng.","properties":{"arrival":{"oneOf":[{"type":"string","description":"Actual arrival date-time","format":"date-time","example":"2022-03-10T12:15:50-04:00","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].arrival.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].arrival.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].arrival","typeLabel":"string\u003cdate-time> | null"},"serviceTime":{"oneOf":[{"type":"integer","description":"Total service time of that job in seconds","format":"int64","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].serviceTime.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"Total service time of that job in seconds","format":"int64","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].serviceTime.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].serviceTime","typeLabel":"integer\u003cint64> | null"},"travelTime":{"oneOf":[{"type":"integer","description":"Total travel time to that job in seconds","format":"int64","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].travelTime.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"Total travel time to that job in seconds","format":"int64","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].travelTime.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].travelTime","typeLabel":"integer\u003cint64> | null"},"distance":{"oneOf":[{"type":"integer","description":"Total travel distance to that job in meters","format":"int64","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].distance.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"Total travel distance to that job in meters","format":"int64","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].distance.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].distance","typeLabel":"integer\u003cint64> | null"},"job":{"oneOf":[{"type":"string","description":"Job","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].job.oneOf.0","typeLabel":"string"},{"type":"null","description":"Job","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].job.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].job","typeLabel":"string | null"},"activity":{"oneOf":[{"type":"string","description":"The activity to ","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].activity.oneOf.0","typeLabel":"string"},{"type":"null","description":"The activity to ","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].activity.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].activity","typeLabel":"string | null"},"location":{"oneOf":[{"type":"object","description":"Geographical Location in WGS-84","properties":{"latitude":{"type":"number","format":"double","examples":[50.0987624],"description":"Latitude","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].location.oneOf.0.latitude","typeLabel":"number\u003cdouble>"},"longitude":{"type":"number","format":"double","examples":[4.93849204],"description":"Longitude","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].location.oneOf.0.longitude","typeLabel":"number\u003cdouble>"},"h3Index":{"oneOf":[{"type":"integer","description":"H3 hexagon index at resolution 9 (optional)","format":"int64","example":617700169958293500,"uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].location.oneOf.0.h3Index.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"H3 hexagon index at resolution 9 (optional)","format":"int64","example":617700169958293500,"uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].location.oneOf.0.h3Index.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].location.oneOf.0.h3Index","typeLabel":"integer\u003cint64> | null"}},"uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].location.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].location.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].location","typeLabel":"object | null"},"latlon":{"oneOf":[{"type":"array","items":{"type":"number","format":"double","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].latlon.oneOf.0.items.[INDEX]","typeLabel":"number\u003cdouble>"},"description":"Snapped Latlng. When we get your lat/lon in input, we snap it on our map to a valid point in the graph. We return all snapped points.","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].latlon.oneOf.0","typeLabel":"number\u003cdouble>[]"},{"type":"null","description":"Snapped Latlng. When we get your lat/lon in input, we snap it on our map to a valid point in the graph. We return all snapped points.","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].latlon.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].latlon","typeLabel":"number\u003cdouble>[] | null"},"snappedLocation":{"oneOf":[{"type":"object","description":"Geographical Location in WGS-84","properties":{"latitude":{"type":"number","format":"double","examples":[50.0987624],"description":"Latitude","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].snappedLocation.oneOf.0.latitude","typeLabel":"number\u003cdouble>"},"longitude":{"type":"number","format":"double","examples":[4.93849204],"description":"Longitude","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].snappedLocation.oneOf.0.longitude","typeLabel":"number\u003cdouble>"},"h3Index":{"oneOf":[{"type":"integer","description":"H3 hexagon index at resolution 9 (optional)","format":"int64","example":617700169958293500,"uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].snappedLocation.oneOf.0.h3Index.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"H3 hexagon index at resolution 9 (optional)","format":"int64","example":617700169958293500,"uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].snappedLocation.oneOf.0.h3Index.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].snappedLocation.oneOf.0.h3Index","typeLabel":"integer\u003cint64> | null"}},"uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].snappedLocation.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].snappedLocation.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].snappedLocation","typeLabel":"object | null"},"breakTime":{"oneOf":[{"type":"integer","description":"Break time in seconds","format":"int32","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].breakTime.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","description":"Break time in seconds","format":"int32","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].breakTime.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].breakTime","typeLabel":"integer\u003cint32> | null"},"waitTime":{"oneOf":[{"type":"integer","description":"Wait time in seconds","format":"int64","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].waitTime.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"Wait time in seconds","format":"int64","uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].waitTime.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].visits.items.[INDEX].waitTime","typeLabel":"integer\u003cint64> | null"}},"uniqueKey":"trips.items.[INDEX].visits.items.[INDEX]","typeLabel":"object"},"description":"List of visits for a resource and a date.","isRequired":true,"uniqueKey":"trips.items.[INDEX].visits","typeLabel":"object[]"},"resource":{"oneOf":[{"type":"string","description":"Resource","example":"resource-1","uniqueKey":"trips.items.[INDEX].resource.oneOf.0","typeLabel":"string"},{"type":"null","description":"Resource","example":"resource-1","uniqueKey":"trips.items.[INDEX].resource.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].resource","typeLabel":"string | null"},"date":{"oneOf":[{"type":"string","description":"Date","format":"ISO8601 date string","example":"2021-01-01","uniqueKey":"trips.items.[INDEX].date.oneOf.0","typeLabel":"string\u003cISO8601 date string>"},{"type":"null","description":"Date","format":"ISO8601 date string","example":"2021-01-01","uniqueKey":"trips.items.[INDEX].date.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].date","typeLabel":"string\u003cISO8601 date string> | null"},"departureTime":{"oneOf":[{"type":"string","description":"Departure date-time","format":"ISO8601 datetime string","example":"2021-01-01T08:00:00","uniqueKey":"trips.items.[INDEX].departureTime.oneOf.0","typeLabel":"string\u003cISO8601 datetime string>"},{"type":"null","description":"Departure date-time","format":"ISO8601 datetime string","example":"2021-01-01T08:00:00","uniqueKey":"trips.items.[INDEX].departureTime.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].departureTime","typeLabel":"string\u003cISO8601 datetime string> | null"},"waitTime":{"oneOf":[{"type":"integer","description":"Wait time in seconds","format":"int64","example":0,"uniqueKey":"trips.items.[INDEX].waitTime.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"Wait time in seconds","format":"int64","example":0,"uniqueKey":"trips.items.[INDEX].waitTime.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].waitTime","typeLabel":"integer\u003cint64> | null"},"travelTime":{"oneOf":[{"type":"integer","description":"Travel time in seconds","format":"int64","example":123,"uniqueKey":"trips.items.[INDEX].travelTime.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"Travel time in seconds","format":"int64","example":123,"uniqueKey":"trips.items.[INDEX].travelTime.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].travelTime","typeLabel":"integer\u003cint64> | null"},"workTime":{"oneOf":[{"type":"integer","description":"Work time in seconds","format":"int64","example":123,"uniqueKey":"trips.items.[INDEX].workTime.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"Work time in seconds","format":"int64","example":123,"uniqueKey":"trips.items.[INDEX].workTime.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].workTime","typeLabel":"integer\u003cint64> | null"},"serviceTime":{"oneOf":[{"type":"integer","description":"Service time in seconds","format":"int64","example":123,"uniqueKey":"trips.items.[INDEX].serviceTime.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"Service time in seconds","format":"int64","example":123,"uniqueKey":"trips.items.[INDEX].serviceTime.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].serviceTime","typeLabel":"integer\u003cint64> | null"},"polyline":{"oneOf":[{"type":"string","description":"Polyline of the trip","example":"polyline","uniqueKey":"trips.items.[INDEX].polyline.oneOf.0","typeLabel":"string"},{"type":"null","description":"Polyline of the trip","example":"polyline","uniqueKey":"trips.items.[INDEX].polyline.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].polyline","typeLabel":"string | null"},"occupancy":{"oneOf":[{"type":"number","description":"How full this trip is in terms of work time over capacity. Eg 80%","format":"double","example":0.8,"uniqueKey":"trips.items.[INDEX].occupancy.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","description":"How full this trip is in terms of work time over capacity. Eg 80%","format":"double","example":0.8,"uniqueKey":"trips.items.[INDEX].occupancy.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].occupancy","typeLabel":"number\u003cdouble> | null"},"start":{"oneOf":[{"type":"object","description":"Single visit for a resource. Holds information of the actual arrival time, the job, the location and the latlng.","example":{"job":"Job-1","arrival":"2023-01-13T08:30:00Z","serviceTime":600,"travelTime":1800,"distance":15000,"activity":"service","location":{"latitude":51.0543,"longitude":3.7174},"breakTime":0,"waitTime":0},"properties":{"arrival":{"oneOf":[{"type":"string","description":"Actual arrival date-time","format":"date-time","example":"2022-03-10T12:15:50-04:00","uniqueKey":"trips.items.[INDEX].start.oneOf.0.arrival.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","uniqueKey":"trips.items.[INDEX].start.oneOf.0.arrival.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].start.oneOf.0.arrival","typeLabel":"string\u003cdate-time> | null"},"serviceTime":{"oneOf":[{"type":"integer","description":"Total service time of that job in seconds","format":"int64","uniqueKey":"trips.items.[INDEX].start.oneOf.0.serviceTime.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"Total service time of that job in seconds","format":"int64","uniqueKey":"trips.items.[INDEX].start.oneOf.0.serviceTime.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].start.oneOf.0.serviceTime","typeLabel":"integer\u003cint64> | null"},"travelTime":{"oneOf":[{"type":"integer","description":"Total travel time to that job in seconds","format":"int64","uniqueKey":"trips.items.[INDEX].start.oneOf.0.travelTime.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"Total travel time to that job in seconds","format":"int64","uniqueKey":"trips.items.[INDEX].start.oneOf.0.travelTime.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].start.oneOf.0.travelTime","typeLabel":"integer\u003cint64> | null"},"distance":{"oneOf":[{"type":"integer","description":"Total travel distance to that job in meters","format":"int64","uniqueKey":"trips.items.[INDEX].start.oneOf.0.distance.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"Total travel distance to that job in meters","format":"int64","uniqueKey":"trips.items.[INDEX].start.oneOf.0.distance.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].start.oneOf.0.distance","typeLabel":"integer\u003cint64> | null"},"job":{"oneOf":[{"type":"string","description":"Job","uniqueKey":"trips.items.[INDEX].start.oneOf.0.job.oneOf.0","typeLabel":"string"},{"type":"null","description":"Job","uniqueKey":"trips.items.[INDEX].start.oneOf.0.job.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].start.oneOf.0.job","typeLabel":"string | null"},"activity":{"oneOf":[{"type":"string","description":"The activity to ","uniqueKey":"trips.items.[INDEX].start.oneOf.0.activity.oneOf.0","typeLabel":"string"},{"type":"null","description":"The activity to ","uniqueKey":"trips.items.[INDEX].start.oneOf.0.activity.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].start.oneOf.0.activity","typeLabel":"string | null"},"location":{"oneOf":[{"type":"object","description":"Geographical Location in WGS-84","properties":{"latitude":{"type":"number","format":"double","examples":[50.0987624],"description":"Latitude","uniqueKey":"trips.items.[INDEX].start.oneOf.0.location.oneOf.0.latitude","typeLabel":"number\u003cdouble>"},"longitude":{"type":"number","format":"double","examples":[4.93849204],"description":"Longitude","uniqueKey":"trips.items.[INDEX].start.oneOf.0.location.oneOf.0.longitude","typeLabel":"number\u003cdouble>"},"h3Index":{"oneOf":[{"type":"integer","description":"H3 hexagon index at resolution 9 (optional)","format":"int64","example":617700169958293500,"uniqueKey":"trips.items.[INDEX].start.oneOf.0.location.oneOf.0.h3Index.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"H3 hexagon index at resolution 9 (optional)","format":"int64","example":617700169958293500,"uniqueKey":"trips.items.[INDEX].start.oneOf.0.location.oneOf.0.h3Index.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].start.oneOf.0.location.oneOf.0.h3Index","typeLabel":"integer\u003cint64> | null"}},"uniqueKey":"trips.items.[INDEX].start.oneOf.0.location.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"trips.items.[INDEX].start.oneOf.0.location.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].start.oneOf.0.location","typeLabel":"object | null"},"latlon":{"oneOf":[{"type":"array","items":{"type":"number","format":"double","uniqueKey":"trips.items.[INDEX].start.oneOf.0.latlon.oneOf.0.items.[INDEX]","typeLabel":"number\u003cdouble>"},"description":"Snapped Latlng. When we get your lat/lon in input, we snap it on our map to a valid point in the graph. We return all snapped points.","uniqueKey":"trips.items.[INDEX].start.oneOf.0.latlon.oneOf.0","typeLabel":"number\u003cdouble>[]"},{"type":"null","description":"Snapped Latlng. When we get your lat/lon in input, we snap it on our map to a valid point in the graph. We return all snapped points.","uniqueKey":"trips.items.[INDEX].start.oneOf.0.latlon.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].start.oneOf.0.latlon","typeLabel":"number\u003cdouble>[] | null"},"snappedLocation":{"oneOf":[{"type":"object","description":"Geographical Location in WGS-84","properties":{"latitude":{"type":"number","format":"double","examples":[50.0987624],"description":"Latitude","uniqueKey":"trips.items.[INDEX].start.oneOf.0.snappedLocation.oneOf.0.latitude","typeLabel":"number\u003cdouble>"},"longitude":{"type":"number","format":"double","examples":[4.93849204],"description":"Longitude","uniqueKey":"trips.items.[INDEX].start.oneOf.0.snappedLocation.oneOf.0.longitude","typeLabel":"number\u003cdouble>"},"h3Index":{"oneOf":[{"type":"integer","description":"H3 hexagon index at resolution 9 (optional)","format":"int64","example":617700169958293500,"uniqueKey":"trips.items.[INDEX].start.oneOf.0.snappedLocation.oneOf.0.h3Index.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"H3 hexagon index at resolution 9 (optional)","format":"int64","example":617700169958293500,"uniqueKey":"trips.items.[INDEX].start.oneOf.0.snappedLocation.oneOf.0.h3Index.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].start.oneOf.0.snappedLocation.oneOf.0.h3Index","typeLabel":"integer\u003cint64> | null"}},"uniqueKey":"trips.items.[INDEX].start.oneOf.0.snappedLocation.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"trips.items.[INDEX].start.oneOf.0.snappedLocation.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].start.oneOf.0.snappedLocation","typeLabel":"object | null"},"breakTime":{"oneOf":[{"type":"integer","description":"Break time in seconds","format":"int32","uniqueKey":"trips.items.[INDEX].start.oneOf.0.breakTime.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","description":"Break time in seconds","format":"int32","uniqueKey":"trips.items.[INDEX].start.oneOf.0.breakTime.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].start.oneOf.0.breakTime","typeLabel":"integer\u003cint32> | null"},"waitTime":{"oneOf":[{"type":"integer","description":"Wait time in seconds","format":"int64","uniqueKey":"trips.items.[INDEX].start.oneOf.0.waitTime.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"Wait time in seconds","format":"int64","uniqueKey":"trips.items.[INDEX].start.oneOf.0.waitTime.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].start.oneOf.0.waitTime","typeLabel":"integer\u003cint64> | null"}},"uniqueKey":"trips.items.[INDEX].start.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"trips.items.[INDEX].start.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].start","typeLabel":"object | null"},"end":{"oneOf":[{"type":"object","description":"Single visit for a resource. Holds information of the actual arrival time, the job, the location and the latlng.","example":{"job":"Job-1","arrival":"2023-01-13T08:30:00Z","serviceTime":600,"travelTime":1800,"distance":15000,"activity":"service","location":{"latitude":51.0543,"longitude":3.7174},"breakTime":0,"waitTime":0},"properties":{"arrival":{"oneOf":[{"type":"string","description":"Actual arrival date-time","format":"date-time","example":"2022-03-10T12:15:50-04:00","uniqueKey":"trips.items.[INDEX].end.oneOf.0.arrival.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","uniqueKey":"trips.items.[INDEX].end.oneOf.0.arrival.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].end.oneOf.0.arrival","typeLabel":"string\u003cdate-time> | null"},"serviceTime":{"oneOf":[{"type":"integer","description":"Total service time of that job in seconds","format":"int64","uniqueKey":"trips.items.[INDEX].end.oneOf.0.serviceTime.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"Total service time of that job in seconds","format":"int64","uniqueKey":"trips.items.[INDEX].end.oneOf.0.serviceTime.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].end.oneOf.0.serviceTime","typeLabel":"integer\u003cint64> | null"},"travelTime":{"oneOf":[{"type":"integer","description":"Total travel time to that job in seconds","format":"int64","uniqueKey":"trips.items.[INDEX].end.oneOf.0.travelTime.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"Total travel time to that job in seconds","format":"int64","uniqueKey":"trips.items.[INDEX].end.oneOf.0.travelTime.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].end.oneOf.0.travelTime","typeLabel":"integer\u003cint64> | null"},"distance":{"oneOf":[{"type":"integer","description":"Total travel distance to that job in meters","format":"int64","uniqueKey":"trips.items.[INDEX].end.oneOf.0.distance.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"Total travel distance to that job in meters","format":"int64","uniqueKey":"trips.items.[INDEX].end.oneOf.0.distance.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].end.oneOf.0.distance","typeLabel":"integer\u003cint64> | null"},"job":{"oneOf":[{"type":"string","description":"Job","uniqueKey":"trips.items.[INDEX].end.oneOf.0.job.oneOf.0","typeLabel":"string"},{"type":"null","description":"Job","uniqueKey":"trips.items.[INDEX].end.oneOf.0.job.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].end.oneOf.0.job","typeLabel":"string | null"},"activity":{"oneOf":[{"type":"string","description":"The activity to ","uniqueKey":"trips.items.[INDEX].end.oneOf.0.activity.oneOf.0","typeLabel":"string"},{"type":"null","description":"The activity to ","uniqueKey":"trips.items.[INDEX].end.oneOf.0.activity.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].end.oneOf.0.activity","typeLabel":"string | null"},"location":{"oneOf":[{"type":"object","description":"Geographical Location in WGS-84","properties":{"latitude":{"type":"number","format":"double","examples":[50.0987624],"description":"Latitude","uniqueKey":"trips.items.[INDEX].end.oneOf.0.location.oneOf.0.latitude","typeLabel":"number\u003cdouble>"},"longitude":{"type":"number","format":"double","examples":[4.93849204],"description":"Longitude","uniqueKey":"trips.items.[INDEX].end.oneOf.0.location.oneOf.0.longitude","typeLabel":"number\u003cdouble>"},"h3Index":{"oneOf":[{"type":"integer","description":"H3 hexagon index at resolution 9 (optional)","format":"int64","example":617700169958293500,"uniqueKey":"trips.items.[INDEX].end.oneOf.0.location.oneOf.0.h3Index.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"H3 hexagon index at resolution 9 (optional)","format":"int64","example":617700169958293500,"uniqueKey":"trips.items.[INDEX].end.oneOf.0.location.oneOf.0.h3Index.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].end.oneOf.0.location.oneOf.0.h3Index","typeLabel":"integer\u003cint64> | null"}},"uniqueKey":"trips.items.[INDEX].end.oneOf.0.location.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"trips.items.[INDEX].end.oneOf.0.location.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].end.oneOf.0.location","typeLabel":"object | null"},"latlon":{"oneOf":[{"type":"array","items":{"type":"number","format":"double","uniqueKey":"trips.items.[INDEX].end.oneOf.0.latlon.oneOf.0.items.[INDEX]","typeLabel":"number\u003cdouble>"},"description":"Snapped Latlng. When we get your lat/lon in input, we snap it on our map to a valid point in the graph. We return all snapped points.","uniqueKey":"trips.items.[INDEX].end.oneOf.0.latlon.oneOf.0","typeLabel":"number\u003cdouble>[]"},{"type":"null","description":"Snapped Latlng. When we get your lat/lon in input, we snap it on our map to a valid point in the graph. We return all snapped points.","uniqueKey":"trips.items.[INDEX].end.oneOf.0.latlon.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].end.oneOf.0.latlon","typeLabel":"number\u003cdouble>[] | null"},"snappedLocation":{"oneOf":[{"type":"object","description":"Geographical Location in WGS-84","properties":{"latitude":{"type":"number","format":"double","examples":[50.0987624],"description":"Latitude","uniqueKey":"trips.items.[INDEX].end.oneOf.0.snappedLocation.oneOf.0.latitude","typeLabel":"number\u003cdouble>"},"longitude":{"type":"number","format":"double","examples":[4.93849204],"description":"Longitude","uniqueKey":"trips.items.[INDEX].end.oneOf.0.snappedLocation.oneOf.0.longitude","typeLabel":"number\u003cdouble>"},"h3Index":{"oneOf":[{"type":"integer","description":"H3 hexagon index at resolution 9 (optional)","format":"int64","example":617700169958293500,"uniqueKey":"trips.items.[INDEX].end.oneOf.0.snappedLocation.oneOf.0.h3Index.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"H3 hexagon index at resolution 9 (optional)","format":"int64","example":617700169958293500,"uniqueKey":"trips.items.[INDEX].end.oneOf.0.snappedLocation.oneOf.0.h3Index.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].end.oneOf.0.snappedLocation.oneOf.0.h3Index","typeLabel":"integer\u003cint64> | null"}},"uniqueKey":"trips.items.[INDEX].end.oneOf.0.snappedLocation.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"trips.items.[INDEX].end.oneOf.0.snappedLocation.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].end.oneOf.0.snappedLocation","typeLabel":"object | null"},"breakTime":{"oneOf":[{"type":"integer","description":"Break time in seconds","format":"int32","uniqueKey":"trips.items.[INDEX].end.oneOf.0.breakTime.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","description":"Break time in seconds","format":"int32","uniqueKey":"trips.items.[INDEX].end.oneOf.0.breakTime.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].end.oneOf.0.breakTime","typeLabel":"integer\u003cint32> | null"},"waitTime":{"oneOf":[{"type":"integer","description":"Wait time in seconds","format":"int64","uniqueKey":"trips.items.[INDEX].end.oneOf.0.waitTime.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"Wait time in seconds","format":"int64","uniqueKey":"trips.items.[INDEX].end.oneOf.0.waitTime.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].end.oneOf.0.waitTime","typeLabel":"integer\u003cint64> | null"}},"uniqueKey":"trips.items.[INDEX].end.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"trips.items.[INDEX].end.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].end","typeLabel":"object | null"},"distance":{"oneOf":[{"type":"integer","format":"int64","uniqueKey":"trips.items.[INDEX].distance.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","uniqueKey":"trips.items.[INDEX].distance.oneOf.1","typeLabel":"null"}],"uniqueKey":"trips.items.[INDEX].distance","typeLabel":"integer\u003cint64> | null"}},"uniqueKey":"trips.items.[INDEX]","typeLabel":"object"},"description":"Actual solution: trips per shift/day and per resource","isRequired":true,"uniqueKey":"trips","typeLabel":"object[]"},"id":{"oneOf":[{"type":"string","description":"Id of the solve job","example":"0000-00000-00000-0000","uniqueKey":"id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the solve job","example":"0000-00000-00000-0000","uniqueKey":"id.oneOf.1","typeLabel":"null"}],"uniqueKey":"id","typeLabel":"string | null"},"status":{"oneOf":[{"type":"string","description":"Status of the solve job.","enum":["ERROR","QUEUED","SOLVING","SOLVED"],"example":"SOLVED","uniqueKey":"status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"status.oneOf.1","typeLabel":"null"}],"uniqueKey":"status","typeLabel":"enum\u003cstring> | null"},"score":{"oneOf":[{"type":"object","description":"The score of a solution shows how good this solution is w.r.t all the constraints. All solvers try to maximize the score.","properties":{"hardScore":{"oneOf":[{"type":"integer","description":"The score of the constraints that are hard. This should be 0 in order to be feasible.","format":"int64","uniqueKey":"score.oneOf.0.hardScore.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"The score of the constraints that are hard. This should be 0 in order to be feasible.","format":"int64","uniqueKey":"score.oneOf.0.hardScore.oneOf.1","typeLabel":"null"}],"uniqueKey":"score.oneOf.0.hardScore","typeLabel":"integer\u003cint64> | null"},"mediumScore":{"oneOf":[{"type":"integer","description":"The score of the constraints that are medium.","format":"int64","uniqueKey":"score.oneOf.0.mediumScore.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"The score of the constraints that are medium.","format":"int64","uniqueKey":"score.oneOf.0.mediumScore.oneOf.1","typeLabel":"null"}],"uniqueKey":"score.oneOf.0.mediumScore","typeLabel":"integer\u003cint64> | null"},"softScore":{"oneOf":[{"type":"integer","description":"The score of the constraints that are soft.","format":"int64","uniqueKey":"score.oneOf.0.softScore.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"The score of the constraints that are soft.","format":"int64","uniqueKey":"score.oneOf.0.softScore.oneOf.1","typeLabel":"null"}],"uniqueKey":"score.oneOf.0.softScore","typeLabel":"integer\u003cint64> | null"},"feasible":{"oneOf":[{"type":"boolean","uniqueKey":"score.oneOf.0.feasible.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"score.oneOf.0.feasible.oneOf.1","typeLabel":"null"}],"uniqueKey":"score.oneOf.0.feasible","typeLabel":"boolean | null"}},"uniqueKey":"score.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"score.oneOf.1","typeLabel":"null"}],"uniqueKey":"score","typeLabel":"object | null"},"unresolved":{"description":"Constraints that are violated","uniqueKey":"unresolved","typeLabel":"any"},"totalWaitTimeInSeconds":{"oneOf":[{"type":"integer","description":"Wait time for all resources","format":"int64","example":123,"uniqueKey":"totalWaitTimeInSeconds.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"Wait time for all resources","format":"int64","example":123,"uniqueKey":"totalWaitTimeInSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"totalWaitTimeInSeconds","typeLabel":"integer\u003cint64> | null"},"occupancy":{"oneOf":[{"type":"number","description":"How full this schedule is in terms of work time (incl travel) over capacity. Eg 80%","format":"double","example":0.8,"uniqueKey":"occupancy.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","description":"How full this schedule is in terms of work time (incl travel) over capacity. Eg 80%","format":"double","example":0.8,"uniqueKey":"occupancy.oneOf.1","typeLabel":"null"}],"uniqueKey":"occupancy","typeLabel":"number\u003cdouble> | null"},"totalTravelDistanceInMeters":{"oneOf":[{"type":"integer","description":"Travel distance for all resources in meters","format":"int64","example":123,"uniqueKey":"totalTravelDistanceInMeters.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"Travel distance for all resources in meters","format":"int64","example":123,"uniqueKey":"totalTravelDistanceInMeters.oneOf.1","typeLabel":"null"}],"uniqueKey":"totalTravelDistanceInMeters","typeLabel":"integer\u003cint64> | null"},"totalTravelTimeInSeconds":{"oneOf":[{"type":"integer","description":"Travel time for all resources","format":"int64","example":123,"uniqueKey":"totalTravelTimeInSeconds.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"Travel time for all resources","format":"int64","example":123,"uniqueKey":"totalTravelTimeInSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"totalTravelTimeInSeconds","typeLabel":"integer\u003cint64> | null"},"totalServiceTimeInSeconds":{"oneOf":[{"type":"integer","description":"Service time for all resources","format":"int64","example":123,"uniqueKey":"totalServiceTimeInSeconds.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"Service time for all resources","format":"int64","example":123,"uniqueKey":"totalServiceTimeInSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"totalServiceTimeInSeconds","typeLabel":"integer\u003cint64> | null"},"unserved":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"unserved.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Unserved jobs","example":"[job-1]","uniqueKey":"unserved.oneOf.0","typeLabel":"string[]"},{"type":"null","description":"Unserved jobs","example":"[job-1]","uniqueKey":"unserved.oneOf.1","typeLabel":"null"}],"uniqueKey":"unserved","typeLabel":"string[] | null"},"unservedReasons":{"oneOf":[{"type":"object","description":"Reasons why jobs could not be served, mapped by job name","example":{"job-1":["DATE_TIME_WINDOW_CONFLICT","TRIP_CAPACITY"]},"additionalProperties":{"type":"object","uniqueKey":"unservedReasons.oneOf.0.additionalProperties","typeLabel":"object"},"uniqueKey":"unservedReasons.oneOf.0","typeLabel":"object"},{"type":"null","description":"Reasons why jobs could not be served, mapped by job name","example":{"job-1":["DATE_TIME_WINDOW_CONFLICT","TRIP_CAPACITY"]},"additionalProperties":{"type":"object","uniqueKey":"unservedReasons.oneOf.1.additionalProperties","typeLabel":"object"},"uniqueKey":"unservedReasons.oneOf.1","typeLabel":"null"}],"uniqueKey":"unservedReasons","typeLabel":"object | null"},"suggestions":{"oneOf":[{"type":"array","items":{"type":"object","required":["score","assignments"],"properties":{"score":{"type":"object","description":"The score of a solution shows how good this solution is w.r.t all the constraints. All solvers try to maximize the score.","properties":{"hardScore":{"oneOf":[{"type":"integer","description":"The score of the constraints that are hard. This should be 0 in order to be feasible.","format":"int64","uniqueKey":"suggestions.oneOf.0.items.[INDEX].score.hardScore.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"The score of the constraints that are hard. This should be 0 in order to be feasible.","format":"int64","uniqueKey":"suggestions.oneOf.0.items.[INDEX].score.hardScore.oneOf.1","typeLabel":"null"}],"uniqueKey":"suggestions.oneOf.0.items.[INDEX].score.hardScore","typeLabel":"integer\u003cint64> | null"},"mediumScore":{"oneOf":[{"type":"integer","description":"The score of the constraints that are medium.","format":"int64","uniqueKey":"suggestions.oneOf.0.items.[INDEX].score.mediumScore.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"The score of the constraints that are medium.","format":"int64","uniqueKey":"suggestions.oneOf.0.items.[INDEX].score.mediumScore.oneOf.1","typeLabel":"null"}],"uniqueKey":"suggestions.oneOf.0.items.[INDEX].score.mediumScore","typeLabel":"integer\u003cint64> | null"},"softScore":{"oneOf":[{"type":"integer","description":"The score of the constraints that are soft.","format":"int64","uniqueKey":"suggestions.oneOf.0.items.[INDEX].score.softScore.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"The score of the constraints that are soft.","format":"int64","uniqueKey":"suggestions.oneOf.0.items.[INDEX].score.softScore.oneOf.1","typeLabel":"null"}],"uniqueKey":"suggestions.oneOf.0.items.[INDEX].score.softScore","typeLabel":"integer\u003cint64> | null"},"feasible":{"oneOf":[{"type":"boolean","uniqueKey":"suggestions.oneOf.0.items.[INDEX].score.feasible.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"suggestions.oneOf.0.items.[INDEX].score.feasible.oneOf.1","typeLabel":"null"}],"uniqueKey":"suggestions.oneOf.0.items.[INDEX].score.feasible","typeLabel":"boolean | null"}},"isRequired":true,"uniqueKey":"suggestions.oneOf.0.items.[INDEX].score","typeLabel":"object"},"assignments":{"type":"array","items":{"type":"object","required":["job","resource","executedAfter"],"examples":[{"job":"Job-1","resource":"vehicle-1","suggestedArrival":"2023-01-13T09:30:00Z","latestArrival":"2023-01-13T10:00:00Z","executedAfter":"Job-0","suggestedInitialArrival":"2023-01-13T09:00:00Z","travelTo":900,"travelFrom":1200,"score":{"hard":0,"soft":-1500,"feasible":true},"violations":[{"constraint":"TRAVEL_TIME","score":"-1500"}]}],"description":"Assignment for a job to a resource. Holds information of the actual arrival time, the job, the resource and the suggested arrival time.","properties":{"job":{"type":"string","description":"Job","isRequired":true,"uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].job","typeLabel":"string"},"resource":{"type":"string","description":"Resource","isRequired":true,"uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].resource","typeLabel":"string"},"executedAfter":{"type":"string","description":"Executed after date-time","isRequired":true,"uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].executedAfter","typeLabel":"string"},"suggestedArrival":{"oneOf":[{"type":"string","description":"Suggested arrival date-time","format":"ISO8601 datetime string","example":"2022-03-10T12:15:50-04:00","uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].suggestedArrival.oneOf.0","typeLabel":"string\u003cISO8601 datetime string>"},{"type":"null","description":"Suggested arrival date-time","format":"ISO8601 datetime string","example":"2022-03-10T12:15:50-04:00","uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].suggestedArrival.oneOf.1","typeLabel":"null"}],"uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].suggestedArrival","typeLabel":"string\u003cISO8601 datetime string> | null"},"latestArrival":{"oneOf":[{"type":"string","description":"Latest arrival date-time","format":"ISO8601 datetime string","example":"2022-03-10T12:15:50-04:00","uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].latestArrival.oneOf.0","typeLabel":"string\u003cISO8601 datetime string>"},{"type":"null","description":"Latest arrival date-time","format":"ISO8601 datetime string","example":"2022-03-10T12:15:50-04:00","uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].latestArrival.oneOf.1","typeLabel":"null"}],"uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].latestArrival","typeLabel":"string\u003cISO8601 datetime string> | null"},"score":{"oneOf":[{"type":"object","description":"The score of a solution shows how good this solution is w.r.t all the constraints. All solvers try to maximize the score.","properties":{"hardScore":{"oneOf":[{"type":"integer","description":"The score of the constraints that are hard. This should be 0 in order to be feasible.","format":"int64","uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].score.oneOf.0.hardScore.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"The score of the constraints that are hard. This should be 0 in order to be feasible.","format":"int64","uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].score.oneOf.0.hardScore.oneOf.1","typeLabel":"null"}],"uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].score.oneOf.0.hardScore","typeLabel":"integer\u003cint64> | null"},"mediumScore":{"oneOf":[{"type":"integer","description":"The score of the constraints that are medium.","format":"int64","uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].score.oneOf.0.mediumScore.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"The score of the constraints that are medium.","format":"int64","uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].score.oneOf.0.mediumScore.oneOf.1","typeLabel":"null"}],"uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].score.oneOf.0.mediumScore","typeLabel":"integer\u003cint64> | null"},"softScore":{"oneOf":[{"type":"integer","description":"The score of the constraints that are soft.","format":"int64","uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].score.oneOf.0.softScore.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"The score of the constraints that are soft.","format":"int64","uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].score.oneOf.0.softScore.oneOf.1","typeLabel":"null"}],"uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].score.oneOf.0.softScore","typeLabel":"integer\u003cint64> | null"},"feasible":{"oneOf":[{"type":"boolean","uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].score.oneOf.0.feasible.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].score.oneOf.0.feasible.oneOf.1","typeLabel":"null"}],"uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].score.oneOf.0.feasible","typeLabel":"boolean | null"}},"uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].score.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].score.oneOf.1","typeLabel":"null"}],"uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].score","typeLabel":"object | null"},"scoreExplanation":{"type":"object","required":["constraint","score"],"examples":[{"constraint":"TRAVEL_TIME","score":"-1500"}],"description":"Unresolved constraints in this alternative solution","properties":{"constraint":{"type":"string","enum":["TRIP_CAPACITY","RESOURCE_CAPACITY","RESOURCE_CAPACITY2","TRAVEL_TIME","TYPE_REQUIREMENT","TAG_SOFT","TAG_HARD","TYPE_REQUIREMENT_SOFT","END_LOCATION_TRAVEL_TIME","TIME_WINDOW_CONFLICT","SHIFT_END_CONFLICT","OVERTIME_END_CONFLICT","RESOURCE_USAGE","URGENCY","PREFERRED_RESOURCE_CONFLICT","ALLOWED_RESOURCES","DISALLOWED_RESOURCES","REGION_TIME","FAIR_WORK","UNSERVED_JOBS","RESOURCE_ACTIVATION","OPEN_DAYS","JOB_PRECEDENCE","JOB_DAY_INDEX","DATE_TIME_WINDOW_CONFLICT","DATE_TIME_WINDOW_CONFLICT_SOFT","LINKED_JOB_CONFLICT","PLANNED_RESOURCE","PLANNED_ARRIVAL","PLANNED_DATE","WORKING_TIME","HARD_JOBS","MAX_DRIVE_TIME","MAX_DRIVE_TIME_JOB","FAIR_TOTAL_WORK","RESOURCE_PERIOD_MAX_SERVICE_TIME","RESOURCE_PERIOD_MAX_DRIVE_TIME","RESOURCE_PERIOD_MAX_WORK_TIME","RESOURCE_PERIOD_MIN_SERVICE_TIME","RESOURCE_PERIOD_MIN_DRIVE_TIME","RESOURCE_PERIOD_MIN_WORK_TIME","MINIMISE_TRIP_USAGE","DELIVERY_NOT_ON_SAME_VEHICLE","DELIVERY_BEFORE_PICKUP","SAME_TRIP","SEQUENCE","SAME_TIME","NEIGHBOR","DIRECT_SEQUENCE","SAME_RESOURCE","WAIT_TIME","DRIVE_TIME","HOURLY_COST","RANKING_SOFT","FAIR_COMPLEXITY_PER_TRIP","FAIR_COMPLEXITY_PER_RESOURCE","RESOURCE_PERIOD_MIN_COMPLEXITY","RESOURCE_PERIOD_MAX_COMPLEXITY","RESOURCE_COMPATIBILITY","JOBTYPE_VIOLATION","GROUP_SEQUENCE","JOB_PROXIMITY"],"examples":["TRAVEL_TIME"],"description":"Constraint type.","isRequired":true,"uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].scoreExplanation.constraint","typeLabel":"enum\u003cstring>"},"score":{"type":"string","description":"Score impact of this conflict.","isRequired":true,"uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].scoreExplanation.score","typeLabel":"string"}},"uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].scoreExplanation","typeLabel":"object"},"suggestedInitialArrival":{"oneOf":[{"type":"string","format":"date-time","example":"2022-03-10T12:15:50-04:00","uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].suggestedInitialArrival.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].suggestedInitialArrival.oneOf.1","typeLabel":"null"}],"uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].suggestedInitialArrival","typeLabel":"string\u003cdate-time> | null"},"violations":{"oneOf":[{"type":"array","items":{"type":"object","required":["constraint","score"],"examples":[{"constraint":"TRAVEL_TIME","score":"-1500"}],"description":"Unresolved constraints in the solution","properties":{"constraint":{"type":"string","enum":["TRIP_CAPACITY","RESOURCE_CAPACITY","RESOURCE_CAPACITY2","TRAVEL_TIME","TYPE_REQUIREMENT","TAG_SOFT","TAG_HARD","TYPE_REQUIREMENT_SOFT","END_LOCATION_TRAVEL_TIME","TIME_WINDOW_CONFLICT","SHIFT_END_CONFLICT","OVERTIME_END_CONFLICT","RESOURCE_USAGE","URGENCY","PREFERRED_RESOURCE_CONFLICT","ALLOWED_RESOURCES","DISALLOWED_RESOURCES","REGION_TIME","FAIR_WORK","UNSERVED_JOBS","RESOURCE_ACTIVATION","OPEN_DAYS","JOB_PRECEDENCE","JOB_DAY_INDEX","DATE_TIME_WINDOW_CONFLICT","DATE_TIME_WINDOW_CONFLICT_SOFT","LINKED_JOB_CONFLICT","PLANNED_RESOURCE","PLANNED_ARRIVAL","PLANNED_DATE","WORKING_TIME","HARD_JOBS","MAX_DRIVE_TIME","MAX_DRIVE_TIME_JOB","FAIR_TOTAL_WORK","RESOURCE_PERIOD_MAX_SERVICE_TIME","RESOURCE_PERIOD_MAX_DRIVE_TIME","RESOURCE_PERIOD_MAX_WORK_TIME","RESOURCE_PERIOD_MIN_SERVICE_TIME","RESOURCE_PERIOD_MIN_DRIVE_TIME","RESOURCE_PERIOD_MIN_WORK_TIME","MINIMISE_TRIP_USAGE","DELIVERY_NOT_ON_SAME_VEHICLE","DELIVERY_BEFORE_PICKUP","SAME_TRIP","SEQUENCE","SAME_TIME","NEIGHBOR","DIRECT_SEQUENCE","SAME_RESOURCE","WAIT_TIME","DRIVE_TIME","HOURLY_COST","RANKING_SOFT","FAIR_COMPLEXITY_PER_TRIP","FAIR_COMPLEXITY_PER_RESOURCE","RESOURCE_PERIOD_MIN_COMPLEXITY","RESOURCE_PERIOD_MAX_COMPLEXITY","RESOURCE_COMPATIBILITY","JOBTYPE_VIOLATION","GROUP_SEQUENCE","JOB_PROXIMITY"],"examples":["TRAVEL_TIME"],"description":"Constraint type.","isRequired":true,"uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].violations.oneOf.0.items.[INDEX].constraint","typeLabel":"enum\u003cstring>"},"score":{"type":"string","description":"Score impact of this conflict.","isRequired":true,"uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].violations.oneOf.0.items.[INDEX].score","typeLabel":"string"}},"uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].violations.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].violations.oneOf.0","typeLabel":"object[]"},{"type":"null","uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].violations.oneOf.1","typeLabel":"null"}],"uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].violations","typeLabel":"object[] | null"},"travelTo":{"oneOf":[{"type":"integer","description":"Travel time in seconds of the leg into this job: from the previous stop (or the shift start location) to this job.","format":"int32","uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].travelTo.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","description":"Travel time in seconds of the leg into this job: from the previous stop (or the shift start location) to this job.","format":"int32","uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].travelTo.oneOf.1","typeLabel":"null"}],"uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].travelTo","typeLabel":"integer\u003cint32> | null"},"travelFrom":{"oneOf":[{"type":"integer","description":"Travel time in seconds of the leg out of this job: to the next stop, or back to the shift end location when this job closes the route. 0 when the resource does not travel back from its last stop.","format":"int32","uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].travelFrom.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","description":"Travel time in seconds of the leg out of this job: to the next stop, or back to the shift end location when this job closes the route. 0 when the resource does not travel back from its last stop.","format":"int32","uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].travelFrom.oneOf.1","typeLabel":"null"}],"uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX].travelFrom","typeLabel":"integer\u003cint32> | null"}},"uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"suggestions.oneOf.0.items.[INDEX].assignments","typeLabel":"object[]"}},"uniqueKey":"suggestions.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"List of suggested assignments returned by suggest api call","uniqueKey":"suggestions.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"List of suggested assignments returned by suggest api call","uniqueKey":"suggestions.oneOf.1","typeLabel":"null"}],"uniqueKey":"suggestions","typeLabel":"object[] | null"},"messages":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Events and warnings generated during the solver execution","uniqueKey":"messages.oneOf.0","typeLabel":"string[]"},{"type":"null","description":"Events and warnings generated during the solver execution","uniqueKey":"messages.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages","typeLabel":"string[] | null"},"violations":{"oneOf":[{"type":"array","items":{"type":"object","required":["name","value","level"],"description":"A constraint that is broken in the current solution with a certain value (penalty) and a certain level (hard, soft, medium).","properties":{"name":{"oneOf":[{"type":"string","description":"Name of the constraint.","example":"maxDistance","isRequired":true,"uniqueKey":"violations.oneOf.0.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of the constraint.","example":"maxDistance","isRequired":true,"uniqueKey":"violations.oneOf.0.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"violations.oneOf.0.items.[INDEX].name","typeLabel":"string | null"},"value":{"oneOf":[{"type":"integer","description":"Value of the unresolved constraint. The higher, the more deviation from perfection this constraint has.","format":"int32","example":100,"isRequired":true,"uniqueKey":"violations.oneOf.0.items.[INDEX].value.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","description":"Value of the unresolved constraint. The higher, the more deviation from perfection this constraint has.","format":"int32","example":100,"isRequired":true,"uniqueKey":"violations.oneOf.0.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"violations.oneOf.0.items.[INDEX].value","typeLabel":"integer\u003cint32> | null"},"level":{"oneOf":[{"type":"string","description":"Level of unresolved constraint.","enum":["HARD","SOFT","MEDIUM"],"example":"[HARD, MEDIUM, SOFT]","isRequired":true,"uniqueKey":"violations.oneOf.0.items.[INDEX].level.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","isRequired":true,"uniqueKey":"violations.oneOf.0.items.[INDEX].level.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"violations.oneOf.0.items.[INDEX].level","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"violations.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"violations.oneOf.0","typeLabel":"object[]"},{"type":"null","uniqueKey":"violations.oneOf.1","typeLabel":"null"}],"uniqueKey":"violations","typeLabel":"object[] | null"},"workloadFairness":{"oneOf":[{"type":"number","format":"double","uniqueKey":"workloadFairness.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","uniqueKey":"workloadFairness.oneOf.1","typeLabel":"null"}],"uniqueKey":"workloadFairness","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"","typeLabel":"object","example":{"title":"Example","value":{"id":"0000-00000-00000-0000","status":"SOLVED","score":{"hard":0,"soft":-12345,"feasible":true},"trips":[{"resource":"vehicle-1","date":"2023-01-13T00:00:00Z","departureTime":"2023-01-13T08:00:00Z","visits":[{"job":"Job-1","arrival":"2023-01-13T08:30:00Z","serviceTime":600,"travelTime":1800,"distance":15000,"location":{"latitude":51.0543,"longitude":3.7174},"waitTime":0}],"waitTime":0,"travelTime":3600,"distance":30000,"workTime":4200,"serviceTime":600,"occupancy":0.47}],"totalWaitTimeInSeconds":0,"totalTravelTimeInSeconds":3600,"totalTravelDistanceInMeters":30000,"totalServiceTimeInSeconds":600,"occupancy":0.47,"workloadFairness":0.95,"unserved":[],"suggestions":[],"messages":["Solution found in 2.5 seconds"]}}},"originalFileLocation":"api-reference/openapi.yaml"},"subdomain":"solvice-68592f22","siteName":"Solvice Docs","title":"Solution - Solvice Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"v3":{"href":"/guides/platform/platform","matchLevel":4},"v2":{"href":"/guides/vrp/schemas/solution","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-11-12T12:54:43.263Z","gitLastModified":"2026-12-01T13:42:42.000Z","originalFileLocation":"guides/vrp/schemas/solution.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Solvice API documentation for cloud-native optimization solvers. Build powerful route optimization, workforce scheduling, and resource allocation solutions with our VRP, shift planning, and clustering APIs.\">\u003cmeta data-mint-head name=\"keywords\" content=\"Route Optimization, Route API, Optimization API, Workforce Scheduling, Solvice\">\u003cmeta data-mint-head name=\"application-name\" content=\"Solvice Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/solvice-68592f22/wZOj_k-mDHXJa5jh/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/solvice-68592f22/wZOj_k-mDHXJa5jh/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/solvice-68592f22/wZOj_k-mDHXJa5jh/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/solvice-68592f22/wZOj_k-mDHXJa5jh/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/solvice-68592f22/wZOj_k-mDHXJa5jh/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/solvice-68592f22/wZOj_k-mDHXJa5jh/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/solvice-68592f22/wZOj_k-mDHXJa5jh/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/solvice-68592f22/wZOj_k-mDHXJa5jh/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/solvice-68592f22/wZOj_k-mDHXJa5jh/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Solution - Solvice Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Solvice API documentation for cloud-native optimization solvers. Build powerful route optimization, workforce scheduling, and resource allocation solutions with our VRP, shift planning, and clustering APIs.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Solvice Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.solvice.io/guides/vrp/schemas/solution\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://solvice-68592f22.mintlify.site/link to your default meta tag image\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Solution - Solvice Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Solvice API documentation for cloud-native optimization solvers. Build powerful route optimization, workforce scheduling, and resource allocation solutions with our VRP, shift planning, and clustering APIs.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://solvice-68592f22.mintlify.site/link to your default meta tag image\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/solvice-68592f22/wZOj_k-mDHXJa5jh/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Solvice Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0f62fe\">\u003cmeta data-mint-head name=\"charset\" content=\"UTF-8\">\u003cmeta data-mint-head name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\u003cmeta data-mint-head name=\"author\" content=\"Christophe Van Huele\">\u003cmeta data-mint-head name=\"googlebot\" content=\"index, follow\">\u003cmeta data-mint-head name=\"google\" content=\"notranslate\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"verification_token\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.solvice.io/guides/vrp/schemas/solution\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/vrp/schemas/solution.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.solvice.io/#organization\",\"name\":\"Solvice Docs\",\"url\":\"https://docs.solvice.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/solvice-68592f22/1KJ_2AIotizI1Bng/logo/light.svg?fit=max\u0026auto=format\u0026n=1KJ_2AIotizI1Bng\u0026q=85\u0026s=e93560fee320491613107060a1afc094\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.solvice.io#website\",\"name\":\"Solvice Docs\",\"url\":\"https://docs.solvice.io\",\"publisher\":{\"@id\":\"https://docs.solvice.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.solvice.io/guides/vrp/schemas/solution#webpage\",\"url\":\"https://docs.solvice.io/guides/vrp/schemas/solution\",\"name\":\"Solution\",\"dateModified\":\"2026-12-01T13:42:42.000Z\",\"isPartOf\":{\"@id\":\"https://docs.solvice.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.solvice.io/guides/vrp/schemas/solution#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.solvice.io/guides/vrp/schemas/solution#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"VRP API\",\"item\":\"https://docs.solvice.io/guides/vrp/quickstart\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Schemas\",\"item\":\"https://docs.solvice.io/guides/vrp/schemas/request\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Solution\",\"item\":\"https://docs.solvice.io/guides/vrp/schemas/solution\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.solvice.io/guides/vrp/schemas/solution#apireference\",\"headline\":\"Solution\",\"name\":\"Solution\",\"url\":\"https://docs.solvice.io/guides/vrp/schemas/solution\",\"mainEntityOfPage\":{\"@id\":\"https://docs.solvice.io/guides/vrp/schemas/solution#webpage\"},\"image\":\"https://docs.solvice.io/link%20to%20your%20default%20meta%20tag%20image\",\"dateModified\":\"2026-12-01T13:42:42.000Z\",\"publisher\":{\"@id\":\"https://docs.solvice.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.solvice.io#website\"}},{\"@type\":\"TechArticle\",\"@id\":\"https://docs.solvice.io/guides/vrp/schemas/solution#article\",\"datePublished\":\"2023-07-19\",\"author\":{\"@id\":\"https://docs.solvice.io/#organization\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Solvice Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Solvice Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/vrp/schemas/solution.md","siteName":"Solvice Docs","nav":{"global":{"anchors":[{"anchor":"Dashboard","icon":"book-open-cover","href":"https://platform.solvice.io"},{"anchor":"Website","icon":"planet-ringed","href":"https://www.solvice.io"},{"anchor":"Blog","icon":"newspaper","href":"https://www.solvice.io/blog/news"}]},"versions":[{"version":"v3","pages":[{"title":"v3","href":"/guides/platform/platform"}]},{"version":"v2","default":true,"tabs":[{"tab":"Guides","groups":[{"group":"Platform","pages":[{"title":"Platform Overview","href":"/guides/platform/platform"},{"title":"Scheduling Framework","href":"/guides/platform/scheduling-framework"},{"title":"Authentication","href":"/guides/platform/authentication"},{"group":"SDKs","pages":[{"title":"Overview","href":"/guides/platform/sdks"},{"title":"TypeScript SDK","icon":"js","href":"/guides/platform/sdks/typescript"},{"title":"Python SDK","icon":"python","href":"/guides/platform/sdks/python"}]},{"title":"Machine Learning","href":"/guides/platform/machine-learning"},{"title":"Introduction to Optimization","href":"/guides/platform/optimisation"},{"title":"Explainable AI","href":"/guides/platform/explainable-ai"},{"title":"Claude \u0026 MCP","href":"/guides/platform/claude-mcp"}]},{"group":"VRP API","pages":[{"title":"Quickstart","href":"/guides/vrp/quickstart"},{"title":"API Overview","href":"/guides/vrp/overview"},{"title":"Roadmap","href":"/guides/vrp/roadmap"},{"group":"Concepts","pages":[{"title":"Scoring System","href":"/guides/vrp/concepts/scoring-explanation"},{"title":"VRP Constraint System","href":"/guides/vrp/concepts/constraint-system"},{"title":"Constraints Reference","href":"/guides/vrp/concepts/constraints-reference"},{"title":"Distance Matrix Integration","href":"/guides/vrp/concepts/distance-matrices"}]},{"group":"Features","pages":[{"title":"Capacity Management","href":"/guides/vrp/features/capacity-management"},{"title":"Advanced Time \u0026 Scheduling","href":"/guides/vrp/features/time-scheduling-advanced"},{"title":"Load Compatibility","href":"/guides/vrp/features/load-compatibility"},{"title":"Depot management","href":"/guides/vrp/features/depot-management"},{"title":"Real-Time Scheduling","href":"/guides/vrp/features/real-time-scheduling"},{"title":"Time Windows","href":"/guides/vrp/features/window"},{"title":"Job Relations","href":"/guides/vrp/features/job-relations"},{"title":"Resource Management","href":"/guides/vrp/features/resource-management"},{"title":"Cost Optimization","href":"/guides/vrp/features/cost-optimization"},{"title":"Job Priority","href":"/guides/vrp/features/priority"},{"title":"Advanced Constraints","href":"/guides/vrp/features/advanced-constraints"},{"title":"Break Management","href":"/guides/vrp/features/break-management"},{"title":"Tag \u0026 Ranking System","href":"/guides/vrp/features/tag-ranking"},{"title":"Resource Ranking","href":"/guides/vrp/features/ranking"},{"title":"Resource Proficiency","href":"/guides/vrp/features/proficiency"},{"title":"Inherited Location","href":"/guides/vrp/features/inherited-location"},{"title":"Period Rules","href":"/guides/vrp/features/rules"},{"title":"Advanced Time Features","href":"/guides/vrp/features/advanced-time-features"},{"title":"Balancing workload","href":"/guides/vrp/features/fairness"},{"title":"Job Complexity","href":"/guides/vrp/features/job-complexity"},{"title":"Resumable Jobs","href":"/guides/vrp/features/resumable-jobs"},{"title":"Unassigned Reasons","href":"/guides/vrp/features/unassigned-reasons"},{"title":"Job Type Capacity Constraints","href":"/guides/vrp/features/job-type-capacity"},{"title":"External Distance Matrices","href":"/guides/vrp/features/custom-dm"},{"title":"Resource Period Rules","href":"/guides/vrp/features/resource-period-rules"},{"title":"Optimal Time Slot Suggestions","href":"/guides/vrp/features/suggest"},{"title":"Understanding Solutions with Explanations","href":"/guides/vrp/features/explain"},{"title":"Evaluating and Comparing VRP Solutions","href":"/guides/vrp/features/evaluation-comparison"}]},{"group":"Examples","pages":[{"title":"Basic Routing","href":"/guides/vrp/examples/basic-routing-real-distances"},{"title":"Multi-Stop Delivery","href":"/guides/vrp/examples/multi-stop-delivery"},{"title":"Last Mile Delivery","href":"/guides/vrp/examples/last-mile-delivery"},{"title":"Service Appointments","href":"/guides/vrp/examples/service-appointments"},{"title":"Home Health Care","href":"/guides/vrp/examples/home-health-care"}]},{"group":"Integrations","pages":[{"title":"Dynamics 365 Field Service","href":"/guides/vrp/integrations/msft"}]},{"group":"Schemas","pages":[{"title":"Request","description":null,"href":"/guides/vrp/schemas/request"},{"title":"Solution","href":"/guides/vrp/schemas/solution"},{"title":"Explanation","description":null,"href":"/guides/vrp/schemas/explanation"}]}]},{"group":"Fill API","pages":[{"title":"Quickstart","href":"/guides/fill/quickstart"},{"title":"API Overview","href":"/guides/fill/overview"},{"group":"Examples","pages":[{"title":"Healthcare Scheduling","href":"/guides/fill/examples/healthcare"},{"title":"Retail Staffing","href":"/guides/fill/examples/retail"},{"title":"Hospitality Scheduling","href":"/guides/fill/examples/hospitality"}]},{"group":"Features","pages":[{"title":"Demand-Based Scheduling","href":"/guides/fill/examples/demand"},{"title":"Solution Explanation","href":"/guides/fill/examples/explain"},{"title":"Fair Workload Distribution","href":"/guides/fill/examples/fairness"},{"title":"Lock Assignments","href":"/guides/fill/examples/lock"},{"title":"Shift Patterns","href":"/guides/fill/examples/pattern"},{"title":"Rest Requirements","href":"/guides/fill/examples/rest"},{"title":"Rules and Constraints","href":"/guides/fill/examples/rule"},{"title":"Weekend Definition","href":"/guides/fill/examples/weekend"}]},{"group":"Schemas","pages":[{"title":"Request Schema","href":"/guides/fill/schemas/request"},{"title":"Response Schema","href":"/guides/fill/schemas/response"}]}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/vrp/introduction"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/vrp"}]}]}]},"basePath":"","title":"Solution - Solvice Docs","deploymentId":"dpl_Bzhd2vEuuXmvNaTmqBBYbeBj3epG","buildId":"dpl_Bzhd2vEuuXmvNaTmqBBYbeBj3epG","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-BjA2hsCJ.js","snippetPresets-C-jpv5v8.js","utils--9e24gKv.js","style-to-object-BY3JEAdk.js","utils-CL8e03UA.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-O60MhfkU.js","conditional-requirements-CFM0id0Q.js","cloneDeep-C2_HxuTC.js","_Uint8Array-CSzKbEgF.js","isObject-FP1Yky1u.js","Page-B_BHXdim.js","api-description-markdown-CQA9NkQd.js","DynamicMarkdown-DpB7I7uN.js","CodeSnippet-nteBoAUV.js","use-playground-group-access-YOcO7c2y.js","SectionHeading-CW6J1gzG.js","ApiExamples-DrqwMm0N.js","usePlaygroundInputsStore-HwhVROcI.js","shallow-CE0cbB33.js","isEqual-XgMGHHxA.js","CodeSnippets-DeoWIzOC.js","MethodPill-CaKMlCid.js","getPastedJson-Dkd8F-mU.js","Check2Icon-DLlJR2en.js","axios-CsQoIw0U.js","Markdown-CaF3VJGb.js","AssistantPageLink-DXtHv8Vo.js","dist-BGepIklc.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}