Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Latest commit

 

History

History
29 lines (19 loc) · 499 Bytes

File metadata and controls

29 lines (19 loc) · 499 Bytes

processlargedatajs Function

From a large JSON payload calculates the distance between a supplied point of origin cordinate and the data, sorts it, and returns the nearest x results.

Local Development

  1. Install dependencies with
npm install
  1. Run tests with
npm test
  1. Start your function locally
sf run function start --verbose
  1. Invoke your function locally
sf run function --function-url=http://localhost:8080 --payload=@data/sample-payload.json