27 lines
610 B
Python
27 lines
610 B
Python
"""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"
|
|
|