🇱🇰 Sri Lanka data package

2,448 Sri Lanka cities and 9 regions, every city with a known population, names translated into 50+ languages, as an installable npm package. Versioned, offline-usable, no API key required.

@geomelon/sri-lanka on npm Source on GitHub

npm install @geomelon/sri-lanka

Usage

const sri-lanka = require('@geomelon/sri-lanka')

sri-lanka.cities({ name: '<prefix>' })       // matches primary name or any translation
sri-lanka.cities({ minPopulation: 1000000 })
sri-lanka.regions({ name: '<prefix>' })
sri-lanka.country                            // country-level fields
sri-lanka.meta                               // generatedAt, recordCount, license, source

Looking for the whole live API instead of a static package — search, autocomplete, coordinate queries, all countries at once? Try Geomelon on RapidAPI.

License

Dedicated to the public domain under CC0 1.0, matching the license of the underlying Wikidata source. Free for any use, including commercial, with no attribution required.

All data packages