Skip to content

flintbison/pincode-map

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

India by Pincode Colors

A simple data visualization that maps India's postal pincodes to hexadecimal colors, creating a colorful geographic representation of the country's postal system.

Overview

This project converts each 6-digit Indian pincode into a hexadecimal color code and displays the corresponding postal areas on an interactive map. Each pincode area is filled with its unique color, creating a vibrant mosaic that represents India's postal geography. Each 6-digit pincode (e.g., 560001) becomes a hexadecimal color code (#560001)

Installation

  1. Download the required data file

    • Download data from: [data.gov.in/resource/delivery-post-office-pincode-boundary]
    • Place the file as data.geojson in the same directory as index.html
  2. Start a local web server

    Using Python (recommended):

    # Python 3
    python -m http.server 8000
    
    # Python 2
    python -m SimpleHTTPServer 8000

    Using Node.js:

    npx http-server

    Using PHP:

    php -S localhost:8000
  3. Open in browser

    • Navigate to http://localhost:8000
    • Wait for the map to load (may take a few moments depending on data size)

Dependencies

About

Indian Pincodes to Leaflet Map

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published