> ## Documentation Index
> Fetch the complete documentation index at: https://docs.countrystatecity.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Contributions

> How to contribute improvements, corrections, and new data to the Countries States Cities database

## Contributing Overview

The Countries States Cities database thrives through community contributions. Whether you're fixing a small typo or proposing major data additions, your contributions help millions of developers access accurate geographical data.

> [card] [CSC Update Tool](https://manager.countrystatecity.in/)
>
> Our official web-based tool makes contributing easy - no technical setup required!

## Contribution Methods

### 1. CSC Update Tool (Recommended)

The easiest way to contribute is through our dedicated web application:

> [card] Browse & Search
>
> Easily explore regions, countries, states, and cities with powerful search capabilities.

> [card] Submit Changes
>
> Simple forms to request corrections, additions, or updates with proper source validation.

> [card] Track Progress
>
> Monitor your submissions through our streamlined review process with real-time status updates.

> [card] Community Recognition
>
> Contributors are recognized for their valuable additions to the database.

**1. Access the Tool**

Visit [manager.countrystatecity.in](https://manager.countrystatecity.in/) and sign in with GitHub or use the Magic Link option.

> [!NOTE]
>
> No account required - we automatically create one when you first contribute.

**2. Find Data to Improve**

Use the search functionality to locate geographical entities that need updates:

* Browse by region → country → state → city
* Search for specific locations
* Filter by data quality indicators
* Review community-flagged issues

**3. Submit Your Changes**

Fill out the contribution form with:

* **What needs to change**: Current incorrect data
* **Correct information**: Your proposed updates
* **Source documentation**: Links to authoritative sources
* **Additional context**: Any relevant background information

> [!TIP]
>
> Always include authoritative sources for your changes. Government websites and official statistical offices are preferred.

**4. Track Your Submission**

Monitor your contribution through the review process:

* **Pending**: Under initial review
* **In Review**: Being evaluated by our team
* **Approved**: Accepted and queued for integration
* **Rejected**: Not accepted (with feedback)
* **Integrated**: Live in the database

### 2. GitHub Contributions (Advanced)

For developers comfortable with Git workflows:

> [!WARNING]
>
> Direct GitHub contributions require technical knowledge of SQL and database management. We recommend using the Update Tool for most contributions.

**1. Fork the Repository**

```bash theme={null}
git clone https://github.com/dr5hn/countries-states-cities-database.git
cd countries-states-cities-database
git checkout -b feature/your-improvement-name
```

**2. Make Your Changes**

Edit the `sql/world.sql` file directly:

```sql theme={null}
-- Example: Adding a new city
INSERT INTO cities (name, state_id, state_code, state_name, country_id, country_code, country_name, latitude, longitude) 
VALUES ('New City', 1234, 'CA', 'California', 231, 'US', 'United States', 34.0522, -118.2437);

-- Example: Correcting city coordinates  
UPDATE cities 
SET latitude = 40.7128, longitude = -74.0060
WHERE name = 'New York' AND state_code = 'NY' AND country_code = 'US';
```

**3. Create Pull Request**

```bash theme={null}
git add sql/world.sql
git commit -m "feat: add New City to California, US"
git push origin feature/your-improvement-name
```

Then create a pull request on GitHub with:

* Clear description of changes
* Source documentation
* Justification for the changes

## Contribution Guidelines

### Quality Standards

> [accordion] Source Requirements
>
> **Tier 1 Sources (Preferred)**:
>
> * Government websites and official portals
> * National statistical offices
> * International organizations (UN, ISO, etc.)
> * Official geographical surveys
>
> **Tier 2 Sources (Acceptable)**:
>
> * Reputable geographical databases (GeoNames, etc.)
> * Academic institutions and research papers
> * Established reference works
> * Well-documented Wikipedia articles with citations
>
> **Unacceptable Sources**:
>
> * Personal blogs or opinions
> * Commercial directories without verification
> * Uncited crowd-sourced content
> * Outdated or deprecated sources

> [accordion] Data Accuracy Standards
>
> **Coordinates**:
>
> * Must be in WGS84 decimal degrees format
> * Precision appropriate to entity type (cities: 6+ decimals)
> * Should represent actual administrative center when possible
>
> **Names**:
>
> * Use internationally recognized English names
> * Maintain consistency with established conventions
> * Include alternative names only when widely used
>
> **Administrative Data**:
>
> * Must reflect current official administrative structure
> * Include effective dates for recent changes
> * Maintain proper hierarchical relationships

> [accordion] Documentation Requirements
>
> Every contribution must include:
>
> ```
> Source: [Official source name and URL]
> Date Verified: [When you verified this information]
> Justification: [Why this change is needed]
> Impact: [What this change affects]
> Additional Context: [Any relevant background]
> ```
>
> **Example**:
>
> ```
> Source: Statistics Canada - https://www.statcan.gc.ca/
> Date Verified: September 13, 2025
> Justification: Nunavut coordinates incorrect by 2km
> Impact: Affects coordinate-based queries for Canadian territories
> Additional Context: Verified against official territorial government website
> ```

> [card] [Join Our Community](mailto:gadadarshan@gmail.com)
>
> Have questions? Want to become a regional coordinator? Reach out to our team!

Thank you for helping make geographical data more accurate and accessible for developers worldwide! 🌍


## Related topics

- [CSC Tools Overview](https://docs.countrystatecity.in/tools/overview.md)
- [Database Overview](https://docs.countrystatecity.in/database/overview.md)
- [Self-hosting and extending CSC data](https://docs.countrystatecity.in/database/self-hosting-and-custom-data.md)
- [Update Tool Overview](https://docs.countrystatecity.in/tools/update-tool/index.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.