VROOM Jobs Curl Example

mail@pastecode.io avatar
unknown
json
2 years ago
2.1 kB
7
Indexable
Never
curl --request POST \
  --url http://solver.vroom-project.org/ \
  --header 'Content-Type: application/json' \
  --data '{
	"jobs": [
		{
			"id": 1,
			"description": "680, Carrer de València, Barcelona",
			"location": [
				2.191257476806641,
				41.412608176283975
			]
		},
		{
			"id": 2,
			"description": "Carrer de la Llacuna, Barcelona",
			"location": [
				2.196578979492188,
				41.402823190707494
			]
		},
		{
			"id": 3,
			"description": "2-4, Carrer de Pere IV, Barcelona",
			"location": [
				2.189712524414063,
				41.393165510272915
			],
			"delivery": [
				1
			]
		},
		{
			"id": 4,
			"description": "28, Carrer de Verntallat, Barcelona",
			"location": [
				2.1558952331542973,
				41.40642835684362
			],
			"delivery": [
				1
			]
		},
		{
			"id": 5,
			"description": "64, Carrer de Villarroel, Barcelona",
			"location": [
				2.1586418151855473,
				41.383763989834584
			],
			"delivery": [
				1
			]
		},
		{
			"id": 6,
			"description": "205, Carrer de la Riera Blanca, Barcelona",
			"location": [
				2.13186264038086,
				41.367404680198604
			]
		},
		{
			"id": 7,
			"description": "24B, Passeig de Gràcia, Barcelona",
			"delivery": [1],
			"location": [
				2.1684265136718754,
				41.39071867007324
			]
		},
		{
			"id": 8,
			"description": "90, 94, Carrer de Nicaragua, Barcelona",
			"delivery": [1],
			"location": [
				2.1394157409667973,
				41.3850519497068
			]
		}
	],


	"vehicles": [
		{
			"id": 1,
			"capacity": [2],
			"start": [
				2.1601867675781254,
				41.39522593585012
			],
			"startDescription": "99, Passeig de Gràcia, Barcelona",
			"end": [
				2.1601867675781254,
				41.39522593585012
			],
			"endDescription": "99, Passeig de Gràcia, Barcelona"

		},
		{
			"id": 2,
			"capacity": [2],
			"start": [
				2.1601867675781254,
				41.39522593585012
			],
			"startDescription": "99, Passeig de Gràcia, Barcelona",
			"end": [
				2.1601867675781254,
				41.39522593585012
			],
			"endDescription": "99, Passeig de Gràcia, Barcelona"
		}
	],
	"options": {
		"g": true
	}
}'