US Cities Dataset
BRIDGES provides easy access to US Cities data. Each record consists of city ID, name, state, country, latitude, longitude, elevation and time zone. The API enables to filter the cities based on location (by providing a latitude, longitude bounding box), state, population, or elevation.
The program snippet below illustrates how to query for the dataset using some of the available filters.
See also
This tutorial gives an introduction to the usage of City data. You can find the complete documentation of the features in the Doxygen documentation of the following classes and functions:
Accessing Data: An Example BRIDGES program
Java
C++
Python
- Copy/paste the code into your environment and compile.
- Assuming all your code is correct and it compiles correctly, the code will print a record of the the number of vertices and the location of the first vertex for this dataset.