hexgridgeo-java

Configurable hex grid on abstract surface

License

License

Categories

Categories

Java Languages Geo Business Logic Libraries Geospatial
GroupId

GroupId

com.gojuno.hexgridgeo
ArtifactId

ArtifactId

hexgridgeo-java
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

hexgridgeo-java
Configurable hex grid on abstract surface
Project URL

Project URL

https://github.com/gojuno/hexgridgeo-java
Source Code Management

Source Code Management

https://github.com/gojuno/hexgridgeo-java

Download hexgridgeo-java

How to add to project

<!-- https://jarcasting.com/artifacts/com.gojuno.hexgridgeo/hexgridgeo-java/ -->
<dependency>
    <groupId>com.gojuno.hexgridgeo</groupId>
    <artifactId>hexgridgeo-java</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.gojuno.hexgridgeo/hexgridgeo-java/
implementation 'com.gojuno.hexgridgeo:hexgridgeo-java:1.0.1'
// https://jarcasting.com/artifacts/com.gojuno.hexgridgeo/hexgridgeo-java/
implementation ("com.gojuno.hexgridgeo:hexgridgeo-java:1.0.1")
'com.gojuno.hexgridgeo:hexgridgeo-java:jar:1.0.1'
<dependency org="com.gojuno.hexgridgeo" name="hexgridgeo-java" rev="1.0.1">
  <artifact name="hexgridgeo-java" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.gojuno.hexgridgeo', module='hexgridgeo-java', version='1.0.1')
)
libraryDependencies += "com.gojuno.hexgridgeo" % "hexgridgeo-java" % "1.0.1"
[com.gojuno.hexgridgeo/hexgridgeo-java "1.0.1"]

Dependencies

compile (2)

Group / Artifact Type Version
com.gojuno.morton : morton-java jar 1.0.1
com.gojuno.hexgrid : hexgrid-java jar 1.0.1

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

HexGrid GEO

Basics

GEO wrapper for HexGrid.

Examples

import com.gojuno.hexgrid.*;
import com.gojuno.hexgridgeo.*;

HexGridGeo grid = new HexGridGeo(Orientation.FLAT, 500, ProjectionSM.INSTANCE);
Hex hex = grid.hexAt(new PointGeo(-73.5, 40.3));
long code = grid.hexToCode(hex);
Hex restoredHex = grid.hexFromCode(code);
Hex[] neighbors = grid.hexNeighbors(hex, 2);
Region region = grid.createRegion(new PointGeo[]{
        new PointGeo(-73.0, 40.0), new PointGeo(-74.0, 40.0), new PointGeo(-74.0, 41.0), new PointGeo(-73.0, 41.0));
Hex[] hexesInRegion = region.getHexes();
com.gojuno.hexgridgeo

Juno Inc.

Juno is a fresh approach to ride sharing

Versions

Version
1.0.1
1.0.0