initial project setup with README and ignore
This commit is contained in:
26
app/core/constants.py
Normal file
26
app/core/constants.py
Normal file
@@ -0,0 +1,26 @@
|
||||
"""API constants and configuration."""
|
||||
|
||||
# API Configuration
|
||||
API_VERSION = "2.0.0"
|
||||
API_TITLE = "Route Optimization API"
|
||||
API_DESCRIPTION = "Professional API for delivery route optimization"
|
||||
|
||||
# Route Optimization Limits
|
||||
MAX_DELIVERIES = 50
|
||||
MIN_DELIVERIES = 1
|
||||
|
||||
# Coordinate Validation
|
||||
MIN_LATITUDE = -90
|
||||
MAX_LATITUDE = 90
|
||||
MIN_LONGITUDE = -180
|
||||
MAX_LONGITUDE = 180
|
||||
|
||||
# Algorithm Types
|
||||
ALGORITHM_GREEDY = "greedy"
|
||||
ALGORITHM_TSP = "tsp"
|
||||
|
||||
# Response Messages
|
||||
MESSAGE_SUCCESS = "Route optimized successfully"
|
||||
MESSAGE_VALIDATION_ERROR = "Request validation failed"
|
||||
MESSAGE_INTERNAL_ERROR = "An unexpected error occurred"
|
||||
|
||||
Reference in New Issue
Block a user