8

I am looking for a list of all US cities and their latitude and longitude.

Ideally something free will work but I'm willing to pay for it if its not too expensive and its complete.

1

4 Answers 4

5

United States Cities Database

A simple, accurate, and up-to-date database of United States cities and towns, built from the ground up using authoritative sources such as the U.S. Geological Survey and U.S. Census Bureau.

  • Up-to-date: Data updated as of November 18, 2020.
  • Comprehensive: Over 108,000 cities and towns from all 50 states, DC, Puerto Rico, and the US Virgin Islands.
  • Useful fields: From latitude and longitude to household income.
  • Accurate: Aggregated and cleaned from official sources.
  • Simple: A single CSV file, concise field names, only one entry per city/town.

The Basic (free) database will meet many users' needs. You may want to purchase the Pro or Comprehensive versions if:

  • You need data for rural towns/villages or places that aren't incorporated municipalities.
  • You need demographic data such as age, race, education, or income.
  • You don't want to (or can't) attribute your use of our data on a public-facing website.

Download Here


the US Cities Database The SQL file and a CSV have 29,880 registered cities. All cities are located in the United States.

The SQL file contains two tables:

  • US_STATES: ID, STATE_CODE, and STATE_NAME.

  • US_CITIES: ID, ID_STATE, CITY, COUNTY, LATITUDE, and LONGITUDE.

The US_CITIES table has all (or almost all) cities from the United States.


5

The U.S. Census Bureau is the authoritative government agency that has been tasked with managing national data about governments (state, local, and municipal) and the boundaries that they claim.

The latest data includes administrative boundaries for cities, towns, and CDP's (Census Designated Places). What is a CDP? Think of them as an area that is not a city/town nor is incorporated but is recognized as a distinct area for which to produce economic/social estimates.

If you're feeling adventurous and want to look through the boundaries shapefile joined with an abundance of demographic/social/economic estimates through their American Community Survey you might be able to delve into their Demographic Profile series in this directory.

2
  • 1
    It looks like your link is to Shape Files? Not sure how these can be used easily.
    – Kevin P.
    Commented Aug 19, 2021 at 3:08
  • 1
    The shapefile contains metadata including two fields: INTPTLAT and INTPTLON. You can retrieve the list of Cities, Towns, and CDPs from this list.
    – Kotebiya
    Commented Aug 19, 2021 at 16:36
1

If you are doing this with R, I would (and regularly do) use TidyCensus. It is an interface to the census API, including the ability pull down census place data with its geometry. A quick call to st_centroid() would get you representative points. The place data on the SFTP website referenced in other answers typically has a representative lat-long with the place download.

1

Check out the US Geological Survey's Geographic Names Information System (USGS GNIS).

In particular, see FederalCodes which is described as:

Domestic names records that have assigned Census codes, Census class codes, General Services Administration (GSA) codes, or Office of Personnel Management (OPM) codes. Available geographic extents are National, States, and AllStates (bundled States).

Here's a link to the national zip file and states zip file. You can also download individual state zip files.

The zip file contains a pipe-delimited TXT file that includes US cities and their coordinates.

Alternatively, you can try the US Census' County and County Equivalent Entities. Here's the link to the national TXT file. It gets the job done but the way the cities are formatted isn't ideal in my opinion. For example, towns/cities are appended with "township", "town", "city", and even "town city" in some cases. In comparison, the cities in the GNIS data are in a format that would be more familiar to most people.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.