UNPKG

distance-by-name

Version:

A module to calculate distance and duration between two places using OpenRouteService API.

10 lines (7 loc) 330 B
# Distance By Name A Node.js module to find the distance and estimated travel time between two places using OpenRouteService API. ## 🚀 Installation ```sh const { getDistanceByName } = require("distance-by-name"); const { origin, destination } = req.body; const result = await getDistanceByName(origin, destination);