Skip to content

championswimmer/InterComGeoDist

Repository files navigation

Geo Distance Invitation List

Problem Statement

Summary

There is a list of customers, each having

  • customer ID
  • latitude
  • longitude
  • name

We need to find all customers within 100KM radius of Dublin office, and order them by their customer ID so that we can send them invitations

Specifications

Dataset: customers.txt located in

src/main/resources/customers.txt

User object format

{"latitude": "54.1225", "user_id": 27, "name": "Enid Gallagher", "longitude": "-8.143333"}

Solution

Technologies

Requirements

  1. Java (JDK 8 or above)
  2. Kotlin (not needed to install separately)

Compile and Run

Compile project

./gradlew assemble

Run Program

java -jar build/libs/IntercomGeoDist-1.0-SNAPSHOT.jar

Run Tests

./gradlew check 

Test Coverage & Report

Run test with coverage report

./gradlew jacocoTestReport

Find test report (open in browser) -
build/jacocoHtml/index.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages