What county am I in?

Find the county at your location, with state and country context. Use your browser location or enter coordinates for a map point. US results can also include the county's FIPS code.

County by location versus county by ZIP

A ZIP can cover more than one county. This lookup starts with a particular coordinate pair instead of a postal record. Enter latitude first, then longitude, such as 25.77, -80.19.

Check the position near a county line

An approximate browser location or a rounded coordinate can move the point across a nearby boundary. For a boundary-sensitive address lookup, use coordinates for that address rather than a nearby city or ZIP center.

Build a county lookup from coordinates

Collect a point in the browser, then use the Point API on your server to find its county. Unlike a ZIP lookup, this checks the supplied geographic point.

  1. Ask for browser location on an explicit click, or accept coordinates.
  2. Send latitude and longitude to your server.
  3. Read district_name with state and country context from Point.

Installation steps are included in each example. Set PARSEAPI_KEY on your server. Swift and Kotlin use an app key restricted to your app ID.

// npm install @parseapi/sdk@1.14.0
import { parseAPI } from '@parseapi/sdk';

// Set PARSEAPI_KEY on your server.
const parse = parseAPI();

const latitude = Number(process.argv[2] ?? '35.2271');
const longitude = Number(process.argv[3] ?? '-80.8431');
if (!Number.isFinite(latitude) || Math.abs(latitude) > 90 ||
    !Number.isFinite(longitude) || Math.abs(longitude) > 180) {
  throw new Error('Enter valid latitude and longitude.');
}

const row = await parse.point(latitude, longitude);
if (!row.district_name) throw new Error('No county is available for that point.');
console.log({ county: row.district_name, fips: row.country === 'US' ? row.district ?? null : null,
  state: row.state_name, country: row.country_name });

Get coordinates in the browser (HTTPS or localhost)

coordinates.html
<!doctype html>
<html lang="en"><meta charset="utf-8"><title>Get coordinates</title>
<button id="locate">Use my location</button><pre id="result"></pre>
<script type="module">
const output = document.querySelector('#result');
document.querySelector('#locate').onclick = () => {
  if (!navigator.geolocation) { output.textContent = 'Enter coordinates manually.'; return; }
  navigator.geolocation.getCurrentPosition(({ coords }) => {
    // Send these numbers to your own server's lookup handler.
    output.textContent = JSON.stringify({
      latitude: coords.latitude, longitude: coords.longitude,
    }, null, 2);
  }, () => { output.textContent = 'Location unavailable. Enter coordinates manually.'; },
  { timeout: 10000, maximumAge: 60000 });
};
</script></html>

Point API documentation

How do I find what county I am in?

Select Use my location, or enter latitude followed by longitude. The lookup checks that point and displays its county with state and country context.

Can I find my county without sharing browser location?

Enter coordinates manually. If you only know a US ZIP, use the county-by-ZIP lookup, keeping in mind that a ZIP can cross county lines.

Is my county the same as my city?

A city and a county are different geographic units, although some places combine them. A city name alone does not always identify a single county.

Why does the result say parish, borough, or municipality?

Some places use county equivalents. Louisiana has parishes; Alaska includes boroughs, municipalities, and census areas.

Why might my location show the wrong county?

Browser location can be approximate. Near a county boundary, a small position error can cross the line. Check the coordinates for the address or point you intended.

Does it work outside the US?

Where supported, the result can name a local county-equivalent subdivision such as a district or department. Local names and code systems differ; a US FIPS code is only labeled for US results.