Products
  • Wolfram|One

    The definitive Wolfram Language and notebook experience

  • Mathematica

    The original technical computing environment

  • Notebook Assistant + LLM Kit

    All-in-one AI assistance for your Wolfram experience

  • Compute Services
  • System Modeler
  • Finance Platform
  • Wolfram|Alpha Notebook Edition
  • Application Server
  • Enterprise Private Cloud
  • Wolfram Engine
  • Wolfram Player
  • Wolfram Cloud App
  • Wolfram Player App

More mobile apps

Core Technologies of Wolfram Products

  • Wolfram Language
  • Computable Data
  • Wolfram Notebooks
  • AI & Linguistic Understanding

Deployment Options

  • Wolfram Cloud
  • wolframscript
  • Wolfram Engine Community Edition
  • Wolfram LLM API
  • WSTPServer
  • Wolfram|Alpha APIs

From the Community

  • Function Repository
  • Community Paclet Repository
  • Example Repository
  • Neural Net Repository
  • Prompt Repository
  • Wolfram Demonstrations
  • Data Repository
  • Group & Organizational Licensing
  • All Products
Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

  • Data & Computational Intelligence
  • Model-Based Design
  • Algorithm Development
  • Wolfram|Alpha for Business
  • Blockchain Technology
  • Education Technology
  • Quantum Computation

Wolfram Consulting

Wolfram Solutions

  • Data Science
  • Artificial Intelligence
  • Biosciences
  • Healthcare Intelligence
  • Sustainable Energy
  • Control Systems
  • Enterprise Wolfram|Alpha
  • Blockchain Labs

More Wolfram Solutions

Wolfram Solutions For Education

  • Research Universities
  • Colleges & Teaching Universities
  • Junior & Community Colleges
  • High Schools
  • Educational Technology
  • Computer-Based Math

More Solutions for Education

  • Contact Us
Learning & Support

Get Started

  • Wolfram Language Introduction
  • Fast Intro for Programmers
  • Fast Intro for Math Students
  • Wolfram Language Documentation

More Learning

  • Highlighted Core Areas
  • Demonstrations
  • YouTube
  • Daily Study Groups
  • Wolfram Schools and Programs
  • Books

Grow Your Skills

  • Wolfram U

    Courses in computing, science, life and more

  • Community

    Learn, solve problems and share ideas.

  • Blog

    News, views and insights from Wolfram

  • Resources for

    Software Developers

Tech Support

  • Contact Us
  • Support FAQs
  • Support FAQs
  • Contact Us
Company
  • About Wolfram
  • Career Center
  • All Sites & Resources
  • Connect & Follow
  • Contact Us

Work with Us

  • Student Ambassador Initiative
  • Wolfram for Startups
  • Student Opportunities
  • Jobs Using Wolfram Language

Educational Programs for Adults

  • Summer School
  • Winter School

Educational Programs for Youth

  • Middle School Camp
  • High School Research Program
  • Computational Adventures

Read

  • Stephen Wolfram's Writings
  • Wolfram Blog
  • Wolfram Tech | Books
  • Wolfram Media
  • Complex Systems

Educational Resources

  • Wolfram MathWorld
  • Wolfram in STEM/STEAM
  • Wolfram Challenges
  • Wolfram Problem Generator

Wolfram Initiatives

  • Wolfram Science
  • Wolfram Foundation
  • History of Mathematics Project

Events

  • Stephen Wolfram Livestreams
  • Online & In-Person Events
  • Contact Us
  • Connect & Follow
