route-bounder
Version:
Create bounds between a polyline / set of waypoints. Useful for searching for places along a route.
14 lines (8 loc) • 636 B
Markdown
# Route Bounder
### For creating "find along my route" tools
[](https://postimg.cc/yk335LKJ)
[](https://postimg.cc/qzCNBrwJ)
#### Usage
- `npm i route-bounder`
- `const bounds = createRouteBlocker(waypoints, resolution, distance)` where `waypoints` is an array of coordinates (`{latitude, longitude}`)
- Use your favorite API for finding places of interest along a route with given the array of bounds `{ north, east, south, west }`