Skip to content

Alexakis97/GreekRegionsCluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GreekRegionsCluster

Maven Central GitHub last commit MIT License

alt text

Prerequisites

Include the dependancy

Maven

<dependency>
  <groupId>com.github.alexakis97</groupId>
  <artifactId>clustering</artifactId>
  <version>1.1.4</version>
</dependency>

Gradle Groovy

implementation 'com.github.alexakis97:clustering:1.1.4'

For more types of dependancies please refer here

Usage

Define a new Point object

Warning: Don't import Point from java.awt!

Point point = new Point(38.021332, 23.798630);

Get the instance & load the cluser

Cluster cluster = Cluster.getInstance();
cluster.loadCluster();

Get the feature

System.out.println(cluster.getClusterFeature(point,"en"));

The feature is returned as a String, with the extra param you can define the language, currently only "gr" and "en" are supported

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published