# Are there standardized city codes?

**URL:** https://boards.straightdope.com/t/are-there-standardized-city-codes/467956
**Category:** Factual Questions
**Created:** [October 14, 2008, 10:07pm UTC](https://boards.straightdope.com/t/are-there-standardized-city-codes/467956 "2008-10-14T22:07:45Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![CaveMike](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cavemike/32/16379_2.png) [@CaveMike](https://boards.straightdope.com/u/CaveMike)
#### Post date: [October 14, 2008, 10:07pm UTC](https://boards.straightdope.com/t/are-there-standardized-city-codes/467956/1 "2008-10-14T22:07:45Z")

</div>

There are ISO standard abbreviations for countries and languages. Are there similar codes (standard or ad-hoc) for major cities?

For example, if I want to abbreviate New York, Chicago, Tokyo, London, and Paris.

---

<div class="post-metadata">

### Author: ![phouka](https://avatars.discourse-cdn.com/v4/letter/p/c5a1d2/32.png) [@phouka](https://boards.straightdope.com/u/phouka)
#### Post date: [October 14, 2008, 10:12pm UTC](https://boards.straightdope.com/t/are-there-standardized-city-codes/467956/2 "2008-10-14T22:12:17Z")

</div>

You could go by [www.world-airport-codes.com/](http://www.world-airport-codes.com/), as city names are standardized for air travel.

Don’t know if it’s ISO or not.

---

<div class="post-metadata">

### Author: ![GorillaMan](https://avatars.discourse-cdn.com/v4/letter/g/50afbb/32.png) [@GorillaMan](https://boards.straightdope.com/u/GorillaMan)
#### Post date: [October 14, 2008, 10:20pm UTC](https://boards.straightdope.com/t/are-there-standardized-city-codes/467956/3 "2008-10-14T22:20:27Z")

</div>

Never mind standardising abbreviations, what ‘city’ itself means depends on the jurisdiction. The city generally referred to as London is made up of a bunch of local authorities, two of which are named as the City of Westminster and the City of London. The latter has a population of under ten thousand. On the other hand, there are conurbations elsewhere in Britain of a quarter-million without the designation ‘city’.

---

<div class="post-metadata">

### Author: ![CaveMike](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cavemike/32/16379_2.png) [@CaveMike](https://boards.straightdope.com/u/CaveMike)
#### Post date: [October 14, 2008, 10:57pm UTC](https://boards.straightdope.com/t/are-there-standardized-city-codes/467956/4 "2008-10-14T22:57:09Z")

</div>

> [@phouka](#):
>
> You could go by [www.world-airport-codes.com/](http://www.world-airport-codes.com/), as city names are standardized for air travel.

Thanks **phouka**. I was thinking about airport names too. The only troubles are that they are not mnemonic and big cities often have multiple airports.

> [@GorillaMan](#):
>
> Never mind standardising abbreviations, what ‘city’ itself means depends on the jurisdiction.

True and an interesting point. It would make an official standard very difficult, but I thought there might be something ad-hoc.

I need to deploy computer equipment in several remote offices and I’d like to have abbreviations to use. Obviously since it is a private network, I can pick anything I want, but the over-orderly side of me would like to use an existing scheme if possible. I’ll probably just pick the first three letters of the city’s name (in English), but I am curious if there are any defacto standards.

---

<div class="post-metadata">

### Author: ![Troy\_McClure\_SF](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/troy_mcclure_sf/32/4150_2.png) [@Troy\_McClure\_SF](https://boards.straightdope.com/u/Troy_McClure_SF)
#### Post date: [October 14, 2008, 11:26pm UTC](https://boards.straightdope.com/t/are-there-standardized-city-codes/467956/5 "2008-10-14T23:26:53Z")

</div>

> [@phouka](#):
>
> You could go by [www.world-airport-codes.com/](http://www.world-airport-codes.com/), as city names are standardized for air travel.

Not only do some cities have multiple airports within city limits, but some airports are several miles away. [SFO](http://maps.google.com/maps?f=d&saddr=Candlestick+Park,+San+Francisco,+San+Francisco,+California+94124,+United+States&daddr=sfo&hl=en&geocode=&mra=pe&mrcr=0&sll=37.652122,-122.389979&sspn=0.130746,0.354996&ie=UTF8&ll=37.662624,-122.396278&spn=0.130727,0.354996&t=h&z=12) is 8 miles from the closest part of San Francisco limits.

---

<div class="post-metadata">

### Author: ![suranyi](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@suranyi](https://boards.straightdope.com/u/suranyi)
#### Post date: [October 15, 2008, 2:04am UTC](https://boards.straightdope.com/t/are-there-standardized-city-codes/467956/6 "2008-10-15T02:04:29Z")

</div>

> [@CaveMike](#):
>
> Thanks **phouka**. I was thinking about airport names too. The only troubles are that they are not mnemonic and big cities often have multiple airports.True and an interesting point. It would make an official standard very difficult, but I thought there might be something ad-hoc.
> 
> I need to deploy computer equipment in several remote offices and I’d like to have abbreviations to use. Obviously since it is a private network, I can pick anything I want, but the over-orderly side of me would like to use an existing scheme if possible. I’ll probably just pick the first three letters of the city’s name (in English), but I am curious if there are any defacto standards.

As someone who works in the mapping industry, I can tell you that outside of certain specific areas (such as aviation, which has already been mentioned), there are no such standards. Use whatever you want.

To be specific, there is an ISO scheme for indicating countries, but not for cities. We have our own in-house scheme for uniquely identifying cities with a code, but it’s just a long number.

Ed

---

<div class="post-metadata">

### Author: ![tomndebb](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@tomndebb](https://boards.straightdope.com/u/tomndebb)
#### Post date: [October 15, 2008, 3:36am UTC](https://boards.straightdope.com/t/are-there-standardized-city-codes/467956/7 "2008-10-15T03:36:26Z")

</div>

> [@CaveMike](#):
>
> I need to deploy computer equipment in several remote offices and I’d like to have abbreviations to use.

Go to accounting and see how they identify the sales/busiess offices on the chart of accounts. If they have a usable code, that would keep you in coordination with the business, itself. In fact, two separate divisional offices in the same physical location could still be identified . (If you only establish one set of equipment, use the ID of the politically more powqerful unit and if they move, have the ID follow them while establishing the lesser office’s ID for the remaining equipment.)

---

<div class="post-metadata">

### Author: ![ChrisBooth12](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@ChrisBooth12](https://boards.straightdope.com/u/ChrisBooth12)
#### Post date: [October 15, 2008, 9:04am UTC](https://boards.straightdope.com/t/are-there-standardized-city-codes/467956/8 "2008-10-15T09:04:25Z")

</div>

When I worked for the state we used Airport codes to describe our satelite officers, SFO, SMF, LAX, OAK, SCK

---

<div class="post-metadata">

### Author: ![slaphead](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@slaphead](https://boards.straightdope.com/u/slaphead)
#### Post date: [October 15, 2008, 12:54pm UTC](https://boards.straightdope.com/t/are-there-standardized-city-codes/467956/9 "2008-10-15T12:54:23Z")

</div>

> [@CaveMike](#):
>
> Thanks **phouka**. I was thinking about airport names too. The only troubles are that they are not mnemonic and big cities often have multiple airports.True and an interesting point.

Well, there are some **city** codes as well as airport codes. LHR, LGW, STN, BQN and LCY are airports, but there’s also LON, which in many systems will associate with all those airports plus sometimes QQS (St Pancras International, for international trains) and various domestic rail terminals, if you’re interested in that sort of thing. But generally it’s an absolute dogs breakfast.

[QUOTE=suranyi]  
there are no such standards. Use whatever you want.  
[/QUOTE]

From what I’ve seen in terms of e.g. hotel data, there is are actually two informal standards.  
[ol][li]Adapt an existing system (e.g. airport codes) but in the most misleading way possible. i.e. tag a location on the east coast of england LHR or some place in New Jersey with JFK[\*]Make up some random coding system that looks nothing like any other and which is completely incomprehensible without four days of study.[/li][/ol]

---

<div class="post-metadata">

### Author: ![CookingWithGas](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cookingwithgas/32/485_2.png) [@CookingWithGas](https://boards.straightdope.com/u/CookingWithGas)
#### Post date: [October 15, 2008, 1:03pm UTC](https://boards.straightdope.com/t/are-there-standardized-city-codes/467956/10 "2008-10-15T13:03:05Z")

</div>

> [@CaveMike](#):
>
> I need to deploy computer equipment in several remote offices and I’d like to have abbreviations to use. Obviously since it is a private network, I can pick anything I want, but the over-orderly side of me would like to use an existing scheme if possible. I’ll probably just pick the first three letters of the city’s name (in English), but I am curious if there are any defacto standards.

No standards. I used to work for a company with a customer database of in the 15M range and we used (or talked about using, can’t remember) an address clean-up service. No standards for city names. International standards just go to the country level, and those were established for mailing purposes.

Which leads me to the suggestion that you use postal codes. Many cities have multiple postal codes, but if you have two offices in Manhattan that have different postal codes, is there any real need to identify them as being in the same city? As an IT guy I advise against making up requirements that serve no actual business purpose.

I don’t think you can just use the first 4 digits because sometimes that will be the same city and sometimes not, depending on population density.

There may be some countries that don’t use postal codes but I couldn’t name one and I’ll bet you’re not going to deploy equipment in one.

---

<div class="post-metadata">

### Author: ![TheLoadedDog](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@TheLoadedDog](https://boards.straightdope.com/u/TheLoadedDog)
#### Post date: [October 15, 2008, 1:13pm UTC](https://boards.straightdope.com/t/are-there-standardized-city-codes/467956/11 "2008-10-15T13:13:47Z")

</div>

> [@GorillaMan](#):
>
> Never mind standardising abbreviations, what ‘city’ itself means depends on the jurisdiction. The city generally referred to as London is made up of a bunch of local authorities, two of which are named as the City of Westminster and the City of London. The latter has a population of under ten thousand. On the other hand, there are conurbations elsewhere in Britain of a quarter-million without the designation ‘city’.

It’s all very weird. The postal system is different again - it seems every man and his dog has LONDON as their address, followed by a postal code. In Australia, this is much different, with SYDNEY being strictly the relatively tiny city centre/downtown/CBD/call-it-what-you-will. It has a population in the thousands only. Most people in the sprawling milti-millions population metropolis known informally as “Sydney” have no reference to SYDNEY in their address. You use your suburb name, and that’s in the same format as folks in the outback using their town or village name. If you weren’t familiar with the suburb name, you’d have no way of knowing it was in a big city or in a tiny hamlet.

---

<div class="post-metadata">

### Author: ![slaphead](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@slaphead](https://boards.straightdope.com/u/slaphead)
#### Post date: [October 15, 2008, 2:27pm UTC](https://boards.straightdope.com/t/are-there-standardized-city-codes/467956/12 "2008-10-15T14:27:46Z")

</div>

> [@TheLoadedDog](#):
>
> It’s all very weird. The postal system is different again - it seems every man and his dog has LONDON as their address, followed by a postal code.

Well, [Greater London](http://en.wikipedia.org/wiki/Greater_London) covers about 7.5 million people. It’s one of those Great British Oddnesses that London acts sort of like a county and sort of like a town at the same time for postal purposes.

---

<div class="post-metadata">

### Author: ![Alive\_At\_Both\_Ends](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@Alive\_At\_Both\_Ends](https://boards.straightdope.com/u/Alive_At_Both_Ends)
#### Post date: [October 15, 2008, 2:40pm UTC](https://boards.straightdope.com/t/are-there-standardized-city-codes/467956/13 "2008-10-15T14:40:56Z")

</div>

> [@slaphead](#):
>
> Well, [Greater London](http://en.wikipedia.org/wiki/Greater_London) covers about 7.5 million people. It’s one of those Great British Oddnesses that London acts sort of like a county and sort of like a town at the same time for postal purposes.

Greater London was created as a county in 1889 out of the urbanised bits of Middlesex, Surrey and Kent, with the rest of Middlesex and a chunk of Essex being added in 1965. Since it’s a county for postal purposes it gets mentioned a lot in postal addresses. Curiously, its administrative boundaries are different from its postal boundaries - for example, Dagenham is in Essex postally but London administratively. Another one of those Great British Oddnesses.

---

<div class="post-metadata">

### Author: ![TheLoadedDog](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@TheLoadedDog](https://boards.straightdope.com/u/TheLoadedDog)
#### Post date: [October 15, 2008, 2:44pm UTC](https://boards.straightdope.com/t/are-there-standardized-city-codes/467956/14 "2008-10-15T14:44:33Z")

</div>

How far out do you need to go?

A friend of mine had Croydon as her postal address. But what if you’re a ten minute walk from Trafalgar Square? A half hour? A forty-five minute Tube ride?

---

<div class="post-metadata">

### Author: ![TheLoadedDog](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@TheLoadedDog](https://boards.straightdope.com/u/TheLoadedDog)
#### Post date: [October 15, 2008, 2:48pm UTC](https://boards.straightdope.com/t/are-there-standardized-city-codes/467956/15 "2008-10-15T14:48:08Z")

</div>

Apologies, **Alive**. Please disregard my last post, as yours above answered more than adequately.

---

<div class="post-metadata">

### Author: ![Giles](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/giles/32/60_2.png) [@Giles](https://boards.straightdope.com/u/Giles)
#### Post date: [October 15, 2008, 2:55pm UTC](https://boards.straightdope.com/t/are-there-standardized-city-codes/467956/16 "2008-10-15T14:55:29Z")

</div>

As some of the answers suggest, a big part of the problem here is, What is a city? There are at least three possible meanings:  
(1) An incorporated local government area called a “city”;  
(2) A metropolitan area, consisting of continuous urban areas around some city centre(s); or  
(3) A postal address between the national/state/provincial level and the local/street level.

In the US, meaning (1) and meaning (3) almost always are the same. For example, the postal address “New York NY” corresponds with New York City, even though there are 5 named boroughs within NYC, and smaller areas within the boroughs, such as Greenwich Village. If you addressed mail to “Manhattan NY” or “Greenwich Village NY”, I’m sure the Post Office would send it on to the right place, but that’s not how it’s supposed to be done.

In the UK, there’s less of a match, so that the postal address “London” does not exactly match the incorporated Greater London (and certainly does not match the City of London, which is much smaller). In Australia, there’s almost no matching at all: postal addresses are almost always unincorporated localities, and do not cover the same area as the cities/municipalities with the same name (e.g., “SYDNEY NSW” is a much smaller area than the City of Sydney, even though the City of Sydney is in turn a relatively small part of the Sydney Metropolitan Area).

So, if you are coding for “cities”, and you give London, England, the code “LON”, you still have to decide whether London means the City of London, Greater London, the postal area named “London” or the London Metropolitan Area. The differences between all of these are not trivial.

---

<div class="post-metadata">

### Author: ![Johnny\_L.A](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/johnny_l.a/32/1084_2.png) [@Johnny\_L.A](https://boards.straightdope.com/u/Johnny_L.A)
#### Post date: [October 15, 2008, 2:56pm UTC](https://boards.straightdope.com/t/are-there-standardized-city-codes/467956/17 "2008-10-15T14:56:54Z")

</div>

Some cities have abbreviations acceptable to the US Postal Service, and some don’t. For example, Rancho Santa Margarita maybe Rancho Sta Marg, Rcho Sta Marg, or **RSM**. Los Angeles is commonly abbreviated LA, and New York City is commonly abbreviated NY or NYC.

---

<div class="post-metadata">

### Author: ![Troy\_McClure\_SF](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/troy_mcclure_sf/32/4150_2.png) [@Troy\_McClure\_SF](https://boards.straightdope.com/u/Troy_McClure_SF)
#### Post date: [October 15, 2008, 3:34pm UTC](https://boards.straightdope.com/t/are-there-standardized-city-codes/467956/18 "2008-10-15T15:34:11Z")

</div>

> [@Giles](#):
>
> As some of the answers suggest, a big part of the problem here is, What is a city? There are at least three possible meanings:  
> (1) An incorporated local government area called a “city”;  
> (2) A metropolitan area, consisting of continuous urban areas around some city centre(s); or  
> (3) A postal address between the national/state/provincial level and the local/street level.

Ugh. This drives me nuts. Either you’re _in_ San Francisco or you’re not. If you’re in Daly City or Berkeley or Fairfax, you’re in Daly City or Berkeley or Fairfax, not San Francisco. You might be _near_ San Francisco or _just outside_ San Francisco, but you’re not _in_ San Francisco.

This is why people think LA=Southern California minus San Diego. Everyone west of Phoenix says they’re “from LA.”

---

<div class="post-metadata">

### Author: ![Terminus\_Est](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/terminus_est/32/3087_2.png) [@Terminus\_Est](https://boards.straightdope.com/u/Terminus_Est)
#### Post date: [October 15, 2008, 3:55pm UTC](https://boards.straightdope.com/t/are-there-standardized-city-codes/467956/19 "2008-10-15T15:55:53Z")

</div>

> [@Giles](#):
>
> As some of the answers suggest, a big part of the problem here is, What is a city? There are at least three possible meanings:  
> (1) An incorporated local government area called a “city”;  
> (2) A metropolitan area, consisting of continuous urban areas around some city centre(s); or  
> (3) A postal address between the national/state/provincial level and the local/street level.
> 
> In the US, meaning (1) and meaning (3) almost always are the same. For example, the postal address “New York NY” corresponds with New York City, even though there are 5 named boroughs within NYC, and smaller areas within the boroughs, such as Greenwich Village. If you addressed mail to “Manhattan NY” or “Greenwich Village NY”, I’m sure the Post Office would send it on to the right place, but that’s not how it’s supposed to be done.

New York City is a poor example of (1) and (3) being the same. The city is indeed a single local governmental entity. However, a postal address of “New York, NY” corresponds specifically to the borough of Manhattan. If you live in an outer borough, your mail would be addressed as “Brooklyn, NY”, “Staten Island, NY”, or “Bronx, NY” as the case may be. Queens is even more complicated; the USPS divides the borough into “Long Island City, NY”, “Jamaica, NY”, “Flushing, NY”, “Far Rockaway, NY”, and “Floral Park, NY”. Regardless of their postal address, all residents vote for a single mayor of the City of New York.

---

<div class="post-metadata">

### Author: ![elmwood](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/elmwood/32/3060_2.png) [@elmwood](https://boards.straightdope.com/u/elmwood)
#### Post date: [October 15, 2008, 3:58pm UTC](https://boards.straightdope.com/t/are-there-standardized-city-codes/467956/20 "2008-10-15T15:58:03Z")

</div>

In the Buffalo area, it’s even odder.

If you’re in the City of Buffalo, or some of its suburbs, the municipality name is your postal address; Buffalo, Tonawanda, Cheektowaga, and so on.

In a few suburbs, though, your address is the 1800s-era unincorporated hamlet name. Go to the town of Amherst, and you’ll find relatively few people with an Amherst address; it’s Snyder, Eggertsville, Bowmansville, Getzville, East Amherst, and so on. The incorporated Village of Williamsville is in the Town of Amherst, but the postal area is much larger, incorporating the village and parts of Amherst and the Town of Clarance. There’s a similar situation in Hamburg, with many having addresses for places that were never cities, towns or villages; Athol Springs, Wanakah, Woodlawn and so on.

I believe thhat in NYC, nobody living in the borough of Queens has a simple “Queens” postal address; neighborhood names are used instead, such as Rego Park, Jamaica, and so on.

[Next page](https://boards.straightdope.com/t/are-there-standardized-city-codes/467956.md?page=2)
