Algeria Pharmacies
@geoalgeria/pharmacies
3,797 pharmacies (officines) across 67 wilayas: geocoded from OpenStreetMap, with names, phone and opening hours where tagged, clustered and searchable. Records conform to the canonical @geoalgeria/schema GeoRecord.
Source: OpenStreetMap (ODbL)
Install
npm install @geoalgeria/pharmaciesQuick example
import pharmacies from "@geoalgeria/pharmacies";
const all = pharmacies.pharmacies(); // 3,797 pharmacies
const alger = pharmacies.pharmaciesByWilaya(16); // Alger
const meta = pharmacies.metadata(); // counts, sources, licensesAPI reference
| Name | Signature | Description |
|---|---|---|
pharmacies | pharmacies(): Pharmacy[] | All 3,797 pharmacies. |
pharmacyById | pharmacyById(id): Pharmacy | null | A single pharmacy by id. |
pharmaciesByWilaya | pharmaciesByWilaya(code): Pharmacy[] | Pharmacies in a wilaya (numeric or zero-padded code). |
metadata | metadata(): Metadata | Package metadata (counts, sources, licenses). |
Record shape
| Field | Type | Nullable | Description |
|---|---|---|---|
id | string | no | Record id (e.g. "16-00042"). |
name | string | yes | Display name; many OSM pharmacies are unnamed. |
name_fr | string | yes | French / Latin-script name. |
name_ar | string | yes | Arabic name. |
wilaya_code | string | no | Zero-padded wilaya code ("01".."69"). |
commune_code | string | yes | Commune (ONS) code. |
commune | string | no | Commune name (French). |
lat | number | no | Latitude (WGS84). |
lng | number | no | Longitude (WGS84). |
geo_precision | GeoPrecision | no | Coordinate provenance. |
geo_method | GeoMethod | no | node = surveyed (exact); centroid = building (approximate). |
source | "osm" | no | Provenance: always "osm". |
refs | Refs | no | External ids, e.g. { osm: "node/3012904279" }. |
operator | string | yes | Operator / chain (rare in Algeria). |
phone | string | yes | Phone number as tagged. |
opening_hours | string | yes | Opening hours (OSM opening_hours syntax). |
dispensing | boolean | yes | Whether it dispenses prescription medicine, or null if untagged. |
address | string | yes | Street address from OSM addr:* tags. |
Formats
The npm package ships JSON. Other formats are available in each GitHub Release.
Related packages
@geoalgeria/sante695 public health establishments across 58 wilayas: hospitals (EPH), proximity-health (EPSP), specialized hospitals (EHS) and university hospitals (CHU) from the Ministry of Health, bilingual FR/AR.
@geoalgeria/industrie-pharmaceutique171 approved pharmaceutical manufacturers across 25 wilayas: medicine and medical-device makers from the Ministry of Pharmaceutical Industry (MIP) fabrication register, geocoded against the geoalgeria commune set.