242places
v1.2.1
Published
Generate source-backed Republic of Congo geographic files with auditable partial coverage.
Readme
242Places — Republic of the Congo
Français · Getting started · Formats · HTTP API · Contributing
Get Republic of the Congo (CG/COG) geographic data as readable lists or application resources. Choose Excel category tabs, CSV files with place names, separate JSON collections, or database exports with stable UUIDs and configurable business tables. Generated files need no permanent project dependency.
Version 1.2.1 provides the Congo resource exports. Use npx [email protected] to select this version explicitly. Earlier releases were published under the georeference package name.
Try the data
Use Node.js 24.18.x and npm:
npx [email protected] generate --format xlsx --output ./exports/congo-excel
npx [email protected] neighborhoods --city Brazzaville --format csv --output ./exports/brazzaville-csv
npx [email protected] generate --format json --output ./exports/congo-jsonOpen congo.xlsx for category worksheets, CSV files for readable lists, or JSON arrays such as communes.json, arrondissements.json and neighborhoods.json for applications. Each new output directory includes a human coverage/date summary in README.txt and technical integrity metadata in manifest.json. Detailed evidence is optional with --audit. Existing destinations are refused.
Choose the output for the job
| Task | Output |
|---|---|
| Read or share spreadsheet lists | xlsx: category worksheets, names and readable relationships |
| Use lists in many spreadsheet tools | csv: one file per category, names instead of raw foreign keys by default |
| Add local data to an application | json or ndjson: separate resources, UUIDs and explicit relationships |
| Initialize PostgreSQL tables | sql-postgres: separate schema/data scripts, configurable table names |
| Query a local database directly | sqlite: ready-to-query business tables |
| Work with supplied map geometry | geojson: requested layers, no invented geometry |
A CSV contains one table, not tabs. Choose XLSX for a multi-sheet workbook. CSV/XLSX are presentation exports, not database seeding inputs. See generation and formats.
A dated, partial Congo reference
The enriched reference contains 4,353 records: 1 country, 15 departments, 16 communes, 23 arrondissements, 92 districts, 47 urban communities, 92 rural communities, 782 neighborhoods and 3,285 villages. Existing UUIDs are retained. The maintainer-supplied administrative cascade was received on November 14, 2026; its observation dates are unknown. Coverage remains partial and geometry is not invented.
Same-name communes/departments have distinct UUIDs. A neighborhood's documented parent can be a commune, arrondissement or urban community. Empty results mean missing observations, not proof that no places exist. See the reference and sources.
Files, database import and optional SDK
Generating files does not write to a database. The PostgreSQL importer has a read-only preview and a separate apply step; existing tables must match the selected business schema. It does not silently migrate an application or remap arbitrary existing primary keys. See database import.
The optional SDK exposes resources for applications choosing local package integration. The repository also includes a separate Fastify HTTP application using the same geographic resources and stable UUIDs. It queries the data without exporting files or seeding a database. See getting started and architecture.
Run the HTTP API locally
From a source checkout, use Node.js 24.18.x and run:
npm ci
npm run dev:apiOpen http://127.0.0.1:3000/docs for interactive documentation. Routes include /v1/communes, /v1/communes/{id}/arrondissements and /v1/arrondissements/{id}/neighborhoods. The API is public and read-only, with paginated resources and explicit dataset/partial-coverage metadata. See the API guide for configuration, examples and the difference between direct and descendant relationships.
Read the hosted product documentation and API reference. It includes CLI, exports, SQL import and SDK guides in French and English. The npm package remains the CLI/optional SDK: npx 242places generates standalone files. See deployment to host the API and documentation yourself.
Documentation
| English | Français | |---|---| | Getting started | Prise en main | | Generation and filters | Génération et filtres | | Formats and tables | Formats et tables | | Database import | Import en base | | Reference and sources | Référentiel et sources | | Migration | Migration | | HTTP API | API HTTP | | Deployment | Déploiement | | Architecture | Architecture | | Contributing | Contribuer |
Development and license
npm run check validates the core and API. Use npm run test:api for API behavior, and npm run build:api then npm run start:api for the compiled server. Task PRs target dev; releases go from dev to main.
Code/documentation: MIT, © 2026 Osiris Balonga. Source facts retain provenance and applicable terms; MIT does not relicense external publications/maps. Synthetic fixtures are tests only. See licensing.