Wolfram|Alpha
  • Your Account
  • User Portal
  • Wolfram Cloud
  • Products
    • Wolfram|One
    • Mathematica
    • Notebook Assistant + LLM Kit
    • Compute Services
    • System Modeler
    • Finance Platform
    • Wolfram|Alpha Notebook Edition
    • Application Server
    • Enterprise Private Cloud
    • Wolfram Engine
    • Wolfram Player
    • Wolfram Cloud App
    • Wolfram Player App

    More mobile apps

    • Core Technologies
      • Wolfram Language
      • Computable Data
      • Wolfram Notebooks
      • AI & Linguistic Understanding
    • Deployment Options
      • Wolfram Cloud
      • wolframscript
      • Wolfram Engine Community Edition
      • Wolfram LLM API
      • WSTPServer
      • Wolfram|Alpha APIs
    • From the Community
      • Function Repository
      • Community Paclet Repository
      • Example Repository
      • Neural Net Repository
      • Prompt Repository
      • Wolfram Demonstrations
      • Data Repository
    • Group & Organizational Licensing
    • All Products
  • Consulting & Solutions

    We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

    WolframConsulting.com

    Wolfram Solutions

    • Data Science
    • Artificial Intelligence
    • Biosciences
    • Healthcare Intelligence
    • Sustainable Energy
    • Control Systems
    • Enterprise Wolfram|Alpha
    • Blockchain Labs

    More Wolfram Solutions

    Wolfram Solutions For Education

    • Research Universities
    • Colleges & Teaching Universities
    • Junior & Community Colleges
    • High Schools
    • Educational Technology
    • Computer-Based Math

    More Solutions for Education

    • Contact Us
  • Learning & Support

    Get Started

    • Wolfram Language Introduction
    • Fast Intro for Programmers
    • Fast Intro for Math Students
    • Wolfram Language Documentation

    Grow Your Skills

    • Wolfram U

      Courses in computing, science, life and more

    • Community

      Learn, solve problems and share ideas.

    • Blog

      News, views and insights from Wolfram

    • Resources for

      Software Developers
    • Tech Support
      • Contact Us
      • Support FAQs
    • More Learning
      • Highlighted Core Areas
      • Demonstrations
      • YouTube
      • Daily Study Groups
      • Wolfram Schools and Programs
      • Books
    • Support FAQs
    • Contact Us
  • Company
    • About Wolfram
    • Career Center
    • All Sites & Resources
    • Connect & Follow
    • Contact Us

    Work with Us

    • Student Ambassador Initiative
    • Wolfram for Startups
    • Student Opportunities
    • Jobs Using Wolfram Language

    Educational Programs for Adults

    • Summer School
    • Winter School

    Educational Programs for Youth

    • Middle School Camp
    • High School Research Program
    • Computational Adventures

    Read

    • Stephen Wolfram's Writings
    • Wolfram Blog
    • Wolfram Tech | Books
    • Wolfram Media
    • Complex Systems
    • Educational Resources
      • Wolfram MathWorld
      • Wolfram in STEM/STEAM
      • Wolfram Challenges
      • Wolfram Problem Generator
    • Wolfram Initiatives
      • Wolfram Science
      • Wolfram Foundation
      • History of Mathematics Project
    • Events
      • Stephen Wolfram Livestreams
      • Online & In-Person Events
    • Contact Us
    • Connect & Follow
  • Wolfram|Alpha
  • Wolfram Cloud
  • Your Account
  • User Portal
Wolfram Language & System Documentation Center
CityData
  • See Also
    • CountryData
    • AdministrativeDivisionData
    • GeoNearest
    • $GeoLocation
    • WeatherData

    • Entity Types
    • City

    • Interpreter Types
    • City
    • ComputedCity
  • Related Guides
    • Geographic Data & Entities
    • Socioeconomic & Demographic Data
    • Entity Types
  • Tech Notes
    • Internet Connectivity
    • See Also
      • CountryData
      • AdministrativeDivisionData
      • GeoNearest
      • $GeoLocation
      • WeatherData

      • Entity Types
      • City

      • Interpreter Types
      • City
      • ComputedCity
    • Related Guides
      • Geographic Data & Entities
      • Socioeconomic & Demographic Data
      • Entity Types
    • Tech Notes
      • Internet Connectivity

CityData[name,"property"]

gives the value of the specified property for the city with the specified name.

CityData[name]

gives a list of the full specifications of cities whose names are consistent with name.

Details
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
City Names & Identification  
Collections of Cities  
City Information  
Applications  
Properties & Relations  
Possible Issues  
Neat Examples  
See Also
Tech Notes
Related Guides
Related Links
History
Cite this Page
BUILT-IN SYMBOL
  • See Also
    • CountryData
    • AdministrativeDivisionData
    • GeoNearest
    • $GeoLocation
    • WeatherData

    • Entity Types
    • City

    • Interpreter Types
    • City
    • ComputedCity
  • Related Guides
    • Geographic Data & Entities
    • Socioeconomic & Demographic Data
    • Entity Types
  • Tech Notes
    • Internet Connectivity
    • See Also
      • CountryData
      • AdministrativeDivisionData
      • GeoNearest
      • $GeoLocation
      • WeatherData

      • Entity Types
      • City

      • Interpreter Types
      • City
      • ComputedCity
    • Related Guides
      • Geographic Data & Entities
      • Socioeconomic & Demographic Data
      • Entity Types
    • Tech Notes
      • Internet Connectivity

