@extends('layouts.app') @section('title', $state->name.' Live Traffic Map') @php $googleMapsKey = $googleMapsKey ?? config('services.google.maps_browser_key'); @endphp @if(! $googleMapsKey) @push('styles') @endpush @endif @section('content')

{{ $state->name }} Live Traffic Map

Traffic map focused on {{ $state->name }}. With a Google Maps browser key, this displays real road/highway traffic using the Google Traffic Layer.

Back to Traffic Index Open Province Zoning
Province/Territory{{ $state->state_code }}
Saved Traffic Level{{ $state->traffic_level }}
Latitude{{ number_format($state->latitude, 3) }}
Longitude{{ number_format($state->longitude, 3) }}

{{ $googleMapsKey ? 'Live Google Traffic Layer is enabled. Zoom into highways and city roads to see current traffic movement and congestion.' : 'Google traffic key is not configured, so this fallback only shows saved database traffic status. Add GOOGLE_MAPS_BROWSER_KEY for live highway traffic.' }}

@endsection @if($googleMapsKey) @push('scripts') @endpush @else @push('scripts') @endpush @endif