Crates.io | cities-json |
lib.rs | cities-json |
version | 0.6.6 |
source | src |
created_at | 2022-11-30 17:17:24.411073 |
updated_at | 2024-11-01 11:39:32.262553 |
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 | 24,715,332 |
cities.json
[!NOTE]
It's used for geo related benchmarks, not for production usages.
cargo add cities-json
use cities_json::CITIES;
println!("first {:?}", CITIES.get(0).unwrap().name);
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.
Upstream data is under Creative Commons Attribution 3.0 License.