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.

3,797 pharmaciesView on mapnpm

Source: OpenStreetMap (ODbL)

Install

npm install @geoalgeria/pharmacies

Quick 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, licenses

API reference

NameSignatureDescription
pharmaciespharmacies(): Pharmacy[]All 3,797 pharmacies.
pharmacyByIdpharmacyById(id): Pharmacy | nullA single pharmacy by id.
pharmaciesByWilayapharmaciesByWilaya(code): Pharmacy[]Pharmacies in a wilaya (numeric or zero-padded code).
metadatametadata(): MetadataPackage metadata (counts, sources, licenses).

Record shape

FieldTypeNullableDescription
idstringnoRecord id (e.g. "16-00042").
namestringyesDisplay name; many OSM pharmacies are unnamed.
name_frstringyesFrench / Latin-script name.
name_arstringyesArabic name.
wilaya_codestringnoZero-padded wilaya code ("01".."69").
commune_codestringyesCommune (ONS) code.
communestringnoCommune name (French).
latnumbernoLatitude (WGS84).
lngnumbernoLongitude (WGS84).
geo_precisionGeoPrecisionnoCoordinate provenance.
geo_methodGeoMethodnonode = surveyed (exact); centroid = building (approximate).
source"osm"noProvenance: always "osm".
refsRefsnoExternal ids, e.g. { osm: "node/3012904279" }.
operatorstringyesOperator / chain (rare in Algeria).
phonestringyesPhone number as tagged.
opening_hoursstringyesOpening hours (OSM opening_hours syntax).
dispensingbooleanyesWhether it dispenses prescription medicine, or null if untagged.
addressstringyesStreet address from OSM addr:* tags.

Formats

JSONCSVGEOJSONTS

The npm package ships JSON. Other formats are available in each GitHub Release.

Related packages