{"openapi":"3.1.0","info":{"title":"Destination Command Center Location API","version":"2.0.0","description":"Dense coordinate-native public location intelligence. Latitude and longitude are the canonical DCC location key. Responses are assembled from geographically applicable public machine-readable sources."},"servers":[{"url":"https://www.destinationcommandcenter.com"}],"paths":{"/api/location/{lat}/{lng}":{"get":{"operationId":"getLocationIntelligence","summary":"Get dense current public context for a coordinate","description":"Returns ordered modules for identity, current conditions, short-range forecast, hazards, water, official public data, events, machine feeds, and source freshness. Modules may be absent or empty when no mapped source applies.","parameters":[{"name":"lat","in":"path","required":true,"schema":{"type":"number","minimum":-90,"maximum":90},"description":"Latitude. Canonical DCC URLs use five decimal places."},{"name":"lng","in":"path","required":true,"schema":{"type":"number","minimum":-180,"maximum":180},"description":"Longitude. Canonical DCC URLs use five decimal places."},{"name":"timezone","in":"query","required":false,"schema":{"type":"string","default":"auto"},"description":"Optional timezone hint for legacy/configured event feeds. Core coordinate sources resolve timezone from the coordinate."}],"responses":{"200":{"description":"Dense DCC coordinate intelligence object","headers":{"X-DCC-Schema":{"schema":{"type":"string","const":"dcc-location-v2"}},"X-DCC-Coordinate":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DccLocationResponse"}}}},"400":{"description":"Invalid coordinate"},"503":{"description":"Coordinate accepted but location-intelligence sources are temporarily unavailable"}}}}},"components":{"schemas":{"DccLocationResponse":{"type":"object","required":["ok","schema","schemaVersion","coordinate","canonical","checkedAt","modules","sources"],"properties":{"ok":{"type":"boolean"},"schema":{"type":"string","const":"dcc-location-v2"},"schemaVersion":{"type":"integer","const":2},"coordinate":{"type":"object","required":["lat","lng","precision_decimals"],"properties":{"lat":{"type":"number"},"lng":{"type":"number"},"precision_decimals":{"type":"integer","const":5}}},"location":{"type":"object","additionalProperties":true,"description":"Coordinate identity plus derived timezone/elevation. Human-readable reverse-geocoded names are not required for machine use."},"canonical":{"type":"object","properties":{"page":{"type":"string"},"api":{"type":"string"},"absolutePage":{"type":"string","format":"uri"},"absoluteApi":{"type":"string","format":"uri"}}},"checkedAt":{"type":"string","format":"date-time"},"modules":{"type":"object","required":["identity","now","conditions","hazards","water","official"],"properties":{"identity":{"type":"object","additionalProperties":true},"now":{"type":"object","properties":{"weather":{"type":["object","null"],"additionalProperties":true},"airQuality":{"type":["object","null"],"additionalProperties":true}}},"conditions":{"type":"object","properties":{"next12Hours":{"type":"array","items":{"type":"object","additionalProperties":true}},"next3Days":{"type":"array","items":{"type":"object","additionalProperties":true}},"airQualityNext12Hours":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"hazards":{"type":"object","properties":{"alerts":{"type":"array","items":{"type":"object","additionalProperties":true}},"earthquakes":{"type":"array","items":{"type":"object","additionalProperties":true}},"naturalEvents":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"water":{"type":"object","properties":{"nearbyGauges":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"official":{"type":"object","additionalProperties":true},"events":{"type":["object","null"],"additionalProperties":true},"machineFeeds":{"type":"array","items":{"type":"object","additionalProperties":true}},"providerSlots":{"type":"object","additionalProperties":true},"officialLiveLinks":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"sources":{"type":"array","description":"Per-provider availability, attribution, freshness, and error state.","items":{"type":"object","properties":{"provider":{"type":"string"},"attribution":{"type":"string"},"available":{"type":"boolean"},"checkedAt":{"type":"string","format":"date-time"},"error":{"type":"string"}}}},"weather":{"type":["object","null"],"additionalProperties":true,"description":"v1 compatibility alias for modules.now.weather"},"alerts":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"v1 compatibility alias for modules.hazards.alerts"},"earthquakes":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"Compatibility alias for modules.hazards.earthquakes"},"events":{"type":["object","null"],"additionalProperties":true},"machineFeeds":{"type":"array","items":{"type":"object","additionalProperties":true}},"providerSlots":{"type":"object","additionalProperties":true},"policy":{"type":"object","additionalProperties":true}}}}}}