Skip to content

About

Filtering customers by distance

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

Customer Filter

CircleCI DUB CircleCI

The idea of this application is to use Great-circle distance or orthodromic distance algorithm to filter, in a list of customers, all customers within a given distance, from a reference point.

The data consists in a text file, formatted with one customer per line, in a JSON structure, like this:

  {"latitude": "53.0033946", "user_id": 39, "name": "Lisa Ahearn", "longitude": "-6.3877505"}

Live Demo

How to build and Run this test

With Docker

  • build the image from the Dockerfile: docker build -t sheldonled/customer-filter .
  • run the image: docker run --name customer_filter -d -p 3000:3000 sheldonled/customer-filter
  • Go To: localhost:3000/

With npm

  • run: npm install
  • run: npm run build
  • run: npm start
  • Go To: localhost:3000/

About

Filtering customers by distance

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages