Coder Social home page Coder Social logo

density-of-population's Introduction

codecov

Density of population

Prerequisites

  • JDK 13

Build project

./gradlew build

Run tests

./gradlew test

Run the app

Run the app from gradle command line with JSON content seems to be quite challenging.
This github issue has been added in 2016 and seems to be fixed in v3.3 but I didn't succeed to run the app from CLI with JSON arg.
Broken command example: ./gradlew run --args='--densest {\"n\":2}'

Note: I mainly used unit tests during development

Compute the number of POIs in an area

You can run this directly in your IDE with program arguments: --nbpoi {\"min_lat\":6.5,\"min_lon\":-7}'

Fetch the densest areas

You can run this directly in your IDE with program arguments: --densest {\"n\":2}

POI implementation

In my app, 2 POIs should be equal if they have same id and coordinates. I suppose 2 POIs should have the exactly same latitude and longitude.

TSV file location

When you run the project the POIs are defined in a tsv file located in src/main/resources/config.tsv

Code coverage

Code coverage metrics from Codecov and IntelliJ are not the same.
Codecov: 81% vs IntelliJ: 88%

density-of-population's People

Contributors

fleboulch avatar

Watchers

James Cloos 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.