Generate intelligent tractor recommendations for a specific terrain and implement
curl -X POST https://api.maqagr.com/api/recommendations/generate \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"terrain_id": 1,
"implement_id": 2,
"working_depth_m": 0.25,
"work_type": "tillage"
}'
{
"success": true,
"message": "Recomendaciones generadas exitosamente",
"data": {
"queryId": 10,
"implement": {
"id": 2,
"name": "Arado de discos",
"brand": "Baldan",
"type": "plow"
},
"terrain": {
"id": 1,
"name": "Parcela Norte",
"soil_type": "clay",
"slope_percentage": 15
},
"powerRequirement": {
"minimum_power_hp": 95.5
},
"recommendations": [
{
"rank": 1,
"tractor": {
"id": 3,
"name": "John Deere 6130M",
"brand": "John Deere",
"model": "6130M",
"engine_power_hp": 130,
"traction_type": "4x4"
},
"score": {
"total": 87.5
},
"classification": {
"label": "OPTIMAL"
},
"explanation": "Alta eficiencia energética (85% utilización). Ajuste óptimo de potencia."
}
]
}
}
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/David9604/BackMaqagr/llms.txt
Use this file to discover all available pages before exploring further.
Authorization: Bearer <token>
tillage, planting, harvesting, transport, generalShow properties
Show recommendation object
Show properties
curl -X POST https://api.maqagr.com/api/recommendations/generate \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"terrain_id": 1,
"implement_id": 2,
"working_depth_m": 0.25,
"work_type": "tillage"
}'
{
"success": true,
"message": "Recomendaciones generadas exitosamente",
"data": {
"queryId": 10,
"implement": {
"id": 2,
"name": "Arado de discos",
"brand": "Baldan",
"type": "plow"
},
"terrain": {
"id": 1,
"name": "Parcela Norte",
"soil_type": "clay",
"slope_percentage": 15
},
"powerRequirement": {
"minimum_power_hp": 95.5
},
"recommendations": [
{
"rank": 1,
"tractor": {
"id": 3,
"name": "John Deere 6130M",
"brand": "John Deere",
"model": "6130M",
"engine_power_hp": 130,
"traction_type": "4x4"
},
"score": {
"total": 87.5
},
"classification": {
"label": "OPTIMAL"
},
"explanation": "Alta eficiencia energética (85% utilización). Ajuste óptimo de potencia."
}
]
}
}
src/routes/recommendation.routes.js:139src/controllers/recommendationController.js:141src/services/recommendationService.jscurl -X POST https://api.maqagr.com/api/recommendations/generate \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"terrain_id": 1,
"implement_id": 2,
"working_depth_m": 0.25,
"work_type": "tillage"
}'
{
"success": true,
"message": "Recomendaciones generadas exitosamente",
"data": {
"queryId": 10,
"implement": {
"id": 2,
"name": "Arado de discos",
"brand": "Baldan",
"type": "plow"
},
"terrain": {
"id": 1,
"name": "Parcela Norte",
"soil_type": "clay",
"slope_percentage": 15
},
"powerRequirement": {
"minimum_power_hp": 95.5
},
"recommendations": [
{
"rank": 1,
"tractor": {
"id": 3,
"name": "John Deere 6130M",
"brand": "John Deere",
"model": "6130M",
"engine_power_hp": 130,
"traction_type": "4x4"
},
"score": {
"total": 87.5
},
"classification": {
"label": "OPTIMAL"
},
"explanation": "Alta eficiencia energética (85% utilización). Ajuste óptimo de potencia."
}
]
}
}