admin Tested: December 23, 2025

Counties Management

Comprehensive county database management with 3,222 US counties, geographic coordinates, and content management capabilities.

admincountiesgeographydata-management
Counties Management

Overview

The Counties Management page provides full CRUD operations for all 3,222 US counties, including geographic data, content management, and state filtering.

Key Features

Database Statistics

  • Total Counties: 3,222 (complete US coverage)
  • With Content: 0 (counties with photos/descriptions)
  • States: 52 (includes DC and Puerto Rico)

County Table

Each county row displays:

  • FIPS Code: 5-digit federal information processing standard code
  • County Name: Official county name
  • State: Two-letter state abbreviation
  • Location: Latitude/Longitude coordinates (centroid)
  • Content Status: “Photo” badge if county has media
  • Edit Button: Quick access to county editing
  • Filter by State: Dropdown to show counties for specific states
  • Search: (Planned) Text search for county names
  • Sort: (Planned) Sort by name, state, or FIPS code

Geographic Data

Counties include precise geographic coordinates for:

  • Map rendering (polygon boundaries via GeoJSON)
  • Centroid calculation (center point of county)
  • Distance calculations (find nearby counties)
  • Search radius queries

Data Structure

Each county record contains:

{
  "fips": "01001",
  "name": "Autauga",
  "state_id": 1,
  "centroid_lat": 32.5322,
  "centroid_lng": -86.6464,
  "photo_url": null,
  "description": null
}

Use Cases

For Brokers

  • View available counties for partnership
  • See which counties already have broker coverage
  • Identify expansion opportunities in nearby counties

For Admins

  • Update county geographic data
  • Add county photos and descriptions
  • Assign brokers to specific counties
  • Manage county-level content for public-facing map

For Content Management

  • Upload county photos showcasing local landmarks
  • Write descriptions highlighting county features
  • Maintain accurate geographic boundaries

Edit County View

County Edit Screen

The county edit screen provides full geographic and content management:

County Information

  • County Name: Official county name (editable)
  • FIPS Code: Federal identifier (read-only for data integrity)
  • Centroid Coordinates: Latitude and longitude with Google Maps link

County Content

Marketing content for public display:

  • Area Description: Overview paragraph for the county
  • Highlights: Key selling features and notable attractions

County Photo

  • Photo URL: Representative image of the county
  • Preview of current photo
  • Accepts any valid image URL (landscapes, downtown areas, landmarks)
  • County status summary showing content completeness
  • State association with quick link to state edit
  • Brokers link to view assigned brokerages
  • Record metadata (County ID, FIPS, Created/Updated dates)

Testing Results

  • ✅ Page loads all 3,222 counties successfully
  • ✅ Counties displayed in scrollable table
  • ✅ FIPS codes, names, and coordinates all correct
  • ✅ State abbreviations display properly
  • ✅ “Photo” content badges appear when applicable
  • ✅ Edit buttons link to county detail pages
  • ✅ Statistics cards show accurate counts
  • ✅ Filter dropdown populated with all states
  • ✅ Page renders quickly despite large dataset
  • ✅ No console errors during county list display
  • ✅ Edit form saves content changes correctly
  • ✅ Photo preview updates on URL change