fleetmind-dispatch-ai / .env.example
mashrur950's picture
feat: Integrate Google Routes API for real-time routing with fallback logic
3f6819d
raw
history blame
2.3 kB
# ============================================================================
# FleetMind MCP Server - Environment Configuration
# For HuggingFace Space (Track 1) deployment
# ============================================================================
# ============================================================================
# Google Maps API (REQUIRED)
# ============================================================================
# Used for geocoding addresses and calculating routes
# Get your API key at: https://console.cloud.google.com/google/maps-apis
# Enable these APIs in your Google Cloud Console:
# - Geocoding API (required for address lookup)
# - Routes API (recommended - new, more accurate)
# - Directions API (legacy fallback)
# The system will try Routes API first, then fall back to Directions API
GOOGLE_MAPS_API_KEY=your_google_maps_api_key_here
# ============================================================================
# OpenWeatherMap API (OPTIONAL - for intelligent routing)
# ============================================================================
# Used for weather-aware routing decisions
# Get free API key at: https://openweathermap.org/api
# Free tier: 1,000 calls/day, 60 calls/minute
OPENWEATHERMAP_API_KEY=your_openweathermap_api_key_here
# ============================================================================
# PostgreSQL Database Configuration (REQUIRED)
# ============================================================================
# For local development, use localhost
# For HuggingFace Space, use Neon or other cloud PostgreSQL
# Get free PostgreSQL at: https://neon.tech
DB_HOST=your-postgres-host.neon.tech
DB_PORT=5432
DB_NAME=fleetmind
DB_USER=your_db_user
DB_PASSWORD=your_db_password
# ============================================================================
# Server Configuration (OPTIONAL)
# ============================================================================
# HuggingFace Space will set these automatically
# Only needed for local SSE mode testing
PORT=7860
HOST=0.0.0.0
# ============================================================================
# Logging (OPTIONAL)
# ============================================================================
LOG_LEVEL=INFO
LOG_FILE=logs/fleetmind.log