| Crates.io | cities-json |
| lib.rs | cities-json |
| version | 0.6.8 |
| created_at | 2022-11-30 17:17:24.411073+00 |
| updated_at | 2025-02-27 14:59:18.669048+00 |
| description | Get cities |
| homepage | https://github.com/ringsaturn/go-cities.json |
| repository | https://github.com/ringsaturn/go-cities.json |
| max_upload_size | |
| id | 726340 |
| size | 25,254,295 |
cities.json[!NOTE]
It's used for geo related benchmarks, not for production usages.
Rust: https://crates.io/crates/cities-json
cargo add cities-json
use cities_json::CITIES;
println!("first {:?}", CITIES.get(0).unwrap().name);
Python: https://pypi.org/project/citiespy/
pip install citiespy
from citiespy import all_cities, random_city
city = random_city()
print(city)
cities = all_cities()
print(len(cities))
This project is open sourced under The Unlicense.
The dataset, cities.json, created created by lutangar and is licensed under Creative Commons Attribution 4.0 International