Advertisement
Guest User

json routes calculate

a guest
Nov 22nd, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 3.02 KB | None | 0 0
  1. {
  2.     "routesCalculationProblem": {
  3.         "sites" : [
  4.             {
  5.                 "id" : "joao",
  6.                 "coordinates": {
  7.                     "latitude": -30.031152,
  8.                     "longitude": -51.233390
  9.                 },
  10.                 "logisticConstraints": {
  11.                     "id": "DEFAULT"
  12.                 },
  13.                 "isDepot": false
  14.             },
  15.             {
  16.                 "id": "maria",
  17.                 "coordinates": {
  18.                     "latitude": -30.0355884,
  19.                     "longitude": -51.2249722
  20.                 },
  21.                 "logisticConstraints": {
  22.                     "id": "DEFAULT"
  23.                 },
  24.                 "isDepot": false
  25.             },
  26.             {
  27.                 "id": "P1Pickup",
  28.                 "coordinates": {
  29.                     "latitude": -30.031558,
  30.                     "longitude": -51.234261
  31.                 },
  32.                 "logisticConstraints": {
  33.                     "id": "P1Pickup"
  34.                 },
  35.                 "isDepot": true
  36.             },
  37.             {
  38.                 "id": "P1Delivery",
  39.                 "coordinates": {
  40.                     "latitude": -30.0360315,
  41.                     "longitude":  -51.2312739
  42.                 },
  43.                 "logisticConstraints": {
  44.                     "id": "P1Delivery"
  45.                 },
  46.                 "isDepot": false
  47.             }
  48.         ],
  49.         "operations": [
  50.             {
  51.                 "id": "P1",
  52.                 "weight": 30,
  53.                 "volume": 30,
  54.                 "product": {
  55.                     "id": "DEFAULT"
  56.                 },
  57.                 "type": "DELIVERY",
  58.                 "priority": 0,
  59.                 "depotSite": {
  60.                     "id": "P1Pickup"
  61.                 },
  62.                 "customerSite": {
  63.                     "id": "P1Delivery"
  64.                 },
  65.                 "timeWindows": [
  66.                     {
  67.                         "start": "2017-06-26T11:30:00.000Z",
  68.                         "end": "2017-06-26T14:30:00.000Z"
  69.                     }
  70.                 ],
  71.                 "preAllocatedTruckId" : "maria",
  72.                 "noTimeWindowTransformer": {
  73.                     "coefficient": "0"
  74.                 }
  75.             }
  76.         ],
  77.         "vehicleTypologies": [
  78.             {
  79.                 "id": "vehicleTypology1",
  80.                 "maxWeight": 100,
  81.                 "maxVolume": 100,
  82.                 "size": 1
  83.             }
  84.         ],
  85.         "vehicles": [
  86.             {
  87.                 "id": "joao",
  88.                 "vehicleTypology": {
  89.                     "id": "vehicleTypology1"
  90.                 },
  91.                 "legislationProfile": {
  92.                     "id": "DEFAULT"
  93.                 },
  94.                 "availablesPeriods": [
  95.                     {
  96.                         "timeWindow": {
  97.                             "start": "2017-06-26T11:30:00.000Z",
  98.                             "end": "2017-06-27T11:30:00.000Z"
  99.                         },
  100.                         "departureSite": {
  101.                             "id": "joao"
  102.                         },
  103.                         "arrivalSite": {
  104.                             "id": "joao"
  105.                         },
  106.                         "maxRoutesNumber": 1
  107.                     }
  108.                 ]
  109.             },
  110.             {
  111.                 "id": "maria",
  112.                 "vehicleTypology": {
  113.                     "id": "vehicleTypology1"
  114.                 },
  115.                 "legislationProfile": {
  116.                     "id": "DEFAULT"
  117.                 },
  118.                 "availablesPeriods": [
  119.                     {
  120.                         "timeWindow": {
  121.                             "start": "2017-06-26T11:30:00.000Z",
  122.                             "end": "2017-06-27T11:30:00.000Z\"\n"
  123.                         },
  124.                         "departureSite": {
  125.                             "id": "maria"
  126.                         },
  127.                         "arrivalSite": {
  128.                             "id": "maria"
  129.                         },
  130.                         "maxRoutesNumber": 1
  131.                     }
  132.                 ]
  133.             }
  134.         ],
  135.         "products": [
  136.             {
  137.                 "id": "DEFAULT"
  138.             }
  139.         ],
  140.         "legislationProfiles": [
  141.             {
  142.                 "id": "DEFAULT"
  143.             }
  144.         ],
  145.         "logisticConstraints": [
  146.             {
  147.                 "id": "DEFAULT",
  148.                 "unloadingFixedTimeSite": 0
  149.             },
  150.             {
  151.                 "id": "P1Pickup",
  152.                 "loadingFixedTimeSite": 420
  153.             },
  154.             {
  155.                 "id": "P1Delivery",
  156.                 "unloadingFixedTimeSite": 420
  157.             }
  158.         ]
  159.     },
  160.     "routesCalculationParameters": {
  161.         "optimizationProfile": {
  162.             "id": "T46GoHusky"
  163.         },
  164.         "tripsProfile": {
  165.             "id": "ShortestGoHusky"
  166.         },
  167.         "calculationStartDate": "2017-06-26T11:30:00.000Z"
  168.     }
  169. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement