← All projects

leblad

by @dzcode-io

72

A JS library providing a list of Algerian administrative areas with many useful APIs.

About this project

Le'Blad A library providing a list of Algerian administrative areas with many useful APIs. Getting started Usage Installation API getWilayaList(projection?: string[]) Returns a list of Algerian provinces (Wilayas) Arguments projection: string[] (optional) Array of Wilaya Object attributes to keep. Examples getWilayaByZipCode(zipCode: number, projection?: string[]) Returns a wilaya that includes the given zipCode. Arguments zipCode: number (required) A zip code projection: string[] (optional) Array of Wilaya Object attributes to keep Examples getWilayaByCode(wilayaCode: number, projection?: string[]) Takes a wilaya code (matricule) and returns the matching wilaya Arguments wilayaCode: number (required) the Wilaya's "matricule" projection: string[] (optional) Array of Wilaya Object attributes Examples getAdjacentWilayas(wilayaCode: number) Takes a wilaya code (matricule) and returns a list of adjacent wilayas codes Arguments wilayaCode: number (required) the Wilaya's "matricule" Examples getZipCodesForWilaya(wilayaCode: number) Takes a wilaya code (matricule) and returns a list of Respective Zip-Codes for that wilaya Arguments wilayaCode: number (required) the Wilaya's "matricule"

From the project README on GitHub

Stars
72
Forks
22
License
MIT
Last push
5 Mar 2023

Add this badge to your README

Show that your project is listed on Made in Algeria.

Made in Algeria
[![Made in Algeria](https://www.madeinalgeria.dev/badge/leblad.svg)](https://www.madeinalgeria.dev/projects/leblad)

Related projects