UNPKG

catchment-area

Version:

A utility for computing the catchment area of given source and destination points. A source may correspond to a health facility while the destinations (catchment areas) are the settlements served by the facility

23 lines (17 loc) 512 B
export type Coord = [number, number] export type Minutes = number export type Kilometers = number export type KilometersPerHour = number export interface Config { readonly sources: Array<number>, readonly destinations: Array<number>, readonly coordinates: Array<Coord>, readonly profile?: string readonly drivetimes: Array<Minutes> } export interface CatchmentArea { readonly source: Coord, readonly destinations: Array<Coord>, readonly drivetime: Minutes, readonly distance: Kilometers }