-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
60 lines (43 loc) · 2.03 KB
/
.env.example
File metadata and controls
60 lines (43 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# TrafikAPI Configuration
# Copy this file to .env and fill in your values
# =============================================================================
# REQUIRED: Trafikverket API Key
# =============================================================================
# Get your free API key at: https://api.trafikinfo.trafikverket.se/
TRAFIKVERKET_API_KEY=
# =============================================================================
# Optional: Service Configuration
# =============================================================================
# Trafikverket API endpoint (default is production)
# TRAFIKVERKET_API_URL=https://api.trafikinfo.trafikverket.se/v2/data.json
# Routing provider: osrm (default)
# ROUTING_PROVIDER=osrm
# OSRM API URL (default uses public demo server)
# OSRM_API_URL=https://router.project-osrm.org
# Geocoding provider: nominatim (default)
# GEOCODING_PROVIDER=nominatim
# Nominatim API URL (default uses public server)
# NOMINATIM_API_URL=https://nominatim.openstreetmap.org
# User agent for Nominatim requests (be respectful!)
# NOMINATIM_USER_AGENT=TrafikAPI/1.0
# =============================================================================
# Optional: Cache Settings (TTL in seconds)
# =============================================================================
# Geocoding cache (default: 24 hours)
# CACHE_GEOCODE_TTL=86400
# Routing cache (default: 1 hour)
# CACHE_ROUTING_TTL=3600
# Trafikverket data cache (default: 5 minutes)
# CACHE_TRAFIKVERKET_TTL=300
# =============================================================================
# Optional: Route Filtering
# =============================================================================
# Buffer distance in km around route for filtering events (default: 5km)
# CORRIDOR_BUFFER_KM=5.0
# =============================================================================
# Optional: Application Settings
# =============================================================================
# Application name
# APP_NAME=TrafikAPI
# Enable debug mode
# DEBUG=false