Socket
Book a DemoInstallSign in
Socket

redx-delivery-areas

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redx-delivery-areas

Get all delivery areas of redx

1.1.0
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

RedX Delivery Areas - Bangladesh Delivery Locations API

redx-delivery-areas is a NPM package that provides a comprehensive list of delivery areas across Bangladesh, categorized by district names. This package is ideal for e-commerce businesses, logistics companies, and developers who need structured location data, including area names, postcodes, and zone IDs.

Features

  • 🚀 Get all delivery areas across Bangladesh.
  • 🔍 Filter areas by district name for precise location-based data.
  • 📌 Retrieve area details, including postcodes, zone IDs, and divisions.
  • 🌍 Get a list of all districts in Bangladesh with their respective divisions.
  • 📦 Ideal for e-commerce, logistics, and location-based services.

Installation

To install the package, run the following command:

npm install redx-delivery-areas

Usage

🔹 Get Areas by District Name

This method returns an array of areas for a given district name.

import { getAreasByDistrict } from "redx-delivery-areas";

const dhakaAreas = getAreasByDistrict("Dhaka");
console.log(dhakaAreas);

Example Response

[
  {
    "id": 1,
    "name": "Salimullah Road(Mohammadpur)",
    "post_code": 1207,
    "district_name": "Dhaka",
    "division_name": "Dhaka",
    "zone_id": 1
  },
  {
    "id": 2,
    "name": "Dhanmondi - Road 3",
    "post_code": 1209,
    "district_name": "Dhaka",
    "division_name": "Dhaka",
    "zone_id": 1
  }
]

🔹 Get Area by Area Name

This method returns a specific area based on its name.

import { getAreaByName } from "redx-delivery-areas";

const area = getAreaByName("Kabir Hat (Noakhali)");
console.log(area);

Example Response

{
  "id": 2,
  "name": "Kabir Hat (Noakhali)",
  "post_code": 3811,
  "district_name": "Noakhali",
  "division_name": "Noakhali",
  "zone_id": 1
}

🔹 Get All Districts

This method returns a list of all districts in Bangladesh with their divisions.

import { getAllDistricts } from "redx-delivery-areas";

const districts = getAllDistricts();
console.log(districts);

Example Response

[
  { "id": 1, "name": "Bagerhat", "division": "Khulna" },
  { "id": 2, "name": "Bandarban", "division": "Chittagong" },
  { "id": 3, "name": "Barguna", "division": "Barisal" },
  { "id": 4, "name": "Barisal", "division": "Barisal" },
  { "id": 5, "name": "Bhola", "division": "Barisal" },
  { "id": 6, "name": "Bogra", "division": "Rajshahi" },
  { "id": 7, "name": "Brahmanbaria", "division": "Chittagong" },
  { "id": 8, "name": "Chandpur", "division": "Chittagong" },
  { "id": 9, "name": "Chapai Nawabganj", "division": "Rajshahi" },
  { "id": 10, "name": "Chattogram", "division": "Chittagong" },
  { "id": 11, "name": "Chuadanga", "division": "Khulna" },
  { "id": 12, "name": "Comilla", "division": "Chittagong" },
  { "id": 13, "name": "Cox's Bazar", "division": "Chittagong" },
  { "id": 14, "name": "Dhaka", "division": "Dhaka" },
  { "id": 15, "name": "Dinajpur", "division": "Rangpur" },
  { "id": 16, "name": "Faridpur", "division": "Dhaka" },
  { "id": 17, "name": "Feni", "division": "Chittagong" },
  { "id": 18, "name": "Gaibandha", "division": "Rangpur" },
  { "id": 19, "name": "Gazipur", "division": "Dhaka" },
  { "id": 20, "name": "Gopalganj", "division": "Dhaka" }
]

📜 License

This package is licensed under the MIT License.

🔗 Keywords & Tags

Bangladesh Delivery Areas, District-wise Areas, RedX API, Courier Service Data, Bangladesh Postcodes, Logistics API, E-commerce Delivery, NPM Package, Delivery Zones, Dhaka Delivery Areas, Bangladesh Districts

Keywords

Bangladesh Delivery Areas

FAQs

Package last updated on 12 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.