Coder Social home page Coder Social logo

intercomgeodist's Introduction

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

intercomgeodist's People

Contributors

championswimmer avatar

Stargazers

Dev Mishra avatar Pulkit Aggarwal avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.