CityData

CityData[name,"property"]

gives the value of the specified property for the city with the specified name.

CityData[name]

gives a list of the full specifications of cities whose names are consistent with name.

Details

  • The full specification of a city is {"city","region","country"}, where "region" is a state, province or other administrative division.
  • Names of cities, regions, and countries are given in standard forms, such as "NewYork", "BritishColumbia", and "UnitedStates".
  • CityData["city"] gives a list of all available cities worldwide that use the name "city", sorted in order of decreasing population.
  • CityData[{"city","country"}] gives the full specifications for all available cities in the specified country that use the name "city". The results are sorted in order of decreasing population.
  • CityData[{"city","country"},"property"] gives the value of "property" for the city with the largest population in the given country that has the specified name.
  • CityData[{"city","region","country"},"property"] gives the value of "property" for the particular city represented by the full city specification {"city","region","country"}.
  • If there is more than one city with a given name in a particular region and country, the standard name for that city will contain additional identifying information, such as a county name.
  • CityData[{All,"region","country"}] gives a list of all available cities in the specified region of a country, sorted in order of decreasing population.
  • CityData[{Large,"region","country"}] gives a list of all large cities in the specified region. Large cities are typically defined as having populations above 100,000.
  • CityData[{All,"country"}] and CityData[{Large,"country"}] give all available cities and all large cities, respectively, in the specified country.
  • CityData[] or CityData[All] gives a list of all available cities in the world.
  • Typical properties for cities include:
  • "Coordinates"latitude, longitude for the city center
    "Elevation"elevation in meters of the city center
    "Latitude"latitude for the city center
    "LocationLink"URI for a map centered on the city
    "Longitude"longitude for the city center
    "Population"estimated total ordinary population
    "TimeZone"current time zone relative to UTC
  • Names and identification-related properties include:
  • "AlternateNames"alternate names
    "Country"country in which the city lies
    "FullName"primary full English name (e.g. "New York, New York")
    "Name"primary short English name (e.g. "New York")
    "Region"state, province, or other administrative division
    "RegionName"English or local name for region
  • CityData["name","property","ann"] gives various annotations associated with a property. Typical annotations include:
  • "Date"date to which the data refers
    "Description"the description of the property
    "Units"units in which the value is given
    "UnitsName"English name for the units used
    "UnitsNotation"notation for the units used
    "UnitsStandardName"Wolfram Language standard name for the units used

Examples

open all close all

Basic Examples  (6)

Find all available cities in the world named London, sorted by decreasing population:

Find the population of London, England:

Find the population of London, Ontario:

Find the latitude and longitude of the center of London, England:

Give English names for a city:

Large cities (of over 100,000) in Ireland:

Large cities in Ohio:

Find all available cities in Vanuatu:

Scope  (13)

City Names & Identification  (6)

Standard Wolfram Language names omit all spaces:

Cities can be requested using names that contain spaces:

The "Name" property gives traditional names, with spaces:

Specify the Los Angeles in Chile:

All available cities named Fresno in the world:

Cities in the U.S. named Fresno:

Specify Fresno, Texas:

Multiple cities with the same name in a state are identified by county or other information:

The basic names are the same:

The full names of the smaller cities contain county information:

Find alternate names for Beijing:

There is no known city with the name Frog anywhere in the world:

Collections of Cities  (3)

Find all available cities in Tuvalu:

Find large cities (population above 100,000) in Belgium:

Find all available cities in the state of Illinois:

City Information  (4)

The coordinates of the center of Chicago:

The elevation of Chicago in meters:

A link to a web-based map of the city:

The region in which Chicago lies:

Applications  (9)

Create a function to find the nearest large cities to a given position in the U.S.:

Find the three large cities nearest Champaign, Illinois:

Plot the positions of all available cities in Japan:

Find city names that occur in both Germany and Belgium:

Make a rank plot of the populations of cities in several U.S. states:

Plot the large cities in Australia, with tooltips for their names:

Plot larger cities with larger, transparent disks:

Find a traveling salesman tour of the large cities in Germany:

Make a 3D contour map of Colorado based on the elevations of its cities:

Make a scatter plot of population versus elevation for cities in Colorado:

Properties & Relations  (2)

CityData gives cities listed in order of decreasing population:

CountryData can give the largest cities in a country:

Make a Lambert azimuthal projection map, centered on New York City:

Possible Issues  (3)

CityData includes only complete cities, not parts of cities:

Sometimes the name of a city, region and country can all be the same:

There can be multiple cities in one state with the same name:

The smaller ones have county or other identifying information:

Neat Examples  (2)

Find the 10 most common city names in the world:

Find the countries where cities named San Jose exist:

Find the capital cities in the world with the smallest recorded populations:

Find the populations:

See Also

CountryData  AdministrativeDivisionData  GeoNearest  $GeoLocation  WeatherData

Entity Types: City

Interpreter Types: City  ComputedCity

Tech Notes

    ▪
  • Internet Connectivity

Related Guides

    ▪
  • Geographic Data & Entities
  • ▪
  • Socioeconomic & Demographic Data
  • ▪
  • Entity Types

Related Links

  • ▪ CityData Source Information

History

Introduced in 2007 (6.0) | Updated in 2014 (10.0)

Wolfram Research (2007), CityData, Wolfram Language function, https://reference.wolfram.com/language/ref/CityData.html (updated 2014).

Text

Wolfram Research (2007), CityData, Wolfram Language function, https://reference.wolfram.com/language/ref/CityData.html (updated 2014).

CMS

Wolfram Language. 2007. "CityData." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/CityData.html.

APA

Wolfram Language. (2007). CityData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CityData.html

BibTeX

@misc{reference.wolfram_2025_citydata, author="Wolfram Research", title="{CityData}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/CityData.html}", note=[Accessed: 01-March-2026]}

BibLaTeX

@online{reference.wolfram_2025_citydata, organization={Wolfram Research}, title={CityData}, year={2014}, url={https://reference.wolfram.com/language/ref/CityData.html}, note=[Accessed: 01-March-2026]}

Top
Introduction for Programmers
Introductory Book
Wolfram Function Repository | Wolfram Data Repository | Wolfram Data Drop | Wolfram Language Products
Top
  • Products
  • Wolfram|One
  • Mathematica
  • Notebook Assistant + LLM Kit
  • Compute Services
  • System Modeler

  • Wolfram|Alpha Notebook Edition
  • Wolfram|Alpha Pro
  • Mobile Apps

  • Wolfram Engine
  • Wolfram Player

  • Volume & Site Licensing
  • Server Deployment Options
  • Consulting
  • Wolfram Consulting
  • Repositories
  • Data Repository
  • Function Repository
  • Community Paclet Repository
  • Neural Net Repository
  • Prompt Repository

  • Wolfram Language Example Repository
  • Notebook Archive
  • Wolfram GitHub
  • Learning
  • Wolfram U
  • Wolfram Language Documentation
  • Webinars & Training
  • Educational Programs

  • Wolfram Language Introduction
  • Fast Introduction for Programmers
  • Fast Introduction for Math Students
  • Books

  • Wolfram Community
  • Wolfram Blog
  • Public Resources
  • Wolfram|Alpha
  • Wolfram Problem Generator
  • Wolfram Challenges

  • Computer-Based Math
  • Computational Thinking
  • Computational Adventures

  • Demonstrations Project
  • Wolfram Data Drop
  • MathWorld
  • Wolfram Science
  • Wolfram Media Publishing
  • Customer Resources
  • Store
  • Product Downloads
  • User Portal
  • Your Account
  • Organization Access

  • Support FAQ
  • Contact Support
  • Company
  • About Wolfram
  • Careers
  • Contact
  • Events
Wolfram Community Wolfram Blog
Legal & Privacy Policy
WolframAlpha.com | WolframCloud.com
© 2026 Wolfram
© 2026 Wolfram | Legal & Privacy Policy |
English